RuleMembers
fabric-js Best Practices
fabric-js Best Practices is a rule file for Cursor, from the Cursor rules (mdc) collection by sanjeed5. The full text is about 991 words in 16 sections, with 19 code blocks. A rule file tells the editor's AI how code in this stack should be written, so its suggestions follow the same conventions.
It is most useful for people working in Backend and Product and engineering who use Cursor.
What it covers
- 1. Code Organization and Structure
- 1.1. Embrace TypeScript and ES Modules
- 1.2. Choose the Right Canvas Type
- 2. Performance Considerations
- 2.1. Disable Unnecessary Interactivity
- 2.2. Leverage Object Caching
- 2.3. Optimize Batch Operations
- 2.4. Manage Object Visibility
- 3. Common Patterns and Anti-patterns
- 3.1. Use Modern Accessors
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source: https://github.com/sanjeed5/awesome-cursor-rules-mdc/blob/main/rules-mdc/fabric-js.mdc
Author: sanjeed5, Cursor rules (mdc). License: CC0-1.0.