@fusion.dev/helix-core 0.51.0 → 0.52.1
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/custom-elements.json
CHANGED
|
@@ -9486,13 +9486,12 @@
|
|
|
9486
9486
|
},
|
|
9487
9487
|
{
|
|
9488
9488
|
"name": "curve",
|
|
9489
|
-
"default": "'straight'",
|
|
9490
9489
|
"type": {
|
|
9491
9490
|
"text": "Curve"
|
|
9492
9491
|
}
|
|
9493
9492
|
}
|
|
9494
9493
|
],
|
|
9495
|
-
"description": "Builds an SVG path through a set of points.\n\nShared by every chart that draws a line, so the choice of curve is one\nimplementation rather than one per chart. Pure: it takes points and returns a\nstring, and knows nothing about elements or lifecycles.\n\n`straight` joins the readings and claims nothing between them
|
|
9494
|
+
"description": "Builds an SVG path through a set of points.\n\nShared by every chart that draws a line, so the choice of curve is one\nimplementation rather than one per chart. Pure: it takes points and returns a\nstring, and knows nothing about elements or lifecycles.\n\n`straight` joins the readings and claims nothing between them. `smooth` is\neasier to follow across a long series and invents the values in between, so\nit is a reading aid rather than a neutral one. `step` claims the opposite,\nthat a reading holds until the next one, and changes at the midpoint rather\nthan at either end, since a chart's x axis is an order and neither neighbor\nhas a better claim on the moment it moved.\n\n**Two resting curves in this library, and what separates them is what the\nmark claims.** A line claims a position, so `LineChart` and `Sparkline` rest\nat `smooth`: the invention is bounded, the interpolation never leaves the\nband the data sets, and the smoothed line is the easier one to follow. A\nstacked band claims an amount, and a curve fitted through one sum can pass\nunder the curve fitted through the sum beneath it, so `AreaChart` rests at\n`straight`, where readings that are ordered stay ordered everywhere between.\nEach family publishes its own resting value on its own `curve`, because the\nreference page is generated from those blocks and a consumer does not read\nthis file; this is the one place that holds both halves side by side.\n\n**No default here, which is the point.** A default would be a third resting\ncurve, silently right for one caller and silently wrong for the other, and\nthe two above are already an argument somebody has to have read to pick a\nside. Every caller passes the value.\n\nFewer than two points is an empty string rather than a partial path: one\nreading is not a line, and `M0,0` alone draws nothing while still being a\npath element that looks like it should."
|
|
9496
9495
|
}
|
|
9497
9496
|
],
|
|
9498
9497
|
"exports": [
|
|
@@ -9,15 +9,31 @@ export type Point = readonly [number, number];
|
|
|
9
9
|
* implementation rather than one per chart. Pure: it takes points and returns a
|
|
10
10
|
* string, and knows nothing about elements or lifecycles.
|
|
11
11
|
*
|
|
12
|
-
* `straight` joins the readings and claims nothing between them
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
12
|
+
* `straight` joins the readings and claims nothing between them. `smooth` is
|
|
13
|
+
* easier to follow across a long series and invents the values in between, so
|
|
14
|
+
* it is a reading aid rather than a neutral one. `step` claims the opposite,
|
|
15
|
+
* that a reading holds until the next one, and changes at the midpoint rather
|
|
16
|
+
* than at either end, since a chart's x axis is an order and neither neighbor
|
|
17
|
+
* has a better claim on the moment it moved.
|
|
18
|
+
*
|
|
19
|
+
* **Two resting curves in this library, and what separates them is what the
|
|
20
|
+
* mark claims.** A line claims a position, so `LineChart` and `Sparkline` rest
|
|
21
|
+
* at `smooth`: the invention is bounded, the interpolation never leaves the
|
|
22
|
+
* band the data sets, and the smoothed line is the easier one to follow. A
|
|
23
|
+
* stacked band claims an amount, and a curve fitted through one sum can pass
|
|
24
|
+
* under the curve fitted through the sum beneath it, so `AreaChart` rests at
|
|
25
|
+
* `straight`, where readings that are ordered stay ordered everywhere between.
|
|
26
|
+
* Each family publishes its own resting value on its own `curve`, because the
|
|
27
|
+
* reference page is generated from those blocks and a consumer does not read
|
|
28
|
+
* this file; this is the one place that holds both halves side by side.
|
|
29
|
+
*
|
|
30
|
+
* **No default here, which is the point.** A default would be a third resting
|
|
31
|
+
* curve, silently right for one caller and silently wrong for the other, and
|
|
32
|
+
* the two above are already an argument somebody has to have read to pick a
|
|
33
|
+
* side. Every caller passes the value.
|
|
18
34
|
*
|
|
19
35
|
* Fewer than two points is an empty string rather than a partial path: one
|
|
20
36
|
* reading is not a line, and `M0,0` alone draws nothing while still being a
|
|
21
37
|
* path element that looks like it should.
|
|
22
38
|
*/
|
|
23
|
-
export declare const linePath: (points: readonly Point[], curve
|
|
39
|
+
export declare const linePath: (points: readonly Point[], curve: Curve) => string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-core",
|
|
3
3
|
"description": "Helix element primitives: base classes, mixins, decorators, utilities.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.52.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@floating-ui/dom": "^1.8.0",
|
|
37
|
-
"@fusion.dev/helix-icons": "0.
|
|
37
|
+
"@fusion.dev/helix-icons": "0.52.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
41
|
-
"@fusion.dev/helix-cem": "0.
|
|
42
|
-
"@fusion.dev/helix-testing": "0.
|
|
41
|
+
"@fusion.dev/helix-cem": "0.52.1",
|
|
42
|
+
"@fusion.dev/helix-testing": "0.52.1",
|
|
43
43
|
"lit": "^3.2.1"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://fusion.dev",
|