@zsviczian/excalidraw 0.16.1-obsidian-5 → 0.16.1-obsidian-7
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/excalidraw.development.js +16 -16
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionProperties.d.ts +2 -2
- package/types/constants.d.ts +6 -0
- package/types/frame.d.ts +1 -4
- package/types/scene/comparisons.d.ts +0 -1
- package/types/scene/index.d.ts +1 -1
- package/types/types.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AppState } from "../../src/types";
|
|
1
|
+
import { AppState, Primitive } from "../../src/types";
|
|
2
2
|
import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
3
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
4
|
-
export declare const getFormValue: <T>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, defaultValue: T) => T;
|
|
4
|
+
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
5
5
|
export declare const actionChangeStrokeColor: {
|
|
6
6
|
name: "changeStrokeColor";
|
|
7
7
|
trackEvent: false;
|
package/types/constants.d.ts
CHANGED
|
@@ -222,6 +222,12 @@ export declare const ROUGHNESS: {
|
|
|
222
222
|
readonly artist: 1;
|
|
223
223
|
readonly cartoonist: 2;
|
|
224
224
|
};
|
|
225
|
+
export declare const STROKE_WIDTH: {
|
|
226
|
+
readonly extraThin: 0.5;
|
|
227
|
+
readonly thin: 1;
|
|
228
|
+
readonly bold: 2;
|
|
229
|
+
readonly extraBold: 4;
|
|
230
|
+
};
|
|
225
231
|
export declare const DEFAULT_ELEMENT_PROPS: {
|
|
226
232
|
strokeColor: ExcalidrawElement["strokeColor"];
|
|
227
233
|
backgroundColor: ExcalidrawElement["backgroundColor"];
|
package/types/frame.d.ts
CHANGED
|
@@ -17,13 +17,10 @@ export declare const groupsAreCompletelyOutOfFrame: (elements: readonly NonDelet
|
|
|
17
17
|
* Returns a map of frameId to frame elements. Includes empty frames.
|
|
18
18
|
*/
|
|
19
19
|
export declare const groupByFrames: (elements: readonly ExcalidrawElement[]) => Map<string, ExcalidrawElement[]>;
|
|
20
|
-
export declare const getFrameElements: (allElements: ExcalidrawElementsIncludingDeleted, frameId: string
|
|
21
|
-
includeBoundArrows?: boolean;
|
|
22
|
-
}) => ExcalidrawElement[];
|
|
20
|
+
export declare const getFrameElements: (allElements: ExcalidrawElementsIncludingDeleted, frameId: string) => ExcalidrawElement[];
|
|
23
21
|
export declare const getElementsInResizingFrame: (allElements: ExcalidrawElementsIncludingDeleted, frame: ExcalidrawFrameElement, appState: AppState) => ExcalidrawElement[];
|
|
24
22
|
export declare const getElementsInNewFrame: (allElements: ExcalidrawElementsIncludingDeleted, frame: ExcalidrawFrameElement) => ExcalidrawElement[];
|
|
25
23
|
export declare const getContainingFrame: (element: ExcalidrawElement, elementsMap?: Map<string, ExcalidrawElement>) => ExcalidrawFrameElement | null;
|
|
26
|
-
export declare const isValidFrameChild: (element: ExcalidrawElement) => boolean;
|
|
27
24
|
/**
|
|
28
25
|
* Retains (or repairs for target frame) the ordering invriant where children
|
|
29
26
|
* elements come right before the parent frame:
|
|
@@ -4,7 +4,6 @@ export declare const hasStrokeColor: (type: string) => boolean;
|
|
|
4
4
|
export declare const hasStrokeWidth: (type: string) => boolean;
|
|
5
5
|
export declare const hasStrokeStyle: (type: string) => boolean;
|
|
6
6
|
export declare const canChangeRoundness: (type: string) => boolean;
|
|
7
|
-
export declare const hasText: (type: string) => boolean;
|
|
8
7
|
export declare const canHaveArrowheads: (type: string) => boolean;
|
|
9
8
|
export declare const getElementAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => NonDeletedExcalidrawElement | null;
|
|
10
9
|
export declare const getElementsAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => NonDeletedExcalidrawElement[];
|
package/types/scene/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { isOverScrollBars } from "./scrollbars";
|
|
2
2
|
export { isSomeElementSelected, getElementsWithinSelection, getCommonAttributeOfSelectedElements, getSelectedElements, getTargetElements, } from "./selection";
|
|
3
3
|
export { calculateScrollCenter } from "./scroll";
|
|
4
|
-
export { hasBackground, hasStrokeWidth, hasStrokeStyle, canHaveArrowheads, canChangeRoundness, getElementAtPosition,
|
|
4
|
+
export { hasBackground, hasStrokeWidth, hasStrokeStyle, canHaveArrowheads, canChangeRoundness, getElementAtPosition, getElementsAtPosition, } from "./comparisons";
|
|
5
5
|
export { getNormalizedZoom } from "./zoom";
|