@cfasim-ui/charts 0.3.3 → 0.3.5
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/ChoroplethMap/ChoroplethMap.d.ts +7 -0
- package/dist/LineChart/LineChart.d.ts +7 -0
- package/dist/index.css +1 -1
- package/dist/index.js +415 -373
- package/dist/tooltip-position.d.ts +13 -0
- package/package.json +2 -2
|
@@ -56,6 +56,12 @@ type __VLS_Props = {
|
|
|
56
56
|
name: string;
|
|
57
57
|
value?: number | string;
|
|
58
58
|
}) => string;
|
|
59
|
+
/**
|
|
60
|
+
* Boundary for tooltip flip/clamp. `"none"` always places to the right of
|
|
61
|
+
* the pointer with no clamping. `"chart"` (default) uses the map
|
|
62
|
+
* container's bounding box. `"window"` uses the viewport.
|
|
63
|
+
*/
|
|
64
|
+
tooltipClamp?: "none" | "chart" | "window";
|
|
59
65
|
};
|
|
60
66
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
61
67
|
stateClick: (state: {
|
|
@@ -82,6 +88,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
82
88
|
}>, {
|
|
83
89
|
legend: boolean;
|
|
84
90
|
menu: boolean | string;
|
|
91
|
+
tooltipClamp: "none" | "chart" | "window";
|
|
85
92
|
geoType: GeoType;
|
|
86
93
|
noDataColor: string;
|
|
87
94
|
strokeColor: string;
|
|
@@ -64,6 +64,12 @@ type __VLS_Props = {
|
|
|
64
64
|
tooltipData?: unknown[];
|
|
65
65
|
/** Tooltip activation mode. Default: 'hover' */
|
|
66
66
|
tooltipTrigger?: "hover" | "click";
|
|
67
|
+
/**
|
|
68
|
+
* Boundary for tooltip flip/clamp. `"none"` always places to the right of
|
|
69
|
+
* the pointer with no clamping. `"chart"` (default) uses the chart
|
|
70
|
+
* container's bounding box. `"window"` uses the viewport.
|
|
71
|
+
*/
|
|
72
|
+
tooltipClamp?: "none" | "chart" | "window";
|
|
67
73
|
/**
|
|
68
74
|
* Custom CSV content for the Download CSV menu item. Can be a raw CSV
|
|
69
75
|
* string or a function returning one. When omitted, CSV is generated
|
|
@@ -123,6 +129,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
123
129
|
}>, {
|
|
124
130
|
menu: boolean | string;
|
|
125
131
|
lineOpacity: number;
|
|
132
|
+
tooltipClamp: "none" | "chart" | "window";
|
|
126
133
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
127
134
|
containerRef: HTMLDivElement;
|
|
128
135
|
svgRef: SVGSVGElement;
|
package/dist/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.chart-menu-trigger-area[data-v-fe2f6904]{z-index:1;position:absolute;top:0;right:0}.chart-menu-button[data-v-fe2f6904]{border:1px solid var(--color-border);background:var(--color-bg-0,#fff);width:28px;height:28px;color:var(--color-text-secondary);cursor:pointer;opacity:0;border-radius:.25em;justify-content:center;align-items:center;transition:opacity .15s;display:flex}.chart-menu-button[data-state=open][data-v-fe2f6904]{opacity:1}.chart-menu-button[data-v-fe2f6904]:hover{background:var(--color-bg-1,#0000000d);color:var(--color-text)}.chart-menu-content{z-index:100;background:var(--color-bg-0);border:1px solid var(--color-border);border-radius:.25em;min-width:140px;padding:.25em;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.chart-menu-item{font-size:var(--font-size-sm);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:.25em;outline:none;align-items:center;padding:.375em .5em;display:flex}.chart-menu-item[data-highlighted]{background:var(--color-primary);color:#fff}.line-chart-wrapper[data-v-
|
|
1
|
+
.chart-menu-trigger-area[data-v-fe2f6904]{z-index:1;position:absolute;top:0;right:0}.chart-menu-button[data-v-fe2f6904]{border:1px solid var(--color-border);background:var(--color-bg-0,#fff);width:28px;height:28px;color:var(--color-text-secondary);cursor:pointer;opacity:0;border-radius:.25em;justify-content:center;align-items:center;transition:opacity .15s;display:flex}.chart-menu-button[data-state=open][data-v-fe2f6904]{opacity:1}.chart-menu-button[data-v-fe2f6904]:hover{background:var(--color-bg-1,#0000000d);color:var(--color-text)}.chart-menu-content{z-index:100;background:var(--color-bg-0);border:1px solid var(--color-border);border-radius:.25em;min-width:140px;padding:.25em;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.chart-menu-item{font-size:var(--font-size-sm);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:.25em;outline:none;align-items:center;padding:.375em .5em;display:flex}.chart-menu-item[data-highlighted]{background:var(--color-primary);color:#fff}.line-chart-wrapper[data-v-eb7e46c4]{width:100%;position:relative}.line-chart-wrapper[data-v-eb7e46c4]:hover .chart-menu-button{opacity:1}.line-chart-tooltip-label[data-v-eb7e46c4]{margin-bottom:.25em;font-weight:600}.line-chart-tooltip-row[data-v-eb7e46c4]{align-items:center;gap:.375em;display:flex}.line-chart-download-link[data-v-eb7e46c4]{text-align:right;font-size:var(--font-size-sm);margin-top:.25em;display:block}.line-chart-tooltip-swatch[data-v-eb7e46c4]{border-radius:50%;flex-shrink:0;width:.625em;height:.625em;display:inline-block}.choropleth-wrapper[data-v-25a20d5b]{width:100%;position:relative}.choropleth-wrapper.pannable svg[data-v-25a20d5b]{cursor:grab}.choropleth-wrapper.pannable svg[data-v-25a20d5b]:active{cursor:grabbing}.choropleth-wrapper[data-v-25a20d5b]:hover .chart-menu-button{opacity:1}.state-path[data-v-25a20d5b]{cursor:pointer}.chart-tooltip-anchor[data-v-44377f70]{pointer-events:none;width:1px;height:1px;position:absolute}.chart-tooltip-content{z-index:100;background:var(--color-bg-0,#fff);border:1px solid var(--color-border,#e5e7eb);font-size:var(--font-size-sm,.875rem);pointer-events:none;border-radius:.375em;padding:.5em .75em;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.TableOuter[data-v-505e2187]{display:inline-block;position:relative}.TableOuter.has-menu[data-v-505e2187]{margin-top:32px}.TableOuter[data-v-505e2187] .chart-menu-trigger-area{top:-32px;right:0}.TableOuter[data-v-505e2187]:hover .chart-menu-button{opacity:1}.TableWrapper[data-v-505e2187]{font-size:var(--font-size-sm);overflow-x:auto}.Table[data-v-505e2187]{border-collapse:collapse;font-variant-numeric:tabular-nums;border:1px solid var(--color-border);margin:0;display:table}.Table tr[data-v-505e2187],.Table th[data-v-505e2187],.Table td[data-v-505e2187]{background:0 0;border:none}.Table th[data-v-505e2187],.Table td[data-v-505e2187]{white-space:nowrap;padding:.75em 1.25em}.Table th[data-v-505e2187]{border-bottom:1px solid var(--color-border-header);font-weight:600;position:sticky;top:0}.Table tbody td[data-v-505e2187]{border-bottom:1px solid var(--color-border)}.Table tbody tr:last-child td[data-v-505e2187]{border-bottom:none}.data-table-download-link[data-v-505e2187]{text-align:right;font-size:var(--font-size-sm);margin-top:.25em;display:block}
|
|
2
2
|
/*$vite$:1*/
|