Two.js
UI Extension
Two.js is a two-dimensional drawing API for modern web browsers with support for SVG, Canvas, and WebGL renderers.
Status
Planned
Supported Version
TBD
Licensing
Open Source
Priority
Rank #144
KEY FEATURES
2D drawing
SVG/Canvas/WebGL
Scene graph
Animation
Groups
Gradients
Textures
Usage Example
Here's how you'll use Two.js with Oorian once the extension is available:
Java
// Create and configure Two.js component
Twojs component = new Twojs();
component.setWidth("100%");
component.setHeight("400px");
// Configure component options
component.setEnabled(true);
// Register for events using Oorian's event model
component.registerForEvent(this, TwojsEvent.class);
// Add to your page
container.addElement(component);Note: This is a preview of the expected API. The actual implementation may vary slightly when released.