w-plot-vue 1.0.5 → 1.0.7
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/.github/workflows/ci-test.yml +24 -0
- 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 +3 -3
- package/docs/getDefChart.mjs.html +3 -3
- package/docs/getDefLegend.mjs.html +3 -3
- package/docs/getDefOpt.mjs.html +3 -3
- 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 +3 -3
- package/package.json +7 -5
- package/script.txt +27 -0
- package/src/App.vue +83 -41
- 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 +8 -8
- package/src/components/WPie.vue +7 -7
- package/src/components/{WPlot.vue → WPlot2d.vue} +1 -1
- package/src/components/WPlot3d.vue +1256 -0
- package/src/components/WPlotVue.vue +4 -2
- package/src/components/WRose.vue +7 -7
- package/src/components/WSetMulti.vue +6 -6
- package/src/js/genBarOpt.mjs +8 -8
- package/src/js/genPieOpt.mjs +7 -7
- package/src/js/genRoseOpt.mjs +7 -7
- package/src/js/getDefAxis.mjs +1 -1
- package/src/js/getDefChart.mjs +1 -1
- package/src/js/getDefLegend.mjs +1 -1
- package/src/js/getDefOpt.mjs +1 -1
- package/src/js/setLegendLoc.mjs +1 -1
- package/toolg/cvCasename.mjs +7 -7
- package/toolg/gExtractHtml.mjs +22 -15
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: Node.js CI
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
strategy:
|
|
11
|
+
matrix:
|
|
12
|
+
node-version: [20.x]
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
17
|
+
uses: actions/setup-node@v1
|
|
18
|
+
with:
|
|
19
|
+
node-version: ${{ matrix.node-version }}
|
|
20
|
+
- run: npm cache clean -f
|
|
21
|
+
- run: npm install
|
|
22
|
+
- run: npm test
|
|
23
|
+
env:
|
|
24
|
+
CI: true
|
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@ A plot component for vue(vue2).
|
|
|
7
7
|
[](https://npmjs.org/package/w-plot-vue)
|
|
8
8
|
[](https://github.com/yuda-lyu/w-plot-vue)
|
|
9
9
|
[](https://npmjs.org/package/w-plot-vue)
|
|
10
|
+
[](https://npmjs.org/package/w-plot-vue)
|
|
10
11
|
[](https://www.jsdelivr.com/package/npm/w-plot-vue)
|
|
11
12
|
|
|
12
13
|
## Documentation
|
|
@@ -27,9 +28,9 @@ npm i w-plot-vue
|
|
|
27
28
|
Import all components:
|
|
28
29
|
```alias
|
|
29
30
|
//choose component
|
|
30
|
-
<w-plot
|
|
31
|
+
<w-plot-2d
|
|
31
32
|
...
|
|
32
|
-
></w-plot>
|
|
33
|
+
></w-plot-2d>
|
|
33
34
|
|
|
34
35
|
//import
|
|
35
36
|
import WPlotVue from 'w-plot-vue'
|
|
@@ -40,21 +41,21 @@ Vue.use(WPlotVue)
|
|
|
40
41
|
Import one component:
|
|
41
42
|
```alias
|
|
42
43
|
//choose component
|
|
43
|
-
<w-plot
|
|
44
|
+
<w-plot-2d
|
|
44
45
|
...
|
|
45
|
-
></w-plot>
|
|
46
|
+
></w-plot-2d>
|
|
46
47
|
|
|
47
48
|
//import
|
|
48
|
-
import
|
|
49
|
+
import WPlot2d from 'w-plot-vue/src/components/WPlot2d.vue'
|
|
49
50
|
|
|
50
51
|
//component
|
|
51
|
-
Vue.component('w-plot',
|
|
52
|
+
Vue.component('w-plot-2d',WPlot2d)
|
|
52
53
|
//or
|
|
53
54
|
export default {
|
|
54
55
|
components: {
|
|
55
|
-
|
|
56
|
+
WPlot2d,
|
|
56
57
|
//or
|
|
57
|
-
'w-plot':
|
|
58
|
+
'w-plot-2d': WPlot2d,
|
|
58
59
|
},
|
|
59
60
|
...
|
|
60
61
|
}
|
|
@@ -65,15 +66,15 @@ export default {
|
|
|
65
66
|
|
|
66
67
|
[Necessary] Add script for w-plot-vue.
|
|
67
68
|
```alias
|
|
68
|
-
<script src="https://cdn.jsdelivr.net/npm/w-plot-vue@1.0.
|
|
69
|
+
<script src="https://cdn.jsdelivr.net/npm/w-plot-vue@1.0.7/dist/w-plot-vue.umd.js"></script>
|
|
69
70
|
```
|
|
70
71
|
Directly use:
|
|
71
72
|
```alias
|
|
72
73
|
//app and component
|
|
73
74
|
<div id="app">
|
|
74
|
-
<w-plot
|
|
75
|
+
<w-plot-2d
|
|
75
76
|
...
|
|
76
|
-
></w-plot>
|
|
77
|
+
></w-plot-2d>
|
|
77
78
|
</div>
|
|
78
79
|
|
|
79
80
|
//use
|