@plait/common 0.71.0 → 0.72.0

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": "@plait/common",
3
- "version": "0.71.0",
3
+ "version": "0.72.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -0,0 +1,10 @@
1
+ import { PlaitBoard, PlaitElement, Point } from '@plait/core';
2
+ export declare const buildClipboardData: (board: PlaitBoard, elements: PlaitElement[], startPoint: Point, elementBuilder?: (element: PlaitElement) => PlaitElement | undefined) => (PlaitElement | {
3
+ points: number[][];
4
+ id: string;
5
+ children?: PlaitElement[];
6
+ type?: string;
7
+ groupId?: string;
8
+ angle?: number;
9
+ })[];
10
+ export declare const insertClipboardData: (board: PlaitBoard, elements: PlaitElement[], startPoint: Point, elementHandler?: (element: PlaitElement, idsMap: Record<string, string>) => void) => void;
package/utils/index.d.ts CHANGED
@@ -15,3 +15,4 @@ export * from './rotate';
15
15
  export * from './elements';
16
16
  export * from './animate';
17
17
  export * from './stroke';
18
+ export * from './clipboard';
package/utils/text.d.ts CHANGED
@@ -19,4 +19,3 @@ export declare const getTextEditors: TextInterface['getTextEditors'];
19
19
  export declare const getEditingTextEditor: TextInterface['getEditingTextEditor'];
20
20
  export declare const buildText: (text: string | Element, align?: Alignment, properties?: Partial<CustomText>) => import("slate").BaseElement;
21
21
  export declare const getLineHeightByFontSize: (fontSize: number) => number;
22
- export declare const ELEMENT_TO_TEXT_MANAGES: WeakMap<PlaitElement, TextManage[]>;