Home / Extensions & Add-Ons / Two.js UI Extension
3D Graphics & Canvas

Two.js UI Extension

2D Drawing

Two.js is a two-dimensional drawing API for modern web browsers with support for SVG, Canvas, and WebGL renderers.

Oorian Extension

Status
Planned

The Oorian extension for Two.js UI Extension is under development and will be available with the framework release.

Priority
Rank #144

Implementation priority based on popularity, API complexity, and user demand.

Supported Version
TBD

The version of Two.js UI Extension that this extension supports.

Licensing
Open Source (MIT)

The licensing model for Two.js UI Extension. Check their official website for full license details.

Integration
Full API Access

Oorian extensions expose the complete Two.js UI Extension API through type-safe Java methods.

Key Features

2D drawing
SVG/Canvas/WebGL
Scene graph
Animation
Groups
Gradients
Textures

Usage Example

Here's how you'll use Two.js UI Extension with Oorian once the extension is available:

Java
// Create and configure Two.js UI Extension component
TwojsUIExtension component = new TwojsUIExtension();
component.setWidth("100%");
component.setHeight("400px");

// Configure component options
component.setEnabled(true);

// Register for events using Oorian's event model
component.registerForEvent(this, TwojsUIExtensionEvent.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.

Ready to Use Two.js UI Extension?

Oorian makes it easy to integrate Two.js UI Extension into your Java web applications with type-safe extensions and real-time updates.