@excalidraw/excalidraw 0.15.2-6546-d83860c → 0.15.2-6546-81bee8a

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": "@excalidraw/excalidraw",
3
- "version": "0.15.2-6546-d83860c",
3
+ "version": "0.15.2-6546-81bee8a",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -35,7 +35,7 @@ export interface ImportedDataState {
35
35
  type: Exclude<ExcalidrawGenericElement["type"], "selection">;
36
36
  label?: {
37
37
  text: string;
38
- } & MarkOptional<ElementConstructorOpts, "x" | "y"> & MarkOptional<ElementConstructorOpts, "x" | "y">;
38
+ } & MarkOptional<ElementConstructorOpts, "x" | "y">;
39
39
  })[] | null;
40
40
  appState?: Readonly<Partial<AppState & {
41
41
  [T in keyof LegacyAppState]: LegacyAppState[T][0];
@@ -36,8 +36,8 @@ export declare const newFreeDrawElement: (opts: {
36
36
  } & ElementConstructorOpts) => NonDeleted<ExcalidrawFreeDrawElement>;
37
37
  export declare const newLinearElement: (opts: {
38
38
  type: ExcalidrawLinearElement["type"];
39
- startArrowhead: Arrowhead | null;
40
- endArrowhead: Arrowhead | null;
39
+ startArrowhead?: Arrowhead | null;
40
+ endArrowhead?: Arrowhead | null;
41
41
  points?: ExcalidrawLinearElement["points"];
42
42
  } & ElementConstructorOpts) => NonDeleted<ExcalidrawLinearElement>;
43
43
  export declare const newImageElement: (opts: {
@@ -1,4 +1,4 @@
1
- import { ExcalidrawElement, ExcalidrawGenericElement, ExcalidrawTextContainer, ExcalidrawTextElement, ExcalidrawTextElementWithContainer, FontFamilyValues, FontString, NonDeletedExcalidrawElement } from "./types";
1
+ import { ExcalidrawElement, ExcalidrawGenericElement, ExcalidrawLinearElement, ExcalidrawTextContainer, ExcalidrawTextElement, ExcalidrawTextElementWithContainer, FontFamilyValues, FontString, NonDeletedExcalidrawElement } from "./types";
2
2
  import { MaybeTransformHandleType } from "./transformHandles";
3
3
  import { AppState } from "../types";
4
4
  import { ExtractSetType, MarkOptional } from "../utility-types";
@@ -81,8 +81,8 @@ export declare const getDefaultLineHeight: (fontFamily: FontFamilyValues) => num
81
81
  _brand: "unitlessLineHeight";
82
82
  };
83
83
  export declare const bindTextToContainer: (containerProps: ({
84
- type: Exclude<ExcalidrawGenericElement["type"], "selection">;
84
+ type: Exclude<ExcalidrawGenericElement["type"], "selection"> | ExcalidrawLinearElement["type"];
85
85
  } & MarkOptional<ElementConstructorOpts, "x" | "y">), textProps: {
86
86
  text: string;
87
- } & MarkOptional<ElementConstructorOpts, "x" | "y">) => (ExcalidrawTextElement | import("./types").NonDeleted<ExcalidrawGenericElement>)[];
87
+ } & MarkOptional<ElementConstructorOpts, "x" | "y">) => (ExcalidrawTextElement | import("./types").NonDeleted<ExcalidrawLinearElement> | import("./types").NonDeleted<ExcalidrawGenericElement>)[];
88
88
  export {};
@@ -5,6 +5,7 @@ declare namespace _default {
5
5
  strokeWidth: string;
6
6
  backgroundColor?: undefined;
7
7
  label?: undefined;
8
+ y?: undefined;
8
9
  version?: undefined;
9
10
  versionNonce?: undefined;
10
11
  isDeleted?: undefined;
@@ -14,7 +15,6 @@ declare namespace _default {
14
15
  roughness?: undefined;
15
16
  opacity?: undefined;
16
17
  angle?: undefined;
17
- y?: undefined;
18
18
  strokeColor?: undefined;
19
19
  width?: undefined;
20
20
  height?: undefined;
@@ -33,6 +33,7 @@ declare namespace _default {
33
33
  strokeWidth?: undefined;
34
34
  backgroundColor?: undefined;
35
35
  label?: undefined;
36
+ y?: undefined;
36
37
  version?: undefined;
37
38
  versionNonce?: undefined;
38
39
  isDeleted?: undefined;
@@ -42,7 +43,6 @@ declare namespace _default {
42
43
  roughness?: undefined;
43
44
  opacity?: undefined;
44
45
  angle?: undefined;
45
- y?: undefined;
46
46
  strokeColor?: undefined;
47
47
  width?: undefined;
48
48
  height?: undefined;
@@ -65,6 +65,39 @@ declare namespace _default {
65
65
  strokeColor: string;
66
66
  fontSize: number;
67
67
  };
68
+ y?: undefined;
69
+ version?: undefined;
70
+ versionNonce?: undefined;
71
+ isDeleted?: undefined;
72
+ id?: undefined;
73
+ fillStyle?: undefined;
74
+ strokeStyle?: undefined;
75
+ roughness?: undefined;
76
+ opacity?: undefined;
77
+ angle?: undefined;
78
+ strokeColor?: undefined;
79
+ width?: undefined;
80
+ height?: undefined;
81
+ seed?: undefined;
82
+ groupIds?: undefined;
83
+ fileId?: undefined;
84
+ strokeSharpness?: undefined;
85
+ boundElements?: undefined;
86
+ updated?: undefined;
87
+ link?: undefined;
88
+ status?: undefined;
89
+ scale?: undefined;
90
+ } | {
91
+ type: string;
92
+ x: number;
93
+ y: number;
94
+ label: {
95
+ text: string;
96
+ strokeColor: string;
97
+ fontSize: number;
98
+ };
99
+ strokeWidth?: undefined;
100
+ backgroundColor?: undefined;
68
101
  version?: undefined;
69
102
  versionNonce?: undefined;
70
103
  isDeleted?: undefined;
@@ -74,7 +107,6 @@ declare namespace _default {
74
107
  roughness?: undefined;
75
108
  opacity?: undefined;
76
109
  angle?: undefined;
77
- y?: undefined;
78
110
  strokeColor?: undefined;
79
111
  width?: undefined;
80
112
  height?: undefined;