|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<!-- border --> <plugin name="border_top" url="border_x2.png" enabled="false" align="lefttop" edge="lefttop" /> <plugin name="border_bottom" url="border_x2.png" enabled="false" align="leftbottom" edge="leftbottom" /> <plugin name="border_left" url="border_x2.png" enabled="false" align="lefttop" edge="lefttop" /> <plugin name="border_right" url="border_x2.png" enabled="false" align="righttop" edge="righttop" /> <!-- action to set the border of the area --> <action name="set_border"> set(plugin[border_top].width,get(area.width)); set(plugin[border_bottom].width,get(area.width)); set(plugin[border_left].height,get(area.height)); set(plugin[border_right].height,get(area.height)); </action> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<!-- border --> <plugin name="border_top" url="border_x2.png" enabled="false" align="top" edge="top" /> <plugin name="border_bottom" url="border_x2.png" enabled="false" align="bottom" edge="bottom" /> <plugin name="border_left" url="border_x2.png" enabled="false" align="left" edge="left" /> <plugin name="border_right" url="border_x2.png" enabled="false" align="right" edge="right" /> <!-- action to set the border of the area --> <action name="set_border"> set(plugin[border_top].width,get(area.width)); set(plugin[border_bottom].width,get(area.width)); set(plugin[border_left].height,get(area.height)); set(plugin[border_right].height,get(area.height)); </action> |
no, there is no border attribute at the moment,Is there an attribute to set a border to the area? I have tried with <area border="2" ...> but it seems border does not exist.

great example btw.Here an example working with this code: http://andorra360.com/test/ForumKrpano/machart/area.html
yes and noHere an example working with this code: http://andorra360.com/test/ForumKrpano/m…er_problem.html
Here, the sides of the border have a strange behaviour... if you try to resize the browser, when the area.width or area.height are odd, the corresponding border does not match the entire area.width or area.height. *wacko*
Is it a bug?


|
|
Quellcode |
1 2 3 4 |
<plugin name="border_top" url="border_x2.png" enabled="false" align="top" width="100%" accuracy="1" /> <plugin name="border_bottom" url="border_x2.png" enabled="false" align="bottom" width="100%" accuracy="1" /> <plugin name="border_left" url="border_x2.png" enabled="false" align="left" height="100%" accuracy="1" /> <plugin name="border_right" url="border_x2.png" enabled="false" align="right" height="100%" accuracy="1" /> |
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comMore easy now. I have posted an example here: How to reset the <area> to the default ?something other too - when using - width="100%" and height="100%" - the border sizes must not be updated manually, then they will scale automatically
all plugins will also be automatically aligned inside this area,
but to aligned a plugin/image outside of it, set the "parent" attribute
of this plugin to "STAGE" (but note some plugins, like the googlemaps one will require an update to get this working)
Not so difficult
Zitat von »Tuur«
ps nice but difficult code michel...
. Look at the link above to see an example code. (there is some comments in the code to explain
)