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.
- package/README.md +13 -22
- package/dist/components/{Drawboard.vue.d.ts → EditorLayout.vue.d.ts} +1 -1
- package/dist/components/shared/Icon.vue.d.ts +4 -4
- package/dist/components/shared/Layout.vue.d.ts +40 -0
- package/dist/components/shared/LayoutItem.vue.d.ts +55 -0
- package/dist/components/shared/Main.vue.d.ts +21 -0
- package/dist/composables/editor.d.ts +1 -1
- package/dist/composables/icon.d.ts +18 -18
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/layout.d.ts +133 -0
- package/dist/composables/resizeObserver.d.ts +8 -0
- package/dist/editor.d.ts +0 -1
- package/dist/iconsets/mdi-svg.d.ts +4 -4
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2479 -2147
- package/dist/mixins/0.config/base.d.ts +0 -1
- package/dist/utils/console.d.ts +2 -0
- package/dist/utils/helper.d.ts +11 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/components/Bottombar.vue.d.ts +0 -13
- /package/dist/components/{ProgressIndicator.vue.d.ts → shared/ProgressIndicator.vue.d.ts} +0 -0
package/dist/utils/helper.d.ts
CHANGED
|
@@ -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[];
|
package/dist/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1
|
|
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.
|
|
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
|
-
};
|
|
File without changes
|