2.0.3 • Published 2 years ago

@repcomm/scenario2d v2.0.3

Weekly downloads
-
License
Unlicense
Repository
github
Last release
2 years ago

scenario2d

Zero dependencies 2d scene graph for web canvas

Implemented Classes

  • Resource, TextResource, XmlResource, SvgResource

  • Object2d (base class for scene objs)

  • PathObject2d - svg d attribute equivalent
  • Transform2d - scale, translate, rotation
  • Vec2

Using

To install with npm runnpm install @repcomm/scenario2d This package comes with typescript definitions, and should work in both typescript and javascript.

Example Usage

See index.html and index.js

Note: Example uses my other library exponent-ts

As well as es-module-shims.js to load node_modules using import maps directly in the browser.

This is to reduce build time to < 1s

hence the extra boilerplate in index.html

Compiling

To build you'll want to clone the repo git clone https://github.com/RepComm/scenario2d.git

Run npm install to get dependencies

Run npm run build

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.3

2 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago