@orbcharts/presets-basic 3.0.0-beta.6 → 3.0.0-beta.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/dist/orbcharts-presets-basic.es.js +143 -53
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/params.d.ts +2 -1
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.d.ts +4 -0
- package/dist/src/relationship/index.d.ts +4 -0
- package/dist/src/types.d.ts +5 -2
- package/package.json +2 -2
- package/src/params.ts +9 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +23 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +28 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +30 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +25 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +4 -4
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +4 -4
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +1 -1
- package/src/relationship/index.ts +4 -0
- package/src/types.ts +6 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const g = {
|
2
2
|
name: "PRESET_BUBBLES_SCALING_BY_RADIUS",
|
3
3
|
description: "以半徑尺寸為比例的泡泡圖",
|
4
4
|
allPluginParams: {
|
@@ -11,7 +11,7 @@ const R = {
|
|
11
11
|
// 圓型圖例列點
|
12
12
|
}
|
13
13
|
}
|
14
|
-
},
|
14
|
+
}, _ = {
|
15
15
|
name: "PRESET_BUBBLES_SEPARATE_SERIES",
|
16
16
|
description: "分開顯示Series泡泡",
|
17
17
|
chartParams: {
|
@@ -162,7 +162,7 @@ const n = {
|
|
162
162
|
}
|
163
163
|
};
|
164
164
|
n.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
165
|
-
const
|
165
|
+
const S = {
|
166
166
|
name: "PRESET_SERIES_BASIC",
|
167
167
|
description: "基本Series參數",
|
168
168
|
allPluginParams: {
|
@@ -200,7 +200,7 @@ const E = {
|
|
200
200
|
}
|
201
201
|
};
|
202
202
|
E.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
203
|
-
const
|
203
|
+
const R = {
|
204
204
|
name: "PRESET_SERIES_SUM_SERIES",
|
205
205
|
description: "合併Series資料",
|
206
206
|
dataFormatter: {
|
@@ -212,8 +212,8 @@ const g = {
|
|
212
212
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
213
213
|
}
|
214
214
|
};
|
215
|
-
|
216
|
-
const
|
215
|
+
R.dataFormatter.sort.toString = () => "(a, b) => b.value - a.value";
|
216
|
+
const u = {
|
217
217
|
name: "PRESET_BARS_HORIZONTAL_AND_ROUND",
|
218
218
|
description: "橫向圓角長條圖",
|
219
219
|
chartParams: {
|
@@ -304,7 +304,7 @@ const _ = {
|
|
304
304
|
padding: 14
|
305
305
|
}
|
306
306
|
}
|
307
|
-
},
|
307
|
+
}, c = {
|
308
308
|
name: "PRESET_BARS_ROUND",
|
309
309
|
description: "圓角長條圖",
|
310
310
|
chartParams: {
|
@@ -335,7 +335,7 @@ const _ = {
|
|
335
335
|
listRectRadius: 7
|
336
336
|
}
|
337
337
|
}
|
338
|
-
},
|
338
|
+
}, p = {
|
339
339
|
name: "PRESET_BARS_THIN",
|
340
340
|
description: "細長條圖",
|
341
341
|
chartParams: {
|
@@ -549,7 +549,7 @@ const _ = {
|
|
549
549
|
listRectHeight: 2
|
550
550
|
}
|
551
551
|
}
|
552
|
-
},
|
552
|
+
}, b = {
|
553
553
|
name: "PRESET_LINE_AREAS_CURVE",
|
554
554
|
description: "弧線折線圖",
|
555
555
|
chartParams: {
|
@@ -589,7 +589,7 @@ const _ = {
|
|
589
589
|
listRectHeight: 2
|
590
590
|
}
|
591
591
|
}
|
592
|
-
},
|
592
|
+
}, x = {
|
593
593
|
name: "PRESET_LINE_AREAS_HORIZONTAL",
|
594
594
|
description: "橫向折線圖",
|
595
595
|
chartParams: {
|
@@ -628,7 +628,7 @@ const _ = {
|
|
628
628
|
listRectHeight: 2
|
629
629
|
}
|
630
630
|
}
|
631
|
-
},
|
631
|
+
}, B = {
|
632
632
|
name: "PRESET_LINE_AREAS_LOOSE_TICKS",
|
633
633
|
description: "寬鬆標籤",
|
634
634
|
chartParams: {
|
@@ -705,7 +705,7 @@ const _ = {
|
|
705
705
|
listRectHeight: 2
|
706
706
|
}
|
707
707
|
}
|
708
|
-
},
|
708
|
+
}, G = {
|
709
709
|
name: "PRESET_LINE_AREAS_SEPARATE_SERIES",
|
710
710
|
description: "LineAreas 分開顯示Series",
|
711
711
|
chartParams: {
|
@@ -747,7 +747,7 @@ const _ = {
|
|
747
747
|
listRectHeight: 2
|
748
748
|
}
|
749
749
|
}
|
750
|
-
},
|
750
|
+
}, O = {
|
751
751
|
name: "PRESET_LINES_BASIC",
|
752
752
|
description: "基本Lines參數",
|
753
753
|
chartParams: {
|
@@ -774,7 +774,7 @@ const _ = {
|
|
774
774
|
listRectHeight: 2
|
775
775
|
}
|
776
776
|
}
|
777
|
-
},
|
777
|
+
}, M = {
|
778
778
|
name: "PRESET_LINES_CURVE",
|
779
779
|
description: "弧線折線圖",
|
780
780
|
chartParams: {
|
@@ -804,7 +804,7 @@ const _ = {
|
|
804
804
|
listRectHeight: 2
|
805
805
|
}
|
806
806
|
}
|
807
|
-
},
|
807
|
+
}, N = {
|
808
808
|
name: "PRESET_LINES_HORIZONTAL",
|
809
809
|
description: "橫向折線圖",
|
810
810
|
chartParams: {
|
@@ -908,7 +908,7 @@ const _ = {
|
|
908
908
|
listRectHeight: 2
|
909
909
|
}
|
910
910
|
}
|
911
|
-
},
|
911
|
+
}, U = {
|
912
912
|
name: "PRESET_LINES_WITH_SOLID_DOTS",
|
913
913
|
description: "折線圖及實心圓點",
|
914
914
|
chartParams: {
|
@@ -939,7 +939,7 @@ const _ = {
|
|
939
939
|
listRectHeight: 2
|
940
940
|
}
|
941
941
|
}
|
942
|
-
},
|
942
|
+
}, v = {
|
943
943
|
name: "PRESET_MULTI_GRID_BASIC",
|
944
944
|
description: "基本MultiGrid參數",
|
945
945
|
chartParams: {
|
@@ -1047,7 +1047,7 @@ const _ = {
|
|
1047
1047
|
padding: 14
|
1048
1048
|
}
|
1049
1049
|
}
|
1050
|
-
},
|
1050
|
+
}, f = {
|
1051
1051
|
name: "PRESET_MULTI_GRID_ROUND_STYLE",
|
1052
1052
|
description: "MultiGrid圓弧風格",
|
1053
1053
|
chartParams: {
|
@@ -1094,7 +1094,7 @@ const _ = {
|
|
1094
1094
|
OverlappingValueAxes: {},
|
1095
1095
|
OverlappingStackedValueAxes: {}
|
1096
1096
|
}
|
1097
|
-
},
|
1097
|
+
}, V = {
|
1098
1098
|
name: "PRESET_MULTI_GRID_SEPARATE_GRID",
|
1099
1099
|
description: "2組Grid圖表",
|
1100
1100
|
chartParams: {
|
@@ -1414,9 +1414,95 @@ const _ = {
|
|
1414
1414
|
// 圓型圖例列點
|
1415
1415
|
}
|
1416
1416
|
}
|
1417
|
+
}, z = {
|
1418
|
+
name: "PRESET_FORCE_DIRECTED_BUBBLES_BASIC",
|
1419
|
+
description: "基本Force Directed Bubbles參數",
|
1420
|
+
// chartParams: {
|
1421
|
+
// padding: {
|
1422
|
+
// top: 40,
|
1423
|
+
// right: 40,
|
1424
|
+
// bottom: 60,
|
1425
|
+
// left: 40
|
1426
|
+
// },
|
1427
|
+
// },
|
1428
|
+
allPluginParams: {
|
1429
|
+
ForceDirectedBubbles: {},
|
1430
|
+
RelationshipLegend: {
|
1431
|
+
listRectRadius: 7
|
1432
|
+
// 圓型圖例列點
|
1433
|
+
}
|
1434
|
+
}
|
1417
1435
|
}, K = {
|
1436
|
+
name: "PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH",
|
1437
|
+
description: "Force Directed Bubbles固定箭頭寬度",
|
1438
|
+
// chartParams: {
|
1439
|
+
// padding: {
|
1440
|
+
// top: 40,
|
1441
|
+
// right: 40,
|
1442
|
+
// bottom: 60,
|
1443
|
+
// left: 40
|
1444
|
+
// },
|
1445
|
+
// },
|
1446
|
+
allPluginParams: {
|
1447
|
+
ForceDirectedBubbles: {
|
1448
|
+
arrow: {
|
1449
|
+
strokeWidthMin: 1.5,
|
1450
|
+
strokeWidthMax: 1.5
|
1451
|
+
}
|
1452
|
+
},
|
1453
|
+
RelationshipLegend: {
|
1454
|
+
listRectRadius: 7
|
1455
|
+
// 圓型圖例列點
|
1456
|
+
}
|
1457
|
+
}
|
1458
|
+
}, j = {
|
1459
|
+
name: "PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW",
|
1460
|
+
description: "Force Directed Bubbles沒有箭頭",
|
1461
|
+
// chartParams: {
|
1462
|
+
// padding: {
|
1463
|
+
// top: 40,
|
1464
|
+
// right: 40,
|
1465
|
+
// bottom: 60,
|
1466
|
+
// left: 40
|
1467
|
+
// },
|
1468
|
+
// },
|
1469
|
+
allPluginParams: {
|
1470
|
+
ForceDirectedBubbles: {
|
1471
|
+
arrow: {
|
1472
|
+
pointerWidth: 0,
|
1473
|
+
pointerHeight: 0,
|
1474
|
+
strokeWidthMin: 1.5,
|
1475
|
+
strokeWidthMax: 9
|
1476
|
+
}
|
1477
|
+
},
|
1478
|
+
RelationshipLegend: {
|
1479
|
+
listRectRadius: 7
|
1480
|
+
// 圓型圖例列點
|
1481
|
+
}
|
1482
|
+
}
|
1483
|
+
}, q = {
|
1484
|
+
name: "PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM",
|
1485
|
+
description: "Force Directed Bubbles無滑鼠托曳及縮放控制",
|
1486
|
+
// chartParams: {
|
1487
|
+
// padding: {
|
1488
|
+
// top: 40,
|
1489
|
+
// right: 40,
|
1490
|
+
// bottom: 60,
|
1491
|
+
// left: 40
|
1492
|
+
// },
|
1493
|
+
// },
|
1494
|
+
allPluginParams: {
|
1495
|
+
ForceDirectedBubbles: {
|
1496
|
+
zoomable: !1
|
1497
|
+
},
|
1498
|
+
RelationshipLegend: {
|
1499
|
+
listRectRadius: 7
|
1500
|
+
// 圓型圖例列點
|
1501
|
+
}
|
1502
|
+
}
|
1503
|
+
}, J = {
|
1418
1504
|
name: "PRESET_FORCE_DIRECTED_NONE_ZOOM",
|
1419
|
-
description: "
|
1505
|
+
description: "Force Directed無滑鼠托曳及縮放控制",
|
1420
1506
|
// chartParams: {
|
1421
1507
|
// padding: {
|
1422
1508
|
// top: 40,
|
@@ -1434,7 +1520,7 @@ const _ = {
|
|
1434
1520
|
// 圓型圖例列點
|
1435
1521
|
}
|
1436
1522
|
}
|
1437
|
-
},
|
1523
|
+
}, Q = {
|
1438
1524
|
name: "PRESET_FORCE_DIRECTED_FIX_FONT_SIZE",
|
1439
1525
|
description: "基本Force Directed參數",
|
1440
1526
|
// chartParams: {
|
@@ -1447,11 +1533,11 @@ const _ = {
|
|
1447
1533
|
// },
|
1448
1534
|
allPluginParams: {
|
1449
1535
|
ForceDirected: {
|
1450
|
-
|
1451
|
-
|
1536
|
+
dotLabel: {
|
1537
|
+
sizeFixed: !0
|
1452
1538
|
},
|
1453
|
-
|
1454
|
-
|
1539
|
+
arrowLabel: {
|
1540
|
+
sizeFixed: !0
|
1455
1541
|
}
|
1456
1542
|
},
|
1457
1543
|
RelationshipLegend: {
|
@@ -1459,9 +1545,9 @@ const _ = {
|
|
1459
1545
|
// 圓型圖例列點
|
1460
1546
|
}
|
1461
1547
|
}
|
1462
|
-
},
|
1548
|
+
}, $ = {
|
1463
1549
|
name: "PRESET_FORCE_DIRECTED_NONE_ARROW",
|
1464
|
-
description: "
|
1550
|
+
description: "Force Directed沒有箭頭",
|
1465
1551
|
// chartParams: {
|
1466
1552
|
// padding: {
|
1467
1553
|
// top: 40,
|
@@ -1472,9 +1558,9 @@ const _ = {
|
|
1472
1558
|
// },
|
1473
1559
|
allPluginParams: {
|
1474
1560
|
ForceDirected: {
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1561
|
+
arrow: {
|
1562
|
+
pointerWidth: 0,
|
1563
|
+
pointerHeight: 0
|
1478
1564
|
}
|
1479
1565
|
},
|
1480
1566
|
RelationshipLegend: {
|
@@ -1482,7 +1568,7 @@ const _ = {
|
|
1482
1568
|
// 圓型圖例列點
|
1483
1569
|
}
|
1484
1570
|
}
|
1485
|
-
},
|
1571
|
+
}, tt = {
|
1486
1572
|
name: "PRESET_TREE_MAP_BASIC",
|
1487
1573
|
description: "基本Tree Map參數",
|
1488
1574
|
chartParams: {
|
@@ -1505,37 +1591,41 @@ const _ = {
|
|
1505
1591
|
}
|
1506
1592
|
};
|
1507
1593
|
export {
|
1508
|
-
|
1594
|
+
u as PRESET_BARS_HORIZONTAL_AND_ROUND,
|
1509
1595
|
P as PRESET_BARS_HORIZONTAL_AND_THIN,
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1596
|
+
c as PRESET_BARS_ROUND,
|
1597
|
+
p as PRESET_BARS_THIN,
|
1598
|
+
g as PRESET_BUBBLES_SCALING_BY_RADIUS,
|
1599
|
+
_ as PRESET_BUBBLES_SEPARATE_SERIES,
|
1514
1600
|
w as PRESET_FORCE_DIRECTED_BASIC,
|
1515
|
-
z as
|
1516
|
-
|
1517
|
-
|
1601
|
+
z as PRESET_FORCE_DIRECTED_BUBBLES_BASIC,
|
1602
|
+
K as PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH,
|
1603
|
+
j as PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW,
|
1604
|
+
q as PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM,
|
1605
|
+
Q as PRESET_FORCE_DIRECTED_FIX_FONT_SIZE,
|
1606
|
+
$ as PRESET_FORCE_DIRECTED_NONE_ARROW,
|
1607
|
+
J as PRESET_FORCE_DIRECTED_NONE_ZOOM,
|
1518
1608
|
m as PRESET_GRID_BASIC,
|
1519
1609
|
A as PRESET_GRID_HORIZONTAL,
|
1520
1610
|
T as PRESET_GRID_PN_SCALE,
|
1521
1611
|
I as PRESET_GRID_ROTATE_AXIS_LABEL,
|
1522
1612
|
L as PRESET_GRID_SEPARATE_SERIES,
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1613
|
+
O as PRESET_LINES_BASIC,
|
1614
|
+
M as PRESET_LINES_CURVE,
|
1615
|
+
N as PRESET_LINES_HORIZONTAL,
|
1526
1616
|
C as PRESET_LINES_LOOSE_TICKS,
|
1527
1617
|
F as PRESET_LINES_ROTATE_AXIS_LABEL,
|
1528
|
-
|
1618
|
+
U as PRESET_LINES_WITH_SOLID_DOTS,
|
1529
1619
|
h as PRESET_LINE_AREAS_BASIC,
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1620
|
+
b as PRESET_LINE_AREAS_CURVE,
|
1621
|
+
x as PRESET_LINE_AREAS_HORIZONTAL,
|
1622
|
+
B as PRESET_LINE_AREAS_LOOSE_TICKS,
|
1533
1623
|
D as PRESET_LINE_AREAS_ROTATE_AXIS_LABEL,
|
1534
|
-
|
1535
|
-
|
1624
|
+
G as PRESET_LINE_AREAS_SEPARATE_SERIES,
|
1625
|
+
v as PRESET_MULTI_GRID_BASIC,
|
1536
1626
|
H as PRESET_MULTI_GRID_DIVERGING,
|
1537
|
-
|
1538
|
-
|
1627
|
+
f as PRESET_MULTI_GRID_ROUND_STYLE,
|
1628
|
+
V as PRESET_MULTI_GRID_SEPARATE_GRID,
|
1539
1629
|
W as PRESET_MULTI_LINES_SEPARATE_GRID,
|
1540
1630
|
k as PRESET_MULTI_LINE_AREAS_SEPARATE_GRID,
|
1541
1631
|
Z as PRESET_MULTI_VALUE_BASIC,
|
@@ -1548,9 +1638,9 @@ export {
|
|
1548
1638
|
n as PRESET_ROSE_SCALING_BY_RADIUS,
|
1549
1639
|
y as PRESET_SCATTER_BUBBLES_LINEAR_OPACITY,
|
1550
1640
|
Y as PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS,
|
1551
|
-
|
1641
|
+
S as PRESET_SERIES_BASIC,
|
1552
1642
|
E as PRESET_SERIES_SEPARATE_SERIES,
|
1553
1643
|
d as PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES,
|
1554
|
-
|
1555
|
-
|
1644
|
+
R as PRESET_SERIES_SUM_SERIES,
|
1645
|
+
tt as PRESET_TREE_MAP_BASIC
|
1556
1646
|
};
|
@@ -1 +1 @@
|
|
1
|
-
(function(t,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(t=typeof globalThis<"u"?globalThis:t||self,i(t["orbcharts-presets-basic"]={}))})(this,function(t){"use strict";const i={name:"PRESET_BUBBLES_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的泡泡圖",allPluginParams:{Bubbles:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},g={name:"PRESET_BUBBLES_SEPARATE_SERIES",description:"分開顯示Series泡泡",chartParams:{padding:{top:160,right:160,bottom:160,left:160}},dataFormatter:{separateSeries:!0},allPluginParams:{Bubbles:{},SeriesLegend:{listRectRadius:7},SeriesTooltip:{}}},E={name:"PRESET_PIE_BASIC",description:"基本Pie參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{SeriesLegend:{listRectRadius:7}}};E.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const r={name:"PRESET_PIE_DONUT",description:"甜甜圈圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{innerRadius:.5},PieLabels:{},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};r.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const l={name:"PRESET_PIE_HALF_DONUT",description:"半圓甜甜圈圖",chartParams:{padding:{top:120,right:120,bottom:0,left:60}},dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{innerRadius:.5,startAngle:-Math.PI/2,endAngle:Math.PI/2},PieLabels:{startAngle:-Math.PI/2,endAngle:Math.PI/2},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};l.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const s={name:"PRESET_PIE_WITH_INNER_LABELS",description:"圓餅圖及內部資料標籤",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{},PieLabels:{labelCentroid:1.3,labelColorType:"primary"},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};s.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const n={name:"PRESET_ROSE_BASIC",description:"基本Rose參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{SeriesLegend:{listRectRadius:7}}};n.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const d={name:"PRESET_ROSE_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的玫瑰圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Rose:{arcScaleType:"radius"},RoseLabels:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}};d.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const P={name:"PRESET_SERIES_BASIC",description:"基本Series參數",allPluginParams:{SeriesLegend:{listRectRadius:7}}},_={name:"PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",description:"分開顯示Series並合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0,sumSeries:!0},allPluginParams:{}};_.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const o={name:"PRESET_SERIES_SEPARATE_SERIES",description:"分開顯示Series",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0},allPluginParams:{}};o.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const R={name:"PRESET_SERIES_SUM_SERIES",description:"合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,sumSeries:!0},allPluginParams:{}};R.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const A={name:"PRESET_BARS_HORIZONTAL_AND_ROUND",description:"橫向圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectRadius:7}}},T={name:"PRESET_BARS_HORIZONTAL_AND_THIN",description:"橫向細長長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14}}},u={name:"PRESET_BARS_ROUND",description:"圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectRadius:7}}},I={name:"PRESET_BARS_THIN",description:"細長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14}}},c={name:"PRESET_GRID_BASIC",description:"基本Grid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},m={name:"PRESET_GRID_HORIZONTAL",description:"橫向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},p={name:"PRESET_GRID_PN_SCALE",description:"正負值分向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{valueAxis:{scaleDomain:["auto","auto"],scaleRange:[.05,.95]}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},L={name:"PRESET_GRID_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},allPluginParams:{GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{placement:"bottom",padding:14}}},h={name:"PRESET_GRID_SEPARATE_SERIES",description:"分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateSeries:!0},allPluginParams:{GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{placement:"bottom",padding:14}}},b={name:"PRESET_LINE_AREAS_BASIC",description:"基本LineArea參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},G={name:"PRESET_LINE_AREAS_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{lineCurve:"curveMonotoneX",lineWidth:3},LineAreas:{lineCurve:"curveMonotoneX"},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},D={name:"PRESET_LINE_AREAS_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left",scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},N={name:"PRESET_LINE_AREAS_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},B={name:"PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},O={name:"PRESET_LINE_AREAS_SEPARATE_SERIES",description:"LineAreas 分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{separateSeries:!0,groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},M={name:"PRESET_LINES_BASIC",description:"基本Lines參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},C={name:"PRESET_LINES_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{lineCurve:"curveMonotoneX",lineWidth:3},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},x={name:"PRESET_LINES_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},U={name:"PRESET_LINES_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},F={name:"PRESET_LINES_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},H={name:"PRESET_LINES_WITH_SOLID_DOTS",description:"折線圖及實心圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{radius:3,fillColorType:"label",onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},v={name:"PRESET_MULTI_GRID_BASIC",description:"基本MultiGrid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{MultiGridLegend:{placement:"bottom",padding:14,gridList:[{},{listRectHeight:2}]}}},f={name:"PRESET_MULTI_GRID_DIVERGING",description:"雙向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,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:{MultiGroupAxis:{tickPadding:60,gridIndexes:[0]},MultiValueAxis:{gridIndexes:[0,1]},MultiStackedValueAxis:{gridIndexes:[0,1]},MultiBars:{gridIndexes:[0,1]},MultiStackedBar:{gridIndexes:[0,1]},MultiBarsTriangle:{gridIndexes:[0,1]},MultiLines:{gridIndexes:[0,1]},MultiLineAreas:{gridIndexes:[0,1]},MultiDots:{gridIndexes:[0,1]},MultiGridLegend:{placement:"bottom",padding:14}}},V={name:"PRESET_MULTI_GRID_ROUND_STYLE",description:"MultiGrid圓弧風格",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{MultiBars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},MultiStackedBar:{},MultiDots:{},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectRadius:7},{listRectHeight:2}]},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{lineCurve:"curveMonotoneX",lineWidth:3},MultiValueAxis:{},MultiStackedValueAxis:{},OverlappingValueAxes:{},OverlappingStackedValueAxes:{}}},k={name:"PRESET_MULTI_GRID_SEPARATE_GRID",description:"2組Grid圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiStackedValueAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiStackedBar:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14}}},S={},Z={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:{...S,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiStackedValueAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiStackedBar:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},W={name:"PRESET_MULTI_LINES_SEPARATE_GRID",description:"多組分開折線圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...S,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiStackedValueAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiStackedBar:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},Y={name:"PRESET_MULTI_VALUE_BASIC",description:"基本MultiValue參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14}}},X={name:"PRESET_MULTI_VALUE_SEPARATE_CATEGORY",description:"MultiValue 分開顯示category",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{separateCategory:!0},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14}}},y={name:"PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS",description:"ScatterBubbles以半徑尺寸為比例",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14},ScatterBubbles:{arcScaleType:"radius"}}},K={name:"PRESET_SCATTER_BUBBLES_LINEAR_OPACITY",description:"ScatterBubbles漸變透明度",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14},ScatterBubbles:{valueLinearOpacity:[.6,.95]}}},w={name:"PRESET_FORCE_DIRECTED_BASIC",description:"基本Force Directed參數",allPluginParams:{ForceDirected:{},RelationshipLegend:{listRectRadius:7}}},z={name:"PRESET_FORCE_DIRECTED_NONE_ZOOM",description:"基本Force Directed參數",allPluginParams:{ForceDirected:{zoomable:!1},RelationshipLegend:{listRectRadius:7}}},j={name:"PRESET_FORCE_DIRECTED_FIX_FONT_SIZE",description:"基本Force Directed參數",allPluginParams:{ForceDirected:{node:{labelSizeFixed:!0},edge:{labelSizeFixed:!0}},RelationshipLegend:{listRectRadius:7}}},q={name:"PRESET_FORCE_DIRECTED_NONE_ARROW",description:"基本Force Directed參數",allPluginParams:{ForceDirected:{edge:{arrowWidth:0,arrowHeight:0}},RelationshipLegend:{listRectRadius:7}}},J={name:"PRESET_TREE_MAP_BASIC",description:"基本Tree Map參數",chartParams:{padding:{top:40,right:40,bottom:60,left:40}},allPluginParams:{TreeMap:{},TreeLegend:{placement:"bottom",padding:14}}};t.PRESET_BARS_HORIZONTAL_AND_ROUND=A,t.PRESET_BARS_HORIZONTAL_AND_THIN=T,t.PRESET_BARS_ROUND=u,t.PRESET_BARS_THIN=I,t.PRESET_BUBBLES_SCALING_BY_RADIUS=i,t.PRESET_BUBBLES_SEPARATE_SERIES=g,t.PRESET_FORCE_DIRECTED_BASIC=w,t.PRESET_FORCE_DIRECTED_FIX_FONT_SIZE=j,t.PRESET_FORCE_DIRECTED_NONE_ARROW=q,t.PRESET_FORCE_DIRECTED_NONE_ZOOM=z,t.PRESET_GRID_BASIC=c,t.PRESET_GRID_HORIZONTAL=m,t.PRESET_GRID_PN_SCALE=p,t.PRESET_GRID_ROTATE_AXIS_LABEL=L,t.PRESET_GRID_SEPARATE_SERIES=h,t.PRESET_LINES_BASIC=M,t.PRESET_LINES_CURVE=C,t.PRESET_LINES_HORIZONTAL=x,t.PRESET_LINES_LOOSE_TICKS=U,t.PRESET_LINES_ROTATE_AXIS_LABEL=F,t.PRESET_LINES_WITH_SOLID_DOTS=H,t.PRESET_LINE_AREAS_BASIC=b,t.PRESET_LINE_AREAS_CURVE=G,t.PRESET_LINE_AREAS_HORIZONTAL=D,t.PRESET_LINE_AREAS_LOOSE_TICKS=N,t.PRESET_LINE_AREAS_ROTATE_AXIS_LABEL=B,t.PRESET_LINE_AREAS_SEPARATE_SERIES=O,t.PRESET_MULTI_GRID_BASIC=v,t.PRESET_MULTI_GRID_DIVERGING=f,t.PRESET_MULTI_GRID_ROUND_STYLE=V,t.PRESET_MULTI_GRID_SEPARATE_GRID=k,t.PRESET_MULTI_LINES_SEPARATE_GRID=W,t.PRESET_MULTI_LINE_AREAS_SEPARATE_GRID=Z,t.PRESET_MULTI_VALUE_BASIC=Y,t.PRESET_MULTI_VALUE_SEPARATE_CATEGORY=X,t.PRESET_PIE_BASIC=E,t.PRESET_PIE_DONUT=r,t.PRESET_PIE_HALF_DONUT=l,t.PRESET_PIE_WITH_INNER_LABELS=s,t.PRESET_ROSE_BASIC=n,t.PRESET_ROSE_SCALING_BY_RADIUS=d,t.PRESET_SCATTER_BUBBLES_LINEAR_OPACITY=K,t.PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS=y,t.PRESET_SERIES_BASIC=P,t.PRESET_SERIES_SEPARATE_SERIES=o,t.PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES=_,t.PRESET_SERIES_SUM_SERIES=R,t.PRESET_TREE_MAP_BASIC=J,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
1
|
+
(function(t,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(t=typeof globalThis<"u"?globalThis:t||self,i(t["orbcharts-presets-basic"]={}))})(this,function(t){"use strict";const i={name:"PRESET_BUBBLES_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的泡泡圖",allPluginParams:{Bubbles:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},g={name:"PRESET_BUBBLES_SEPARATE_SERIES",description:"分開顯示Series泡泡",chartParams:{padding:{top:160,right:160,bottom:160,left:160}},dataFormatter:{separateSeries:!0},allPluginParams:{Bubbles:{},SeriesLegend:{listRectRadius:7},SeriesTooltip:{}}},E={name:"PRESET_PIE_BASIC",description:"基本Pie參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{SeriesLegend:{listRectRadius:7}}};E.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const r={name:"PRESET_PIE_DONUT",description:"甜甜圈圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{innerRadius:.5},PieLabels:{},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};r.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const l={name:"PRESET_PIE_HALF_DONUT",description:"半圓甜甜圈圖",chartParams:{padding:{top:120,right:120,bottom:0,left:60}},dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{innerRadius:.5,startAngle:-Math.PI/2,endAngle:Math.PI/2},PieLabels:{startAngle:-Math.PI/2,endAngle:Math.PI/2},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};l.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const s={name:"PRESET_PIE_WITH_INNER_LABELS",description:"圓餅圖及內部資料標籤",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{},PieLabels:{labelCentroid:1.3,labelColorType:"primary"},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};s.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const _={name:"PRESET_ROSE_BASIC",description:"基本Rose參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{SeriesLegend:{listRectRadius:7}}};_.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const n={name:"PRESET_ROSE_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的玫瑰圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Rose:{arcScaleType:"radius"},RoseLabels:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}};n.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const P={name:"PRESET_SERIES_BASIC",description:"基本Series參數",allPluginParams:{SeriesLegend:{listRectRadius:7}}},R={name:"PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",description:"分開顯示Series並合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0,sumSeries:!0},allPluginParams:{}};R.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const d={name:"PRESET_SERIES_SEPARATE_SERIES",description:"分開顯示Series",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0},allPluginParams:{}};d.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const o={name:"PRESET_SERIES_SUM_SERIES",description:"合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,sumSeries:!0},allPluginParams:{}};o.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const A={name:"PRESET_BARS_HORIZONTAL_AND_ROUND",description:"橫向圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectRadius:7}}},T={name:"PRESET_BARS_HORIZONTAL_AND_THIN",description:"橫向細長長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14}}},u={name:"PRESET_BARS_ROUND",description:"圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectRadius:7}}},I={name:"PRESET_BARS_THIN",description:"細長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14}}},c={name:"PRESET_GRID_BASIC",description:"基本Grid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},m={name:"PRESET_GRID_HORIZONTAL",description:"橫向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},L={name:"PRESET_GRID_PN_SCALE",description:"正負值分向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{valueAxis:{scaleDomain:["auto","auto"],scaleRange:[.05,.95]}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},p={name:"PRESET_GRID_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},allPluginParams:{GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{placement:"bottom",padding:14}}},h={name:"PRESET_GRID_SEPARATE_SERIES",description:"分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateSeries:!0},allPluginParams:{GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{placement:"bottom",padding:14}}},B={name:"PRESET_LINE_AREAS_BASIC",description:"基本LineArea參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},D={name:"PRESET_LINE_AREAS_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{lineCurve:"curveMonotoneX",lineWidth:3},LineAreas:{lineCurve:"curveMonotoneX"},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},b={name:"PRESET_LINE_AREAS_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left",scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},O={name:"PRESET_LINE_AREAS_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},N={name:"PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},G={name:"PRESET_LINE_AREAS_SEPARATE_SERIES",description:"LineAreas 分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{separateSeries:!0,groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},C={name:"PRESET_LINES_BASIC",description:"基本Lines參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},M={name:"PRESET_LINES_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{lineCurve:"curveMonotoneX",lineWidth:3},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},x={name:"PRESET_LINES_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},U={name:"PRESET_LINES_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},F={name:"PRESET_LINES_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},H={name:"PRESET_LINES_WITH_SOLID_DOTS",description:"折線圖及實心圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{radius:3,fillColorType:"label",onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},v={name:"PRESET_MULTI_GRID_BASIC",description:"基本MultiGrid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{MultiGridLegend:{placement:"bottom",padding:14,gridList:[{},{listRectHeight:2}]}}},f={name:"PRESET_MULTI_GRID_DIVERGING",description:"雙向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,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:{MultiGroupAxis:{tickPadding:60,gridIndexes:[0]},MultiValueAxis:{gridIndexes:[0,1]},MultiStackedValueAxis:{gridIndexes:[0,1]},MultiBars:{gridIndexes:[0,1]},MultiStackedBar:{gridIndexes:[0,1]},MultiBarsTriangle:{gridIndexes:[0,1]},MultiLines:{gridIndexes:[0,1]},MultiLineAreas:{gridIndexes:[0,1]},MultiDots:{gridIndexes:[0,1]},MultiGridLegend:{placement:"bottom",padding:14}}},V={name:"PRESET_MULTI_GRID_ROUND_STYLE",description:"MultiGrid圓弧風格",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{MultiBars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},MultiStackedBar:{},MultiDots:{},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectRadius:7},{listRectHeight:2}]},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{lineCurve:"curveMonotoneX",lineWidth:3},MultiValueAxis:{},MultiStackedValueAxis:{},OverlappingValueAxes:{},OverlappingStackedValueAxes:{}}},W={name:"PRESET_MULTI_GRID_SEPARATE_GRID",description:"2組Grid圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiStackedValueAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiStackedBar:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14}}},S={},k={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:{...S,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiStackedValueAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiStackedBar:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",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:{...S,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiStackedValueAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiStackedBar:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},X={name:"PRESET_MULTI_VALUE_BASIC",description:"基本MultiValue參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14}}},Y={name:"PRESET_MULTI_VALUE_SEPARATE_CATEGORY",description:"MultiValue 分開顯示category",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{separateCategory:!0},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14}}},y={name:"PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS",description:"ScatterBubbles以半徑尺寸為比例",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14},ScatterBubbles:{arcScaleType:"radius"}}},w={name:"PRESET_SCATTER_BUBBLES_LINEAR_OPACITY",description:"ScatterBubbles漸變透明度",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14},ScatterBubbles:{valueLinearOpacity:[.6,.95]}}},K={name:"PRESET_FORCE_DIRECTED_BASIC",description:"基本Force Directed參數",allPluginParams:{ForceDirected:{},RelationshipLegend:{listRectRadius:7}}},z={name:"PRESET_FORCE_DIRECTED_BUBBLES_BASIC",description:"基本Force Directed Bubbles參數",allPluginParams:{ForceDirectedBubbles:{},RelationshipLegend:{listRectRadius:7}}},j={name:"PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH",description:"Force Directed Bubbles固定箭頭寬度",allPluginParams:{ForceDirectedBubbles:{arrow:{strokeWidthMin:1.5,strokeWidthMax:1.5}},RelationshipLegend:{listRectRadius:7}}},q={name:"PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW",description:"Force Directed Bubbles沒有箭頭",allPluginParams:{ForceDirectedBubbles:{arrow:{pointerWidth:0,pointerHeight:0,strokeWidthMin:1.5,strokeWidthMax:9}},RelationshipLegend:{listRectRadius:7}}},J={name:"PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM",description:"Force Directed Bubbles無滑鼠托曳及縮放控制",allPluginParams:{ForceDirectedBubbles:{zoomable:!1},RelationshipLegend:{listRectRadius:7}}},Q={name:"PRESET_FORCE_DIRECTED_NONE_ZOOM",description:"Force Directed無滑鼠托曳及縮放控制",allPluginParams:{ForceDirected:{zoomable:!1},RelationshipLegend:{listRectRadius:7}}},$={name:"PRESET_FORCE_DIRECTED_FIX_FONT_SIZE",description:"基本Force Directed參數",allPluginParams:{ForceDirected:{dotLabel:{sizeFixed:!0},arrowLabel:{sizeFixed:!0}},RelationshipLegend:{listRectRadius:7}}},tt={name:"PRESET_FORCE_DIRECTED_NONE_ARROW",description:"Force Directed沒有箭頭",allPluginParams:{ForceDirected:{arrow:{pointerWidth:0,pointerHeight:0}},RelationshipLegend:{listRectRadius:7}}},et={name:"PRESET_TREE_MAP_BASIC",description:"基本Tree Map參數",chartParams:{padding:{top:40,right:40,bottom:60,left:40}},allPluginParams:{TreeMap:{},TreeLegend:{placement:"bottom",padding:14}}};t.PRESET_BARS_HORIZONTAL_AND_ROUND=A,t.PRESET_BARS_HORIZONTAL_AND_THIN=T,t.PRESET_BARS_ROUND=u,t.PRESET_BARS_THIN=I,t.PRESET_BUBBLES_SCALING_BY_RADIUS=i,t.PRESET_BUBBLES_SEPARATE_SERIES=g,t.PRESET_FORCE_DIRECTED_BASIC=K,t.PRESET_FORCE_DIRECTED_BUBBLES_BASIC=z,t.PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH=j,t.PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW=q,t.PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM=J,t.PRESET_FORCE_DIRECTED_FIX_FONT_SIZE=$,t.PRESET_FORCE_DIRECTED_NONE_ARROW=tt,t.PRESET_FORCE_DIRECTED_NONE_ZOOM=Q,t.PRESET_GRID_BASIC=c,t.PRESET_GRID_HORIZONTAL=m,t.PRESET_GRID_PN_SCALE=L,t.PRESET_GRID_ROTATE_AXIS_LABEL=p,t.PRESET_GRID_SEPARATE_SERIES=h,t.PRESET_LINES_BASIC=C,t.PRESET_LINES_CURVE=M,t.PRESET_LINES_HORIZONTAL=x,t.PRESET_LINES_LOOSE_TICKS=U,t.PRESET_LINES_ROTATE_AXIS_LABEL=F,t.PRESET_LINES_WITH_SOLID_DOTS=H,t.PRESET_LINE_AREAS_BASIC=B,t.PRESET_LINE_AREAS_CURVE=D,t.PRESET_LINE_AREAS_HORIZONTAL=b,t.PRESET_LINE_AREAS_LOOSE_TICKS=O,t.PRESET_LINE_AREAS_ROTATE_AXIS_LABEL=N,t.PRESET_LINE_AREAS_SEPARATE_SERIES=G,t.PRESET_MULTI_GRID_BASIC=v,t.PRESET_MULTI_GRID_DIVERGING=f,t.PRESET_MULTI_GRID_ROUND_STYLE=V,t.PRESET_MULTI_GRID_SEPARATE_GRID=W,t.PRESET_MULTI_LINES_SEPARATE_GRID=Z,t.PRESET_MULTI_LINE_AREAS_SEPARATE_GRID=k,t.PRESET_MULTI_VALUE_BASIC=X,t.PRESET_MULTI_VALUE_SEPARATE_CATEGORY=Y,t.PRESET_PIE_BASIC=E,t.PRESET_PIE_DONUT=r,t.PRESET_PIE_HALF_DONUT=l,t.PRESET_PIE_WITH_INNER_LABELS=s,t.PRESET_ROSE_BASIC=_,t.PRESET_ROSE_SCALING_BY_RADIUS=n,t.PRESET_SCATTER_BUBBLES_LINEAR_OPACITY=w,t.PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS=y,t.PRESET_SERIES_BASIC=P,t.PRESET_SERIES_SEPARATE_SERIES=d,t.PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES=R,t.PRESET_SERIES_SUM_SERIES=o,t.PRESET_TREE_MAP_BASIC=et,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
package/dist/src/params.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
import { PresetSeriesPluginParams, PresetGridPluginParams, PresetMultiGridPluginParams, PresetMultiValuePluginParams, PresetTreePluginParams, PresetNoneDataPluginParams } from './types';
|
1
|
+
import { PresetSeriesPluginParams, PresetGridPluginParams, PresetMultiGridPluginParams, PresetMultiValuePluginParams, PresetRelationshipPluginParams, PresetTreePluginParams, PresetNoneDataPluginParams } from './types';
|
2
2
|
|
3
3
|
export declare const ALL_PLUGIN_PARAMS_SERIES: PresetSeriesPluginParams;
|
4
4
|
export declare const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams;
|
5
5
|
export declare const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams;
|
6
6
|
export declare const ALL_PLUGIN_PARAMS_MULTI_VALUE: PresetMultiValuePluginParams;
|
7
|
+
export declare const ALL_PLUGIN_PARAMS_RELATIONSHIP: PresetRelationshipPluginParams;
|
7
8
|
export declare const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams;
|
8
9
|
export declare const ALL_PLUGIN_PARAMS_NONE_DATA: PresetNoneDataPluginParams;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_BUBBLES_BASIC: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -1,4 +1,8 @@
|
|
1
1
|
export { PRESET_FORCE_DIRECTED_BASIC } from './PRESET_FORCE_DIRECTED_BASIC';
|
2
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_BASIC } from './PRESET_FORCE_DIRECTED_BUBBLES_BASIC';
|
3
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH } from './PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH';
|
4
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW';
|
5
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM';
|
2
6
|
export { PRESET_FORCE_DIRECTED_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_NONE_ZOOM';
|
3
7
|
export { PRESET_FORCE_DIRECTED_FIX_FONT_SIZE } from './PRESET_FORCE_DIRECTED_FIX_FONT_SIZE';
|
4
8
|
export { PRESET_FORCE_DIRECTED_NONE_ARROW } from './PRESET_FORCE_DIRECTED_NONE_ARROW';
|
package/dist/src/types.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BubblesParams, PieParams, PieEventTextsParams, PieLabelsParams, RoseParams, RoseLabelsParams, SeriesLegendParams, SeriesTooltipParams, BarsParams, BarsPNParams, StackedBarParams, BarsTriangleParams, DotsParams, GridLegendParams, GroupAuxParams, GroupAxisParams, LineAreasParams, LinesParams, GridTooltipParams, GridZoomParams, ValueAxisParams, StackedValueAxisParams, MultiBarsParams, MultiStackedBarParams, MultiBarsTriangleParams, MultiDotsParams, MultiGridLegendParams, MultiGridTooltipParams, MultiGroupAxisParams, MultiLineAreasParams, MultiLinesParams, MultiValueAxisParams, MultiStackedValueAxisParams, OverlappingValueAxesParams, OverlappingStackedValueAxesParams, MultiValueLegendParams, MultiValueTooltipParams, ScatterParams, ScatterBubblesParams, XYAuxParams, XYAxesParams, XYZoomParams, ForceDirectedParams, RelationshipLegendParams, RelationshipTooltipParams, TreeLegendParams, TreeMapParams, TreeTooltipParams } from '../lib/plugins-basic-types';
|
1
|
+
import { BubblesParams, PieParams, PieEventTextsParams, PieLabelsParams, RoseParams, RoseLabelsParams, SeriesLegendParams, SeriesTooltipParams, BarsParams, BarsPNParams, StackedBarParams, BarsTriangleParams, DotsParams, GridLegendParams, GroupAuxParams, GroupAxisParams, LineAreasParams, LinesParams, GridTooltipParams, GridZoomParams, ValueAxisParams, StackedValueAxisParams, MultiBarsParams, MultiStackedBarParams, MultiBarsTriangleParams, MultiDotsParams, MultiGridLegendParams, MultiGridTooltipParams, MultiGroupAxisParams, MultiLineAreasParams, MultiLinesParams, MultiValueAxisParams, MultiStackedValueAxisParams, OverlappingValueAxesParams, OverlappingStackedValueAxesParams, MultiValueLegendParams, MultiValueTooltipParams, ScatterParams, ScatterBubblesParams, XYAuxParams, XYAxesParams, XYZoomParams, ForceDirectedParams, ForceDirectedBubblesParams, RelationshipLegendParams, RelationshipTooltipParams, TreeLegendParams, TreeMapParams, TreeTooltipParams } from '../lib/plugins-basic-types';
|
2
2
|
|
3
3
|
type DeepPartial<T> = Partial<{
|
4
4
|
[P in keyof T]: DeepPartial<T[P]>;
|
@@ -141,10 +141,13 @@ export interface PresetXYAxesParams {
|
|
141
141
|
export interface PresetXYZoomParams {
|
142
142
|
XYZoom: Partial<XYZoomParams>;
|
143
143
|
}
|
144
|
-
export type PresetRelationshipPluginParams = PresetForceDirectedParams & PresetRelationshipLegendParams & PresetRelationshipTooltipParams;
|
144
|
+
export type PresetRelationshipPluginParams = PresetForceDirectedParams & PresetForceDirectedBubblesParams & PresetRelationshipLegendParams & PresetRelationshipTooltipParams;
|
145
145
|
export interface PresetForceDirectedParams {
|
146
146
|
ForceDirected: DeepPartial<ForceDirectedParams>;
|
147
147
|
}
|
148
|
+
export interface PresetForceDirectedBubblesParams {
|
149
|
+
ForceDirectedBubbles: DeepPartial<ForceDirectedBubblesParams>;
|
150
|
+
}
|
148
151
|
export interface PresetRelationshipLegendParams {
|
149
152
|
RelationshipLegend: Partial<RelationshipLegendParams>;
|
150
153
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orbcharts/presets-basic",
|
3
|
-
"version": "3.0.0-beta.
|
3
|
+
"version": "3.0.0-beta.7",
|
4
4
|
"description": "presets for OrbCharts",
|
5
5
|
"author": "Blue Planet Inc.",
|
6
6
|
"license": "Apache-2.0",
|
@@ -36,7 +36,7 @@
|
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
38
|
"@orbcharts/core-types": "^3.0.0-beta.5",
|
39
|
-
"@orbcharts/plugins-basic-types": "^3.0.0-beta.
|
39
|
+
"@orbcharts/plugins-basic-types": "^3.0.0-beta.9",
|
40
40
|
"d3": "^7.8.5"
|
41
41
|
}
|
42
42
|
}
|
package/src/params.ts
CHANGED
@@ -3,6 +3,7 @@ import type {
|
|
3
3
|
PresetGridPluginParams,
|
4
4
|
PresetMultiGridPluginParams,
|
5
5
|
PresetMultiValuePluginParams,
|
6
|
+
PresetRelationshipPluginParams,
|
6
7
|
PresetTreePluginParams,
|
7
8
|
PresetNoneDataPluginParams
|
8
9
|
} from './types'
|
@@ -61,6 +62,14 @@ export const ALL_PLUGIN_PARAMS_MULTI_VALUE: PresetMultiValuePluginParams = {
|
|
61
62
|
XYZoom: {}
|
62
63
|
}
|
63
64
|
|
65
|
+
export const ALL_PLUGIN_PARAMS_RELATIONSHIP: PresetRelationshipPluginParams = {
|
66
|
+
ForceDirected: {},
|
67
|
+
ForceDirectedBubbles: {},
|
68
|
+
RelationshipLegend: {},
|
69
|
+
RelationshipTooltip: {},
|
70
|
+
}
|
71
|
+
|
72
|
+
|
64
73
|
export const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams = {
|
65
74
|
TreeLegend: {},
|
66
75
|
TreeMap: {},
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
+
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
|
+
|
5
|
+
export const PRESET_FORCE_DIRECTED_BUBBLES_BASIC: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
|
6
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
7
|
+
name: 'PRESET_FORCE_DIRECTED_BUBBLES_BASIC',
|
8
|
+
description: '基本Force Directed Bubbles參數',
|
9
|
+
// chartParams: {
|
10
|
+
// padding: {
|
11
|
+
// top: 40,
|
12
|
+
// right: 40,
|
13
|
+
// bottom: 60,
|
14
|
+
// left: 40
|
15
|
+
// },
|
16
|
+
// },
|
17
|
+
allPluginParams: {
|
18
|
+
ForceDirectedBubbles: {},
|
19
|
+
RelationshipLegend: {
|
20
|
+
listRectRadius: 7 // 圓型圖例列點
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
+
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
|
+
|
5
|
+
export const PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
|
6
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
7
|
+
name: 'PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH',
|
8
|
+
description: 'Force Directed Bubbles固定箭頭寬度',
|
9
|
+
// chartParams: {
|
10
|
+
// padding: {
|
11
|
+
// top: 40,
|
12
|
+
// right: 40,
|
13
|
+
// bottom: 60,
|
14
|
+
// left: 40
|
15
|
+
// },
|
16
|
+
// },
|
17
|
+
allPluginParams: {
|
18
|
+
ForceDirectedBubbles: {
|
19
|
+
arrow: {
|
20
|
+
strokeWidthMin: 1.5,
|
21
|
+
strokeWidthMax: 1.5
|
22
|
+
}
|
23
|
+
},
|
24
|
+
RelationshipLegend: {
|
25
|
+
listRectRadius: 7 // 圓型圖例列點
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
+
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
|
+
|
5
|
+
export const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
|
6
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
7
|
+
name: 'PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW',
|
8
|
+
description: 'Force Directed Bubbles沒有箭頭',
|
9
|
+
// chartParams: {
|
10
|
+
// padding: {
|
11
|
+
// top: 40,
|
12
|
+
// right: 40,
|
13
|
+
// bottom: 60,
|
14
|
+
// left: 40
|
15
|
+
// },
|
16
|
+
// },
|
17
|
+
allPluginParams: {
|
18
|
+
ForceDirectedBubbles: {
|
19
|
+
arrow: {
|
20
|
+
pointerWidth: 0,
|
21
|
+
pointerHeight: 0,
|
22
|
+
strokeWidthMin: 1.5,
|
23
|
+
strokeWidthMax: 9
|
24
|
+
}
|
25
|
+
},
|
26
|
+
RelationshipLegend: {
|
27
|
+
listRectRadius: 7 // 圓型圖例列點
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types'
|
3
|
+
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
4
|
+
|
5
|
+
export const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
|
6
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
7
|
+
name: 'PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM',
|
8
|
+
description: 'Force Directed Bubbles無滑鼠托曳及縮放控制',
|
9
|
+
// chartParams: {
|
10
|
+
// padding: {
|
11
|
+
// top: 40,
|
12
|
+
// right: 40,
|
13
|
+
// bottom: 60,
|
14
|
+
// left: 40
|
15
|
+
// },
|
16
|
+
// },
|
17
|
+
allPluginParams: {
|
18
|
+
ForceDirectedBubbles: {
|
19
|
+
zoomable: false,
|
20
|
+
},
|
21
|
+
RelationshipLegend: {
|
22
|
+
listRectRadius: 7 // 圓型圖例列點
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -16,11 +16,11 @@ export const PRESET_FORCE_DIRECTED_FIX_FONT_SIZE: PresetPartial<'relationship',
|
|
16
16
|
// },
|
17
17
|
allPluginParams: {
|
18
18
|
ForceDirected: {
|
19
|
-
|
20
|
-
|
19
|
+
dotLabel: {
|
20
|
+
sizeFixed: true
|
21
21
|
},
|
22
|
-
|
23
|
-
|
22
|
+
arrowLabel: {
|
23
|
+
sizeFixed: true
|
24
24
|
}
|
25
25
|
},
|
26
26
|
RelationshipLegend: {
|
@@ -5,7 +5,7 @@ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from
|
|
5
5
|
export const PRESET_FORCE_DIRECTED_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
|
6
6
|
& Partial<PresetNoneDataPluginParams>> = {
|
7
7
|
name: 'PRESET_FORCE_DIRECTED_NONE_ARROW',
|
8
|
-
description: '
|
8
|
+
description: 'Force Directed沒有箭頭',
|
9
9
|
// chartParams: {
|
10
10
|
// padding: {
|
11
11
|
// top: 40,
|
@@ -16,9 +16,9 @@ export const PRESET_FORCE_DIRECTED_NONE_ARROW: PresetPartial<'relationship', Par
|
|
16
16
|
// },
|
17
17
|
allPluginParams: {
|
18
18
|
ForceDirected: {
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
arrow: {
|
20
|
+
pointerWidth: 0,
|
21
|
+
pointerHeight: 0
|
22
22
|
}
|
23
23
|
},
|
24
24
|
RelationshipLegend: {
|
@@ -5,7 +5,7 @@ import type { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from
|
|
5
5
|
export const PRESET_FORCE_DIRECTED_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams>
|
6
6
|
& Partial<PresetNoneDataPluginParams>> = {
|
7
7
|
name: 'PRESET_FORCE_DIRECTED_NONE_ZOOM',
|
8
|
-
description: '
|
8
|
+
description: 'Force Directed無滑鼠托曳及縮放控制',
|
9
9
|
// chartParams: {
|
10
10
|
// padding: {
|
11
11
|
// top: 40,
|
@@ -1,4 +1,8 @@
|
|
1
1
|
export { PRESET_FORCE_DIRECTED_BASIC } from './PRESET_FORCE_DIRECTED_BASIC'
|
2
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_BASIC } from './PRESET_FORCE_DIRECTED_BUBBLES_BASIC'
|
3
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH } from './PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH'
|
4
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW'
|
5
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM'
|
2
6
|
export { PRESET_FORCE_DIRECTED_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_NONE_ZOOM'
|
3
7
|
export { PRESET_FORCE_DIRECTED_FIX_FONT_SIZE } from './PRESET_FORCE_DIRECTED_FIX_FONT_SIZE'
|
4
8
|
export { PRESET_FORCE_DIRECTED_NONE_ARROW } from './PRESET_FORCE_DIRECTED_NONE_ARROW'
|
package/src/types.ts
CHANGED
@@ -51,6 +51,7 @@ import type {
|
|
51
51
|
|
52
52
|
// -- relationship --
|
53
53
|
ForceDirectedParams,
|
54
|
+
ForceDirectedBubblesParams,
|
54
55
|
RelationshipLegendParams,
|
55
56
|
RelationshipTooltipParams,
|
56
57
|
|
@@ -302,6 +303,7 @@ export interface PresetXYZoomParams {
|
|
302
303
|
|
303
304
|
// -- relationship --
|
304
305
|
export type PresetRelationshipPluginParams = PresetForceDirectedParams
|
306
|
+
& PresetForceDirectedBubblesParams
|
305
307
|
& PresetRelationshipLegendParams
|
306
308
|
& PresetRelationshipTooltipParams
|
307
309
|
|
@@ -309,6 +311,10 @@ export interface PresetForceDirectedParams {
|
|
309
311
|
ForceDirected: DeepPartial<ForceDirectedParams>
|
310
312
|
}
|
311
313
|
|
314
|
+
export interface PresetForceDirectedBubblesParams {
|
315
|
+
ForceDirectedBubbles: DeepPartial<ForceDirectedBubblesParams>
|
316
|
+
}
|
317
|
+
|
312
318
|
export interface PresetRelationshipLegendParams {
|
313
319
|
RelationshipLegend: Partial<RelationshipLegendParams>
|
314
320
|
}
|