@zhangqingcq/vgce 0.0.17 → 0.0.18

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.
Files changed (45) hide show
  1. package/README.md +83 -83
  2. package/dist/style.css +2 -2
  3. package/dist/vgce.js +7001 -6946
  4. package/dist/vgce.umd.cjs +62 -62
  5. package/package.json +10 -8
  6. package/src/App.vue +1 -3
  7. package/src/components/svg-analysis/index.vue +0 -2
  8. package/src/components/svg-editor/center-panel/index.vue +0 -1
  9. package/src/components/svg-editor/component-tree/index.vue +0 -1
  10. package/src/components/svg-editor/connection-panel/index.vue +0 -1
  11. package/src/components/svg-editor/export-json/index.vue +0 -1
  12. package/src/components/svg-editor/handle-panel/index.vue +0 -1
  13. package/src/components/svg-editor/import-json/index.vue +0 -1
  14. package/src/components/svg-editor/index.vue +0 -1
  15. package/src/components/svg-editor/left-panel/index.vue +0 -1
  16. package/src/components/svg-editor/right-panel/code-edit-modal.vue +0 -1
  17. package/src/components/svg-editor/right-panel/common-animate.vue +0 -1
  18. package/src/components/svg-editor/right-panel/condition.vue +0 -1
  19. package/src/components/svg-editor/right-panel/dynamic-el-form-item.vue +4 -4
  20. package/src/components/svg-editor/right-panel/index.vue +1 -2
  21. package/src/components/svg-editor/right-panel/list.vue +0 -1
  22. package/src/components/svg-viewer/index.vue +100 -87
  23. package/src/components/vue3-ruler-tool/index.vue +0 -1
  24. package/src/config/files/clock-a.vue +0 -2
  25. package/src/config/files/common-table.vue +0 -1
  26. package/src/config/files/light-a.vue +0 -2
  27. package/src/config/files/now-time.vue +0 -1
  28. package/src/config/files/pie-charts.vue +0 -1
  29. package/src/config/files/progress.vue +0 -1
  30. package/src/config/files/svg-text.vue +0 -2
  31. package/src/config/files/switch-a.vue +0 -2
  32. package/src/config/svg/stateless/index.ts +1 -5
  33. package/src/config/types.ts +2 -2
  34. package/src/hooks.ts +0 -1
  35. package/src/index.ts +2 -4
  36. package/src/main.ts +0 -1
  37. package/src/stores/config/index.ts +0 -1
  38. package/src/stores/global/index.ts +0 -2
  39. package/src/stores/main.ts +0 -3
  40. package/src/stores/svg-edit-layout/index.ts +0 -1
  41. package/src/stores/system/index.ts +0 -1
  42. package/src/utils/fetch.ts +0 -2
  43. package/src/utils/proxy.ts +0 -1
  44. package/src/views/EditorS.vue +0 -1
  45. package/types/index.d.ts +5 -1
@@ -1,6 +1,3 @@
1
- import { defineStore } from 'pinia'
2
- import { ref } from 'vue'
3
-
4
1
  export const useStore = defineStore('main', () => {
5
2
  const data = ref()
6
3
 
@@ -1,4 +1,3 @@
1
- import { defineStore } from 'pinia'
2
1
  import type { ISvgEditLayoutStore } from './types'
3
2
  /**
4
3
  * 编辑器布局状态
@@ -1,5 +1,4 @@
1
1
  import { objectDeepClone, randomString } from '@/utils'
2
- import { defineStore } from 'pinia'
3
2
  import { useGlobalStore } from '../global'
4
3
  import type { IDoneJson } from '../global/types'
5
4
  import { EGlobalStoreIntention } from '../global/types'
@@ -3,9 +3,7 @@
3
3
  * @author Ricky email:zhangqingcq@foxmail.com
4
4
  * @created 2023.06.21
5
5
  */
6
- import axios from 'axios'
7
6
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
8
- import _ from 'lodash'
9
7
 
10
8
  import type { Collection } from './types'
11
9
 
@@ -1,5 +1,4 @@
1
1
  import type { ComponentInternalInstance } from 'vue'
2
- import { getCurrentInstance } from 'vue'
3
2
 
4
3
  export default function () {
5
4
  const { appContext } = getCurrentInstance() as ComponentInternalInstance
@@ -1,7 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import SvgEditor from '@/components/svg-editor/index.vue'
3
3
  import { useStore } from '@/stores/main'
4
- import { useRouter } from 'vue-router'
5
4
  import type { IDataModel } from '@/components/svg-editor/types'
6
5
 
7
6
  const router = useRouter()
package/types/index.d.ts CHANGED
@@ -6,4 +6,8 @@
6
6
 
7
7
  import SvgEditor from '../dist/vgce'
8
8
  import SvgViewer from '../dist/vgce'
9
- export { SvgEditor, SvgViewer }
9
+
10
+ export namespace VGCE {
11
+ SvgEditor
12
+ SvgViewer
13
+ }