jvs-draw 1.1.6 → 1.1.8

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.
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ elementId: string;
3
+ zoom: number;
4
+ scrollX: number;
5
+ scrollY: number;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
package/dist/config.d.ts CHANGED
@@ -9,6 +9,8 @@ export interface JvsDrawConfig {
9
9
  elements?: any[];
10
10
  appState?: any;
11
11
  };
12
+ enableImageUpload?: boolean;
13
+ uploadImageFn?: (file: File) => string | Promise<string>;
12
14
  }
13
15
  export declare const globalConfig: JvsDrawConfig;
14
16
  export declare const setConfig: (config: Partial<JvsDrawConfig>) => void;
@@ -0,0 +1,5 @@
1
+ export declare const arrowEndPointStyleList: {
2
+ icon: string;
3
+ activeIcon: string;
4
+ value: string;
5
+ }[];
@@ -21,5 +21,7 @@ export interface ElementOptions {
21
21
  isUnderline?: boolean;
22
22
  isStrikethrough?: boolean;
23
23
  arrowType?: "sharp" | "round" | "elbow";
24
+ startArrowhead?: string | null;
25
+ endArrowhead?: string | null;
24
26
  }
25
27
  export declare const newElement: (type: ExcalidrawElement["type"], x: number, y: number, options?: ElementOptions) => ExcalidrawElement;
@@ -1,5 +1,5 @@
1
1
  import { ExcalidrawElement } from '../types/element';
2
- export declare const renderScene: (canvas: HTMLCanvasElement, elements: readonly ExcalidrawElement[], scrollX: number, scrollY: number, zoom: number, selectedElementIds?: Record<string, boolean>, editingElementId?: string | null, erasingElementIds?: Record<string, boolean>, highlightedFrameId?: string | null, highlightedElementIds?: Record<string, boolean>, gridType?: string, hoveredLockIconId?: string | null, viewBackgroundColor?: string) => void;
2
+ export declare const renderScene: (canvas: HTMLCanvasElement, elements: readonly ExcalidrawElement[], scrollX: number, scrollY: number, zoom: number, selectedElementIds?: Record<string, boolean>, editingElementId?: string | null, erasingElementIds?: Record<string, boolean>, highlightedFrameId?: string | null, highlightedElementIds?: Record<string, boolean>, gridType?: string, hoveredLockIconId?: string | null, viewBackgroundColor?: string, images?: Record<string, string>, croppingElementId?: string | null) => void;
3
3
  export declare const renderLaserTrails: (canvas: HTMLCanvasElement, trails: {
4
4
  x: number;
5
5
  y: number;