gpucanvas 0.4.0 → 0.4.1

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.
@@ -233,8 +233,9 @@ interface EditorOptions {
233
233
  * shift-cmd-click (shift-ctrl-click) adds or removes, shift-drag draws a selection box.
234
234
  * `'click'`: an edit mode. Every click selects, shift-click adds or removes, drags move, and
235
235
  * shift-drag on the background draws a selection box.
236
- * Either way, a double-click goes one layer deeper, and a drag on the open area of the layer
237
- * you are inside draws a box over its children.
236
+ * In the edit mode, a double-click on a text field starts typing in it, and Escape or a click
237
+ * elsewhere ends it. Either way, a double-click goes one layer deeper, and a drag on the open
238
+ * area of the layer you are inside draws a box over its children.
238
239
  */
239
240
  trigger?: 'shift-click' | 'click';
240
241
  /** Outlines what a click would select. With `'shift-click'`, only while shift is held. Default true. */
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as Rect, G as GpuCanvas, P as Point, E as Effect, a as GpuCanvasOptions } from './editor-D87kaZBM.js';
2
- export { C as Camera, b as Editor, c as EditorOptions, d as EditorPick, e as EffectDefinition, f as GpuCanvasMode, g as GpuCanvasStats, L as Layer, T as TransformEvent, h as bindEditor, i as defineEffect, j as effects, k as fitCamera, s as screenToWorld, w as worldToScreen, z as zoomAt } from './editor-D87kaZBM.js';
1
+ import { R as Rect, G as GpuCanvas, P as Point, E as Effect, a as GpuCanvasOptions } from './editor-CuH4tLHg.js';
2
+ export { C as Camera, b as Editor, c as EditorOptions, d as EditorPick, e as EffectDefinition, f as GpuCanvasMode, g as GpuCanvasStats, L as Layer, T as TransformEvent, h as bindEditor, i as defineEffect, j as effects, k as fitCamera, s as screenToWorld, w as worldToScreen, z as zoomAt } from './editor-CuH4tLHg.js';
3
3
 
4
4
  declare function supportsGpuCanvas(): boolean;
5
5
 
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  toBlob,
17
17
  worldToScreen,
18
18
  zoomAt
19
- } from "./chunk-BQQVSR4B.js";
19
+ } from "./chunk-DPCICAYZ.js";
20
20
  export {
21
21
  animateEffect,
22
22
  bindEditor,
package/dist/react.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, CSSProperties } from 'react';
3
- import { E as Effect, a as GpuCanvasOptions, G as GpuCanvas$1, L as Layer, c as EditorOptions } from './editor-D87kaZBM.js';
3
+ import { E as Effect, a as GpuCanvasOptions, G as GpuCanvas$1, L as Layer, c as EditorOptions } from './editor-CuH4tLHg.js';
4
4
 
5
5
  interface GpuCanvasProps extends GpuCanvasOptions {
6
6
  children?: ReactNode;
package/dist/react.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  bindEditor,
4
4
  createGpuCanvas
5
- } from "./chunk-BQQVSR4B.js";
5
+ } from "./chunk-DPCICAYZ.js";
6
6
 
7
7
  // src/react.tsx
8
8
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpucanvas",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.",
5
5
  "keywords": [
6
6
  "canvas",