Comments (2)
@mauroalexandre The way you suggest is still overlaying the images? I do this currently by show/hide based of values and then group them together, to reuse I just copy that group and do an edit bind of tag to change the tag for the whole group.
If we could save the group as a symbol and be able to export/import it as a json symbol would be great and save time.
To be fully dynamic I think the best approach would be to have symbol builder or a way to define elements of the SVG and have a placeholder for a tag and then assign actions to that element of the SVG, change colour/rotate/show/hide/blink/move etc most of this Fuxa already has under actions except for change colour.
A quick workaround could be you edit your SVG in a text editor or Inkscape and add the place holder to the elements you want to alter, Fuxa then looks for these placeholders in the SVG file and allows you to bind a Tag to the placeholder. I spoke to @unocelli about this and the past and he said the current SVG editor can not use the SVG elements and it's a big job to update the SVG editor it's self, so maybe a placeholder in the file could work? What do you think @unocelli ?
from fuxa.
@MatthewReed303 I am not very familiar with the structure of the Fuxa project storage, but ideally, it would be a collection of resources, within this "new element," where each resource would be a key-value pair.
Something similar to:
{
"name": "dynamic_shape_1",
"tag": "tag_db_1",
"states": {
"0": "<svg data from image to state 1>",
"1": "<svg data from image to state 2>"
}
}
from fuxa.
Related Issues (20)
- [BUG] HOT 2
- [FEATURE] Alarm view without folding
- [FEATURE] About window size self-adaption HOT 6
- [QUESTION] How exactly the Authetication via Token works?
- [FEATURE] "Input value" element - Write on lost focus HOT 3
- [BUG]I While using the same view, the names of the points change by themselves. HOT 4
- damping of mqtt values HOT 1
- scaling formula HOT 1
- [BUG] NodeJs Version Compatibility HOT 2
- [FEATURE] Optimize client dist js for view only pages HOT 1
- Accepts mq messages to control the node values of another device HOT 2
- [BUG]SiemensS7 Plugin HOT 7
- [BUG] Multi view element background color HOT 1
- [FEATURE]Is there way to bind object property to a dynamic tag?
- [FEATURE] GeoMap Object /Component
- [BUG] Browser freezes when event is added
- Feature Request: Support for Differential Data Calculation Based on Time Units in Bar Chart Module HOT 4
- [FEATURE] Is it possible to set Alarm message using the tag
- [Question] Read scale script HOT 1
- [BUG] Alarms view in multi-views container HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuxa.