Sie sind nicht angemeldet.

di0deman

Anfänger

  • »di0deman« ist der Autor dieses Themas

Beiträge: 12

Wohnort: Republic of Korea

  • Nachricht senden

1

Freitag, 5. Februar 2021, 15:35

after setting bgborder, changes the image transparent

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
<krpano version="1.20.9" logkey="true" debugmode="true">
  <!-- use a grid preview pano as background -->  <preview type="grid(cube,16,16,512,0xCCCCCC,0xF6F6F6,0x999999);" />

    <!-- view settings -->  <view hlookat="0" vlookat="0" fovtype="VFOV" fov="100" fovmin="60" fovmax="150" />
  <layer name="test"
            type="image"
            keep="true"
            url="0.jpg"
            align="center"
            edge="center"
            onclick="set(bgborder, '5')"
            />
</krpano>



Before click on the test layer,




After click on the test layer,




The border is created but the image disappears.


How do I solve this problem?

2

Montag, 8. Februar 2021, 11:32

Hi,

thanks for reporting!

Sorry, this a bug of the recently added 'bgborder' support for image layers.

When setting bgborder, bgroundedge or bgshadow dynamically AFTER the image is loaded, the image itself gets removed (internally: the background css style of the layer).

With the next release (1.21) this will be fixed.

Best regards,
Klaus

3

Freitag, 9. April 2021, 01:03

Hi,

thanks for the info Klaus. I was wondering when I tried using the bgborder bottom value for underlining text .svg files onover.

Can't work it out with css border-bottom either.
Before I create many secondary underlined .svg files as a workaround, maybe there is an easier alternative until v1.21?

Thanks and best,
loki

4

Montag, 31. Oktober 2022, 02:53

Hi, when to release 1.21?

Hi,

thanks for reporting!

Sorry, this a bug of the recently added 'bgborder' support for image layers.

When setting bgborder, bgroundedge or bgshadow dynamically AFTER the image is loaded, the image itself gets removed (internally: the background css style of the layer).

With the next release (1.21) this will be fixed.

Best regards,
Klaus

Ähnliche Themen