@whcecw/maotu 0.0.28

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 (88) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +72 -0
  3. package/dist/favicon.svg +34 -0
  4. package/dist/imgs/change-attr.png +0 -0
  5. package/dist/imgs/edit-load.png +0 -0
  6. package/dist/imgs/edit.png +0 -0
  7. package/dist/imgs/event-callback.png +0 -0
  8. package/dist/imgs/set-node-attr.gif +0 -0
  9. package/dist/maotu.es.js +39711 -0
  10. package/dist/maotu.umd.js +1168 -0
  11. package/dist/src/components/custom-components/card-vue/index.vue.d.ts +32 -0
  12. package/dist/src/components/custom-components/jijia-vue/index.vue.d.ts +50 -0
  13. package/dist/src/components/custom-components/kv-vue/index.vue.d.ts +86 -0
  14. package/dist/src/components/custom-components/now-time-vue/index.vue.d.ts +41 -0
  15. package/dist/src/components/custom-components/panche-vue/index.vue.d.ts +59 -0
  16. package/dist/src/components/custom-components/recttext-vue/index.vue.d.ts +77 -0
  17. package/dist/src/components/custom-components/rotor-vue/index.vue.d.ts +50 -0
  18. package/dist/src/components/custom-components/sys-button-vue/index.vue.d.ts +35 -0
  19. package/dist/src/components/custom-components/text-vue/index.vue.d.ts +50 -0
  20. package/dist/src/components/custom-components/topcover-vue/index.vue.d.ts +59 -0
  21. package/dist/src/components/mt-dzr/components/render-item.vue.d.ts +9 -0
  22. package/dist/src/components/mt-dzr/components/resize-handle.vue.d.ts +49 -0
  23. package/dist/src/components/mt-dzr/components/rotate-handle.vue.d.ts +34 -0
  24. package/dist/src/components/mt-dzr/composables/mouse.d.ts +0 -0
  25. package/dist/src/components/mt-dzr/index.d.ts +3 -0
  26. package/dist/src/components/mt-dzr/index.vue.d.ts +123 -0
  27. package/dist/src/components/mt-dzr/store/index.d.ts +3 -0
  28. package/dist/src/components/mt-dzr/store/types.d.ts +13 -0
  29. package/dist/src/components/mt-dzr/types.d.ts +31 -0
  30. package/dist/src/components/mt-dzr/utils/index.d.ts +84 -0
  31. package/dist/src/components/mt-dzr/utils/types.d.ts +1 -0
  32. package/dist/src/components/mt-edit/ace-edit.d.ts +1 -0
  33. package/dist/src/components/mt-edit/components/canvas-ruler/index.vue.d.ts +37 -0
  34. package/dist/src/components/mt-edit/components/context-menu/index.vue.d.ts +29 -0
  35. package/dist/src/components/mt-edit/components/custom-svg-render/index.vue.d.ts +2 -0
  36. package/dist/src/components/mt-edit/components/done-tree/index.vue.d.ts +31 -0
  37. package/dist/src/components/mt-edit/components/drag-canvas/index.vue.d.ts +40 -0
  38. package/dist/src/components/mt-edit/components/draw-line-render/index.vue.d.ts +44 -0
  39. package/dist/src/components/mt-edit/components/export-json/index.vue.d.ts +26 -0
  40. package/dist/src/components/mt-edit/components/group-render/index.vue.d.ts +27 -0
  41. package/dist/src/components/mt-edit/components/import-json/index.vue.d.ts +4 -0
  42. package/dist/src/components/mt-edit/components/layout/header-panel/index.vue.d.ts +92 -0
  43. package/dist/src/components/mt-edit/components/layout/left-aside/index.vue.d.ts +30 -0
  44. package/dist/src/components/mt-edit/components/layout/main-panel/index.vue.d.ts +39 -0
  45. package/dist/src/components/mt-edit/components/layout/right-aside/index.vue.d.ts +11 -0
  46. package/dist/src/components/mt-edit/components/layout/right-aside/json-edit.vue.d.ts +18 -0
  47. package/dist/src/components/mt-edit/components/layout/right-aside/page-setting.vue.d.ts +31 -0
  48. package/dist/src/components/mt-edit/components/layout/right-aside/select-item-animate-setting/common-animate.vue.d.ts +18 -0
  49. package/dist/src/components/mt-edit/components/layout/right-aside/select-item-animate-setting/index.vue.d.ts +28 -0
  50. package/dist/src/components/mt-edit/components/layout/right-aside/select-item-event-setting/index.vue.d.ts +35 -0
  51. package/dist/src/components/mt-edit/components/layout/right-aside/select-item-event-setting/input-target-value.vue.d.ts +28 -0
  52. package/dist/src/components/mt-edit/components/layout/right-aside/select-item-props-setting.vue.d.ts +24 -0
  53. package/dist/src/components/mt-edit/components/layout/right-aside/select-item-setting.vue.d.ts +31 -0
  54. package/dist/src/components/mt-edit/components/line-render/index.vue.d.ts +44 -0
  55. package/dist/src/components/mt-edit/components/pattern-grid/index.vue.d.ts +32 -0
  56. package/dist/src/components/mt-edit/components/render-core/index.vue.d.ts +78 -0
  57. package/dist/src/components/mt-edit/components/render-core/types.d.ts +9 -0
  58. package/dist/src/components/mt-edit/components/render-item/index.vue.d.ts +47 -0
  59. package/dist/src/components/mt-edit/components/selected-area/index.vue.d.ts +40 -0
  60. package/dist/src/components/mt-edit/components/selected-area/types.d.ts +6 -0
  61. package/dist/src/components/mt-edit/components/svg-analysis/index.vue.d.ts +22 -0
  62. package/dist/src/components/mt-edit/components/svg-render/index.vue.d.ts +28 -0
  63. package/dist/src/components/mt-edit/components/types.d.ts +13 -0
  64. package/dist/src/components/mt-edit/composables/index.d.ts +11 -0
  65. package/dist/src/components/mt-edit/composables/sys-line.d.ts +18 -0
  66. package/dist/src/components/mt-edit/composables/thumbnail.d.ts +1 -0
  67. package/dist/src/components/mt-edit/index.d.ts +3 -0
  68. package/dist/src/components/mt-edit/index.vue.d.ts +65 -0
  69. package/dist/src/components/mt-edit/store/cache.d.ts +3 -0
  70. package/dist/src/components/mt-edit/store/config.d.ts +3 -0
  71. package/dist/src/components/mt-edit/store/context-menu.d.ts +3 -0
  72. package/dist/src/components/mt-edit/store/global.d.ts +3 -0
  73. package/dist/src/components/mt-edit/store/left-aside.d.ts +3 -0
  74. package/dist/src/components/mt-edit/store/types.d.ts +238 -0
  75. package/dist/src/components/mt-edit/utils/index.d.ts +206 -0
  76. package/dist/src/components/mt-preview/index.d.ts +3 -0
  77. package/dist/src/components/mt-preview/index.vue.d.ts +51 -0
  78. package/dist/src/export.d.ts +6 -0
  79. package/dist/src/main.d.ts +1 -0
  80. package/dist/src/router/index.d.ts +11 -0
  81. package/dist/style.css +7 -0
  82. package/dist/svgs/demo.svg +21 -0
  83. package/dist/svgs/my-button.svg +1 -0
  84. package/dist/svgs/my-input.svg +5 -0
  85. package/dist/svgs/pie-charts.svg +1 -0
  86. package/dist/svgs/rotor.svg +4 -0
  87. package/dist/svgs/rotor1.svg +10 -0
  88. package/package.json +71 -0
@@ -0,0 +1,21 @@
1
+ <svg width="557" height="554" xmlns="http://www.w3.org/2000/svg"
2
+ xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
3
+ <g>
4
+ <path
5
+ d="m279,38.19467a238.80533,238.80533 0 1 1 -238.80533,238.80533a238.80533,238.80533 0 0 1 238.80533,-238.80533m0,-38.528a277.33333,277.33333 0 1 0 277.33333,277.33333a277.33333,277.33333 0 0 0 -277.33333,-277.33333z"
6
+ id="circle1"
7
+ />
8
+ <path
9
+ id="line1"
10
+ d="m436.15733,143.928a14.67733,14.67733 0 0 0 -12.8,7.44533a96,96 0 0 1 -137.10933,24.66134a125.09867,125.09867 0 0 0 -188.032,24.14933a14.208,14.208 0 0 0 -1.28,2.13333a5.80267,5.80267 0 0 0 -0.66133,1.408a14.656,14.656 0 0 0 24.14933,15.68a6.272,6.272 0 0 0 1.28,-1.49333a96.832,96.832 0 0 1 13.248,-16.49067a95.76533,95.76533 0 0 1 124.62933,-9.30133a125.07733,125.07733 0 0 0 189.26934,-26.176a5.824,5.824 0 0 0 0.68266,-1.49333a14.63467,14.63467 0 0 0 -13.44,-20.43734l0.064,-0.08533z"
11
+ />
12
+ <path
13
+ id="line2"
14
+ d="m440.15733,239.928a14.67733,14.67733 0 0 0 -12.8,7.44533a96,96 0 0 1 -137.10933,24.66134a125.09867,125.09867 0 0 0 -188.032,24.14933a14.208,14.208 0 0 0 -1.28,2.13333a5.80267,5.80267 0 0 0 -0.66133,1.408a14.656,14.656 0 0 0 24.14933,15.68a6.272,6.272 0 0 0 1.28,-1.49333a96.832,96.832 0 0 1 13.248,-16.49067a95.76533,95.76533 0 0 1 124.62933,-9.30133a125.07733,125.07733 0 0 0 189.26934,-26.176a5.824,5.824 0 0 0 0.68266,-1.49333a14.63467,14.63467 0 0 0 -13.44,-20.43734l0.064,-0.08533z"
15
+ />
16
+ <path
17
+ id="line3"
18
+ d="m444.15733,336.928a14.67733,14.67733 0 0 0 -12.8,7.44533a96,96 0 0 1 -137.10933,24.66134a125.09867,125.09867 0 0 0 -188.032,24.14933a14.208,14.208 0 0 0 -1.28,2.13333a5.80267,5.80267 0 0 0 -0.66133,1.408a14.656,14.656 0 0 0 24.14933,15.68a6.272,6.272 0 0 0 1.28,-1.49333a96.832,96.832 0 0 1 13.248,-16.49067a95.76533,95.76533 0 0 1 124.62933,-9.30133a125.07733,125.07733 0 0 0 189.26934,-26.176a5.824,5.824 0 0 0 0.68266,-1.49333a14.63467,14.63467 0 0 0 -13.44,-20.43734l0.064,-0.08533z"
19
+ />
20
+ </g>
21
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" d="M2 8a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v3a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V8Zm7 1.5a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 0-1H9.5a.5.5 0 0 0-.5.5Zm-1 0a1.5 1.5 0 1 0-3 0a1.5 1.5 0 0 0 3 0Z"/></svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 15 15">
2
+ <path fill="currentColor" fill-rule="evenodd"
3
+ d="M6.5 1a.5.5 0 0 0 0 1c.627 0 .957.2 1.156.478C7.878 2.79 8 3.288 8 4v7c0 .712-.122 1.21-.344 1.522c-.199.278-.53.478-1.156.478a.5.5 0 0 0 0 1c.873 0 1.543-.3 1.97-.897l.03-.044l.03.044c.427.597 1.097.897 1.97.897a.5.5 0 0 0 0-1c-.627 0-.957-.2-1.156-.478C9.122 12.21 9 11.712 9 11V4c0-.712.122-1.21.344-1.522C9.543 2.2 9.874 2 10.5 2a.5.5 0 0 0 0-1c-.873 0-1.543.3-1.97.897l-.03.044l-.03-.044C8.042 1.3 7.372 1 6.5 1M14 5h-3V4h3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-3v-1h3zM6 4v1H1v5h5v1H1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"
4
+ clip-rule="evenodd" />
5
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13.45 8.75a5.501 5.501 0 1 1-6.2-6.2V8c0 .414.336.75.75.75zm0-1.5h-4.7v-4.7a5.503 5.503 0 0 1 4.7 4.7M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0" clip-rule="evenodd"/></svg>
@@ -0,0 +1,4 @@
1
+ <svg width="48" height="48" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="50" cy="50" r="45" fill="none" stroke="#000000" stroke-width="8"/>
3
+ <text x="50" y="55" font-family="Arial, sans-serif" font-size="16" fill="#ffffff" text-anchor="middle" font-weight="bold">转子</text>
4
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0"?>
2
+ <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
3
+ <g class="layer">
4
+ <title>Layer 1</title>
5
+ <circle cx="50" cy="50" fill="none" id="svg_1" r="45" stroke="#000000" stroke-width="4"/>
6
+ <text fill="#ffffff" font-family="Arial, sans-serif" font-size="13" font-style="normal" font-weight="normal" id="svg_2" stroke="#000000" stroke-width="0" text-anchor="middle" x="50" y="32.5">转子</text>
7
+ <line fill="none" id="svg_4" stroke="#000000" stroke-width="2" x1="40" x2="61" y1="50.5" y2="50.5"/>
8
+ <line fill="none" id="svg_5" stroke="#000000" stroke-width="2" transform="matrix(1 0 0 1 0 0)" x1="50.5" x2="50.5" y1="40" y2="61"/>
9
+ </g>
10
+ </svg>
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@whcecw/maotu",
3
+ "version": "0.0.28",
4
+ "private": false,
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "scripts": {
9
+ "dev": "pnpm run format && vite",
10
+ "build": "run-p type-check \"build-only {@}\" --",
11
+ "preview": "vite preview",
12
+ "test:unit": "vitest",
13
+ "build-only": "vite build",
14
+ "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
15
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
16
+ "format": "prettier --write src/",
17
+ "lib": "vite build --mode lib",
18
+ "npm": "vite build --mode npm"
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "main": "./dist/maotu.umd.js",
24
+ "module": "./dist/maotu.es.js",
25
+ "exports": {
26
+ ".": {
27
+ "import": "./dist/maotu.es.js",
28
+ "require": "./dist/maotu.umd.js",
29
+ "types": "./dist/src/export.d.ts"
30
+ },
31
+ "./*": "./*"
32
+ },
33
+ "typings": "dist/export.d.ts",
34
+ "dependencies": {
35
+ "@vueuse/core": "^10.6.1",
36
+ "ace-builds": "^1.32.0",
37
+ "animate.css": "^4.1.1",
38
+ "canvg": "^4.0.1",
39
+ "echarts": "^5.4.3",
40
+ "element-plus": "^2.4.2",
41
+ "html2canvas": "^1.4.1",
42
+ "less": "^4.2.0",
43
+ "vue": "^3.3.4",
44
+ "vue-echarts": "^6.6.5",
45
+ "vue-router": "^4.2.5",
46
+ "vue3-ace-editor": "^2.2.4"
47
+ },
48
+ "devDependencies": {
49
+ "@rushstack/eslint-patch": "^1.3.3",
50
+ "@tsconfig/node18": "^18.2.2",
51
+ "@types/jsdom": "^21.1.3",
52
+ "@types/node": "^18.18.5",
53
+ "@vitejs/plugin-vue": "^4.4.0",
54
+ "@vue/eslint-config-prettier": "^8.0.0",
55
+ "@vue/eslint-config-typescript": "^12.0.0",
56
+ "@vue/test-utils": "^2.4.1",
57
+ "@vue/tsconfig": "^0.4.0",
58
+ "eslint": "^8.49.0",
59
+ "eslint-plugin-vue": "^9.17.0",
60
+ "jsdom": "^22.1.0",
61
+ "npm-run-all2": "^6.1.1",
62
+ "prettier": "^3.0.3",
63
+ "typescript": "~5.2.0",
64
+ "unocss": "^0.58.0",
65
+ "vite": "^4.4.11",
66
+ "vite-plugin-dts": "^3.6.0",
67
+ "vite-plugin-svg-icons": "^2.0.1",
68
+ "vitest": "^0.34.6",
69
+ "vue-tsc": "^1.8.19"
70
+ }
71
+ }