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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import WBar from './WBar.vue'
|
|
3
3
|
import WPie from './WPie.vue'
|
|
4
|
-
import
|
|
4
|
+
import WPlot2d from './WPlot2d.vue'
|
|
5
|
+
import WPlot3d from './WPlot3d.vue'
|
|
5
6
|
import WRose from './WRose.vue'
|
|
6
7
|
import WSetMulti from './WSetMulti.vue'
|
|
7
8
|
import WSetOne from './WSetOne.vue'
|
|
@@ -10,7 +11,8 @@ let WPlotVue = {
|
|
|
10
11
|
install: function(Vue) {
|
|
11
12
|
Vue.component('w-bar', WBar)
|
|
12
13
|
Vue.component('w-pie', WPie)
|
|
13
|
-
Vue.component('w-plot',
|
|
14
|
+
Vue.component('w-plot-2-d', WPlot2d)
|
|
15
|
+
Vue.component('w-plot-3-d', WPlot3d)
|
|
14
16
|
Vue.component('w-rose', WRose)
|
|
15
17
|
Vue.component('w-set-multi', WSetMulti)
|
|
16
18
|
Vue.component('w-set-one', WSetOne)
|
package/src/components/WRose.vue
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
></slot>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
<
|
|
14
|
+
<WPlot2d
|
|
15
15
|
:options="optRose"
|
|
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 genRoseOpt from '../js/genRoseOpt.mjs'
|
|
36
36
|
|
|
37
37
|
|
|
@@ -40,7 +40,7 @@ import genRoseOpt from '../js/genRoseOpt.mjs'
|
|
|
40
40
|
*/
|
|
41
41
|
export default {
|
|
42
42
|
components: {
|
|
43
|
-
|
|
43
|
+
WPlot2d,
|
|
44
44
|
},
|
|
45
45
|
props: {
|
|
46
46
|
opt: {
|
package/toolg/gExtractHtml.mjs
CHANGED
|
@@ -98,13 +98,6 @@ function writeHtml(v) {
|
|
|
98
98
|
<script src="../dist/w-plot-vue.umd.js"></script>
|
|
99
99
|
|
|
100
100
|
<style>
|
|
101
|
-
.v-application--wrap {
|
|
102
|
-
/* width與max-width fix for IE11, 其外不能使用padding或margin避免失效 */
|
|
103
|
-
width: 100vw;
|
|
104
|
-
max-width: 100vw;
|
|
105
|
-
font-family: inherit;
|
|
106
|
-
background: #fff;
|
|
107
|
-
}
|
|
108
101
|
.item { /* 因item位於demolink, 提取各範例html後會刪除demolink, 故得額外補上 */
|
|
109
102
|
border-left: 3px solid #ffba75;
|
|
110
103
|
margin: 5px 5px 8px 0px;
|
|
@@ -115,25 +108,39 @@ function writeHtml(v) {
|
|
|
115
108
|
align-items: center;
|
|
116
109
|
}
|
|
117
110
|
.head1 {
|
|
118
|
-
margin: 0px;
|
|
119
111
|
padding: 0px 0px 20px 0px;
|
|
120
112
|
font-size: 2.5rem;
|
|
121
113
|
}
|
|
122
|
-
.
|
|
114
|
+
.bkh { /* 寬 */
|
|
115
|
+
padding:20px;
|
|
116
|
+
}
|
|
117
|
+
@media screen and (max-width:800px){ /* 中 */
|
|
118
|
+
.bkh {
|
|
119
|
+
padding:10px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
@media screen and (max-width:400px){ /* 窄 */
|
|
123
|
+
.bkh {
|
|
124
|
+
padding:5px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
.bk { /* 寬 */
|
|
128
|
+
display: inline-block;
|
|
123
129
|
vertical-align: top;
|
|
124
|
-
padding:
|
|
130
|
+
padding: 0px 80px 60px 0px;
|
|
125
131
|
}
|
|
126
|
-
@media screen and (
|
|
132
|
+
@media screen and (max-width:1000px){ /* 中窄 */
|
|
127
133
|
.bk {
|
|
128
|
-
display:
|
|
129
|
-
|
|
134
|
+
display: block;
|
|
135
|
+
padding: 0px 0px 50px 0px;
|
|
130
136
|
}
|
|
131
137
|
}
|
|
132
138
|
</style>
|
|
133
139
|
|
|
134
140
|
`,
|
|
135
|
-
appTag: `
|
|
136
|
-
|
|
141
|
+
appTag: `div`,
|
|
142
|
+
appClass: `bkh`,
|
|
143
|
+
appStyle: ``,
|
|
137
144
|
appTmp: getAppTmp(),
|
|
138
145
|
installVue: `Vue.use(window['w-plot-vue'])`,
|
|
139
146
|
data: v.data,
|
|
File without changes
|