@praxisui/charts 10.0.0-rc.79 → 10.0.0-rc.80
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-12-
|
|
3
|
+
"generatedAt": "2026-12-01T19:14:00.841Z",
|
|
4
4
|
"packageName": "@praxisui/charts",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.80",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 13,
|
|
@@ -34186,7 +34186,7 @@ class EChartsOptionBuilderService {
|
|
|
34186
34186
|
: isPrimaryHost;
|
|
34187
34187
|
const matchingLines = (config.referenceLines ?? [])
|
|
34188
34188
|
.filter((line) => (line.axis === 'ySecondary' ? isSecondaryHost : isPrimaryHost));
|
|
34189
|
-
const lineItems = matchingLines.map((line, lineIndex) => this.toEChartsMarkLineData(line, horizontal, textColor, lineIndex, matchingLines.length));
|
|
34189
|
+
const lineItems = matchingLines.map((line, lineIndex) => this.toEChartsMarkLineData(line, horizontal, textColor, lineIndex, matchingLines.length, config.theme?.backgroundColor));
|
|
34190
34190
|
const hasYReferenceLines = matchingLines.some((line) => line.axis !== 'x');
|
|
34191
34191
|
const areaItems = (config.referenceBands ?? [])
|
|
34192
34192
|
.filter((band) => (band.axis === 'ySecondary' ? isSecondaryHost : isPrimaryHost))
|
|
@@ -34230,7 +34230,7 @@ class EChartsOptionBuilderService {
|
|
|
34230
34230
|
: {}),
|
|
34231
34231
|
};
|
|
34232
34232
|
}
|
|
34233
|
-
toEChartsMarkLineData(line, horizontal, textColor, lineIndex = 0, totalLines = 1) {
|
|
34233
|
+
toEChartsMarkLineData(line, horizontal, textColor, lineIndex = 0, totalLines = 1, themeBackgroundColor) {
|
|
34234
34234
|
const labelText = this.resolveText(line.label);
|
|
34235
34235
|
const targetEChartsAxis = horizontal
|
|
34236
34236
|
? (line.axis === 'x' ? 'yAxis' : 'xAxis')
|
|
@@ -34244,10 +34244,13 @@ class EChartsOptionBuilderService {
|
|
|
34244
34244
|
? '#0f766e'
|
|
34245
34245
|
: '#0a6eb4');
|
|
34246
34246
|
const labelPosition = totalLines >= 3 && targetEChartsAxis === 'yAxis'
|
|
34247
|
-
? ['
|
|
34247
|
+
? ['insideEndBottom', 'insideStartBottom', 'insideStartTop', 'insideEndTop'][lineIndex % 4]
|
|
34248
34248
|
: totalLines === 2 && targetEChartsAxis === 'yAxis'
|
|
34249
34249
|
? (lineIndex % 2 === 0 ? 'insideEndBottom' : 'insideEndTop')
|
|
34250
34250
|
: 'insideEndTop';
|
|
34251
|
+
const resolvedBackdrop = themeBackgroundColor && themeBackgroundColor !== 'transparent'
|
|
34252
|
+
? themeBackgroundColor
|
|
34253
|
+
: 'rgba(255, 255, 255, 0.9)';
|
|
34251
34254
|
return {
|
|
34252
34255
|
name: labelText ?? String(line.value),
|
|
34253
34256
|
[targetEChartsAxis]: line.value,
|
|
@@ -34261,6 +34264,10 @@ class EChartsOptionBuilderService {
|
|
|
34261
34264
|
formatter: labelText ?? '',
|
|
34262
34265
|
color: line.color ?? (line.tone ? resolvedColor : textColor),
|
|
34263
34266
|
position: labelPosition,
|
|
34267
|
+
backgroundColor: resolvedBackdrop,
|
|
34268
|
+
padding: [2, 6],
|
|
34269
|
+
borderRadius: 4,
|
|
34270
|
+
distance: 6,
|
|
34264
34271
|
},
|
|
34265
34272
|
};
|
|
34266
34273
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/charts",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.80",
|
|
4
4
|
"description": "Metadata-driven charts library for Praxis UI Angular with engine adapters and Apache ECharts as the initial renderer.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
8
|
+
"@praxisui/core": "^10.0.0-rc.80",
|
|
9
9
|
"@angular/forms": "^21.0.0",
|
|
10
10
|
"@angular/material": "^21.0.0",
|
|
11
|
-
"@praxisui/table": "^10.0.0-rc.
|
|
11
|
+
"@praxisui/table": "^10.0.0-rc.80",
|
|
12
12
|
"rxjs": "~7.8.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|