@infinit-canvas/react 0.1.12 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -119,6 +119,22 @@
119
119
  to { transform: rotate(360deg); }
120
120
  }
121
121
 
122
+ /* LOD — hide handles and simplify nodes at low zoom for performance */
123
+ .ric-wrap.lod-reduced .ric-handle {
124
+ display: none;
125
+ }
126
+
127
+ .ric-wrap.lod-minimal .ric-handle,
128
+ .ric-wrap.lod-minimal .ric-node-wrapper * {
129
+ visibility: hidden;
130
+ }
131
+ .ric-wrap.lod-minimal .ric-node-wrapper {
132
+ visibility: visible;
133
+ background: #e2e8f0;
134
+ border-radius: 4px;
135
+ outline: 1px solid #cbd5e1;
136
+ }
137
+
122
138
  /* Controls */
123
139
  .ric-controls-button:disabled {
124
140
  opacity: 0.35;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinit-canvas/react",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "A performant infinite canvas React component powered by OffscreenCanvas and Web Workers",
5
5
  "type": "module",
6
6
  "main": "./dist/react-infinite-canvas.cjs",