mce 0.1.4 → 0.2.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.
@@ -16,7 +16,6 @@ declare global {
16
16
  camera: boolean;
17
17
  ruler: boolean;
18
18
  scrollbar: boolean;
19
- bottombar: boolean;
20
19
  timeline: boolean;
21
20
  statusbar: boolean;
22
21
  wheelZoom: boolean;
@@ -0,0 +1,2 @@
1
+ export declare function consoleWarn(message: string): void;
2
+ export declare function consoleError(message: string): void;
@@ -1 +1,12 @@
1
+ import type { ComponentInternalInstance, ComponentPublicInstance, InjectionKey, VNodeChild } from 'vue';
1
2
  export declare function isClickInsideElement(event: MouseEvent, targetDiv: HTMLElement): boolean;
3
+ export interface TemplateRef {
4
+ (target: Element | ComponentPublicInstance | null): void;
5
+ value: HTMLElement | ComponentPublicInstance | null | undefined;
6
+ readonly el: HTMLElement | undefined;
7
+ }
8
+ export declare function refElement(obj?: ComponentPublicInstance<any> | HTMLElement): HTMLElement | undefined;
9
+ export declare function convertToUnit(str: number, unit?: string): string;
10
+ export declare function convertToUnit(str: string | number | null | undefined, unit?: string): string | undefined;
11
+ export declare function templateRef(): TemplateRef;
12
+ export declare function findChildrenWithProvide(key: InjectionKey<any> | symbol, vnode?: VNodeChild): ComponentInternalInstance[];
@@ -1,4 +1,5 @@
1
1
  export * from './box';
2
+ export * from './console';
2
3
  export * from './constants';
3
4
  export * from './create';
4
5
  export * from './helper';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mce",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.2.1",
5
5
  "description": "The headless canvas editor framework. only the ESM.",
6
6
  "author": "wxm",
7
7
  "license": "MIT",
@@ -61,7 +61,7 @@
61
61
  "diff": "^8.0.2",
62
62
  "file-saver": "^2.0.5",
63
63
  "lodash-es": "^4.17.21",
64
- "modern-canvas": "^0.12.15",
64
+ "modern-canvas": "^0.12.16",
65
65
  "modern-font": "^0.4.4",
66
66
  "modern-idoc": "^0.10.4",
67
67
  "modern-text": "^1.9.1",
@@ -1,13 +0,0 @@
1
- declare var __VLS_1: {};
2
- type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_1) => any;
4
- };
5
- declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
- declare const _default: typeof __VLS_export;
8
- export default _default;
9
- type __VLS_WithSlots<T, S> = T & {
10
- new (): {
11
- $slots: S;
12
- };
13
- };