@overtone-art/canvas-editor-core 0.6.1 → 0.6.2
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/index.d.mts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.global.js +39 -39
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +41 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -63,6 +63,14 @@ declare class LayerManager {
|
|
|
63
63
|
* group's matrix must NOT be re-applied on top of it.
|
|
64
64
|
*/
|
|
65
65
|
private dissolve;
|
|
66
|
+
/**
|
|
67
|
+
* Move existing layer records under a group, and announce the new tree.
|
|
68
|
+
* Assigning `group.children` directly emits nothing, and the reorder that
|
|
69
|
+
* follows a grouping is a no-op whenever the group already sits where it
|
|
70
|
+
* belongs — leaving `layers:changed` describing a childless group, so a panel
|
|
71
|
+
* built on it renders the group with nothing inside.
|
|
72
|
+
*/
|
|
73
|
+
adoptChildren(group: Layer, children: Layer[]): void;
|
|
66
74
|
/**
|
|
67
75
|
* Re-attach child records to an enlivened group. `data[i]` describes
|
|
68
76
|
* `group._objects[i]` — the order fabric serializes and restores them in. A
|
|
@@ -505,7 +513,18 @@ declare class TextCurveManager {
|
|
|
505
513
|
private layers;
|
|
506
514
|
private history;
|
|
507
515
|
private events;
|
|
516
|
+
/**
|
|
517
|
+
* Typing on the canvas changes the run the paths were built for. Fabric drops
|
|
518
|
+
* a glyph whose centre falls past the end of the path, so without rebuilding
|
|
519
|
+
* here a longer replacement simply vanishes — select-all-and-retype rendered
|
|
520
|
+
* an empty box — and a shorter one piles up on a path built for the old text.
|
|
521
|
+
*
|
|
522
|
+
* No history entry: fabric records the edit when editing exits, and one save
|
|
523
|
+
* per keystroke would bury every earlier step under the typing.
|
|
524
|
+
*/
|
|
525
|
+
private readonly onTextChanged;
|
|
508
526
|
constructor(canvas: Canvas, layers: LayerManager, history: HistoryManager, events: EventEmitter<EditorEvents>);
|
|
527
|
+
dispose(): void;
|
|
509
528
|
/** Curve parameters for a layer, or null when it is not curved text. */
|
|
510
529
|
get(layerId: string): TextCurveConfig | null;
|
|
511
530
|
isCurved(layerId: string): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -63,6 +63,14 @@ declare class LayerManager {
|
|
|
63
63
|
* group's matrix must NOT be re-applied on top of it.
|
|
64
64
|
*/
|
|
65
65
|
private dissolve;
|
|
66
|
+
/**
|
|
67
|
+
* Move existing layer records under a group, and announce the new tree.
|
|
68
|
+
* Assigning `group.children` directly emits nothing, and the reorder that
|
|
69
|
+
* follows a grouping is a no-op whenever the group already sits where it
|
|
70
|
+
* belongs — leaving `layers:changed` describing a childless group, so a panel
|
|
71
|
+
* built on it renders the group with nothing inside.
|
|
72
|
+
*/
|
|
73
|
+
adoptChildren(group: Layer, children: Layer[]): void;
|
|
66
74
|
/**
|
|
67
75
|
* Re-attach child records to an enlivened group. `data[i]` describes
|
|
68
76
|
* `group._objects[i]` — the order fabric serializes and restores them in. A
|
|
@@ -505,7 +513,18 @@ declare class TextCurveManager {
|
|
|
505
513
|
private layers;
|
|
506
514
|
private history;
|
|
507
515
|
private events;
|
|
516
|
+
/**
|
|
517
|
+
* Typing on the canvas changes the run the paths were built for. Fabric drops
|
|
518
|
+
* a glyph whose centre falls past the end of the path, so without rebuilding
|
|
519
|
+
* here a longer replacement simply vanishes — select-all-and-retype rendered
|
|
520
|
+
* an empty box — and a shorter one piles up on a path built for the old text.
|
|
521
|
+
*
|
|
522
|
+
* No history entry: fabric records the edit when editing exits, and one save
|
|
523
|
+
* per keystroke would bury every earlier step under the typing.
|
|
524
|
+
*/
|
|
525
|
+
private readonly onTextChanged;
|
|
508
526
|
constructor(canvas: Canvas, layers: LayerManager, history: HistoryManager, events: EventEmitter<EditorEvents>);
|
|
527
|
+
dispose(): void;
|
|
509
528
|
/** Curve parameters for a layer, or null when it is not curved text. */
|
|
510
529
|
get(layerId: string): TextCurveConfig | null;
|
|
511
530
|
isCurved(layerId: string): boolean;
|