fabric-layers
v1.1.3
Published
A fabric.js coordinate-plane (grid) & layers library
Downloads
21
Maintainers
Readme
Fabric Layers v1.1.0
An interactive coordinate-plane, grid, and layer management library for fabric.js canvases.
fabric-layers is based on the excellent original work of ReactIndoorMapping featured in this blog post. The library has been refactored to be framework-agnostic while maintaining all the powerful features of the original.
🚀 What's New in 1.1.0
- Enhanced Grid System: Customizable grid line styles and colors
- Improved Performance: Better rendering for complex scenes
- TypeScript Support: Full type definitions included
- Better Event System: More consistent event handling
- Bug Fixes: Various stability improvements and bug fixes
Check out the CHANGELOG for the complete list of changes.
✨ Classes
Base (EventEmitter2) ├── Map (+ ModesMixin) │ ├── Grid │ ├── Point │ └── Measurement ├── Layer │ ├── Vector Layers (Line, Circle, Rect, Polyline) │ ├── Marker System │ │ ├── Marker │ │ ├── MarkerGroup │ │ └── Icon │ ├── Group │ ├── Connector │ └── Tooltip ├── Paint System │ ├── Canvas │ ├── Arrow │ ├── ArrowHead │ └── PaintManager └── Measurement System ├── Measurement └── Measurer
🤝 Contributing
PRs and issues are welcome!
- Fork &
git clone npm installnpm run dev– watch/build- Add tests in
test/and runnpm test
Please follow the Conventional Commits spec; CI will lint commit messages.
📄 Licenses
MIT © 2022-2025 Martin Wairegi (original author of ReactIndoorMapping)
MIT © 2022-2025 Allen Joslin (current author of fabric-layers)
