Sie sind nicht angemeldet.

Kabkee

Schüler

  • »Kabkee« ist der Autor dieses Themas

Beiträge: 73

Wohnort: South Korea

Beruf: South Korea

  • Nachricht senden

1

Donnerstag, 27. Juli 2017, 11:47

textfield with external css style.

Hi,

Problem :
- 1.19 - pre 8 works, but not pre 10.

Scenario :
1) Add hotspot with text-field plugin, and put html with class which is will be handled by external css file like the below.

Quellcode

1
	[div class="smokeShadow"]Show me the money.[/div]

2) In the css style sheet, I declare some styles like the below.

Quellcode

1
2
3
4
5
.smokeShadow,.smoke{
	margin: 0;
	padding: 0;
	text-shadow: 2px 2px 2px #666;
}

3) It worked in 1.19 pre 8, BUT, NOT in 1.19 pre10. In pre10, the style is not applied.

You may see the test results.
- In pre8, https://photos.app.goo.gl/QYDmluW3gYNRwgw13
- In pre10, https://photos.app.goo.gl/jvXBZB06y6zJiahl2



Is it a bug or changed its functionality? or not yet implemented?

2

Mittwoch, 2. August 2017, 22:29

Hi,

are these hotspots ore layers?

If hotspots - krpano renders the textfield hotspots by default by its own since 1.19-pr10 to be able to use WebGL and support VR. And the krpano text renderer supports only a very limited set of css styles. I would recommend using the textfield styling options there.

If you don't need VR support you can add - renderer="css3d" - to the <hotspot> to let the browser render the text, then external css should work.

Best regards,
Klaus

Kabkee

Schüler

  • »Kabkee« ist der Autor dieses Themas

Beiträge: 73

Wohnort: South Korea

Beruf: South Korea

  • Nachricht senden

3

Donnerstag, 3. August 2017, 11:10

Hi,

It's distorted hotspot.

As I changed its renderer, everything is clear.
I see why it is correctly.
And I checked hotspots with webGl supporting VR mode.

I got you.
Thank you :)

Hi,

are these hotspots ore layers?

If hotspots - krpano renders the textfield hotspots by default by its own since 1.19-pr10 to be able to use WebGL and support VR. And the krpano text renderer supports only a very limited set of css styles. I would recommend using the textfield styling options there.

If you don't need VR support you can add - renderer="css3d" - to the to let the browser render the text, then external css should work.

Best regards,
Klaus