w-plot-vue 1.0.4 → 1.0.6

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 (136) hide show
  1. package/README.md +12 -11
  2. package/dist/w-plot-vue.umd.js +13 -2
  3. package/dist/w-plot-vue.umd.js.map +1 -1
  4. package/docs/examples/app.html +1 -1
  5. package/docs/examples/app.umd.js +13 -2
  6. package/docs/examples/app.umd.js.map +1 -1
  7. package/docs/examples/w-bar_horizontal_multi-set(color).html +26 -16
  8. package/docs/examples/w-bar_horizontal_multi-set(color, gradient).html +26 -16
  9. package/docs/examples/w-bar_horizontal_multi-set(series color).html +26 -16
  10. package/docs/examples/w-bar_horizontal_multi-set(series color, gradient).html +26 -16
  11. package/docs/examples/w-bar_horizontal_multi-set.html +26 -16
  12. package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackNormal).html +26 -16
  13. package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackPercent).html +26 -16
  14. package/docs/examples/w-bar_horizontal_multi-set__hide legned.html +26 -16
  15. package/docs/examples/w-bar_horizontal_multi-set__show labels.html +26 -16
  16. package/docs/examples/w-bar_horizontal_multi-set_barKpColor(gradient).html +26 -16
  17. package/docs/examples/w-bar_horizontal_multi-set_barKpColor.html +26 -16
  18. package/docs/examples/w-bar_horizontal_multi-set_barUseInnerLabelsForHorizontal_barGroupWidthRatio.html +26 -16
  19. package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio.html +26 -16
  20. package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio_barGroupWidthRatio.html +26 -16
  21. package/docs/examples/w-bar_horizontal_one-set(color).html +26 -16
  22. package/docs/examples/w-bar_horizontal_one-set(color, gradient).html +26 -16
  23. package/docs/examples/w-bar_horizontal_one-set.html +26 -16
  24. package/docs/examples/w-bar_horizontal_one-set_barColor(gradient).html +26 -16
  25. package/docs/examples/w-bar_horizontal_one-set_barColor.html +26 -16
  26. package/docs/examples/w-bar_horizontal_one-set_barKpColor(gradient).html +26 -16
  27. package/docs/examples/w-bar_horizontal_one-set_barKpColor.html +26 -16
  28. package/docs/examples/w-bar_horizontal_one-set_barUseInnerLabelsForHorizontal.html +26 -16
  29. package/docs/examples/w-bar_horizontal_one-set_barWidthRatio.html +26 -16
  30. package/docs/examples/w-bar_horizontal_one-set_barWidthRatio_barGroupWidthRatio.html +26 -16
  31. package/docs/examples/w-bar_horizontal_one-set_hide labels.html +26 -16
  32. package/docs/examples/w-bar_horizontal_one-set_marginLeft_marginRight.html +26 -16
  33. package/docs/examples/w-bar_horizontal_one-set_show legned.html +26 -16
  34. package/docs/examples/w-bar_multi-set(color).html +26 -16
  35. package/docs/examples/w-bar_multi-set(color, gradient).html +26 -16
  36. package/docs/examples/w-bar_multi-set(series color).html +26 -16
  37. package/docs/examples/w-bar_multi-set(series color, gradient).html +26 -16
  38. package/docs/examples/w-bar_multi-set.html +26 -16
  39. package/docs/examples/w-bar_multi-set__barDisplay(stackNormal).html +26 -16
  40. package/docs/examples/w-bar_multi-set__barDisplay(stackNormal)_.html +26 -16
  41. package/docs/examples/w-bar_multi-set__barDisplay(stackPercent).html +26 -16
  42. package/docs/examples/w-bar_multi-set__hide legned.html +26 -16
  43. package/docs/examples/w-bar_multi-set__show labels.html +26 -16
  44. package/docs/examples/w-bar_multi-set_barKpColor(gradient).html +26 -16
  45. package/docs/examples/w-bar_multi-set_barKpColor.html +26 -16
  46. package/docs/examples/w-bar_multi-set_barWidthRatio.html +26 -16
  47. package/docs/examples/w-bar_multi-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +26 -16
  48. package/docs/examples/w-bar_one-set(color).html +26 -16
  49. package/docs/examples/w-bar_one-set(color, gradient).html +26 -16
  50. package/docs/examples/w-bar_one-set.html +26 -16
  51. package/docs/examples/w-bar_one-set_barColor(gradient).html +26 -16
  52. package/docs/examples/w-bar_one-set_barColor.html +26 -16
  53. package/docs/examples/w-bar_one-set_barKpColor(gradient).html +26 -16
  54. package/docs/examples/w-bar_one-set_barKpColor.html +26 -16
  55. package/docs/examples/w-bar_one-set_barWidthRatio.html +26 -16
  56. package/docs/examples/w-bar_one-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +26 -16
  57. package/docs/examples/w-bar_one-set_hide labels.html +26 -16
  58. package/docs/examples/w-bar_one-set_marginLeft_marginRight_marginTop.html +26 -16
  59. package/docs/examples/w-bar_one-set_show legned.html +26 -16
  60. package/docs/examples/w-pie_one-set(color).html +26 -16
  61. package/docs/examples/w-pie_one-set(color, gradient).html +26 -16
  62. package/docs/examples/w-pie_one-set.html +26 -16
  63. package/docs/examples/w-pie_one-set_hide labels.html +26 -16
  64. package/docs/examples/w-pie_one-set_hide legned.html +26 -16
  65. package/docs/examples/w-pie_one-set_marginLeft_marginRight_marginTop.html +26 -16
  66. package/docs/examples/w-pie_one-set_pieBorderRadius.html +26 -16
  67. package/docs/examples/w-pie_one-set_pieBorderWidth_pieBorderRadius.html +26 -16
  68. package/docs/examples/w-pie_one-set_pieKpColor(gradient).html +26 -16
  69. package/docs/examples/w-pie_one-set_pieKpColor.html +26 -16
  70. package/docs/examples/w-pie_one-set_pieThicknessRatio.html +26 -16
  71. package/docs/examples/{w-plot_default.html → w-plot-2d_default.html} +29 -19
  72. package/docs/examples/w-plot-3d_default.html +209 -0
  73. package/docs/examples/w-rose_multi-set(color).html +26 -16
  74. package/docs/examples/w-rose_multi-set(color, gradient).html +26 -16
  75. package/docs/examples/w-rose_multi-set(series color).html +26 -16
  76. package/docs/examples/w-rose_multi-set(series color, gradient).html +26 -16
  77. package/docs/examples/w-rose_multi-set.html +26 -16
  78. package/docs/examples/w-rose_multi-set__hide legned.html +26 -16
  79. package/docs/examples/w-rose_multi-set__show labels.html +26 -16
  80. package/docs/examples/w-rose_multi-set_roseBorderWidth.html +26 -16
  81. package/docs/examples/w-rose_multi-set_roseKpColor(gradient).html +26 -16
  82. package/docs/examples/w-rose_multi-set_roseKpColor.html +26 -16
  83. package/docs/examples/w-rose_multi-set_roseWidthRatio.html +26 -16
  84. package/docs/examples/w-rose_one-set(color).html +26 -16
  85. package/docs/examples/w-rose_one-set(color, gradient).html +26 -16
  86. package/docs/examples/w-rose_one-set.html +26 -16
  87. package/docs/examples/w-rose_one-set_marginLeft_marginRight_marginTop.html +26 -16
  88. package/docs/examples/w-rose_one-set_roseBorderWidth.html +26 -16
  89. package/docs/examples/w-rose_one-set_roseKpColor(gradient).html +26 -16
  90. package/docs/examples/w-rose_one-set_roseKpColor.html +26 -16
  91. package/docs/examples/w-rose_one-set_roseShowLabels.html +26 -16
  92. package/docs/examples/w-rose_one-set_roseWidthRatio.html +26 -16
  93. package/docs/examples/w-rose_one-set_showLegend.html +26 -16
  94. package/docs/examples/w-rose_one-set_showLegend_legendPosition.html +26 -16
  95. package/docs/examples/w-set-multi_default.html +26 -16
  96. package/docs/examples/w-set-multi_hide labels.html +26 -16
  97. package/docs/examples/w-set-multi_hide legned.html +26 -16
  98. package/docs/examples/w-set-multi_keySelect.html +26 -16
  99. package/docs/examples/w-set-multi_slot head.html +26 -16
  100. package/docs/examples/w-set-multi_textPlotType_kpSelectText_widthSelect.html +26 -16
  101. package/docs/examples/w-set-one_default.html +26 -16
  102. package/docs/examples/w-set-one_hide labels.html +26 -16
  103. package/docs/examples/w-set-one_keySelect.html +26 -16
  104. package/docs/examples/w-set-one_show legned.html +26 -16
  105. package/docs/examples/w-set-one_slot head.html +26 -16
  106. package/docs/examples/w-set-one_textPlotType_kpSelectText_widthSelect.html +26 -16
  107. package/docs/getDefAxis.mjs.html +2 -2
  108. package/docs/getDefChart.mjs.html +2 -2
  109. package/docs/getDefLegend.mjs.html +2 -2
  110. package/docs/getDefOpt.mjs.html +2 -2
  111. package/docs/global.html +2 -2
  112. package/docs/index.html +2 -2
  113. package/docs/module-WBar.html +2 -2
  114. package/docs/module-WPie.html +2 -2
  115. package/docs/{module-WPlot.html → module-WPlot2d.html} +4 -4
  116. package/docs/module-WPlot3d.html +216 -0
  117. package/docs/module-WRose.html +2 -2
  118. package/docs/module-WSetMulti.html +2 -2
  119. package/docs/module-WSetOne.html +2 -2
  120. package/docs/setLegendLoc.mjs.html +2 -2
  121. package/package.json +7 -5
  122. package/src/App.vue +104 -52
  123. package/src/AppZoneWBar.vue +1 -1
  124. package/src/AppZoneWPie.vue +1 -1
  125. package/src/{AppZoneWPlot.vue → AppZoneWPlot2d.vue} +9 -9
  126. package/src/AppZoneWPlot3d.vue +106 -0
  127. package/src/AppZoneWRose.vue +1 -1
  128. package/src/AppZoneWSetMulti.vue +1 -1
  129. package/src/AppZoneWSetOne.vue +1 -1
  130. package/src/components/WBar.vue +4 -4
  131. package/src/components/WPie.vue +4 -4
  132. package/src/components/WPlot3d.vue +1256 -0
  133. package/src/components/WPlotVue.vue +4 -2
  134. package/src/components/WRose.vue +4 -4
  135. package/toolg/gExtractHtml.mjs +22 -15
  136. /package/src/components/{WPlot.vue → WPlot2d.vue} +0 -0
@@ -0,0 +1,106 @@
1
+ <template>
2
+ <div class="bkh">
3
+
4
+
5
+ <div class="head1"><span style="cursor:pointer;" title="open for copy link to view component" onclick="window.open('//yuda-lyu.github.io/w-geo-vue/examples/app.html?cmp='+this.innerText,'_blank')">w-plot-3d</span></div>
6
+
7
+
8
+ <div style="padding:0px;">
9
+
10
+
11
+ <div class="bk">
12
+ <demolink
13
+ :kbname="'w-plot-3d'"
14
+ :casename="'default'"
15
+ ></demolink>
16
+
17
+ <w-plot-3d
18
+ :options="WPlot3d.option1"
19
+ ></w-plot-3d>
20
+
21
+ </div>
22
+
23
+
24
+ </div>
25
+
26
+
27
+ </div>
28
+ </template>
29
+
30
+ <script>
31
+ import demolink from './components/demolink.vue'
32
+ import WPlot3d from './components/WPlot3d.vue'
33
+
34
+
35
+ export default {
36
+ components: {
37
+ demolink,
38
+ WPlot3d,
39
+ },
40
+ props: {
41
+ },
42
+ data: function() {
43
+ return {
44
+ 'WPlot3d': {
45
+ 'option1': {
46
+ width: 600,
47
+ height: 600,
48
+ items: [
49
+ // {
50
+ // url:'./3d_block.stl',
51
+ // name:'block',
52
+ // color:'#fff', //{ h: 320, s: 0.2, l: 0.15 }
53
+ // },
54
+ // {
55
+ // url:'./3D_Domain(ascii).stl',
56
+ // name:'testerA',
57
+ // color:'#fff', //{ h: 320, s: 0.2, l: 0.15 }
58
+ // },
59
+ {
60
+ url: './topo_surface.stl',
61
+ name: 'Surface',
62
+ color: '#d65c5c',
63
+ opacity: 0.9,
64
+ },
65
+ {
66
+ url: './A.stl',
67
+ name: 'A',
68
+ color: '#d6d65c',
69
+ opacity: 0.9,
70
+ },
71
+ {
72
+ url: './B.stl',
73
+ name: 'B',
74
+ color: '#5cd65c',
75
+ opacity: 0.9,
76
+ },
77
+ {
78
+ url: './C.stl',
79
+ name: 'C',
80
+ color: '#5cd6d6',
81
+ opacity: 0.9,
82
+ },
83
+ {
84
+ url: './D.stl',
85
+ name: 'D',
86
+ color: '#5c5cd6',
87
+ opacity: 0.9,
88
+ },
89
+ {
90
+ url: './E.stl',
91
+ name: 'E',
92
+ color: '#d65cd6',
93
+ opacity: 0.9,
94
+ },
95
+ ],
96
+ },
97
+ },
98
+ }
99
+ },
100
+ methods: {
101
+ }
102
+ }
103
+ </script>
104
+
105
+ <style scoped>
106
+ </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="bkh">
3
3
 
4
4
 
5
5
  <div class="head1"><span style="cursor:pointer;" title="open for copy link to view component" onclick="window.open('//yuda-lyu.github.io/w-plot-vue/examples/app.html?cmp='+this.innerText,'_blank')">w-rose</span></div>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="bkh">
3
3
 
4
4
 
5
5
  <div class="head1"><span style="cursor:pointer;" title="open for copy link to view component" onclick="window.open('//yuda-lyu.github.io/w-plot-vue/examples/app.html?cmp='+this.innerText,'_blank')">w-set-multi</span></div>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="bkh">
3
3
 
4
4
 
5
5
  <div class="head1"><span style="cursor:pointer;" title="open for copy link to view component" onclick="window.open('//yuda-lyu.github.io/w-plot-vue/examples/app.html?cmp='+this.innerText,'_blank')">w-set-one</span></div>
@@ -13,9 +13,9 @@
13
13
 
14
14
  <div style="position:relative;">
15
15
 
16
- <WPlot
16
+ <WPlot2d
17
17
  :options="optBar"
18
- ></WPlot>
18
+ ></WPlot2d>
19
19
 
20
20
  <template v-if="useInnerLabels">
21
21
  <div
@@ -46,7 +46,7 @@ import size from 'lodash-es/size'
46
46
  // import cloneDeep from 'lodash-es/cloneDeep'
47
47
  // import isestr from 'wsemi/src/isestr.mjs'
48
48
  import iseobj from 'wsemi/src/iseobj.mjs'
49
- import WPlot from './WPlot.vue'
49
+ import WPlot2d from './WPlot2d.vue'
50
50
  import genBarOpt from '../js/genBarOpt.mjs'
51
51
 
52
52
 
@@ -55,7 +55,7 @@ import genBarOpt from '../js/genBarOpt.mjs'
55
55
  */
56
56
  export default {
57
57
  components: {
58
- WPlot,
58
+ WPlot2d,
59
59
  },
60
60
  props: {
61
61
  opt: {
@@ -11,9 +11,9 @@
11
11
  ></slot>
12
12
  </div>
13
13
 
14
- <WPlot
14
+ <WPlot2d
15
15
  :options="optPie"
16
- ></WPlot>
16
+ ></WPlot2d>
17
17
 
18
18
  <div :style="`width:${picWidth}px; max-width:${picWidth}px;`">
19
19
  <slot
@@ -31,7 +31,7 @@ import get from 'lodash-es/get'
31
31
  // import cloneDeep from 'lodash-es/cloneDeep'
32
32
  // import isestr from 'wsemi/src/isestr.mjs'
33
33
  import iseobj from 'wsemi/src/iseobj.mjs'
34
- import WPlot from './WPlot.vue'
34
+ import WPlot2d from './WPlot2d.vue'
35
35
  import genPieOpt from '../js/genPieOpt.mjs'
36
36
 
37
37
 
@@ -40,7 +40,7 @@ import genPieOpt from '../js/genPieOpt.mjs'
40
40
  */
41
41
  export default {
42
42
  components: {
43
- WPlot,
43
+ WPlot2d,
44
44
  },
45
45
  props: {
46
46
  opt: {