Skip to content

[CRITICAL REQUEST] Please make npm library! #27

@jjangga0214

Description

@jjangga0214

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 flare

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions