Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Ember component bindings for Konva canvas library

License

NotificationsYou must be signed in to change notification settings

mjanjic01/ember-konva

Repository files navigation

ember-konva Logo

Ember component bindings for theKonva canvas library

Compatibility

  • Ember.js v2.18 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Installation

ember install ember-konvanpm install konva# ORyarn add konva

Usage

Examples

{{!-- app/components/konva-example.hbs --}}<Konva::Stage  @width={{1440}}  @height={{800}}  as |stage|>  <stage.Layer as |layer|>    <layer.Path      @x={{50}}      @y={{50}}      @data="..."      @fill="#9B2918"      @scale={{objectx=0.4y=0.4}}    />    <layer.Text      @text="+"      @fontSize={{36}}      @x={{168}}      @y={{60}}      @fill="#020202"    />    <layer.Image      @x={{200}}      @y={{40}}      @height={{180}}      @width={{180}}      @scale={{objectx=0.4y=0.4}}      @image={{this.image}}    />    <layer.Text      @text="="      @fontSize={{36}}      @x={{280}}      @y={{60}}      @fill="#020202"    />    <layer.Path      @x={{315}}      @y={{48}}      @data="..."      @stroke="#9B2918"      @strokeWidth={{8}}      @lineCap="round"      @lineJoin="round"      @scale={{objectx=0.25y=0.25}}    />  </stage.Layer></Konva::Stage>

This addon provides anobject helper. This helper should be used instead of the ember built-inhash helper when passing component properties.
Konva relies on some object prototype methods which are stripped with the hash helper (ember apidoc)

Contributing

See theContributing guide for details.

License

This project is licensed under theMIT License.

About

Ember component bindings for Konva canvas library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

[8]ページ先頭

©2009-2025 Movatter.jp