Socket
Socket
Sign inDemoInstall

trenette.js

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    trenette.js

trenette.js is a web library for building interactive diagrams and graphs.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

trenette.js

  • Web based diagram and graph building framework.
  • Entity based diagram build system, entities are stores as a tree. Parent elements transformations affect the children transforms.
  • Boxes, circle, custom shapes, lines, customizable elements.
  • Support for DOM elements using CSS transforms (useful for text input, or more complex user interaction).
  • Built in viewport controls with drag, zoom and move functions.
  • Supports mobile web browsers.

graph

Getting started

  • There are a couple of example in the example folder, they can be used as base for your project.

Setup

  • Trenette is based on web canvas, it requires a DOM canvas element to draw its content.
  • It is necessary for the canvas element width and height parameters to be properly configured since their values are used to process user input.
  • When using other DOM elements with the framework is also necessary to setup a DOM div to store these elements. (Booth the canvas and division should have the same position and size and should be aligned).

Custom Objects

  • Its possible to create custom graph elements by expanding the Object2D class, and overriding its draw(), transform() methods.

Pointer events

  • The system supports multiple pointer events that can be used to control the objects and interact with the users.

DOM Objects

  • Its possible to use DOM elements in the graph, by applying CSS transform to absolute positioned elements the system already provides a DOM base object that creates a basic division.

License

  • This project is distributed under MIT license available on the repository page.

Keywords

FAQs

Last updated on 07 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc