diff --git a/package-lock.json b/package-lock.json index e6b44406..6538d09e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,7 +35,6 @@ "d3-time-format": "^4.1.0", "degit": "^2.8.4", "do-not-zip": "^1.0.0", - "doctrine": "^3.0.0", "emoji-regex": "^10.3.0", "golden-fleece": "^1.0.9", "highlight.js": "^11.9.0", @@ -1818,19 +1817,6 @@ "dev": true, "license": "MIT" }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/emoji-regex": { "version": "10.4.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", @@ -1938,16 +1924,6 @@ "dev": true, "license": "MIT" }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/file-source": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/file-source/-/file-source-0.6.1.tgz", diff --git a/package.json b/package.json index 6848022a..107d2d82 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,6 @@ "d3-time-format": "^4.1.0", "degit": "^2.8.4", "do-not-zip": "^1.0.0", - "doctrine": "^3.0.0", "emoji-regex": "^10.3.0", "golden-fleece": "^1.0.9", "highlight.js": "^11.9.0", diff --git a/src/_components/Area.svelte b/src/_components/Area.svelte index 9c499f5b..40e046d2 100644 --- a/src/_components/Area.svelte +++ b/src/_components/Area.svelte @@ -7,7 +7,7 @@ const { data, xGet, yGet, xScale, yScale, extents } = getContext('LayerCake'); - /** @type {String} [fill='#ab00d610'] The shape's fill color. This is technically optional because it comes with a default value but you'll likely want to replace it with your own color. */ + /** @type {String} [fill='#ab00d610'] - The shape's fill color. This is technically optional because it comes with a default value but you'll likely want to replace it with your own color. */ export let fill = '#ab00d610'; $: path = diff --git a/src/_components/AxisX.percent-range.html.svelte b/src/_components/AxisX.percent-range.html.svelte index efd2294e..386e00ae 100644 --- a/src/_components/AxisX.percent-range.html.svelte +++ b/src/_components/AxisX.percent-range.html.svelte @@ -18,7 +18,7 @@ /** @type {Number} [tickMarkLength=6] - The length of the tick mark. */ export let tickMarkLength = 6; - /** @type {boolean} [baseline=false] – Show a solid line at the bottom. */ + /** @type {boolean} [baseline=false] - Show a solid line at the bottom. */ export let baseline = false; /** @type {boolean} [snapLabels=false] - Instead of centering the text labels on the first and the last items, align them to the edges of the chart. */ @@ -42,7 +42,7 @@ /** @type {String} units - Whether this component should use percentage or pixel values. If `percentRange={true}` it defaults to `'%'`. Options: `'%'` or `'px'`. */ export let units = $percentRange === true ? '%' : 'px'; - $: tickLen = tickMarks === true ? tickMarkLength ?? 6 : 0; + $: tickLen = tickMarks === true ? (tickMarkLength ?? 6) : 0; $: isBandwidth = typeof $xScale.bandwidth === 'function'; diff --git a/src/_components/AxisX.svelte b/src/_components/AxisX.svelte index da7bb3cc..119e4e9a 100644 --- a/src/_components/AxisX.svelte +++ b/src/_components/AxisX.svelte @@ -16,7 +16,7 @@ /** @type {Number} [tickMarkLength=6] - The length of the tick mark. */ export let tickMarkLength = 6; - /** @type {boolean} [baseline=false] – Show a solid line at the bottom. */ + /** @type {boolean} [baseline=false] - Show a solid line at the bottom. */ export let baseline = false; /** @type {boolean} [snapLabels=false] - Instead of centering the text labels on the first and the last items, align them to the edges of the chart. */ @@ -51,7 +51,7 @@ return 'middle'; } - $: tickLen = tickMarks === true ? tickMarkLength ?? 6 : 0; + $: tickLen = tickMarks === true ? (tickMarkLength ?? 6) : 0; $: isBandwidth = typeof $xScale.bandwidth === 'function'; diff --git a/src/_components/AxisXTop.percent-range.html.svelte b/src/_components/AxisXTop.percent-range.html.svelte index 01c00fc5..b2498af7 100644 --- a/src/_components/AxisXTop.percent-range.html.svelte +++ b/src/_components/AxisXTop.percent-range.html.svelte @@ -18,7 +18,7 @@ /** @type {Number} [tickMarkLength=6] - The length of the tick mark. */ export let tickMarkLength = 6; - /** @type {boolean} [baseline=false] – Show a solid line at the bottom. */ + /** @type {boolean} [baseline=false] - Show a solid line at the bottom. */ export let baseline = false; /** @type {boolean} [snapLabels=false] - Instead of centering the text labels on the first and the last items, align them to the edges of the chart. */ @@ -42,7 +42,7 @@ /** @type {String} units - Whether this component should use percentage or pixel values. If `percentRange={true}` it defaults to `'%'`. Options: `'%'` or `'px'`. */ export let units = $percentRange === true ? '%' : 'px'; - $: tickLen = tickMarks === true ? tickMarkLength ?? 6 : 0; + $: tickLen = tickMarks === true ? (tickMarkLength ?? 6) : 0; $: isBandwidth = typeof $xScale.bandwidth === 'function'; diff --git a/src/_components/AxisXTop.svelte b/src/_components/AxisXTop.svelte index 42095dfd..c0da01d8 100644 --- a/src/_components/AxisXTop.svelte +++ b/src/_components/AxisXTop.svelte @@ -16,7 +16,7 @@ /** @type {Number} [tickMarkLength=6] - The length of the tick mark. */ export let tickMarkLength = 6; - /** @type {boolean} [baseline=false] – Show a solid line at the bottom. */ + /** @type {boolean} [baseline=false] - Show a solid line at the bottom. */ export let baseline = false; /** @type {boolean} [snapLabels=false] - Instead of centering the text labels on the first and the last items, align them to the edges of the chart. */ @@ -51,7 +51,7 @@ return 'middle'; } - $: tickLen = tickMarks === true ? tickMarkLength ?? 6 : 0; + $: tickLen = tickMarks === true ? (tickMarkLength ?? 6) : 0; $: isBandwidth = typeof $xScale.bandwidth === 'function'; diff --git a/src/_components/AxisY.percent-range.html.svelte b/src/_components/AxisY.percent-range.html.svelte index abab2f24..33927193 100644 --- a/src/_components/AxisY.percent-range.html.svelte +++ b/src/_components/AxisY.percent-range.html.svelte @@ -66,8 +66,8 @@ $: tickLen = tickMarks === true ? labelPosition === 'above' - ? tickMarkLength ?? widestTickLen - : tickMarkLength ?? 6 + ? (tickMarkLength ?? widestTickLen) + : (tickMarkLength ?? 6) : 0; $: widestTickLen = Math.max( diff --git a/src/_components/AxisY.svelte b/src/_components/AxisY.svelte index e3773c3a..696751ee 100644 --- a/src/_components/AxisY.svelte +++ b/src/_components/AxisY.svelte @@ -61,8 +61,8 @@ $: tickLen = tickMarks === true ? labelPosition === 'above' - ? tickMarkLength ?? widestTickLen - : tickMarkLength ?? 6 + ? (tickMarkLength ?? widestTickLen) + : (tickMarkLength ?? 6) : 0; $: widestTickLen = Math.max( diff --git a/src/_components/AxisYRight.percent-range.html.svelte b/src/_components/AxisYRight.percent-range.html.svelte index 367f37ff..3ec044ef 100644 --- a/src/_components/AxisYRight.percent-range.html.svelte +++ b/src/_components/AxisYRight.percent-range.html.svelte @@ -66,8 +66,8 @@ $: tickLen = tickMarks === true ? labelPosition === 'above' - ? tickMarkLength ?? widestTickLen - : tickMarkLength ?? 6 + ? (tickMarkLength ?? widestTickLen) + : (tickMarkLength ?? 6) : 0; $: widestTickLen = Math.max( diff --git a/src/_components/AxisYRight.svelte b/src/_components/AxisYRight.svelte index 6e6694e2..bf479892 100644 --- a/src/_components/AxisYRight.svelte +++ b/src/_components/AxisYRight.svelte @@ -61,8 +61,8 @@ $: tickLen = tickMarks === true ? labelPosition === 'above' - ? tickMarkLength ?? widestTickLen - : tickMarkLength ?? 6 + ? (tickMarkLength ?? widestTickLen) + : (tickMarkLength ?? 6) : 0; $: widestTickLen = Math.max( diff --git a/src/_components/Beeswarm.html.svelte b/src/_components/Beeswarm.html.svelte index 86276cae..999c461c 100644 --- a/src/_components/Beeswarm.html.svelte +++ b/src/_components/Beeswarm.html.svelte @@ -19,7 +19,7 @@ /** @type {Number} [spacing=1.5] - Spacing, in pixels, between each circle. */ export let spacing = 1.5; - /** @type {Function} [getTitle] — An accessor function to get the field on the data element to display as a hover label. Mostly useful for debugging, needs better styling for production. */ + /** @type {Function|undefined} [getTitle] - An accessor function to get the field on the data element to display as a hover label. Mostly useful for debugging, needs better styling for production. */ export let getTitle = undefined; $: circles = dodge($data, { rds: r * 2 + spacing + strokeWidth, x: $xGet }); diff --git a/src/_components/Beeswarm.svelte b/src/_components/Beeswarm.svelte index 2f5f6091..5083c9b9 100644 --- a/src/_components/Beeswarm.svelte +++ b/src/_components/Beeswarm.svelte @@ -19,7 +19,7 @@ /** @type {Number} [spacing=1.5] - Whitespace padding between each circle, in pixels */ export let spacing = 1.5; - /** @type {Function|undefined} [getTitle] — An accessor function to get the field on the data element to display as a hover label using a `