@fusion.dev/helix-headless 0.182.0 → 0.182.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
|
@@ -7005,9 +7005,13 @@
|
|
|
7005
7005
|
"name": "bar"
|
|
7006
7006
|
},
|
|
7007
7007
|
{
|
|
7008
|
-
"description": "
|
|
7008
|
+
"description": "The bar at a column's far end, the end away from zero, which is the end to round. A column standing alone is its own far end. Under `stacked`, the last positive segment above zero and the last negative one below it. Its `data-end` is `positive` or `negative`. A blank or a zero is never the end. Set together with `bar`.",
|
|
7009
7009
|
"name": "bar-end"
|
|
7010
7010
|
},
|
|
7011
|
+
{
|
|
7012
|
+
"description": "A far end below zero, whose far end is its bottom, or its inline start when the bars run across. Set together with `bar-end`.",
|
|
7013
|
+
"name": "bar-end-negative"
|
|
7014
|
+
},
|
|
7011
7015
|
{
|
|
7012
7016
|
"description": "The far stop of a bar's gradient, where one is used.",
|
|
7013
7017
|
"name": "bar-wash-end"
|
|
@@ -200103,6 +200107,6 @@
|
|
|
200103
200107
|
],
|
|
200104
200108
|
"helix": {
|
|
200105
200109
|
"package": "@fusion.dev/helix-headless",
|
|
200106
|
-
"version": "0.182.
|
|
200110
|
+
"version": "0.182.1"
|
|
200107
200111
|
}
|
|
200108
200112
|
}
|
|
@@ -78,7 +78,8 @@ declare const HelixHeadlessBarChart_base: typeof HelixElement & (new (...args: a
|
|
|
78
78
|
* @csspart axis - The numbers of one scale: the primary under `value-axis`, and both when `secondary` splits the chart into two scales.
|
|
79
79
|
* @csspart band - The category band under the pointer.
|
|
80
80
|
* @csspart bar - One column. Under `stacked`, one segment of a category's column.
|
|
81
|
-
* @csspart bar-end -
|
|
81
|
+
* @csspart bar-end - The bar at a column's far end, the end away from zero, which is the end to round. A column standing alone is its own far end. Under `stacked`, the last positive segment above zero and the last negative one below it. Its `data-end` is `positive` or `negative`. A blank or a zero is never the end. Set together with `bar`.
|
|
82
|
+
* @csspart bar-end-negative - A far end below zero, whose far end is its bottom, or its inline start when the bars run across. Set together with `bar-end`.
|
|
82
83
|
* @csspart bar-wash-end - The far stop of a bar's gradient, where one is used.
|
|
83
84
|
* @csspart bar-wash-start - The stop of a bar's gradient at its base.
|
|
84
85
|
* @csspart baseline - The line the columns stand on.
|
|
@@ -123,6 +123,7 @@ let HelixHeadlessBarChart = class HelixHeadlessBarChart extends MixinChartStatus
|
|
|
123
123
|
const paint = ink
|
|
124
124
|
? `--chart-series: var(--bar-chart-tone-${ink}, var(--chart-series-${seriesIndex(tone)})); --chart-bar-wash: url(#helix-bar-wash-tone-${ink})`
|
|
125
125
|
: `--chart-series: var(--chart-series-${seriesIndex(tone)}); --chart-bar-wash: url(#helix-bar-wash-${seriesIndex(tone)})`;
|
|
126
|
+
const below = end === 'negative';
|
|
126
127
|
return sideways
|
|
127
128
|
? svg `<rect
|
|
128
129
|
data-end=${end ?? nothing}
|
|
@@ -130,7 +131,7 @@ let HelixHeadlessBarChart = class HelixHeadlessBarChart extends MixinChartStatus
|
|
|
130
131
|
data-tone=${ink ?? nothing}
|
|
131
132
|
height=${thickness}
|
|
132
133
|
style=${paint}
|
|
133
|
-
part="bar${end ? ' bar-end' : ''}"
|
|
134
|
+
part="bar${end ? ' bar-end' : ''}${below ? ' bar-end-negative' : ''}"
|
|
134
135
|
width=${size}
|
|
135
136
|
x=${along}
|
|
136
137
|
y=${across}
|
|
@@ -141,7 +142,7 @@ let HelixHeadlessBarChart = class HelixHeadlessBarChart extends MixinChartStatus
|
|
|
141
142
|
data-tone=${ink ?? nothing}
|
|
142
143
|
height=${size}
|
|
143
144
|
style=${paint}
|
|
144
|
-
part="bar${end ? ' bar-end' : ''}"
|
|
145
|
+
part="bar${end ? ' bar-end' : ''}${below ? ' bar-end-negative' : ''}"
|
|
145
146
|
width=${thickness}
|
|
146
147
|
x=${across}
|
|
147
148
|
y=${along}
|
|
@@ -204,7 +205,7 @@ let HelixHeadlessBarChart = class HelixHeadlessBarChart extends MixinChartStatus
|
|
|
204
205
|
const point = slots[index];
|
|
205
206
|
return point === undefined
|
|
206
207
|
? nothing
|
|
207
|
-
: bar(point.value, index, depth, tone, against(one), undefined,
|
|
208
|
+
: bar(point.value, index, depth, tone, against(one), undefined, stackFarEnds([point.value])[0], point.tone);
|
|
208
209
|
})}
|
|
209
210
|
</g>`)}
|
|
210
211
|
${series.map((one) => lined.has(seriesKey(one.name)) && this.showsSeries(one.name)
|