@nova-lab/charts 0.0.0-stage → 1.0.0-dev.32

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.
Files changed (228) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +158 -2
  3. package/dist/GeometryIndex-DDQ34Jf4.js +104 -0
  4. package/dist/MarkSeries-CQCAnV4s.js +245 -0
  5. package/dist/aggregation.d.ts +6 -0
  6. package/dist/aggregation.js +124 -0
  7. package/dist/annotations.d.ts +34 -0
  8. package/dist/annotations.js +71 -0
  9. package/dist/api/camera.d.ts +8 -0
  10. package/dist/api/cartesian.d.ts +21 -0
  11. package/dist/api/events.d.ts +13 -0
  12. package/dist/api/font.d.ts +3 -0
  13. package/dist/api/handle.d.ts +5 -0
  14. package/dist/api/host.d.ts +23 -0
  15. package/dist/api/internal.d.ts +41 -0
  16. package/dist/api/map-background.d.ts +12 -0
  17. package/dist/api/mark-paint.d.ts +5 -0
  18. package/dist/api/mark-style.d.ts +4 -0
  19. package/dist/api/navigation.d.ts +4 -0
  20. package/dist/api/overlay.d.ts +7 -0
  21. package/dist/api/partition.d.ts +11 -0
  22. package/dist/api/scene.d.ts +42 -0
  23. package/dist/api/state.d.ts +34 -0
  24. package/dist/api/types.d.ts +743 -0
  25. package/dist/area.d.ts +9 -0
  26. package/dist/area.js +706 -0
  27. package/dist/bar.d.ts +9 -0
  28. package/dist/bar.js +554 -0
  29. package/dist/brush.d.ts +17 -0
  30. package/dist/brush.js +86 -0
  31. package/dist/bubble.d.ts +8 -0
  32. package/dist/bubble.js +434 -0
  33. package/dist/camera-CUJAMfpx.js +57 -0
  34. package/dist/candlestick.d.ts +8 -0
  35. package/dist/candlestick.js +42 -0
  36. package/dist/cartesian-k_WIYsGp.js +1139 -0
  37. package/dist/chart-runtime-resolver-DwwXp3X8.js +20 -0
  38. package/dist/chart-series-runtime-C0P7h8Tl.js +127 -0
  39. package/dist/charts.js +1 -0
  40. package/dist/composed.d.ts +2 -0
  41. package/dist/composed.js +4 -0
  42. package/dist/crosshair.d.ts +23 -0
  43. package/dist/crosshair.js +60 -0
  44. package/dist/donut.d.ts +5 -0
  45. package/dist/donut.js +7 -0
  46. package/dist/funnel.d.ts +5 -0
  47. package/dist/funnel.js +40 -0
  48. package/dist/graph.d.ts +6 -0
  49. package/dist/graph.js +260 -0
  50. package/dist/heatmap.d.ts +8 -0
  51. package/dist/heatmap.js +37 -0
  52. package/dist/host-DLDeDU5k.js +4373 -0
  53. package/dist/index.d.ts +1 -0
  54. package/dist/internal-I5BDhahD.js +4 -0
  55. package/dist/layout-donut-BG4ubBtU.js +39 -0
  56. package/dist/line.d.ts +9 -0
  57. package/dist/line.js +452 -0
  58. package/dist/mark-paint-CMHKGegE.js +14 -0
  59. package/dist/mark-style-Cpl-ARQM.js +10 -0
  60. package/dist/model/area/create-area-series-layout.d.ts +15 -0
  61. package/dist/model/area/hit-test-area-layout.d.ts +2 -0
  62. package/dist/model/axis/ChartAxisModel.d.ts +28 -0
  63. package/dist/model/bar/create-bar-series-layout.d.ts +19 -0
  64. package/dist/model/bar/hit-test-bar-layout.d.ts +2 -0
  65. package/dist/model/bubble/create-bubble-series-layout.d.ts +15 -0
  66. package/dist/model/bubble/hit-test-bubble-layout.d.ts +2 -0
  67. package/dist/model/cartesian/append-line-contours.d.ts +4 -0
  68. package/dist/model/cartesian/axis-line-batch.d.ts +3 -0
  69. package/dist/model/cartesian/numeric-window.d.ts +7 -0
  70. package/dist/model/cartesian/point-series.d.ts +54 -0
  71. package/dist/model/cartesian/sample-extrema.d.ts +7 -0
  72. package/dist/model/cartesian/smooth-y.d.ts +4 -0
  73. package/dist/model/cartesian/translation-window.d.ts +17 -0
  74. package/dist/model/context/nova-chart-runtime.d.ts +54 -0
  75. package/dist/model/customization/chart-customization.d.ts +47 -0
  76. package/dist/model/customization/chart-presets.d.ts +6 -0
  77. package/dist/model/customization/chart-style-sheet.d.ts +9 -0
  78. package/dist/model/data/ChartDataStore.d.ts +113 -0
  79. package/dist/model/exploration/create-graph-layout.d.ts +11 -0
  80. package/dist/model/exploration/exploration-chart.types.d.ts +150 -0
  81. package/dist/model/exploration/force-layout.d.ts +9 -0
  82. package/dist/model/exploration/presets/airplane.d.ts +2 -0
  83. package/dist/model/exploration/presets/apartment.d.ts +2 -0
  84. package/dist/model/exploration/presets/botanical-park.d.ts +2 -0
  85. package/dist/model/exploration/presets/ferry.d.ts +2 -0
  86. package/dist/model/exploration/presets/ice-arena.d.ts +2 -0
  87. package/dist/model/exploration/presets/planetarium.d.ts +2 -0
  88. package/dist/model/exploration/presets/science-museum.d.ts +2 -0
  89. package/dist/model/exploration/presets/train.d.ts +2 -0
  90. package/dist/model/exploration/route-geometry.d.ts +9 -0
  91. package/dist/model/exploration/seat-shape.d.ts +7 -0
  92. package/dist/model/interaction/GeometryIndex.d.ts +14 -0
  93. package/dist/model/line/create-line-series-layout.d.ts +15 -0
  94. package/dist/model/line/hit-test-line-layout.d.ts +2 -0
  95. package/dist/model/novel/create-novel-layout.d.ts +5 -0
  96. package/dist/model/novel/hit-test-novel-layout.d.ts +3 -0
  97. package/dist/model/novel/layout-candlestick.d.ts +3 -0
  98. package/dist/model/novel/layout-donut.d.ts +3 -0
  99. package/dist/model/novel/layout-funnel.d.ts +3 -0
  100. package/dist/model/novel/layout-heatmap.d.ts +3 -0
  101. package/dist/model/novel/layout-input.d.ts +12 -0
  102. package/dist/model/novel/layout-radar.d.ts +3 -0
  103. package/dist/model/novel/layout-tree.d.ts +3 -0
  104. package/dist/model/novel/layout-treemap.d.ts +3 -0
  105. package/dist/model/novel/layout-values.d.ts +10 -0
  106. package/dist/model/novel/novel-chart.types.d.ts +140 -0
  107. package/dist/model/novel/novel-domains.d.ts +5 -0
  108. package/dist/model/scale/BandScale.d.ts +86 -0
  109. package/dist/model/scale/ChartScaleRegistry.d.ts +45 -0
  110. package/dist/model/scale/LinearScale.d.ts +48 -0
  111. package/dist/model/scale/TimeScale.d.ts +48 -0
  112. package/dist/model/scale/create-chart-scale.d.ts +3 -0
  113. package/dist/model/scale/resolve-chart-scale.d.ts +5 -0
  114. package/dist/model/scatter/create-scatter-series-layout.d.ts +14 -0
  115. package/dist/model/scatter/hit-test-scatter-layout.d.ts +4 -0
  116. package/dist/model/time/calendar-time.d.ts +16 -0
  117. package/dist/model/types/chart-axis.types.d.ts +43 -0
  118. package/dist/model/types/chart-components.types.d.ts +1393 -0
  119. package/dist/model/types/chart-scale.types.d.ts +78 -0
  120. package/dist/model/viewport-controller/viewport-controller.d.ts +5 -0
  121. package/dist/novel-domains-DBpA_AOT.js +24 -0
  122. package/dist/partition-D-0LTCr3.js +221 -0
  123. package/dist/presets/route-map/apartment.d.ts +2 -0
  124. package/dist/presets/route-map/apartment.js +116 -0
  125. package/dist/presets/route-map/botanical-park.d.ts +2 -0
  126. package/dist/presets/route-map/botanical-park.js +116 -0
  127. package/dist/presets/route-map/science-museum.d.ts +2 -0
  128. package/dist/presets/route-map/science-museum.js +45 -0
  129. package/dist/presets/seat-map/airplane.d.ts +2 -0
  130. package/dist/presets/seat-map/airplane.js +95 -0
  131. package/dist/presets/seat-map/ferry.d.ts +2 -0
  132. package/dist/presets/seat-map/ferry.js +54 -0
  133. package/dist/presets/seat-map/ice-arena.d.ts +2 -0
  134. package/dist/presets/seat-map/ice-arena.js +67 -0
  135. package/dist/presets/seat-map/planetarium.d.ts +2 -0
  136. package/dist/presets/seat-map/planetarium.js +54 -0
  137. package/dist/presets/seat-map/train.d.ts +2 -0
  138. package/dist/presets/seat-map/train.js +66 -0
  139. package/dist/presets.d.ts +78 -0
  140. package/dist/presets.js +14 -0
  141. package/dist/public.d.ts +2 -0
  142. package/dist/radar.d.ts +5 -0
  143. package/dist/radar.js +47 -0
  144. package/dist/rose.d.ts +5 -0
  145. package/dist/rose.js +7 -0
  146. package/dist/route-map.d.ts +6 -0
  147. package/dist/route-map.js +200 -0
  148. package/dist/scatter.d.ts +8 -0
  149. package/dist/scatter.js +433 -0
  150. package/dist/scene-CPvPzTaB.js +137 -0
  151. package/dist/seat-map.d.ts +6 -0
  152. package/dist/seat-map.js +84 -0
  153. package/dist/seat-shape--kEFiUXX.js +66 -0
  154. package/dist/state-C5pICb11.js +134 -0
  155. package/dist/sync.d.ts +82 -0
  156. package/dist/sync.js +326 -0
  157. package/dist/translation-window-Ca_rCenJ.js +57 -0
  158. package/dist/tree.d.ts +6 -0
  159. package/dist/tree.js +114 -0
  160. package/dist/treemap.d.ts +5 -0
  161. package/dist/treemap.js +85 -0
  162. package/dist/ui/area-series/AreaSeries.d.ts +44 -0
  163. package/dist/ui/area-series/area-series.config.d.ts +10 -0
  164. package/dist/ui/area-series/area-series.registry.d.ts +4 -0
  165. package/dist/ui/axis/Axis.d.ts +55 -0
  166. package/dist/ui/axis/axis.config.d.ts +10 -0
  167. package/dist/ui/axis/axis.registry.d.ts +4 -0
  168. package/dist/ui/bar-chart/BarChart.d.ts +124 -0
  169. package/dist/ui/bar-chart/bar-chart.config.d.ts +10 -0
  170. package/dist/ui/bar-chart/bar-chart.registry.d.ts +2 -0
  171. package/dist/ui/bar-series/BarSeries.d.ts +102 -0
  172. package/dist/ui/bar-series/bar-series.config.d.ts +10 -0
  173. package/dist/ui/bar-series/bar-series.registry.d.ts +4 -0
  174. package/dist/ui/bubble-series/BubbleSeries.d.ts +33 -0
  175. package/dist/ui/bubble-series/bubble-series.config.d.ts +10 -0
  176. package/dist/ui/bubble-series/bubble-series.registry.d.ts +4 -0
  177. package/dist/ui/composed-chart/ComposedChart.d.ts +41 -0
  178. package/dist/ui/composed-chart/composed-chart.config.d.ts +10 -0
  179. package/dist/ui/composed-chart/composed-chart.registry.d.ts +4 -0
  180. package/dist/ui/exploration-chart/ExplorationChart.d.ts +83 -0
  181. package/dist/ui/exploration-chart/exploration-chart.config.d.ts +7 -0
  182. package/dist/ui/exploration-chart/exploration-chart.registry.d.ts +6 -0
  183. package/dist/ui/grid/Grid.d.ts +35 -0
  184. package/dist/ui/grid/grid.config.d.ts +10 -0
  185. package/dist/ui/grid/grid.registry.d.ts +4 -0
  186. package/dist/ui/interaction/Interaction.d.ts +53 -0
  187. package/dist/ui/interaction/interaction.config.d.ts +10 -0
  188. package/dist/ui/interaction/interaction.registry.d.ts +4 -0
  189. package/dist/ui/legend/Legend.d.ts +38 -0
  190. package/dist/ui/legend/legend.config.d.ts +10 -0
  191. package/dist/ui/legend/legend.registry.d.ts +2 -0
  192. package/dist/ui/line-series/LineSeries.d.ts +67 -0
  193. package/dist/ui/line-series/line-series.config.d.ts +10 -0
  194. package/dist/ui/line-series/line-series.registry.d.ts +4 -0
  195. package/dist/ui/mark-series/MarkSeries.d.ts +55 -0
  196. package/dist/ui/novel-series/NovelSeries.d.ts +34 -0
  197. package/dist/ui/novel-series/novel-series.config.d.ts +9 -0
  198. package/dist/ui/novel-series/novel-series.registry.d.ts +4 -0
  199. package/dist/ui/partition-chart/PartitionChart.d.ts +24 -0
  200. package/dist/ui/partition-chart/partition-chart.config.d.ts +7 -0
  201. package/dist/ui/partition-chart/partition-chart.registry.d.ts +9 -0
  202. package/dist/ui/plot/Plot.d.ts +64 -0
  203. package/dist/ui/plot/plot.config.d.ts +10 -0
  204. package/dist/ui/plot/plot.registry.d.ts +4 -0
  205. package/dist/ui/root/Root.d.ts +206 -0
  206. package/dist/ui/root/root.config.d.ts +10 -0
  207. package/dist/ui/root/root.registry.d.ts +5 -0
  208. package/dist/ui/scale/Scale.d.ts +55 -0
  209. package/dist/ui/scale/scale.config.d.ts +10 -0
  210. package/dist/ui/scale/scale.registry.d.ts +4 -0
  211. package/dist/ui/scatter-series/ScatterSeries.d.ts +33 -0
  212. package/dist/ui/scatter-series/scatter-series.config.d.ts +10 -0
  213. package/dist/ui/scatter-series/scatter-series.registry.d.ts +4 -0
  214. package/dist/ui/shared/chart-props.d.ts +150 -0
  215. package/dist/ui/shared/chart-runtime-resolver.d.ts +4 -0
  216. package/dist/ui/shared/chart-semantic-marks.d.ts +20 -0
  217. package/dist/ui/shared/chart-series-runtime.d.ts +48 -0
  218. package/dist/ui/shared/schema-types.d.ts +34 -0
  219. package/dist/ui/tooltip/Tooltip.d.ts +64 -0
  220. package/dist/ui/tooltip/tooltip.config.d.ts +10 -0
  221. package/dist/ui/tooltip/tooltip.registry.d.ts +4 -0
  222. package/dist/ui/viewport/Viewport.d.ts +81 -0
  223. package/dist/ui/viewport/viewport.config.d.ts +10 -0
  224. package/dist/ui/viewport/viewport.registry.d.ts +2 -0
  225. package/dist/ui/viewport-controller/ViewportController.d.ts +30 -0
  226. package/dist/ui/viewport-controller/viewport-controller.config.d.ts +10 -0
  227. package/dist/ui/viewport-controller/viewport-controller.registry.d.ts +2 -0
  228. package/package.json +179 -4
@@ -0,0 +1,2 @@
1
+ import { SeatMapPreset } from '../../api/types';
2
+ export declare const airplane: SeatMapPreset;
@@ -0,0 +1,95 @@
1
+ const i = { width: 620, height: 1540 }, o = [
2
+ { column: "G", x: 199 },
3
+ { column: "F", x: 223 },
4
+ { column: "E", x: 274 },
5
+ { column: "D", x: 298 },
6
+ { column: "C", x: 322 },
7
+ { column: "B", x: 376 },
8
+ { column: "A", x: 400 }
9
+ ], s = [
10
+ { column: "G", x: 199 },
11
+ { column: "F", x: 226 },
12
+ { column: "E", x: 284 },
13
+ { column: "C", x: 312 },
14
+ { column: "B", x: 373 },
15
+ { column: "A", x: 400 }
16
+ ], n = [
17
+ ...Array.from({ length: 18 }, (t, e) => 34 - e),
18
+ 14,
19
+ 13,
20
+ 12,
21
+ 11,
22
+ 10,
23
+ 9,
24
+ 8,
25
+ 7,
26
+ 2,
27
+ 1
28
+ ], a = /* @__PURE__ */ new Set(["27E", "27D", "27C", "26D", "24C", "21A", "20F", "14B", "2A"]);
29
+ function x(t) {
30
+ return t >= 17 ? 245 + (34 - t) * 31 : t >= 11 ? 870 + (14 - t) * 31 : t >= 7 ? 1050 + (10 - t) * 39 : 1260 + (2 - t) * 44;
31
+ }
32
+ const l = n.flatMap(
33
+ (t) => (t >= 11 ? o : s).map(({ column: e, x: c }) => ({
34
+ key: `${t}${e}`,
35
+ row: t,
36
+ column: e,
37
+ status: a.has(`${t}${e}`) ? "occupied" : "available",
38
+ shape: { type: "rect", x: c, y: x(t), width: 21, height: 26 }
39
+ }))
40
+ ), r = l.map((t) => `
41
+ <rect x="${t.shape.x}" y="${t.shape.y}" width="${t.shape.width}" height="${t.shape.height}" rx="4"/>
42
+ <path d="M${t.shape.x + 4} ${t.shape.y - 2}h13"/>`).join(""), h = n.map((t) => `
43
+ <text x="173" y="${x(t) + 19}" text-anchor="end">${t}</text>
44
+ <text x="447" y="${x(t) + 19}">${t}</text>`).join(""), y = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 1540">
45
+ <defs>
46
+ <linearGradient id="wing" x1="0" x2="1" y1="0" y2="1">
47
+ <stop stop-color="#f5f8fa"/><stop offset="1" stop-color="#e5edf2"/>
48
+ </linearGradient>
49
+ </defs>
50
+
51
+ <g fill="url(#wing)" stroke="#b4c2cc" stroke-width="1.5">
52
+ <path d="M192 609 25 801q-10 12-5 21l173-42 36-152Z"/>
53
+ <path d="m428 609 167 192q10 12 5 21l-173-42-36-152Z"/>
54
+ <path d="m190 1325-123 116q-7 8-2 15l132-31 22-83Z"/>
55
+ <path d="m430 1325 123 116q7 8 2 15l-132-31-22-83Z"/>
56
+ </g>
57
+
58
+ <path d="M310 27c-68 0-120 69-120 170v1212c0 62 45 105 120 105s120-43 120-105V197C430 96 378 27 310 27Z" fill="#fff" stroke="#263540" stroke-width="2.2"/>
59
+ <path d="M310 32c-35 0-67 25-87 65h174c-20-40-52-65-87-65Z" fill="#f6f8f9" stroke="#263540" stroke-width="1.4"/>
60
+ <path d="M229 96h162M310 35v60M251 62v34m19-52v52m80-52v52m19-34v34" fill="none" stroke="#52636e" stroke-width="1.2"/>
61
+
62
+ <g fill="none" stroke="#344550" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round">
63
+ <path d="M190 847h240M190 1020h53l28 20h13m54 0h10l28-20h54M190 1227h53l28 20h13m54 0h10l28-20h54M190 1364h240"/>
64
+ <path d="M214 109h42v43h-42zm150 0h42v43h-42zM283 139h54v50h-54z"/>
65
+ <path d="M199 177h54v42h-54zm168 0h54v42h-54zM291 193h38v26h-38z"/>
66
+ <path d="M199 800h48v37h-48zm174 0h48v37h-48zM291 813h38v31h-38z"/>
67
+ <path d="M199 1369h58v46h-58zm164 0h58v46h-58zM291 1374h38v40h-38z"/>
68
+ <path d="M208 1425h83v59h-71zm41 0v59m31-59v59M329 1425h83l-12 59h-71zm42 0v59m29-59v59"/>
69
+ <circle cx="215" cy="200" r="9"/><circle cx="405" cy="200" r="9"/>
70
+ <circle cx="215" cy="820" r="9"/><circle cx="405" cy="820" r="9"/>
71
+ <circle cx="215" cy="1384" r="9"/><circle cx="405" cy="1384" r="9"/>
72
+ </g>
73
+
74
+ <g fill="#fff" stroke="#b7c1c9" stroke-width="1.1">${r}
75
+ </g>
76
+ <g font-family="Arial, sans-serif" fill="none" stroke="#fff" stroke-width="4" stroke-linejoin="round" font-size="15">${h}
77
+ </g>
78
+ <g font-family="Arial, sans-serif" fill="#1e2b35" font-size="15">${h}
79
+ </g>
80
+ <g font-family="Arial, sans-serif" fill="#273640" font-size="15" text-anchor="middle">
81
+ <text x="209" y="236">G</text><text x="233" y="236">F</text><text x="284" y="236">E</text><text x="308" y="236">D</text><text x="332" y="236">C</text><text x="386" y="236">B</text><text x="410" y="236">A</text>
82
+ <text x="209" y="862">G</text><text x="233" y="862">F</text><text x="284" y="862">E</text><text x="308" y="862">D</text><text x="332" y="862">C</text><text x="386" y="862">B</text><text x="410" y="862">A</text>
83
+ <text x="209" y="1043">G</text><text x="236" y="1043">F</text><text x="294" y="1043">E</text><text x="322" y="1043">C</text><text x="383" y="1043">B</text><text x="410" y="1043">A</text>
84
+ <text x="209" y="1252">G</text><text x="236" y="1252">F</text><text x="294" y="1252">E</text><text x="322" y="1252">C</text><text x="383" y="1252">B</text><text x="410" y="1252">A</text>
85
+ <text x="310" y="166">C</text><text x="310" y="831">C</text><text x="310" y="1400">C</text>
86
+ </g>
87
+ </svg>`, f = {
88
+ mapBackground: { type: "svg", content: y },
89
+ viewBox: i,
90
+ data: l,
91
+ colors: { available: "transparent", occupied: "#cc1717", hover: "#e3f1f7", selected: "#367eaf" }
92
+ };
93
+ export {
94
+ f as airplane
95
+ };
@@ -0,0 +1,2 @@
1
+ import { SeatMapPreset } from '../../api/types';
2
+ export declare const ferry: SeatMapPreset;
@@ -0,0 +1,54 @@
1
+ const f = [
2
+ { deck: "Носовой салон", startY: 326, rows: 5 },
3
+ { deck: "Кормовой салон", startY: 871, rows: 6 }
4
+ ], o = f.flatMap(
5
+ (t, h) => Array.from({ length: t.rows }, (r, e) => [
6
+ { column: "A", x: 194 },
7
+ { column: "B", x: 224 },
8
+ { column: "C", x: 254 },
9
+ { column: "D", x: 345 },
10
+ { column: "E", x: 375 },
11
+ { column: "F", x: 405 }
12
+ ].map(({ column: s, x: a }) => ({
13
+ key: `F-${h + 1}-${e + 1}${s}`,
14
+ label: `${t.deck} · ${e + 1}${s}`,
15
+ row: e + 1,
16
+ column: s,
17
+ status: (e * 7 + a) % 17 === 0 ? "occupied" : "available",
18
+ shape: { type: "rect", x: a, y: t.startY + e * 54, width: 22, height: 30 }
19
+ }))).flat()
20
+ ), i = o.map((t) => {
21
+ var a;
22
+ if (((a = t.shape) == null ? void 0 : a.type) !== "rect")
23
+ return "";
24
+ const { x: h, y: r, width: e, height: s } = t.shape;
25
+ return `<rect x="${h}" y="${r}" width="${e}" height="${s}" rx="5"/>`;
26
+ }).join(""), c = Array.from({ length: 17 }, (t, h) => {
27
+ const r = 324 + h * 61;
28
+ return `<rect x="174" y="${r}" width="10" height="34" rx="4"/><rect x="436" y="${r}" width="10" height="34" rx="4"/>`;
29
+ }).join(""), l = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 1540">
30
+ <path d="M310 27C235 79 181 183 173 315v1050c0 95 55 147 137 147s137-52 137-147V315C439 183 385 79 310 27Z" fill="#fff" stroke="#263946" stroke-width="2.5"/>
31
+ <path d="M310 47 224 171Q310 193 396 171Z" fill="#e7f0f4" stroke="#8099a7" stroke-width="1.5"/>
32
+ <rect x="284" y="117" width="52" height="60" rx="7" fill="#dfeaf0" stroke="#8099a7" stroke-width="1.3"/>
33
+ <path d="M188 267h244M188 626h244M188 839h244M188 1230h244" stroke="#9aafba" stroke-width="1.3"/>
34
+ <path d="M191 290h238v313H191zM191 861h238v344H191z" fill="#f8fbfc" stroke="#d8e5ea" stroke-width="1"/>
35
+ <path d="M300 290v313m20-313v313M300 861v344m20-344v344" stroke="#e1ebef" stroke-width="1.3"/>
36
+ <g fill="#e5eff3" stroke="#a9bfca" stroke-width="1">${c}</g>
37
+ <path d="M190 645h100v173H190zM330 645h100v173H330z" fill="#f3f8fa" stroke="#94aab7" stroke-width="1.3"/>
38
+ <path d="M205 660h70v62h-70zm16 91h54v51h-54zM345 661h70v39h-70zM348 724h67v78h-67z" fill="#e7f0f4" stroke="#a3b7c1" stroke-width="1"/>
39
+ <circle cx="374" cy="761" r="18" fill="#fff" stroke="#8fa9b5" stroke-width="1.2"/>
40
+ <path d="M192 1252h236v190H192z" fill="#f3f8fa" stroke="#aabfc9" stroke-width="1.1"/>
41
+ <path d="M212 1252v153m196-153v153M207 1453h206" stroke="#b5c8d1" stroke-width="1.2"/>
42
+ <circle cx="245" cy="1320" r="24" fill="#fff" stroke="#93abb7" stroke-width="1.2"/>
43
+ <circle cx="375" cy="1320" r="24" fill="#fff" stroke="#93abb7" stroke-width="1.2"/>
44
+ <path d="M228 1426h164v36H228z" fill="#e1ebef" stroke="#91a8b4" stroke-width="1.2"/>
45
+ <g fill="#fff" stroke="#9caeba" stroke-width="1.2">${i}</g>
46
+ </svg>`, d = {
47
+ mapBackground: { type: "svg", content: l },
48
+ viewBox: { width: 620, height: 1540 },
49
+ data: o,
50
+ colors: { available: "transparent", occupied: "#2c9a90", hover: "#d8f3ee", selected: "#166773" }
51
+ };
52
+ export {
53
+ d as ferry
54
+ };
@@ -0,0 +1,2 @@
1
+ import { SeatMapPreset } from '../../api/types';
2
+ export declare const iceArena: SeatMapPreset;
@@ -0,0 +1,67 @@
1
+ const a = /* @__PURE__ */ new Set([
2
+ "top-0-7",
3
+ "top-0-8",
4
+ "top-2-12",
5
+ "top-4-5",
6
+ "bottom-1-4",
7
+ "bottom-1-5",
8
+ "bottom-3-13",
9
+ "left-1-7",
10
+ "right-0-3",
11
+ "right-2-9"
12
+ ]), l = /* @__PURE__ */ new Set(["top-3-9", "bottom-2-7", "left-0-4", "right-1-6"]), s = [];
13
+ function c(t, e, o, r, d, h) {
14
+ const i = `${t}-${o}-${r}`;
15
+ s.push({
16
+ key: i,
17
+ section: t,
18
+ label: `${e} · ряд ${o + 1} · место ${r + 1}`,
19
+ row: o + 1,
20
+ column: String(r + 1),
21
+ status: a.has(i) || l.has(i) ? "occupied" : "available",
22
+ shape: { type: "rect", x: d, y: h, width: 18, height: 19 },
23
+ colors: l.has(i) ? { occupied: "#517849" } : void 0
24
+ });
25
+ }
26
+ for (let t = 0; t < 5; t++)
27
+ for (let e = 0; e < 18; e++)
28
+ c("top", "Северная трибуна", t, e, 214 + t * 8 + e * 26, 130 + t * 27), c("bottom", "Южная трибуна", t, e, 246 - t * 8 + e * 26, 638 + t * 27);
29
+ for (let t = 0; t < 3; t++)
30
+ for (let e = 0; e < 11; e++)
31
+ c("left", "Западная трибуна", t, e, 129 + t * 29, 304 + e * 27), c("right", "Восточная трибуна", t, e, 695 + t * 29, 304 + e * 27);
32
+ const f = s.map((t) => {
33
+ var h;
34
+ if (((h = t.shape) == null ? void 0 : h.type) !== "rect")
35
+ return "";
36
+ const { x: e, y: o, width: r, height: d } = t.shape;
37
+ return `<rect x="${e}" y="${o}" width="${r}" height="${d}" rx="3"/>`;
38
+ }).join(""), n = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 900">
39
+ <rect width="900" height="900" fill="#fff"/>
40
+ <rect x="65" y="64" width="770" height="770" rx="135" fill="#fff" stroke="#273d4b" stroke-width="2.6"/>
41
+ <rect x="91" y="92" width="718" height="714" rx="115" fill="#f8fbfc" stroke="#d3e0e7" stroke-width="1.5"/>
42
+ <path d="M214 117h472M214 783h472M112 295v310M788 295v310" fill="none" stroke="#9db4c2" stroke-width="2"/>
43
+ <path d="M209 275 244 300 M691 275 656 300 M209 626 244 601 M691 626 656 601" stroke="#dfe9ee" stroke-width="24"/>
44
+ <path d="M215 277h470M215 624h470M216 288v323M684 288v323" fill="none" stroke="#d5e3ea" stroke-width="1.4" stroke-dasharray="5 7"/>
45
+ <g fill="#fff" stroke="#a3b7c3" stroke-width="1.25">${f}</g>
46
+ <rect x="230" y="287" width="440" height="326" rx="100" fill="#e7f0f5" stroke="#8ba5b3" stroke-width="2"/>
47
+ <rect x="247" y="305" width="406" height="290" rx="86" fill="#f5fbfd" stroke="#6f8d9d" stroke-width="2.7"/>
48
+ <path d="M450 307v286" stroke="#d89a94" stroke-width="2.5"/>
49
+ <path d="M355 311v278M545 311v278" stroke="#9bb9c9" stroke-width="2.4"/>
50
+ <circle cx="450" cy="450" r="55" fill="none" stroke="#9db4c2" stroke-width="2"/>
51
+ <circle cx="450" cy="450" r="3.5" fill="#d89a94"/>
52
+ <g fill="none" stroke="#afc4cf" stroke-width="1.6">
53
+ <circle cx="312" cy="382" r="31"/><circle cx="312" cy="518" r="31"/>
54
+ <circle cx="588" cy="382" r="31"/><circle cx="588" cy="518" r="31"/>
55
+ </g>
56
+ <path d="M250 426h16v48h-16M650 426h-16v48h16" fill="none" stroke="#a7bdc9" stroke-width="2"/>
57
+ <path d="M231 444h16M653 444h16" stroke="#859fad" stroke-width="1.8"/>
58
+ <path d="M110 225q37-104 115-116M675 109q78 12 115 116M110 675q37 104 115 116M675 791q78-12 115-116" fill="none" stroke="#dae6ec" stroke-width="1.5"/>
59
+ </svg>`, k = {
60
+ mapBackground: { type: "svg", content: n },
61
+ viewBox: { width: 900, height: 900 },
62
+ data: s,
63
+ colors: { available: "transparent", occupied: "#91b274", hover: "#e8f2df", selected: "#517849" }
64
+ };
65
+ export {
66
+ k as iceArena
67
+ };
@@ -0,0 +1,2 @@
1
+ import { SeatMapPreset } from '../../api/types';
2
+ export declare const planetarium: SeatMapPreset;
@@ -0,0 +1,54 @@
1
+ const l = { x: 450, y: 300 }, f = [
2
+ { radius: 174, startAngle: 18, endAngle: 162, count: 12 },
3
+ { radius: 215, startAngle: 18, endAngle: 162, count: 16 },
4
+ { radius: 256, startAngle: 18, endAngle: 162, count: 20 },
5
+ { radius: 297, startAngle: 18, endAngle: 162, count: 24 },
6
+ { radius: 338, startAngle: 18, endAngle: 162, count: 28 },
7
+ { radius: 379, startAngle: 18, endAngle: 162, count: 32 },
8
+ { radius: 420, startAngle: 25, endAngle: 155, count: 33 },
9
+ { radius: 455, startAngle: 35, endAngle: 145, count: 30 },
10
+ { radius: 490, startAngle: 46, endAngle: 134, count: 26 },
11
+ { radius: 520, startAngle: 57, endAngle: 123, count: 21 }
12
+ ], y = f.flatMap(({ radius: t, startAngle: s, endAngle: a, count: i }, o) => Array.from({ length: i }, (g, c) => {
13
+ const r = (s + (a - s) * c / (i - 1)) * Math.PI / 180;
14
+ if (Math.abs(r - Math.PI / 3) < 0.085 || Math.abs(r - Math.PI * 2 / 3) < 0.085)
15
+ return null;
16
+ const n = { x: -Math.sin(r), y: Math.cos(r) }, e = { x: Math.cos(r), y: Math.sin(r) }, d = l.x + t * e.x, h = l.y + t * e.y, u = [
17
+ { x: d - n.x * 11 - e.x * 12, y: h - n.y * 11 - e.y * 12 },
18
+ { x: d + n.x * 11 - e.x * 12, y: h + n.y * 11 - e.y * 12 },
19
+ { x: d + n.x * 11 + e.x * 12, y: h + n.y * 11 + e.y * 12 },
20
+ { x: d - n.x * 11 + e.x * 12, y: h - n.y * 11 + e.y * 12 }
21
+ ];
22
+ return {
23
+ key: `P-${o + 1}-${c + 1}`,
24
+ label: `Ряд ${o + 1} · место ${c + 1}`,
25
+ row: o + 1,
26
+ column: String(c + 1),
27
+ status: (o * 11 + c * 7) % 19 === 0 ? "occupied" : "available",
28
+ shape: { type: "polygon", points: u }
29
+ };
30
+ }).filter((g) => g !== null)), p = y.map((t) => {
31
+ var s;
32
+ return ((s = t.shape) == null ? void 0 : s.type) === "polygon" ? `<polygon points="${t.shape.points.map((a) => `${a.x.toFixed(1)},${a.y.toFixed(1)}`).join(" ")}"/>` : "";
33
+ }).join(""), x = [Math.PI / 3, Math.PI * 2 / 3].map((t) => {
34
+ const s = l.x + 135 * Math.cos(t), a = l.y + 135 * Math.sin(t), i = l.x + 515 * Math.cos(t), o = l.y + 515 * Math.sin(t);
35
+ return `<path d="M${s} ${a} ${i} ${o}"/>`;
36
+ }).join(""), A = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 900">
37
+ <circle cx="450" cy="450" r="418" fill="#fff" stroke="#263946" stroke-width="2.4"/>
38
+ <path d="M115 300A355 355 0 0 1 785 300" fill="none" stroke="#c9d8e2" stroke-width="23"/>
39
+ <path d="M130 305A345 345 0 0 1 770 305" fill="none" stroke="#708899" stroke-width="1.5" stroke-dasharray="5 6"/>
40
+ <path d="M117 344A345 345 0 0 1 783 344" fill="none" stroke="#dce6ed" stroke-width="1.3" stroke-dasharray="6 6"/>
41
+ <g fill="none" stroke="#e3ebf0" stroke-width="21">${x}</g>
42
+ <circle cx="450" cy="300" r="44" fill="#f3f7f9" stroke="#9aafbc" stroke-width="1.5"/>
43
+ <rect x="428" y="276" width="44" height="48" rx="7" fill="#e7eef3" stroke="#728a99" stroke-width="1.5"/>
44
+ <path d="M409 856h29v23h24v-23h29" fill="#f3f7f9" stroke="#263946" stroke-width="2"/>
45
+ <g fill="#fff" stroke="#91a4b0" stroke-width="1.15">${p}</g>
46
+ </svg>`, k = {
47
+ mapBackground: { type: "svg", content: A },
48
+ viewBox: { width: 900, height: 900 },
49
+ data: y,
50
+ colors: { available: "transparent", occupied: "#906cc0", hover: "#eee6f8", selected: "#5b3e91" }
51
+ };
52
+ export {
53
+ k as planetarium
54
+ };
@@ -0,0 +1,2 @@
1
+ import { SeatMapPreset } from '../../api/types';
2
+ export declare const train: SeatMapPreset;
@@ -0,0 +1,66 @@
1
+ const s = [
2
+ ...Array.from({ length: 10 }, (h, e) => [
3
+ { column: "A", x: 215 },
4
+ { column: "B", x: 244 },
5
+ { column: "C", x: 354 },
6
+ { column: "D", x: 383 }
7
+ ].map(({ column: t, x: r }) => ({
8
+ key: `1-${e + 1}${t}`,
9
+ label: `Вагон 1 · место ${e + 1}${t}`,
10
+ row: e + 1,
11
+ column: t,
12
+ status: ["1-2B", "1-5D", "1-8A"].includes(`1-${e + 1}${t}`) ? "occupied" : "available",
13
+ shape: { type: "rect", x: r, y: 112 + e * 53, width: 22, height: 31 }
14
+ }))).flat(),
15
+ ...Array.from({ length: 4 }, (h, e) => [
16
+ { column: "L", x: 226 },
17
+ { column: "R", x: 348 }
18
+ ].map(({ column: t, x: r }) => ({
19
+ key: `2-${e + 1}${t}`,
20
+ label: `Вагон 2 · купе ${e + 1} · ${t}`,
21
+ row: e + 1,
22
+ column: t,
23
+ status: e === 2 && t === "R" ? "occupied" : "available",
24
+ shape: { type: "rect", x: r, y: 862 + e * 132, width: 25, height: 43 }
25
+ }))).flat()
26
+ ], o = s.map((h) => {
27
+ var i;
28
+ if (((i = h.shape) == null ? void 0 : i.type) !== "rect")
29
+ return "";
30
+ const { x: e, y: t, width: r, height: d } = h.shape;
31
+ return `<rect x="${e}" y="${t}" width="${r}" height="${d}" rx="5"/>`;
32
+ }).join(""), a = Array.from({ length: 4 }, (h, e) => {
33
+ const t = 840 + e * 132;
34
+ return `<rect x="207" y="${t}" width="177" height="112" rx="4" fill="#fbfcfd"/>
35
+ <rect x="283" y="${t + 31}" width="33" height="32" rx="4" fill="#eef3f6"/>
36
+ <path d="M384 ${t + 55}h19"/>`;
37
+ }).join(""), c = Array.from({ length: 10 }, (h, e) => {
38
+ const t = 113 + e * 53;
39
+ return `<rect x="198" y="${t}" width="8" height="28" rx="3"/><rect x="414" y="${t}" width="8" height="28" rx="3"/>`;
40
+ }).join(""), l = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 1540">
41
+ <g fill="#dfe8ed" stroke="#748a97" stroke-width="1.4">
42
+ <rect x="181" y="155" width="13" height="108" rx="4"/><rect x="426" y="155" width="13" height="108" rx="4"/>
43
+ <rect x="181" y="524" width="13" height="108" rx="4"/><rect x="426" y="524" width="13" height="108" rx="4"/>
44
+ <rect x="181" y="918" width="13" height="108" rx="4"/><rect x="426" y="918" width="13" height="108" rx="4"/>
45
+ <rect x="181" y="1283" width="13" height="108" rx="4"/><rect x="426" y="1283" width="13" height="108" rx="4"/>
46
+ </g>
47
+ <rect x="195" y="25" width="230" height="723" rx="43" fill="#fff" stroke="#263946" stroke-width="2.5"/>
48
+ <rect x="195" y="792" width="230" height="723" rx="43" fill="#fff" stroke="#263946" stroke-width="2.5"/>
49
+ <path d="M284 748v44m52-44v44" stroke="#526b78" stroke-width="2"/>
50
+ <path d="M284 751h52v38h-52z" fill="#e9f0f3" stroke="#526b78" stroke-width="1.3"/>
51
+ <path d="M289 755v30m6-30v30m6-30v30m6-30v30m6-30v30m6-30v30m6-30v30" stroke="#9aadb7" stroke-width="1"/>
52
+ <path d="M207 69h206v35H207zm0 563h206v64H207zM207 833h177v542H207zM392 833h21v542h-21zM207 1405h206v59H207z" fill="#f3f7f9" stroke="#b4c3cc" stroke-width="1.2"/>
53
+ <path d="M281 107v521m58-521v521" stroke="#d9e4e9" stroke-width="1"/>
54
+ <g fill="#e4edf2" stroke="#aabec9" stroke-width="1">${c}</g>
55
+ <g fill="none" stroke="#9baeb9" stroke-width="1.25">${a}</g>
56
+ <g fill="#fff" stroke="#9eafba" stroke-width="1.2">${o}</g>
57
+ <path d="M250 46h120M250 1477h120" stroke="#778d99" stroke-width="2" stroke-linecap="round"/>
58
+ </svg>`, f = {
59
+ mapBackground: { type: "svg", content: l },
60
+ viewBox: { width: 620, height: 1540 },
61
+ data: s,
62
+ colors: { available: "transparent", occupied: "#ce8734", hover: "#fbefd9", selected: "#9d5e24" }
63
+ };
64
+ export {
65
+ f as train
66
+ };
@@ -0,0 +1,78 @@
1
+ /** Presets не регистрируют графики и не выполняют mount. */
2
+ export declare const ChartPresets: {
3
+ readonly light: {
4
+ readonly theme: "light";
5
+ readonly background: "#ffffff";
6
+ readonly palette: readonly ["#2674b8", "#e68a42", "#69a84f", "#8f6fc0", "#bd5276"];
7
+ };
8
+ readonly dark: {
9
+ readonly theme: "dark";
10
+ readonly background: "#141d28";
11
+ readonly palette: readonly ["#64b1ed", "#edaf70", "#93cd83", "#b298e0", "#e68fae"];
12
+ };
13
+ readonly dashboard: {
14
+ readonly theme: "light";
15
+ readonly background: "#ffffff";
16
+ readonly palette: readonly ["#2563eb", "#16a34a", "#f59e0b", "#dc2626", "#7c3aed"];
17
+ };
18
+ readonly editorial: {
19
+ readonly theme: "light";
20
+ readonly background: "#fbfbf8";
21
+ readonly palette: readonly ["#b45309", "#1f766d", "#7c2d12", "#4338ca", "#be123c"];
22
+ readonly styles: {
23
+ readonly selected: {
24
+ readonly stroke: "#b45309";
25
+ readonly strokeWidth: 2;
26
+ };
27
+ };
28
+ };
29
+ readonly financial: {
30
+ readonly theme: "light";
31
+ readonly background: "#ffffff";
32
+ readonly palette: readonly ["#16a34a", "#dc2626", "#0284c7", "#ca8a04", "#475569"];
33
+ readonly styles: {
34
+ readonly selected: {
35
+ readonly stroke: "#0284c7";
36
+ readonly strokeWidth: 2;
37
+ };
38
+ };
39
+ };
40
+ readonly scientific: {
41
+ readonly theme: "light";
42
+ readonly background: "#ffffff";
43
+ readonly palette: readonly ["#2563eb", "#dc2626", "#16a34a", "#9333ea", "#ea580c"];
44
+ readonly styles: {
45
+ readonly selected: {
46
+ readonly stroke: "#7c3aed";
47
+ readonly strokeWidth: 2;
48
+ };
49
+ };
50
+ };
51
+ readonly minimal: {
52
+ readonly theme: "light";
53
+ readonly background: "#ffffff";
54
+ readonly palette: readonly ["#111827", "#64748b", "#94a3b8", "#2563eb"];
55
+ readonly labels: {
56
+ readonly visible: false;
57
+ };
58
+ readonly motion: false;
59
+ };
60
+ readonly contrast: {
61
+ readonly theme: "dark";
62
+ readonly background: "#0b1020";
63
+ readonly palette: readonly ["#facc15", "#38bdf8", "#fb7185", "#4ade80", "#c084fc"];
64
+ readonly styles: {
65
+ readonly selected: {
66
+ readonly stroke: "#facc15";
67
+ readonly strokeWidth: 3;
68
+ };
69
+ };
70
+ };
71
+ readonly compact: {
72
+ readonly legend: false;
73
+ readonly labels: {
74
+ readonly visible: false;
75
+ };
76
+ readonly motion: false;
77
+ };
78
+ };
@@ -0,0 +1,14 @@
1
+ const e = {
2
+ light: { theme: "light", background: "#ffffff", palette: ["#2674b8", "#e68a42", "#69a84f", "#8f6fc0", "#bd5276"] },
3
+ dark: { theme: "dark", background: "#141d28", palette: ["#64b1ed", "#edaf70", "#93cd83", "#b298e0", "#e68fae"] },
4
+ dashboard: { theme: "light", background: "#ffffff", palette: ["#2563eb", "#16a34a", "#f59e0b", "#dc2626", "#7c3aed"] },
5
+ editorial: { theme: "light", background: "#fbfbf8", palette: ["#b45309", "#1f766d", "#7c2d12", "#4338ca", "#be123c"], styles: { selected: { stroke: "#b45309", strokeWidth: 2 } } },
6
+ financial: { theme: "light", background: "#ffffff", palette: ["#16a34a", "#dc2626", "#0284c7", "#ca8a04", "#475569"], styles: { selected: { stroke: "#0284c7", strokeWidth: 2 } } },
7
+ scientific: { theme: "light", background: "#ffffff", palette: ["#2563eb", "#dc2626", "#16a34a", "#9333ea", "#ea580c"], styles: { selected: { stroke: "#7c3aed", strokeWidth: 2 } } },
8
+ minimal: { theme: "light", background: "#ffffff", palette: ["#111827", "#64748b", "#94a3b8", "#2563eb"], labels: { visible: !1 }, motion: !1 },
9
+ contrast: { theme: "dark", background: "#0b1020", palette: ["#facc15", "#38bdf8", "#fb7185", "#4ade80", "#c084fc"], styles: { selected: { stroke: "#facc15", strokeWidth: 3 } } },
10
+ compact: { legend: !1, labels: { visible: !1 }, motion: !1 }
11
+ };
12
+ export {
13
+ e as ChartPresets
14
+ };
@@ -0,0 +1,2 @@
1
+ export type * from './api/types';
2
+ export type { ChartScaleExplicitTickInput as ExplicitTick, ChartScaleDomain as ScaleDomain, ChartScaleTick as ScaleTick, ChartScaleTickOptions as ScaleTickOptions } from './model/types/chart-scale.types';
@@ -0,0 +1,5 @@
1
+ export declare const RadarChart: {
2
+ mount: <T>(target: string | HTMLElement, options: import('./public').PartitionOptions<T>) => import('./public').PartitionHandle<T>;
3
+ attach: <T>(target: import('./public').ChartAttachTarget, options: import('./public').PartitionOptions<T>) => import('./public').PartitionHandle<T>;
4
+ };
5
+ export type { PartitionHandle as RadarChartHandle, PartitionOptions as RadarChartOptions } from './api/types';
package/dist/radar.js ADDED
@@ -0,0 +1,47 @@
1
+ import { p as M } from "./mark-paint-CMHKGegE.js";
2
+ import { c as x } from "./partition-D-0LTCr3.js";
3
+ import { c as v } from "./MarkSeries-CQCAnV4s.js";
4
+ function F(e) {
5
+ const { props: o, dataStore: n, width: c, height: r } = e;
6
+ if (!o.categoryField || !o.valueField)
7
+ return [];
8
+ const t = n.getData().flatMap((a, l) => {
9
+ const i = Number(n.readField(a, l, o.valueField));
10
+ return !Number.isFinite(i) || i < 0 ? [] : [{ row: a, index: l, value: i, label: String(n.readField(a, l, o.categoryField) ?? "") }];
11
+ });
12
+ if (t.length < 3)
13
+ return [];
14
+ let s = 1;
15
+ for (const a of t)
16
+ s = Math.max(s, a.value);
17
+ const u = o.maxValue ?? s, h = Math.max(0, Math.min(c * 0.35, r * 0.33)), m = c / 2, g = r / 2;
18
+ return t.map((a, l) => {
19
+ const i = -Math.PI / 2 + l / t.length * Math.PI * 2, d = h * Math.min(1, a.value / u), y = m + Math.cos(i) * d, f = g + Math.sin(i) * d;
20
+ return {
21
+ kind: "radar",
22
+ key: String(n.getRowKey(a.row, a.index)),
23
+ row: a.row,
24
+ label: a.label,
25
+ value: a.value,
26
+ color: v(o.palette, 0),
27
+ x: y - 5,
28
+ y: f - 5,
29
+ width: 10,
30
+ height: 10
31
+ };
32
+ });
33
+ }
34
+ const p = x({ kind: "radar", layout: F, mark: M, decoration(e, o, n) {
35
+ if (e.length < 3)
36
+ return [];
37
+ const c = Math.min(o * 0.35, n * 0.33), r = [];
38
+ for (const t of [0.25, 0.5, 0.75, 1])
39
+ r.push({ type: "polygon", points: e.map((s, u) => {
40
+ const h = -Math.PI / 2 + u / e.length * Math.PI * 2;
41
+ return { x: o / 2 + Math.cos(h) * c * t, y: n / 2 + Math.sin(h) * c * t };
42
+ }), styles: { stroke: "#d7dedc", lineWidth: 1 } });
43
+ return r.push({ type: "polygon", points: e.map((t) => ({ x: t.x + t.width / 2, y: t.y + t.height / 2 })), styles: { background: e[0].color, stroke: e[0].color, lineWidth: 2, opacity: 0.35 } }), r;
44
+ } }), I = { mount: p.mount, attach: p.attach };
45
+ export {
46
+ I as RadarChart
47
+ };
package/dist/rose.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export declare const RoseChart: {
2
+ mount: <T>(target: string | HTMLElement, options: import('./public').PartitionOptions<T>) => import('./public').PartitionHandle<T>;
3
+ attach: <T>(target: import('./public').ChartAttachTarget, options: import('./public').PartitionOptions<T>) => import('./public').PartitionHandle<T>;
4
+ };
5
+ export type { PartitionHandle as RoseChartHandle, PartitionOptions as RoseChartOptions } from './api/types';
package/dist/rose.js ADDED
@@ -0,0 +1,7 @@
1
+ import { a } from "./mark-paint-CMHKGegE.js";
2
+ import { c as o } from "./partition-D-0LTCr3.js";
3
+ import { l as r } from "./layout-donut-BG4ubBtU.js";
4
+ const t = o({ kind: "rose", layout: r, mark: a }), s = { mount: t.mount, attach: t.attach };
5
+ export {
6
+ s as RoseChart
7
+ };
@@ -0,0 +1,6 @@
1
+ import { RouteMapHandle, RouteMapOptions } from './api/types';
2
+ export declare const RouteMapChart: {
3
+ mount: (target: string | HTMLElement, options: RouteMapOptions) => RouteMapHandle;
4
+ attach: (target: import('./api/types').ChartAttachTarget, options: RouteMapOptions) => RouteMapHandle;
5
+ };
6
+ export type { MapRegion, MapRoute, MapWalker, RouteMapHandle as RouteMapChartHandle, RouteMapOptions as RouteMapChartOptions, RouteMapData } from './api/types';