fabric-schematics
v1.1.25
Published
Schematic and diagram visualization components for fabric.js
Maintainers
Readme
Fabric Schematics
A schematic and diagram visualization library for fabric.js canvases, with advanced grid system for precise coordinate-based drawing.
fabric-schematics is based on the excellent original work of IndoorJS by Mudin.
✨ Classes
Base (EventEmitter2)
├── Map (+ ModesMixin)
│ ├── Grid
│ └── PointThis library focuses on providing schematic and diagram components, starting with an advanced coordinate grid system. Future versions will include connectors, markers, and measurement tools.
🚀 Running the Grid Demo
To explore the grid functionality, follow these steps:
Install Dependencies
nvm i && yarn installBuild the Library
nvm i && yarn buildOpen the Demo
- Open
grid-demo.htmldirectly in your browser - The demo includes:
- Interactive grid with zoom/pan functionality
- Coordinate display
- Zoom level controls
- Reset view button
- Open
Development Workflow
nvm i && yarn build:watch- Make changes to the source code
- Refresh the browser to see changes
Publishing
To publish a new version, run:
yarn testyarn buildif no errors, run:
yarn releasegit push --follow-tags origin main && npm publishYou will be prompted to enter a One-Time-Password (OTP) from your GitHub account.
🤝 Contributing
PRs and issues are welcome!
- Fork &
git clone yarn installyarn dev– watch/build- Add tests in
test/and runyarn test
Please follow the Conventional Commits spec; CI will lint commit messages.
📄 Licenses
MIT © 2025 Allen Joslin (author of fabric-schematics)
MIT © 2022 Mudin (original author of IndoorJS)
