@meta2d/core 1.0.15 → 1.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meta2d/core",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,3 @@
1
- /// <reference types="offscreencanvas" />
2
1
  import { Pen, IValue } from '../pen';
3
2
  import { Point } from '../point';
4
3
  import { Rect } from '../rect';
@@ -12,13 +11,14 @@ import { Scroll } from '../scroll';
12
11
  import { CanvasImage } from './canvasImage';
13
12
  import { MagnifierCanvas } from './magnifierCanvas';
14
13
  import { Meta2d } from '../core';
14
+ import { Dialog } from '../dialog';
15
15
  export declare const movingSuffix: "-moving";
16
16
  export declare class Canvas {
17
17
  parent: Meta2d;
18
18
  parentElement: HTMLElement;
19
19
  store: Meta2dStore;
20
20
  canvas: HTMLCanvasElement;
21
- offscreen: HTMLCanvasElement | OffscreenCanvas;
21
+ offscreen: HTMLCanvasElement;
22
22
  width: number;
23
23
  height: number;
24
24
  externalElements: HTMLDivElement;
@@ -75,6 +75,7 @@ export declare class Canvas {
75
75
  initPens?: Pen[];
76
76
  pointSize: 8;
77
77
  pasteOffset: number;
78
+ opening: boolean;
78
79
  /**
79
80
  * @deprecated 改用 beforeAddPens
80
81
  */
@@ -102,6 +103,7 @@ export declare class Canvas {
102
103
  canvasImage: CanvasImage;
103
104
  canvasImageBottom: CanvasImage;
104
105
  magnifierCanvas: MagnifierCanvas;
106
+ dialog: Dialog;
105
107
  stopPropagation: (e: MouseEvent) => void;
106
108
  constructor(parent: Meta2d, parentElement: HTMLElement, store: Meta2dStore);
107
109
  curve: typeof curve;