Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to know how many tag in a SVG file #1

Open
s-triar opened this issue Dec 19, 2022 · 3 comments
Open

How to know how many tag in a SVG file #1

s-triar opened this issue Dec 19, 2022 · 3 comments

Comments

@s-triar
Copy link

s-triar commented Dec 19, 2022

From the example scadavis change the value of the TAG like sv.storeValue("TAG2", 100 + Math.random() * 80);.

But, How do I know the SVG file has TAG?

@riclolsen
Copy link
Owner

If you do not know beforehand, you can call sv.getTagList().
https://scadavis.io/synoptic/apidoc/global.html#getTagsList

@s-triar
Copy link
Author

s-triar commented Dec 20, 2022

So I must use the SCADAvis.io Synoptic Editor to give TAG to a SVG file because plain SVG file only has path. is that correct?

@riclolsen
Copy link
Owner

Yes, you have to use the editor to create markup for linking tag values with svg properties that will be animated at runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants