-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
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.
npm install flareThen 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.
SylvainLosey, NBTX, Caleb-Irwin and gustavovitor
Metadata
Metadata
Assignees
Labels
No labels