@likable-hair/svelte 3.2.5 → 3.2.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.
|
@@ -25,14 +25,11 @@ ChartJS.register(
|
|
|
25
25
|
export let data = {
|
|
26
26
|
labels: [],
|
|
27
27
|
datasets: []
|
|
28
|
-
}, horizontal = false, responsive = true, maintainAspectRatio = true, showLegend = true, showYTicks = false, showXTicks = false, displayYGrid = true, lineWidth = 1, enableZoom = true, resetZoom = false, tooltipLabel = void 0, yTickLabel = void 0, xTickLabel = void 0, xTickStepSize = void 0, yTickStepSize = void 0, xMax = void 0, yMax = void 0;
|
|
28
|
+
}, horizontal = false, responsive = true, maintainAspectRatio = true, showLegend = true, showYTicks = false, showXTicks = false, displayYGrid = true, lineWidth = 1, enableZoom = true, resetZoom = false, tooltipLabel = void 0, yTickLabel = void 0, xTickLabel = void 0, xTickStepSize = void 0, yTickStepSize = void 0, xMax = void 0, yMax = void 0, rgbTooltipColor = void 0, rgbTooltipBackgroundColor = void 0, rgbBackgroundColor = void 0, width = void 0, height = void 0;
|
|
29
29
|
let mounted = false, zoomMounted = false;
|
|
30
30
|
onMount(() => {
|
|
31
31
|
mounted = true;
|
|
32
32
|
});
|
|
33
|
-
export let rgbTooltipColor = void 0;
|
|
34
|
-
export let rgbTooltipBackgroundColor = void 0;
|
|
35
|
-
export let rgbBackgroundColor = void 0;
|
|
36
33
|
$:
|
|
37
34
|
if (!rgbTooltipColor && !!$theme.colors?.[$theme.active]["dark"]["primary"]["300"])
|
|
38
35
|
rgbTooltipColor = $theme.colors?.[$theme.active]["dark"]["primary"]["300"];
|
|
@@ -151,4 +148,6 @@ $:
|
|
|
151
148
|
bind:data={data}
|
|
152
149
|
options={chartOptions}
|
|
153
150
|
bind:chart={chart}
|
|
151
|
+
bind:width={width}
|
|
152
|
+
bind:height={height}
|
|
154
153
|
></Bar>
|
|
@@ -32,6 +32,8 @@ declare const __propDef: {
|
|
|
32
32
|
rgbTooltipColor?: string | undefined;
|
|
33
33
|
rgbTooltipBackgroundColor?: string | undefined;
|
|
34
34
|
rgbBackgroundColor?: string | undefined;
|
|
35
|
+
width?: string | number | undefined;
|
|
36
|
+
height?: string | number | undefined;
|
|
35
37
|
};
|
|
36
38
|
events: {
|
|
37
39
|
[evt: string]: CustomEvent<any>;
|
package/dist/utils/countries.js
CHANGED
|
@@ -243,6 +243,7 @@ export const countriesList = [
|
|
|
243
243
|
{ alpha2: "VU", name: "Vanuatu" },
|
|
244
244
|
{ alpha2: "WF", name: "Wallis and Futuna" },
|
|
245
245
|
{ alpha2: "WS", name: "Samoa" },
|
|
246
|
+
{ alpha2: "XS", name: "Serbia" },
|
|
246
247
|
{ alpha2: "YE", name: "Yemen" },
|
|
247
248
|
{ alpha2: "YT", name: "Mayotte" },
|
|
248
249
|
{ alpha2: "ZA", name: "South Africa" },
|