GithubHelp home page GithubHelp logo

my-frontend-lab / fabricpublishertools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mtrudw/fabricpublishertools

0.0 0.0 0.0 1.17 MB

Extensions for fabricjs to add better layout capabilities

License: MIT License

JavaScript 100.00%

fabricpublishertools's Introduction

Collection of Extensions for fabric.js

A set of modular extensions to give fabric.js some additional DTP like capabilities.

Demo

https://mtrudw.github.io/fabricPublisherTools/.

Undo and Redo

Implements and action based undo and redo with a small footprint. Can be used for to create a detailed action log. Undo and redo data is serialized and deserialized with the canvas.

Snapping

Create guides to snap to on both move and scale. Snaps to bounding box when rotated. Rotated objects don't snap reliably on scale yet.

Smart aligning Guides

Snap into alignment with other objects and the canvas center on move and scale. Shows guides aligned edges.

Problems:

  • Only moving works nicely with rotated objects
  • Keeps stroke width constant on scaling (I consider it a bonus, might be a problem in certain cases though)

Image Container

Image container that allows independent scaling of container and image. Keeps image clipped to container

TODO

Still very early stages. So lots. Some features to do, lots of cleanup and documentation. Of course more testing and better test coverage. Also: add a todo-list.

fabricpublishertools's People

Contributors

mtrudw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.