GitXplorerGitXplorer
r

transformer.js

public
4 stars
1 forks
0 issues

Commits

List of commits on branch master.
Verified
06fa2235ea850904933e9a116dcdedcdf8f29b6a

Updated readme with development steps

rraedle committed 7 years ago
Verified
6c79cf0334e530999c184b63017e20a8b0187dd9

Initial readme

rraedle committed 7 years ago
Unverified
32088c05ba4cde6494821dcedcd00c3929a4c748

changed hammerize function that now returns the transformer object in a promise

committed 7 years ago
Unverified
b117b9ed35d731bf4e24ae87d764315982fc632d

added enabled property to hammerize

committed 7 years ago
Unverified
bb01907aa0163cc2548f2424492149346445d7a4

Added index page for examples

committed 7 years ago
Unverified
0c086d308ca3f3461c5145f4ce9f20167d7d0daa

Refactored webpack.config.js to separate build from examples

committed 7 years ago

README

The README file for this repository.

transformer.js

A JavaScript library for 3d transformations

Motivation

While working on a zoomable drawing canvas for mobile and desktop use, I figured out that it was incredibly difficult to find a web library that—out-of-the-box—supports panning, scaling, and rotation of HTML and SVG elements. The few libraries that I found did not really fulfill all requirements, which are basic 2d transformations of visual elements in arbitrary nested hierarchies. Therefore, I found myself spending time on implementing transformer.js to exactly meet my requirements. Maybe this will be useful for someone else, which is why I want to share it with the public as open source project.

Documentation

The documentation will be updated gradually. In the meantime try out the examples at https://raedle.github.io/transformer.js

Development

This is a Node.js project and requires Node.js version >= 8.

  • Clone project git clone https://github.com/raedle/transformer.js.git
  • Go to project root cd transformer.js
  • Run npm install to install all project dependencies. All dependencies are listed in the package.json file.
  • Run npm start to run examples. The command should also open a browser at http://localhost:8080. If not, then open browser and point it to http://localhost:8080

Download

The library can be found under release in this GitHub project.