@overtone-art/canvas-editor-core 0.8.2 → 0.8.3

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/node.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { f as EditorState } from './types-DmintAiu.mjs';
1
+ import { f as EditorState } from './types-BeaEHTFc.mjs';
2
2
  import 'fabric';
3
3
 
4
4
  interface PrintPdfOptions {
package/dist/node.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { f as EditorState } from './types-DmintAiu.js';
1
+ import { f as EditorState } from './types-BeaEHTFc.js';
2
2
  import 'fabric';
3
3
 
4
4
  interface PrintPdfOptions {
@@ -158,6 +158,14 @@ interface LayerMaskEntry {
158
158
  rel?: number[];
159
159
  /** Host data describing where the geometry came from (preset id, generator…). */
160
160
  meta?: Record<string, unknown>;
161
+ /** Original layer data retained so an unmask restores an editable layer. */
162
+ sourceLayer?: Omit<LayerData, 'id' | 'children'>;
163
+ /** Fabric properties the mask compositor temporarily overwrites. */
164
+ sourceObject?: {
165
+ opacity: number;
166
+ globalCompositeOperation: GlobalCompositeOperation;
167
+ objectCaching: boolean;
168
+ };
161
169
  }
162
170
  interface LayerShadowConfig {
163
171
  enabled: boolean;
@@ -158,6 +158,14 @@ interface LayerMaskEntry {
158
158
  rel?: number[];
159
159
  /** Host data describing where the geometry came from (preset id, generator…). */
160
160
  meta?: Record<string, unknown>;
161
+ /** Original layer data retained so an unmask restores an editable layer. */
162
+ sourceLayer?: Omit<LayerData, 'id' | 'children'>;
163
+ /** Fabric properties the mask compositor temporarily overwrites. */
164
+ sourceObject?: {
165
+ opacity: number;
166
+ globalCompositeOperation: GlobalCompositeOperation;
167
+ objectCaching: boolean;
168
+ };
161
169
  }
162
170
  interface LayerShadowConfig {
163
171
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overtone-art/canvas-editor-core",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Abstract pluggable canvas editor built on Fabric.js",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",