Hi, thank you for creating such a cool tool like Flare!
However, I found the way of using it, at least currently, with javascript is very far from the standard.
In my opinion, being able to install Flare as npm dependency(like the below) is neccessary.
Then developers could use it with well defined, clean API like this.
<script>
import Flare from 'flare'
const flareObject = new Flare({
target: "#canvas-id",
file: "example.flr",
width: 128, // default to full parent width if unspecified
height: 128, // default to full parent height if unspecified
onSomeEvent: () => { ... },
onAnotherEvent: () => { ... }
})
</script>
<body>
<canvas id="canvas-id"></canvas>
</body>
If Flare provides clean vanilla js API, then community would possibly create ecosystem, like vue or angular component by themselves.
Hi, thank you for creating such a cool tool like Flare!
However, I found the way of using it, at least currently, with javascript is very far from the standard.
In my opinion, being able to install Flare as npm dependency(like the below) is neccessary.
Then developers could use it with well defined, clean API like this.
If Flare provides clean vanilla js API, then community would possibly create ecosystem, like vue or angular component by themselves.