magic-canvas-yonava 1.0.2 → 1.0.4
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/index.d.ts +12 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
- package/src/index.ts +15 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import MagicCanvas from "./MagicCanvas.vue";
|
|
2
|
+
import { App } from "vue";
|
|
1
3
|
export * from "./types";
|
|
2
4
|
export * from "./useMagicCanvas";
|
|
3
|
-
export * from "./MagicCanvas.vue";
|
|
4
5
|
export * from "./coordinates";
|
|
5
6
|
export { getDevicePixelRatio } from "./camera/utils";
|
|
7
|
+
export { MagicCanvas };
|
|
8
|
+
declare module "vue" {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
MagicCanvas: typeof MagicCanvas;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
declare const _default: {
|
|
14
|
+
install(app: App): void;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import MagicCanvas from "./MagicCanvas.vue";
|
|
1
2
|
export * from "./types";
|
|
2
3
|
export * from "./useMagicCanvas";
|
|
3
|
-
export * from "./MagicCanvas.vue";
|
|
4
4
|
export * from "./coordinates";
|
|
5
5
|
export { getDevicePixelRatio } from "./camera/utils";
|
|
6
|
+
export { MagicCanvas };
|
|
7
|
+
export default {
|
|
8
|
+
install(app) {
|
|
9
|
+
app.component("MagicCanvas", MagicCanvas);
|
|
10
|
+
},
|
|
11
|
+
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
import MagicCanvas from "./MagicCanvas.vue";
|
|
2
|
+
import { App } from "vue";
|
|
3
|
+
|
|
1
4
|
export * from "./types";
|
|
2
5
|
export * from "./useMagicCanvas";
|
|
3
|
-
export * from "./MagicCanvas.vue";
|
|
4
6
|
export * from "./coordinates";
|
|
5
7
|
export { getDevicePixelRatio } from "./camera/utils";
|
|
8
|
+
export { MagicCanvas };
|
|
9
|
+
declare module "vue" {
|
|
10
|
+
export interface GlobalComponents {
|
|
11
|
+
MagicCanvas: typeof MagicCanvas;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
install(app: App) {
|
|
17
|
+
app.component("MagicCanvas", MagicCanvas);
|
|
18
|
+
},
|
|
19
|
+
};
|