Please give us an better example of queries/expressions
Hey,
I am working on my library and would love for example to select all shapes with the Tag “#part”. According to the docs it is supposed to work like this, but it selects only the last shape.
Could you please add some examples how to use queries and expressions properly in f0? Also an example would be nice with conditionals. For example that a enum value (colors) only is applied if a binary/toggle is set on true.
Thank you!
Log in to comment and vote
Comments1
이민규
Apr 24, 2025
Currently, only one shape can be retrieved per query. An issue has been created to support retrieving multiple shapes (
https://github.com/dgmjs/dgmjs/issues/390).
Here are some query exampels:
https://dgmjs.dev/guides/smart-shapes/#query