@orbcharts/presets-basic 3.0.0-alpha.27 → 3.0.0-alpha.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/orbcharts-presets-basic.es.js +15 -3
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/vite.config.d.mts +2 -0
- package/package.json +6 -5
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +3 -0
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +3 -0
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +3 -1
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +3 -1
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +3 -1
- package/{tsconfig.dev.json → tsconfig.base.json} +2 -6
- package/tsconfig.json +5 -10
- package/tsconfig.prod.json +1 -12
- package/vite.config.mjs +42 -0
- package/dist/vite.config.d.ts +0 -2
- package/vite.config.js +0 -45
@@ -447,6 +447,9 @@ const R = {
|
|
447
447
|
allPluginParams: {
|
448
448
|
...e,
|
449
449
|
...t,
|
450
|
+
GroupAux: {
|
451
|
+
labelRotate: -30
|
452
|
+
},
|
450
453
|
GroupAxis: {
|
451
454
|
tickPadding: 15,
|
452
455
|
tickTextRotate: -30
|
@@ -477,6 +480,9 @@ const R = {
|
|
477
480
|
allPluginParams: {
|
478
481
|
...e,
|
479
482
|
...t,
|
483
|
+
GroupAux: {
|
484
|
+
labelRotate: -30
|
485
|
+
},
|
480
486
|
GroupAxis: {
|
481
487
|
tickPadding: 15,
|
482
488
|
tickTextRotate: -30
|
@@ -701,7 +707,9 @@ const R = {
|
|
701
707
|
tickTextRotate: -30
|
702
708
|
},
|
703
709
|
ValueAxis: {},
|
704
|
-
GroupAux: {
|
710
|
+
GroupAux: {
|
711
|
+
labelRotate: -30
|
712
|
+
},
|
705
713
|
GridLegend: {
|
706
714
|
position: "bottom",
|
707
715
|
justify: "center",
|
@@ -740,7 +748,9 @@ const R = {
|
|
740
748
|
tickTextRotate: -30
|
741
749
|
},
|
742
750
|
ValueAxis: {},
|
743
|
-
GroupAux: {
|
751
|
+
GroupAux: {
|
752
|
+
labelRotate: -30
|
753
|
+
},
|
744
754
|
GridLegend: {
|
745
755
|
position: "bottom",
|
746
756
|
justify: "center",
|
@@ -922,7 +932,9 @@ const R = {
|
|
922
932
|
tickTextRotate: -30
|
923
933
|
},
|
924
934
|
ValueAxis: {},
|
925
|
-
GroupAux: {
|
935
|
+
GroupAux: {
|
936
|
+
labelRotate: -30
|
937
|
+
},
|
926
938
|
GridLegend: {
|
927
939
|
position: "bottom",
|
928
940
|
justify: "center",
|
@@ -1 +1 @@
|
|
1
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i["orbcharts-presets-basic"]={}))})(this,function(i){"use strict";const e={Bubbles:{},Pie:{},PieEventTexts:{},PieLabels:{},Rose:{},RoseLabels:{},SeriesLegend:{}},a={Bars:{},BarsPN:{},BarStack:{},BarsTriangle:{},Dots:{},GridLegend:{},GroupAux:{},GroupAxis:{},LineAreas:{},Lines:{},ScalingArea:{},ValueAxis:{},ValueStackAxis:{}},r={MultiBars:{},MultiBarStack:{},MultiBarsTriangle:{},MultiDots:{},MultiGridLegend:{},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{},MultiValueAxis:{},MultiValueStackAxis:{},OverlappingValueAxes:{},OverlappingValueStackAxes:{}},t={Tooltip:{}},E={name:"PRESET_BUBBLES_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的泡泡圖",allPluginParams:{...t,Bubbles:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},n={name:"PRESET_BUBBLES_SEPARATE_SERIES",description:"分開顯示Series泡泡",chartParams:{padding:{top:160,right:160,bottom:160,left:160}},dataFormatter:{separateSeries:!0},allPluginParams:{...t,Bubbles:{},SeriesLegend:{listRectRadius:7}}},o={name:"PRESET_PIE_DONUT",description:"甜甜圈圖",allPluginParams:{...t,Pie:{innerRadius:.5},PieLabels:{},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}},l={name:"PRESET_PIE_HALF_DONUT",description:"半圓甜甜圈圖",chartParams:{padding:{top:120,right:120,bottom:0,left:60}},allPluginParams:{...t,Pie:{innerRadius:.5,startAngle:-Math.PI/2,endAngle:Math.PI/2},PieLabels:{startAngle:-Math.PI/2,endAngle:Math.PI/2},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}},d={name:"PRESET_PIE_WITH_INNER_LABELS",description:"圓餅圖及內部資料標籤",allPluginParams:{...t,Pie:{},PieLabels:{labelCentroid:1.3,labelColorType:"primary"},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}},S={name:"PRESET_ROSE_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的玫瑰圖",allPluginParams:{...t,Rose:{arcScaleType:"radius"},RoseLabels:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},_={name:"PRESET_SERIES_BASIC",description:"基本Series參數",allPluginParams:{...e,...t,SeriesLegend:{listRectRadius:7}}},s={name:"PRESET_SERIES_DESC",description:"資料由大到小排序",dataFormatter:{sort:(Y,K)=>K.value-Y.value},allPluginParams:{...e,...t}};s.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const R={name:"PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",description:"分開顯示Series並合併Series資料",dataFormatter:{separateSeries:!0,sumSeries:!0},allPluginParams:{...e,...t}},g={name:"PRESET_SERIES_SEPARATE_SERIES",description:"分開顯示Series",dataFormatter:{separateSeries:!0},allPluginParams:{...e,...t}},A={name:"PRESET_SERIES_SUM_SERIES",description:"合併Series資料",dataFormatter:{sumSeries:!0},allPluginParams:{...e,...t}},u={name:"PRESET_BARS_HORIZONTAL_AND_ROUND",description:"橫向圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...t,Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectRadius:7}}},P={name:"PRESET_BARS_HORIZONTAL_AND_THIN",description:"橫向細長長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...t,Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14}}},I={name:"PRESET_BARS_ROUND",description:"圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...t,Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectRadius:7}}},T={name:"PRESET_BARS_THIN",description:"細長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...t,Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14}}},c={name:"PRESET_GRID_BASIC",description:"基本Grid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...a,...t,GridLegend:{position:"bottom",justify:"center",padding:14}}},L={name:"PRESET_GRID_HORIZONTAL",description:"橫向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...a,...t,GridLegend:{position:"bottom",justify:"center",padding:14}}},p={name:"PRESET_GRID_PN_SCALE",description:"正負值分向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{grid:{valueAxis:{scaleDomain:["auto","auto"],scaleRange:[.05,.95]}}},allPluginParams:{...a,...t,GridLegend:{position:"bottom",justify:"center",padding:14}}},m={name:"PRESET_GRID_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},allPluginParams:{...a,...t,GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14}}},h={name:"PRESET_GRID_SEPARATE_SERIES",description:"分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{grid:{separateSeries:!0}},allPluginParams:{...a,...t,GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14}}},G={name:"PRESET_LINE_AREAS_BASIC",description:"基本LineArea參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},N={name:"PRESET_LINE_AREAS_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{lineCurve:"curveMonotoneX",lineWidth:3},LineAreas:{lineCurve:"curveMonotoneX"},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},x={name:"PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS",description:"折線圖及Highlight Group圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"group"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{lineWidth:3},LineAreas:{},Dots:{onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},D={name:"PRESET_LINE_AREAS_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left",scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},b={name:"PRESET_LINE_AREAS_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},M={name:"PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},B={name:"PRESET_LINE_AREAS_SEPARATE_SERIES",description:"LineAreas 分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{separateSeries:!0,groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},O={name:"PRESET_LINES_BASIC",description:"基本Lines參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},H={name:"PRESET_LINES_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{lineCurve:"curveMonotoneX",lineWidth:3},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},f={name:"PRESET_LINES_HIGHLIGHT_GROUP_DOTS",description:"折線圖及Highlight Group圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"group"},allPluginParams:{...t,Lines:{},Dots:{onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},U={name:"PRESET_LINES_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},C={name:"PRESET_LINES_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},V={name:"PRESET_LINES_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},y={name:"PRESET_LINES_WITH_SOLID_DOTS",description:"折線圖及實心圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{radius:3,fillColorType:"series",onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},j={name:"PRESET_MULTI_GRID_BASIC",description:"基本MultiGrid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...r,...t,MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{},{listRectHeight:2}]}}},k={name:"PRESET_MULTI_GRID_DIVERGING",description:"雙向折線圖",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{gridList:[{groupAxis:{position:"right"},valueAxis:{position:"bottom"}},{groupAxis:{position:"left"},valueAxis:{position:"bottom"}}],container:{gap:200,rowAmount:1,columnAmount:2},separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickPadding:60,gridIndexes:[0]},MultiValueAxis:{gridIndexes:[0,1]},MultiValueStackAxis:{gridIndexes:[0,1]},MultiBars:{gridIndexes:[0,1]},MultiBarStack:{gridIndexes:[0,1]},MultiBarsTriangle:{gridIndexes:[0,1]},MultiLines:{gridIndexes:[0,1]},MultiLineAreas:{gridIndexes:[0,1]},MultiDots:{gridIndexes:[0,1]},MultiGridLegend:{position:"bottom",justify:"center",padding:14}}},v={name:"PRESET_MULTI_GRID_ROUND_STYLE",description:"MultiGrid圓弧風格",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,MultiBars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},MultiBarStack:{},MultiDots:{},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectRadius:7},{listRectHeight:2}]},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{lineCurve:"curveMonotoneX",lineWidth:3},MultiValueAxis:{},MultiValueStackAxis:{},OverlappingValueAxes:{},OverlappingValueStackAxes:{}}},F={name:"PRESET_MULTI_GRID_SEPARATE_GRID",description:"2組Grid圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14}}},W={name:"PRESET_MULTI_LINE_AREAS_SEPARATE_GRID",description:"2組區域圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{gridList:[{groupAxis:{scalePadding:0}},{groupAxis:{scalePadding:0}}],separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},Z={name:"PRESET_MULTI_LINES_SEPARATE_GRID",description:"多組分開折線圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},X={name:"PRESET_TREE_BASIC",description:"基本Tree參數",chartParams:{padding:{top:40,right:40,bottom:60,left:40}},allPluginParams:{...t,TreeMap:{},TreeLegend:{position:"bottom",justify:"center",padding:14}}};i.PRESET_BARS_HORIZONTAL_AND_ROUND=u,i.PRESET_BARS_HORIZONTAL_AND_THIN=P,i.PRESET_BARS_ROUND=I,i.PRESET_BARS_THIN=T,i.PRESET_BUBBLES_SCALING_BY_RADIUS=E,i.PRESET_BUBBLES_SEPARATE_SERIES=n,i.PRESET_GRID_BASIC=c,i.PRESET_GRID_HORIZONTAL=L,i.PRESET_GRID_PN_SCALE=p,i.PRESET_GRID_ROTATE_AXIS_LABEL=m,i.PRESET_GRID_SEPARATE_SERIES=h,i.PRESET_LINES_BASIC=O,i.PRESET_LINES_CURVE=H,i.PRESET_LINES_HIGHLIGHT_GROUP_DOTS=f,i.PRESET_LINES_HORIZONTAL=U,i.PRESET_LINES_LOOSE_TICKS=C,i.PRESET_LINES_ROTATE_AXIS_LABEL=V,i.PRESET_LINES_WITH_SOLID_DOTS=y,i.PRESET_LINE_AREAS_BASIC=G,i.PRESET_LINE_AREAS_CURVE=N,i.PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS=x,i.PRESET_LINE_AREAS_HORIZONTAL=D,i.PRESET_LINE_AREAS_LOOSE_TICKS=b,i.PRESET_LINE_AREAS_ROTATE_AXIS_LABEL=M,i.PRESET_LINE_AREAS_SEPARATE_SERIES=B,i.PRESET_MULTI_GRID_BASIC=j,i.PRESET_MULTI_GRID_DIVERGING=k,i.PRESET_MULTI_GRID_ROUND_STYLE=v,i.PRESET_MULTI_GRID_SEPARATE_GRID=F,i.PRESET_MULTI_LINES_SEPARATE_GRID=Z,i.PRESET_MULTI_LINE_AREAS_SEPARATE_GRID=W,i.PRESET_PIE_DONUT=o,i.PRESET_PIE_HALF_DONUT=l,i.PRESET_PIE_WITH_INNER_LABELS=d,i.PRESET_ROSE_SCALING_BY_RADIUS=S,i.PRESET_SERIES_BASIC=_,i.PRESET_SERIES_DESC=s,i.PRESET_SERIES_SEPARATE_SERIES=g,i.PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES=R,i.PRESET_SERIES_SUM_SERIES=A,i.PRESET_TREE_BASIC=X,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
1
|
+
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i["orbcharts-presets-basic"]={}))})(this,function(i){"use strict";const e={Bubbles:{},Pie:{},PieEventTexts:{},PieLabels:{},Rose:{},RoseLabels:{},SeriesLegend:{}},a={Bars:{},BarsPN:{},BarStack:{},BarsTriangle:{},Dots:{},GridLegend:{},GroupAux:{},GroupAxis:{},LineAreas:{},Lines:{},ScalingArea:{},ValueAxis:{},ValueStackAxis:{}},r={MultiBars:{},MultiBarStack:{},MultiBarsTriangle:{},MultiDots:{},MultiGridLegend:{},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{},MultiValueAxis:{},MultiValueStackAxis:{},OverlappingValueAxes:{},OverlappingValueStackAxes:{}},t={Tooltip:{}},E={name:"PRESET_BUBBLES_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的泡泡圖",allPluginParams:{...t,Bubbles:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},n={name:"PRESET_BUBBLES_SEPARATE_SERIES",description:"分開顯示Series泡泡",chartParams:{padding:{top:160,right:160,bottom:160,left:160}},dataFormatter:{separateSeries:!0},allPluginParams:{...t,Bubbles:{},SeriesLegend:{listRectRadius:7}}},o={name:"PRESET_PIE_DONUT",description:"甜甜圈圖",allPluginParams:{...t,Pie:{innerRadius:.5},PieLabels:{},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}},l={name:"PRESET_PIE_HALF_DONUT",description:"半圓甜甜圈圖",chartParams:{padding:{top:120,right:120,bottom:0,left:60}},allPluginParams:{...t,Pie:{innerRadius:.5,startAngle:-Math.PI/2,endAngle:Math.PI/2},PieLabels:{startAngle:-Math.PI/2,endAngle:Math.PI/2},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}},d={name:"PRESET_PIE_WITH_INNER_LABELS",description:"圓餅圖及內部資料標籤",allPluginParams:{...t,Pie:{},PieLabels:{labelCentroid:1.3,labelColorType:"primary"},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}},S={name:"PRESET_ROSE_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的玫瑰圖",allPluginParams:{...t,Rose:{arcScaleType:"radius"},RoseLabels:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},_={name:"PRESET_SERIES_BASIC",description:"基本Series參數",allPluginParams:{...e,...t,SeriesLegend:{listRectRadius:7}}},s={name:"PRESET_SERIES_DESC",description:"資料由大到小排序",dataFormatter:{sort:(Y,K)=>K.value-Y.value},allPluginParams:{...e,...t}};s.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const R={name:"PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",description:"分開顯示Series並合併Series資料",dataFormatter:{separateSeries:!0,sumSeries:!0},allPluginParams:{...e,...t}},g={name:"PRESET_SERIES_SEPARATE_SERIES",description:"分開顯示Series",dataFormatter:{separateSeries:!0},allPluginParams:{...e,...t}},A={name:"PRESET_SERIES_SUM_SERIES",description:"合併Series資料",dataFormatter:{sumSeries:!0},allPluginParams:{...e,...t}},u={name:"PRESET_BARS_HORIZONTAL_AND_ROUND",description:"橫向圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...t,Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectRadius:7}}},P={name:"PRESET_BARS_HORIZONTAL_AND_THIN",description:"橫向細長長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...t,Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14}}},I={name:"PRESET_BARS_ROUND",description:"圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...t,Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectRadius:7}}},T={name:"PRESET_BARS_THIN",description:"細長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...t,Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14}}},c={name:"PRESET_GRID_BASIC",description:"基本Grid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{...a,...t,GridLegend:{position:"bottom",justify:"center",padding:14}}},p={name:"PRESET_GRID_HORIZONTAL",description:"橫向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...a,...t,GridLegend:{position:"bottom",justify:"center",padding:14}}},L={name:"PRESET_GRID_PN_SCALE",description:"正負值分向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{grid:{valueAxis:{scaleDomain:["auto","auto"],scaleRange:[.05,.95]}}},allPluginParams:{...a,...t,GridLegend:{position:"bottom",justify:"center",padding:14}}},m={name:"PRESET_GRID_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},allPluginParams:{...a,...t,GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14}}},h={name:"PRESET_GRID_SEPARATE_SERIES",description:"分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{grid:{separateSeries:!0}},allPluginParams:{...a,...t,GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14}}},G={name:"PRESET_LINE_AREAS_BASIC",description:"基本LineArea參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},N={name:"PRESET_LINE_AREAS_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{lineCurve:"curveMonotoneX",lineWidth:3},LineAreas:{lineCurve:"curveMonotoneX"},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},x={name:"PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS",description:"折線圖及Highlight Group圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"group"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{lineWidth:3},LineAreas:{},Dots:{onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},b={name:"PRESET_LINE_AREAS_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left",scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},D={name:"PRESET_LINE_AREAS_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},M={name:"PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},B={name:"PRESET_LINE_AREAS_SEPARATE_SERIES",description:"LineAreas 分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{separateSeries:!0,groupAxis:{scalePadding:0}}},allPluginParams:{...t,Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},O={name:"PRESET_LINES_BASIC",description:"基本Lines參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},H={name:"PRESET_LINES_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{lineCurve:"curveMonotoneX",lineWidth:3},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},f={name:"PRESET_LINES_HIGHLIGHT_GROUP_DOTS",description:"折線圖及Highlight Group圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"group"},allPluginParams:{...t,Lines:{},Dots:{onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},U={name:"PRESET_LINES_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},C={name:"PRESET_LINES_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},V={name:"PRESET_LINES_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},y={name:"PRESET_LINES_WITH_SOLID_DOTS",description:"折線圖及實心圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,Lines:{},Dots:{radius:3,fillColorType:"series",onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{position:"bottom",justify:"center",padding:14,listRectHeight:2}}},j={name:"PRESET_MULTI_GRID_BASIC",description:"基本MultiGrid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...r,...t,MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{},{listRectHeight:2}]}}},k={name:"PRESET_MULTI_GRID_DIVERGING",description:"雙向折線圖",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{gridList:[{groupAxis:{position:"right"},valueAxis:{position:"bottom"}},{groupAxis:{position:"left"},valueAxis:{position:"bottom"}}],container:{gap:200,rowAmount:1,columnAmount:2},separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickPadding:60,gridIndexes:[0]},MultiValueAxis:{gridIndexes:[0,1]},MultiValueStackAxis:{gridIndexes:[0,1]},MultiBars:{gridIndexes:[0,1]},MultiBarStack:{gridIndexes:[0,1]},MultiBarsTriangle:{gridIndexes:[0,1]},MultiLines:{gridIndexes:[0,1]},MultiLineAreas:{gridIndexes:[0,1]},MultiDots:{gridIndexes:[0,1]},MultiGridLegend:{position:"bottom",justify:"center",padding:14}}},v={name:"PRESET_MULTI_GRID_ROUND_STYLE",description:"MultiGrid圓弧風格",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{...t,MultiBars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},MultiBarStack:{},MultiDots:{},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectRadius:7},{listRectHeight:2}]},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{lineCurve:"curveMonotoneX",lineWidth:3},MultiValueAxis:{},MultiValueStackAxis:{},OverlappingValueAxes:{},OverlappingValueStackAxes:{}}},F={name:"PRESET_MULTI_GRID_SEPARATE_GRID",description:"2組Grid圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14}}},W={name:"PRESET_MULTI_LINE_AREAS_SEPARATE_GRID",description:"2組區域圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{gridList:[{groupAxis:{scalePadding:0}},{groupAxis:{scalePadding:0}}],separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},Z={name:"PRESET_MULTI_LINES_SEPARATE_GRID",description:"多組分開折線圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...t,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{position:"bottom",justify:"center",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},X={name:"PRESET_TREE_BASIC",description:"基本Tree參數",chartParams:{padding:{top:40,right:40,bottom:60,left:40}},allPluginParams:{...t,TreeMap:{},TreeLegend:{position:"bottom",justify:"center",padding:14}}};i.PRESET_BARS_HORIZONTAL_AND_ROUND=u,i.PRESET_BARS_HORIZONTAL_AND_THIN=P,i.PRESET_BARS_ROUND=I,i.PRESET_BARS_THIN=T,i.PRESET_BUBBLES_SCALING_BY_RADIUS=E,i.PRESET_BUBBLES_SEPARATE_SERIES=n,i.PRESET_GRID_BASIC=c,i.PRESET_GRID_HORIZONTAL=p,i.PRESET_GRID_PN_SCALE=L,i.PRESET_GRID_ROTATE_AXIS_LABEL=m,i.PRESET_GRID_SEPARATE_SERIES=h,i.PRESET_LINES_BASIC=O,i.PRESET_LINES_CURVE=H,i.PRESET_LINES_HIGHLIGHT_GROUP_DOTS=f,i.PRESET_LINES_HORIZONTAL=U,i.PRESET_LINES_LOOSE_TICKS=C,i.PRESET_LINES_ROTATE_AXIS_LABEL=V,i.PRESET_LINES_WITH_SOLID_DOTS=y,i.PRESET_LINE_AREAS_BASIC=G,i.PRESET_LINE_AREAS_CURVE=N,i.PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS=x,i.PRESET_LINE_AREAS_HORIZONTAL=b,i.PRESET_LINE_AREAS_LOOSE_TICKS=D,i.PRESET_LINE_AREAS_ROTATE_AXIS_LABEL=M,i.PRESET_LINE_AREAS_SEPARATE_SERIES=B,i.PRESET_MULTI_GRID_BASIC=j,i.PRESET_MULTI_GRID_DIVERGING=k,i.PRESET_MULTI_GRID_ROUND_STYLE=v,i.PRESET_MULTI_GRID_SEPARATE_GRID=F,i.PRESET_MULTI_LINES_SEPARATE_GRID=Z,i.PRESET_MULTI_LINE_AREAS_SEPARATE_GRID=W,i.PRESET_PIE_DONUT=o,i.PRESET_PIE_HALF_DONUT=l,i.PRESET_PIE_WITH_INNER_LABELS=d,i.PRESET_ROSE_SCALING_BY_RADIUS=S,i.PRESET_SERIES_BASIC=_,i.PRESET_SERIES_DESC=s,i.PRESET_SERIES_SEPARATE_SERIES=g,i.PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES=R,i.PRESET_SERIES_SUM_SERIES=A,i.PRESET_TREE_BASIC=X,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orbcharts/presets-basic",
|
3
|
-
"version": "3.0.0-alpha.
|
3
|
+
"version": "3.0.0-alpha.29",
|
4
4
|
"description": "presets for OrbCharts",
|
5
5
|
"author": "Blue Planet Inc.",
|
6
6
|
"license": "Apache-2.0",
|
@@ -25,18 +25,19 @@
|
|
25
25
|
"types": "./dist/src/index.d.ts",
|
26
26
|
"scripts": {
|
27
27
|
"test": "echo \"Error: no test specified\" && exit 1",
|
28
|
-
"build": "vite build --mode
|
28
|
+
"build": "vite build --mode production"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"@types/d3": "^7.4.0",
|
32
32
|
"ts-loader": "^9.4.2",
|
33
33
|
"typescript": "^5.0.4",
|
34
34
|
"vite": "^5.3.5",
|
35
|
-
"vite-plugin-dts": "^3.7.3"
|
35
|
+
"vite-plugin-dts": "^3.7.3",
|
36
|
+
"vite-plugin-tsconfig": "^1.0.5"
|
36
37
|
},
|
37
38
|
"dependencies": {
|
38
|
-
"@orbcharts/core": "^3.0.0-alpha.
|
39
|
-
"@orbcharts/plugins-basic": "^3.0.0-alpha.
|
39
|
+
"@orbcharts/core": "^3.0.0-alpha.54",
|
40
|
+
"@orbcharts/plugins-basic": "^3.0.0-alpha.58",
|
40
41
|
"d3": "^7.8.5",
|
41
42
|
"rxjs": "^7.8.1"
|
42
43
|
}
|
@@ -17,6 +17,9 @@ export const PRESET_GRID_ROTATE_AXIS_LABEL: PresetPartial<'grid', PresetGridPlug
|
|
17
17
|
allPluginParams: {
|
18
18
|
...ALL_PLUGIN_PARAMS_GRID,
|
19
19
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
20
|
+
GroupAux: {
|
21
|
+
labelRotate: -30
|
22
|
+
},
|
20
23
|
GroupAxis: {
|
21
24
|
tickPadding: 15,
|
22
25
|
tickTextRotate: -30
|
@@ -22,6 +22,9 @@ export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', PresetGridPlugin
|
|
22
22
|
allPluginParams: {
|
23
23
|
...ALL_PLUGIN_PARAMS_GRID,
|
24
24
|
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
25
|
+
GroupAux: {
|
26
|
+
labelRotate: -30
|
27
|
+
},
|
25
28
|
GroupAxis: {
|
26
29
|
tickPadding: 15,
|
27
30
|
tickTextRotate: -30
|
@@ -3,16 +3,12 @@
|
|
3
3
|
"outDir": "./dist/",
|
4
4
|
"sourceMap": true,
|
5
5
|
"noImplicitAny": true,
|
6
|
-
"module": "
|
6
|
+
"module": "esnext",
|
7
7
|
"target": "es5",
|
8
8
|
"jsx": "react",
|
9
9
|
"allowJs": true,
|
10
10
|
"moduleResolution": "node",
|
11
11
|
"allowSyntheticDefaultImports" : true,
|
12
|
-
"esModuleInterop" : true
|
13
|
-
"paths":{
|
14
|
-
"@orbcharts/core": ["./../orbcharts-core/src"],
|
15
|
-
"@orbcharts/plugins-basic": ["./../orbcharts-plugins-basic/src"]
|
16
|
-
}
|
12
|
+
"esModuleInterop" : true
|
17
13
|
}
|
18
14
|
}
|
package/tsconfig.json
CHANGED
@@ -1,14 +1,9 @@
|
|
1
1
|
{
|
2
|
+
"extends": "./tsconfig.base.json",
|
2
3
|
"compilerOptions": {
|
3
|
-
"
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
"target": "es5",
|
8
|
-
"jsx": "react",
|
9
|
-
"allowJs": true,
|
10
|
-
"moduleResolution": "node",
|
11
|
-
"allowSyntheticDefaultImports" : true,
|
12
|
-
"esModuleInterop" : true
|
4
|
+
"paths":{
|
5
|
+
"@orbcharts/core": ["./../orbcharts-core/src"],
|
6
|
+
"@orbcharts/plugins-basic": ["./../orbcharts-plugins-basic/src"]
|
7
|
+
}
|
13
8
|
}
|
14
9
|
}
|
package/tsconfig.prod.json
CHANGED
@@ -1,14 +1,3 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
"outDir": "./dist/",
|
4
|
-
"sourceMap": true,
|
5
|
-
"noImplicitAny": true,
|
6
|
-
"module": "es6",
|
7
|
-
"target": "es5",
|
8
|
-
"jsx": "react",
|
9
|
-
"allowJs": true,
|
10
|
-
"moduleResolution": "node",
|
11
|
-
"allowSyntheticDefaultImports" : true,
|
12
|
-
"esModuleInterop" : true
|
13
|
-
}
|
2
|
+
"extends": "./tsconfig.base.json"
|
14
3
|
}
|
package/vite.config.mjs
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
import path from "path"
|
2
|
+
import { defineConfig } from 'vite'
|
3
|
+
import dts from 'vite-plugin-dts'
|
4
|
+
import tsconfig from 'vite-plugin-tsconfig'
|
5
|
+
|
6
|
+
export default defineConfig(({ command, mode }) => {
|
7
|
+
const alias = mode === 'production'
|
8
|
+
? {}
|
9
|
+
: {
|
10
|
+
"@orbcharts/core": path.resolve(__dirname, "./../orbcharts-core"),
|
11
|
+
"@orbcharts/plugins-basic": path.resolve(__dirname, "./../orbcharts-plugins-basic")
|
12
|
+
}
|
13
|
+
|
14
|
+
const tsconfigPath = mode === 'production'
|
15
|
+
? 'tsconfig.prod.json'
|
16
|
+
: 'tsconfig.json'
|
17
|
+
|
18
|
+
return {
|
19
|
+
plugins: [
|
20
|
+
tsconfig({
|
21
|
+
filename: tsconfigPath
|
22
|
+
}),
|
23
|
+
dts({
|
24
|
+
insertTypesEntry: true
|
25
|
+
})
|
26
|
+
],
|
27
|
+
resolve: {
|
28
|
+
alias
|
29
|
+
},
|
30
|
+
compilerOptions: {
|
31
|
+
composite: true
|
32
|
+
},
|
33
|
+
build: {
|
34
|
+
lib: {
|
35
|
+
entry: "src/index.ts",
|
36
|
+
name: 'orbcharts-presets-basic',
|
37
|
+
formats: ["es", "umd"],
|
38
|
+
fileName: format => `orbcharts-presets-basic.${format}.js`
|
39
|
+
},
|
40
|
+
}
|
41
|
+
}
|
42
|
+
})
|
package/dist/vite.config.d.ts
DELETED
package/vite.config.js
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
// import { fileURLToPath, URL } from 'node:url'
|
2
|
-
|
3
|
-
// import { resolve } from 'path'
|
4
|
-
import { defineConfig } from 'vite'
|
5
|
-
import dts from 'vite-plugin-dts'
|
6
|
-
|
7
|
-
const releaseConfig = {
|
8
|
-
plugins: [
|
9
|
-
dts({
|
10
|
-
insertTypesEntry: true
|
11
|
-
})
|
12
|
-
],
|
13
|
-
compilerOptions: {
|
14
|
-
composite: true
|
15
|
-
},
|
16
|
-
build: {
|
17
|
-
lib: {
|
18
|
-
entry: "src/index.ts",
|
19
|
-
name: 'orbcharts-presets-basic',
|
20
|
-
formats: ["es", "umd"],
|
21
|
-
fileName: format => `orbcharts-presets-basic.${format}.js`
|
22
|
-
},
|
23
|
-
// rollupOptions: {
|
24
|
-
// input: {
|
25
|
-
// main: resolve(__dirname, "src/index.ts")
|
26
|
-
// },
|
27
|
-
// external: ['vue'],
|
28
|
-
// output: {
|
29
|
-
// assetFileNames: 'my-library.css',
|
30
|
-
// exports: "named",
|
31
|
-
// globals: {
|
32
|
-
// vue: 'Vue',
|
33
|
-
// },
|
34
|
-
// },
|
35
|
-
// },
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
export default defineConfig(({ command, mode }) => {
|
40
|
-
if (mode === 'release') {
|
41
|
-
return releaseConfig
|
42
|
-
} else {
|
43
|
-
return releaseConfig
|
44
|
-
}
|
45
|
-
})
|