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.
- package/README.md +12 -11
- package/dist/w-plot-vue.umd.js +13 -2
- package/dist/w-plot-vue.umd.js.map +1 -1
- package/docs/examples/app.html +1 -1
- package/docs/examples/app.umd.js +13 -2
- package/docs/examples/app.umd.js.map +1 -1
- package/docs/examples/w-bar_horizontal_multi-set(color).html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set(color, gradient).html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set(series color).html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set(series color, gradient).html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set.html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackNormal).html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackPercent).html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set__hide legned.html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set__show labels.html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set_barKpColor(gradient).html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set_barKpColor.html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set_barUseInnerLabelsForHorizontal_barGroupWidthRatio.html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio.html +26 -16
- package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio_barGroupWidthRatio.html +26 -16
- package/docs/examples/w-bar_horizontal_one-set(color).html +26 -16
- package/docs/examples/w-bar_horizontal_one-set(color, gradient).html +26 -16
- package/docs/examples/w-bar_horizontal_one-set.html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_barColor(gradient).html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_barColor.html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_barKpColor(gradient).html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_barKpColor.html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_barUseInnerLabelsForHorizontal.html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_barWidthRatio.html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_barWidthRatio_barGroupWidthRatio.html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_hide labels.html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_marginLeft_marginRight.html +26 -16
- package/docs/examples/w-bar_horizontal_one-set_show legned.html +26 -16
- package/docs/examples/w-bar_multi-set(color).html +26 -16
- package/docs/examples/w-bar_multi-set(color, gradient).html +26 -16
- package/docs/examples/w-bar_multi-set(series color).html +26 -16
- package/docs/examples/w-bar_multi-set(series color, gradient).html +26 -16
- package/docs/examples/w-bar_multi-set.html +26 -16
- package/docs/examples/w-bar_multi-set__barDisplay(stackNormal).html +26 -16
- package/docs/examples/w-bar_multi-set__barDisplay(stackNormal)_.html +26 -16
- package/docs/examples/w-bar_multi-set__barDisplay(stackPercent).html +26 -16
- package/docs/examples/w-bar_multi-set__hide legned.html +26 -16
- package/docs/examples/w-bar_multi-set__show labels.html +26 -16
- package/docs/examples/w-bar_multi-set_barKpColor(gradient).html +26 -16
- package/docs/examples/w-bar_multi-set_barKpColor.html +26 -16
- package/docs/examples/w-bar_multi-set_barWidthRatio.html +26 -16
- package/docs/examples/w-bar_multi-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +26 -16
- package/docs/examples/w-bar_one-set(color).html +26 -16
- package/docs/examples/w-bar_one-set(color, gradient).html +26 -16
- package/docs/examples/w-bar_one-set.html +26 -16
- package/docs/examples/w-bar_one-set_barColor(gradient).html +26 -16
- package/docs/examples/w-bar_one-set_barColor.html +26 -16
- package/docs/examples/w-bar_one-set_barKpColor(gradient).html +26 -16
- package/docs/examples/w-bar_one-set_barKpColor.html +26 -16
- package/docs/examples/w-bar_one-set_barWidthRatio.html +26 -16
- package/docs/examples/w-bar_one-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +26 -16
- package/docs/examples/w-bar_one-set_hide labels.html +26 -16
- package/docs/examples/w-bar_one-set_marginLeft_marginRight_marginTop.html +26 -16
- package/docs/examples/w-bar_one-set_show legned.html +26 -16
- package/docs/examples/w-pie_one-set(color).html +26 -16
- package/docs/examples/w-pie_one-set(color, gradient).html +26 -16
- package/docs/examples/w-pie_one-set.html +26 -16
- package/docs/examples/w-pie_one-set_hide labels.html +26 -16
- package/docs/examples/w-pie_one-set_hide legned.html +26 -16
- package/docs/examples/w-pie_one-set_marginLeft_marginRight_marginTop.html +26 -16
- package/docs/examples/w-pie_one-set_pieBorderRadius.html +26 -16
- package/docs/examples/w-pie_one-set_pieBorderWidth_pieBorderRadius.html +26 -16
- package/docs/examples/w-pie_one-set_pieKpColor(gradient).html +26 -16
- package/docs/examples/w-pie_one-set_pieKpColor.html +26 -16
- package/docs/examples/w-pie_one-set_pieThicknessRatio.html +26 -16
- package/docs/examples/{w-plot_default.html → w-plot-2d_default.html} +29 -19
- package/docs/examples/w-plot-3d_default.html +209 -0
- package/docs/examples/w-rose_multi-set(color).html +26 -16
- package/docs/examples/w-rose_multi-set(color, gradient).html +26 -16
- package/docs/examples/w-rose_multi-set(series color).html +26 -16
- package/docs/examples/w-rose_multi-set(series color, gradient).html +26 -16
- package/docs/examples/w-rose_multi-set.html +26 -16
- package/docs/examples/w-rose_multi-set__hide legned.html +26 -16
- package/docs/examples/w-rose_multi-set__show labels.html +26 -16
- package/docs/examples/w-rose_multi-set_roseBorderWidth.html +26 -16
- package/docs/examples/w-rose_multi-set_roseKpColor(gradient).html +26 -16
- package/docs/examples/w-rose_multi-set_roseKpColor.html +26 -16
- package/docs/examples/w-rose_multi-set_roseWidthRatio.html +26 -16
- package/docs/examples/w-rose_one-set(color).html +26 -16
- package/docs/examples/w-rose_one-set(color, gradient).html +26 -16
- package/docs/examples/w-rose_one-set.html +26 -16
- package/docs/examples/w-rose_one-set_marginLeft_marginRight_marginTop.html +26 -16
- package/docs/examples/w-rose_one-set_roseBorderWidth.html +26 -16
- package/docs/examples/w-rose_one-set_roseKpColor(gradient).html +26 -16
- package/docs/examples/w-rose_one-set_roseKpColor.html +26 -16
- package/docs/examples/w-rose_one-set_roseShowLabels.html +26 -16
- package/docs/examples/w-rose_one-set_roseWidthRatio.html +26 -16
- package/docs/examples/w-rose_one-set_showLegend.html +26 -16
- package/docs/examples/w-rose_one-set_showLegend_legendPosition.html +26 -16
- package/docs/examples/w-set-multi_default.html +26 -16
- package/docs/examples/w-set-multi_hide labels.html +26 -16
- package/docs/examples/w-set-multi_hide legned.html +26 -16
- package/docs/examples/w-set-multi_keySelect.html +26 -16
- package/docs/examples/w-set-multi_slot head.html +26 -16
- package/docs/examples/w-set-multi_textPlotType_kpSelectText_widthSelect.html +26 -16
- package/docs/examples/w-set-one_default.html +26 -16
- package/docs/examples/w-set-one_hide labels.html +26 -16
- package/docs/examples/w-set-one_keySelect.html +26 -16
- package/docs/examples/w-set-one_show legned.html +26 -16
- package/docs/examples/w-set-one_slot head.html +26 -16
- package/docs/examples/w-set-one_textPlotType_kpSelectText_widthSelect.html +26 -16
- package/docs/getDefAxis.mjs.html +2 -2
- package/docs/getDefChart.mjs.html +2 -2
- package/docs/getDefLegend.mjs.html +2 -2
- package/docs/getDefOpt.mjs.html +2 -2
- package/docs/global.html +2 -2
- package/docs/index.html +2 -2
- package/docs/module-WBar.html +2 -2
- package/docs/module-WPie.html +2 -2
- package/docs/{module-WPlot.html → module-WPlot2d.html} +4 -4
- package/docs/module-WPlot3d.html +216 -0
- package/docs/module-WRose.html +2 -2
- package/docs/module-WSetMulti.html +2 -2
- package/docs/module-WSetOne.html +2 -2
- package/docs/setLegendLoc.mjs.html +2 -2
- package/package.json +7 -5
- package/src/App.vue +104 -52
- package/src/AppZoneWBar.vue +1 -1
- package/src/AppZoneWPie.vue +1 -1
- package/src/{AppZoneWPlot.vue → AppZoneWPlot2d.vue} +9 -9
- package/src/AppZoneWPlot3d.vue +106 -0
- package/src/AppZoneWRose.vue +1 -1
- package/src/AppZoneWSetMulti.vue +1 -1
- package/src/AppZoneWSetOne.vue +1 -1
- package/src/components/WBar.vue +4 -4
- package/src/components/WPie.vue +4 -4
- package/src/components/WPlot3d.vue +1256 -0
- package/src/components/WPlotVue.vue +4 -2
- package/src/components/WRose.vue +4 -4
- package/toolg/gExtractHtml.mjs +22 -15
- /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>
|
package/src/AppZoneWRose.vue
CHANGED
package/src/AppZoneWSetMulti.vue
CHANGED
package/src/AppZoneWSetOne.vue
CHANGED
package/src/components/WBar.vue
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
<div style="position:relative;">
|
|
15
15
|
|
|
16
|
-
<
|
|
16
|
+
<WPlot2d
|
|
17
17
|
:options="optBar"
|
|
18
|
-
></
|
|
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
|
|
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
|
-
|
|
58
|
+
WPlot2d,
|
|
59
59
|
},
|
|
60
60
|
props: {
|
|
61
61
|
opt: {
|
package/src/components/WPie.vue
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
></slot>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
<
|
|
14
|
+
<WPlot2d
|
|
15
15
|
:options="optPie"
|
|
16
|
-
></
|
|
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
|
|
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
|
-
|
|
43
|
+
WPlot2d,
|
|
44
44
|
},
|
|
45
45
|
props: {
|
|
46
46
|
opt: {
|