@plait/draw 0.87.0 → 0.88.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/draw",
3
- "version": "0.87.0",
3
+ "version": "0.88.1",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
package/utils/common.d.ts CHANGED
@@ -10,6 +10,12 @@ export declare const getTextRectangle: <T extends PlaitElement = PlaitGeometry>(
10
10
  x: any;
11
11
  y: number;
12
12
  };
13
+ export declare const getCustomTextRectangle: <T extends PlaitElement = PlaitGeometry>(board: PlaitBoard, element: T, widthRatio: number) => {
14
+ height: number;
15
+ width: number;
16
+ x: number;
17
+ y: number;
18
+ };
13
19
  export declare const getStrokeWidthByElement: (element: PlaitElement) => any;
14
20
  export declare const insertElement: (board: PlaitBoard, element: PlaitBaseGeometry | PlaitBaseTable) => void;
15
21
  export declare const isDrawElementIncludeText: (element: PlaitDrawElement) => boolean;