@myoc/math 0.19.512 → 0.19.513
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.
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AppEventBus, type
|
|
3
|
-
import {
|
|
2
|
+
import { AppEventBus, type EditorInterface, Emitter, type EXPORT_IMAGE_TYPES, type StylesPanelMode } from "@excalidraw/common";
|
|
3
|
+
import { type ApplyToOptions, type ElementUpdate, FlowChartCreator, Scene, Store, StoreDelta } from "@excalidraw/element";
|
|
4
4
|
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
5
|
-
import type { ExcalidrawElement,
|
|
5
|
+
import type { ExcalidrawElement, ExcalidrawEmbeddableElement, ExcalidrawFrameLikeElement, ExcalidrawIframeElement, NonDeleted, NonDeletedExcalidrawElement, Ordered, SceneElementsMap } from "@excalidraw/element/types";
|
|
6
6
|
import type { Mutable } from "@excalidraw/common/utility-types";
|
|
7
7
|
import { ActionManager } from "../actions/manager";
|
|
8
8
|
import { History } from "../history";
|
|
9
|
-
import { Fonts } from "../fonts";
|
|
10
9
|
import { type WritableAtom } from "../editor-jotai";
|
|
11
|
-
import {
|
|
10
|
+
import { Fonts } from "../fonts";
|
|
12
11
|
import { LaserTrails } from "../laserTrails";
|
|
12
|
+
import { Renderer } from "../scene/Renderer";
|
|
13
13
|
import { isOverScrollBars } from "../scene/scrollbars";
|
|
14
14
|
import { LassoTrail } from "../lasso";
|
|
15
15
|
import { EraserTrail } from "../eraser";
|
|
16
16
|
import { type OnStateChange } from "./AppStateObserver";
|
|
17
17
|
import type { ExportedElements } from "../data";
|
|
18
|
-
import type { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, SceneData, FrameNameBoundsCache, SidebarName, SidebarTabName, ToolType, OnUserFollowedPayload, ExcalidrawImperativeAPIEventMap, GenerateDiagramToCode, NullableGridSize, Offsets } from "../types";
|
|
19
18
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
20
19
|
import type { ActionResult } from "../actions/types";
|
|
20
|
+
import type { AppClassProperties, AppProps, AppState, BinaryFiles, ExcalidrawImperativeAPI, ExcalidrawImperativeAPIEventMap, FrameNameBoundsCache, GenerateDiagramToCode, NullableGridSize, Offsets, OnUserFollowedPayload, SceneData, SidebarName, SidebarTabName, ToolType } from "../types";
|
|
21
21
|
declare const editorLifecycleEventBehavior: {
|
|
22
22
|
readonly "editor:mount": {
|
|
23
23
|
readonly cardinality: "once";
|
|
@@ -736,6 +736,9 @@ export type ExcalidrawMountPayload = {
|
|
|
736
736
|
excalidrawAPI: ExcalidrawImperativeAPI;
|
|
737
737
|
container: HTMLDivElement | null;
|
|
738
738
|
};
|
|
739
|
+
export type AddImageElementsToSceneOptions = {
|
|
740
|
+
waitFor?: "inserted" | "painted";
|
|
741
|
+
};
|
|
739
742
|
export type ExcalidrawImperativeAPIEventMap = {
|
|
740
743
|
"editor:mount": [payload: ExcalidrawMountPayload];
|
|
741
744
|
"editor:initialize": [api: ExcalidrawImperativeAPI];
|
|
@@ -763,7 +766,7 @@ export interface ExcalidrawImperativeAPI {
|
|
|
763
766
|
refresh: InstanceType<typeof App>["refresh"];
|
|
764
767
|
setToast: InstanceType<typeof App>["setToast"];
|
|
765
768
|
addFiles: (data: BinaryFileData[]) => void;
|
|
766
|
-
addImageElementsToScene: (imageFiles: File[], sceneX: number, sceneY: number) => Promise<void>;
|
|
769
|
+
addImageElementsToScene: (imageFiles: File[], sceneX: number, sceneY: number, options?: AddImageElementsToSceneOptions) => Promise<void>;
|
|
767
770
|
id: string;
|
|
768
771
|
setActiveTool: InstanceType<typeof App>["setActiveTool"];
|
|
769
772
|
setCursor: InstanceType<typeof App>["setCursor"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myoc/math",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.513",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/types/math/src/index.d.ts",
|
|
6
6
|
"main": "./dist/prod/index.js",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"build:esm": "rimraf dist && node ../../scripts/buildBase.js && yarn gen:types"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@excalidraw/common": "npm:@myoc/common@0.19.
|
|
65
|
+
"@excalidraw/common": "npm:@myoc/common@0.19.513"
|
|
66
66
|
}
|
|
67
67
|
}
|