Quote from
luishp on September 1, 2019, 7:29 am
@asmat, note that SVG objects can be styled in two different ways:
1) With attributes (my favourite one), just like this:
<circle id="mycircle" fill="yellow" />
2) With CSS styles (as in your sample app), like this:
<circle id="mycircle" style="fill: yellow;" />
Both ways works the same, but they are not manipulated in the same way.
We can manipulate attributes using:
SetObjectAttribute "mycircle" "fill" "red"
And we can manipulate object styles using:
CreateEmptyObject [design]
SetVar [design("fill")] "red"
SetObjectCSS "mycircle" [design]
Also note, that the SVG object MUST HAVE and id (name) in order to manipulate it.
I don't use Adobe Illustrator but Affinity Designer and Affinity Publisher as they are quite more cheaper and very compatible with VisualNEO Web. I can assign an id to each image object very easily and it's still compatible with Illustrator .ai format. I will try to publish a tutorial about how I use this software to create rich and interactive vector interfaces for VisualNEO Web (just need time!).
Please see attached document (I have added id="curve" manually to the SVG code).
@asmat, note that SVG objects can be styled in two different ways:
1) With attributes (my favourite one), just like this:
<circle id="mycircle" fill="yellow" />
2) With CSS styles (as in your sample app), like this:
<circle id="mycircle" style="fill: yellow;" />
Both ways works the same, but they are not manipulated in the same way.
We can manipulate attributes using:
SetObjectAttribute "mycircle" "fill" "red"
And we can manipulate object styles using:
CreateEmptyObject [design]
SetVar [design("fill")] "red"
SetObjectCSS "mycircle" [design]
Also note, that the SVG object MUST HAVE and id (name) in order to manipulate it.
I don't use Adobe Illustrator but Affinity Designer and Affinity Publisher as they are quite more cheaper and very compatible with VisualNEO Web. I can assign an id to each image object very easily and it's still compatible with Illustrator .ai format. I will try to publish a tutorial about how I use this software to create rich and interactive vector interfaces for VisualNEO Web (just need time!).
Please see attached document (I have added id="curve" manually to the SVG code).
Uploaded files: