@bino-bi/bn-template-engine 1.0.0-next.21 → 1.0.0-next.23
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/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/{p-28d5c266.entry.js → p-0a49cf00.entry.js} +1 -1
- package/dist/bn-template-engine/{p-b9e94127.entry.js → p-22b8d044.entry.js} +1 -1
- package/dist/bn-template-engine/{p-6c7f0076.entry.js → p-251bb53d.entry.js} +1 -1
- package/dist/bn-template-engine/p-2aed639e.entry.js +1 -0
- package/dist/bn-template-engine/{p-7e9dbc93.entry.js → p-4616b879.entry.js} +1 -1
- package/dist/bn-template-engine/{p-99477a27.entry.js → p-629edcca.entry.js} +1 -1
- package/dist/bn-template-engine/p-686d8e44.entry.js +1 -0
- package/dist/bn-template-engine/{p-a4ea9a79.entry.js → p-68aa61cc.entry.js} +1 -1
- package/dist/bn-template-engine/{p-DwYUTvvI.js → p-B5x8M8OC.js} +1 -1
- package/dist/bn-template-engine/{p-fFtEvsY-.js → p-BGrnfif3.js} +1 -1
- package/dist/bn-template-engine/{p-6lOdN-fB.js → p-BVfLus3u.js} +1 -1
- package/dist/bn-template-engine/{p-CJThzFZm.js → p-BcZ5GQZ8.js} +1 -1
- package/dist/bn-template-engine/{p-CYE0I1Mx.js → p-Bca5V28_.js} +1 -1
- package/dist/bn-template-engine/p-C5UYpZUU.js +2 -0
- package/dist/bn-template-engine/{p-BgIpdpfH.js → p-C7T4DAAW.js} +1 -1
- package/dist/bn-template-engine/p-CDo04UEU.js +1 -0
- package/dist/bn-template-engine/p-CTrNbSXN.js +1 -0
- package/dist/bn-template-engine/{p-C5uvAEKI.js → p-CbciPY-M.js} +1 -1
- package/dist/bn-template-engine/{p-BpWWgN6k.js → p-CuR4S456.js} +1 -1
- package/dist/bn-template-engine/p-DWtTjg0f.js +1 -0
- package/dist/bn-template-engine/{p-eEfqksk-.js → p-DdqXNsKP.js} +1 -1
- package/dist/bn-template-engine/{p-B4JfKvVT.js → p-DtLI_CzV.js} +1 -1
- package/dist/bn-template-engine/p-UtNHLX1j.js +1 -0
- package/dist/bn-template-engine/{p-ba912130.entry.js → p-aecb5de3.entry.js} +1 -1
- package/dist/bn-template-engine/{p-687032d5.entry.js → p-ba43d46e.entry.js} +1 -1
- package/dist/bn-template-engine/{p-6077155f.entry.js → p-c476e7bb.entry.js} +1 -1
- package/dist/bn-template-engine/{p-2d3ea756.entry.js → p-d7c670ec.entry.js} +1 -1
- package/dist/bn-template-engine/{p-a1380d7c.entry.js → p-e4a584a8.entry.js} +1 -1
- package/dist/bn-template-engine/{p-de29986f.entry.js → p-f12fb09b.entry.js} +1 -1
- package/dist/bn-template-engine/p-f9a721bb.entry.js +1 -0
- package/dist/cjs/{AxisConfig-D7CAyPLO.js → AxisConfig-DmP4U3JM.js} +1 -1
- package/dist/cjs/{LabelCollisionManager-DkdQ9Xdg.js → LabelCollisionManager-Cet3WPm0.js} +2 -2
- package/dist/cjs/{Order-IPfAP0q8.js → Order-DlKLywO_.js} +1 -1
- package/dist/cjs/{SVGStyle-BD8jApd4.js → SVGStyle-D78RaNnj.js} +2 -2
- package/dist/cjs/{SVGVariancesStyleGroup-BaWzR951.js → SVGVariancesStyleGroup-XvNAnYYA.js} +1 -1
- package/dist/cjs/{VarianceMeasure-BBWTgv2e.js → VarianceMeasure-BfZLlICl.js} +4 -4
- package/dist/cjs/{XYChartDataRow-BoR0CTfl.js → XYChartDataRow-B0NNOqxB.js} +4 -4
- package/dist/cjs/bn-asset_21.cjs.entry.js +1052 -314
- package/dist/cjs/bn-chart-bubble.cjs.entry.js +25 -15
- package/dist/cjs/bn-chart-bullet.cjs.entry.js +9 -9
- package/dist/cjs/bn-chart-scatter.cjs.entry.js +9 -9
- package/dist/cjs/bn-grid.cjs.entry.js +6 -6
- package/dist/cjs/bn-image.cjs.entry.js +6 -6
- package/dist/cjs/bn-internationalization.cjs.entry.js +4 -4
- package/dist/cjs/bn-ruleset.cjs.entry.js +4 -4
- package/dist/cjs/bn-template-engine.cjs.js +3 -3
- package/dist/cjs/bn-template.cjs.entry.js +2 -2
- package/dist/cjs/bn-text.cjs.entry.js +7 -7
- package/dist/cjs/bn-tree.cjs.entry.js +6 -6
- package/dist/cjs/{context-protocol-BBhT9B52.js → context-protocol-DeLmu5s2.js} +1 -1
- package/dist/cjs/editor-companion.cjs.entry.js +2 -2
- package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +6 -6
- package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +6 -6
- package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +6 -6
- package/dist/cjs/{index-CDKG4xmO.js → index-C1Z9vO7z.js} +61 -19
- package/dist/cjs/{layoutObserver-DUYYkDMQ.js → layoutObserver-CrzQQGpv.js} +5 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{scaling-BIJQ2NV1.js → scaling-JAU6IJnR.js} +85 -3
- package/dist/cjs/{withBodyObserver-BKUE_ypL.js → withBodyObserver-DJO98AJ-.js} +2 -2
- package/dist/cjs/{withHasError-Cl2gTQzA.js → withHasError-BdDmiOXM.js} +1 -1
- package/dist/cjs/{withScalingGroup-D5clRvRe.js → withScalingGroup-Bu5gatHT.js} +3 -3
- package/dist/cjs/{withStyled-Cm9dWQhu.js → withStyled-50UepUwV.js} +8 -8
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +15 -5
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.css +6 -0
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +149 -57
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +135 -28
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +30 -19
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +186 -49
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.css +9 -3
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +141 -22
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +36 -0
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +76 -19
- package/dist/collection/components/bn-table/bn-table.js +121 -49
- package/dist/collection/components/bn-table/ibcs-table.js +83 -42
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +20 -34
- package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +4 -5
- package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +89 -0
- package/dist/collection/utils/autoFit.js +63 -0
- package/dist/collection/utils/constants.js +3 -3
- package/dist/collection/utils/dataAnalyzer.js +17 -8
- package/dist/collection/utils/scaling.js +79 -0
- package/dist/collection/utils/validate.js +3 -3
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/autoFit.js +1 -0
- package/dist/components/bn-chart-bubble.js +1 -1
- package/dist/components/bn-chart-bullet.js +1 -1
- package/dist/components/bn-chart-scatter.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-grid.js +1 -1
- package/dist/components/bn-scaling-group.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/scaling.js +1 -0
- package/dist/components/validate.js +1 -1
- package/dist/components/withDataset.js +1 -1
- package/dist/components/withStyled.js +1 -1
- package/dist/esm/{AxisConfig-ByIP5J-9.js → AxisConfig-Cjy_RANi.js} +1 -1
- package/dist/esm/{LabelCollisionManager-DaNiDiM9.js → LabelCollisionManager-B_NUM9yq.js} +2 -2
- package/dist/esm/{Order-BQeJE_yi.js → Order-B-aF6Rwn.js} +1 -1
- package/dist/esm/{SVGStyle-BwBlY3Km.js → SVGStyle-8FfAtUF-.js} +2 -2
- package/dist/esm/{SVGVariancesStyleGroup-BpGW4CvN.js → SVGVariancesStyleGroup-DD4mIOjT.js} +1 -1
- package/dist/esm/{VarianceMeasure-CE3N8Bea.js → VarianceMeasure-DLOuIIJ7.js} +4 -4
- package/dist/esm/{XYChartDataRow-DeMI1JKU.js → XYChartDataRow-CKfILBFG.js} +4 -4
- package/dist/esm/bn-asset_21.entry.js +1052 -314
- package/dist/esm/bn-chart-bubble.entry.js +25 -15
- package/dist/esm/bn-chart-bullet.entry.js +9 -9
- package/dist/esm/bn-chart-scatter.entry.js +9 -9
- package/dist/esm/bn-grid.entry.js +6 -6
- package/dist/esm/bn-image.entry.js +6 -6
- package/dist/esm/bn-internationalization.entry.js +4 -4
- package/dist/esm/bn-ruleset.entry.js +4 -4
- package/dist/esm/bn-template-engine.js +4 -4
- package/dist/esm/bn-template.entry.js +2 -2
- package/dist/esm/bn-text.entry.js +7 -7
- package/dist/esm/bn-tree.entry.js +6 -6
- package/dist/esm/{context-protocol-d8MHrEo8.js → context-protocol-BoEL0caI.js} +1 -1
- package/dist/esm/editor-companion.entry.js +2 -2
- package/dist/esm/ibcs-chart-bubble.entry.js +6 -6
- package/dist/esm/ibcs-chart-bullet.entry.js +6 -6
- package/dist/esm/ibcs-chart-scatter.entry.js +6 -6
- package/dist/esm/{index-B_d-jp99.js → index-C5UYpZUU.js} +61 -19
- package/dist/esm/{layoutObserver-BJBEyhNf.js → layoutObserver-cgIXg2sg.js} +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{scaling-BGnpSN1j.js → scaling-CxyNpMQM.js} +83 -4
- package/dist/esm/{withBodyObserver-IokS6fHD.js → withBodyObserver-Cb9ZC5_J.js} +2 -2
- package/dist/esm/{withHasError-DW_vMDUp.js → withHasError-Bh1Viz52.js} +1 -1
- package/dist/esm/{withScalingGroup-CC3UcvC5.js → withScalingGroup-Yv9nGGe1.js} +3 -3
- package/dist/esm/{withStyled-2l5Tx3cf.js → withStyled-By9Jd-Oy.js} +8 -8
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +5 -2
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +47 -19
- package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +17 -3
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +11 -3
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +52 -18
- package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +18 -3
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +12 -0
- package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +28 -8
- package/dist/types/components/bn-table/bn-table.d.ts +45 -19
- package/dist/types/components/bn-table/ibcs-table.d.ts +23 -6
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +9 -1
- package/dist/types/components/bn-table/utils/helper/barColumnGeometry.d.ts +51 -0
- package/dist/types/components.d.ts +91 -55
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist/types/utils/autoFit.d.ts +79 -0
- package/dist/types/utils/constants.d.ts +3 -3
- package/dist/types/utils/dataAnalyzer.d.ts +5 -1
- package/dist/types/utils/scaling.d.ts +63 -0
- package/dist/types/utils/validate.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +2 -0
- package/dist/bn-template-engine/p-2fba7c99.entry.js +0 -1
- package/dist/bn-template-engine/p-A8xyE4b1.js +0 -1
- package/dist/bn-template-engine/p-B_d-jp99.js +0 -2
- package/dist/bn-template-engine/p-BjBz5cSL.js +0 -1
- package/dist/bn-template-engine/p-C8Q0lsaU.js +0 -1
- package/dist/bn-template-engine/p-C9i1Xsib.js +0 -1
- package/dist/bn-template-engine/p-a8291de2.entry.js +0 -1
- package/dist/bn-template-engine/p-b5274369.entry.js +0 -1
|
@@ -7,6 +7,7 @@ import { ScenarioFactory } from "./factories";
|
|
|
7
7
|
import CalculateSize from "calculate-size";
|
|
8
8
|
import { Formatter } from "../../../utils";
|
|
9
9
|
import { AggregationLevel, StackBy, StackMode } from "../../../utils/constants";
|
|
10
|
+
import { computePercentBarExtent, computeUnitBarExtent } from "../../../utils/autoFit";
|
|
10
11
|
import { getScenarioPrefix, IBCS_LAYER_ORDER } from "../../../utils/stackColors";
|
|
11
12
|
import { IBCSRuleSet } from "../../../utils/ibcsRuleSet";
|
|
12
13
|
import { VarianceScenario } from "../../../utils/model";
|
|
@@ -213,28 +214,38 @@ export class StructureChart {
|
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
216
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
217
|
+
* Total bar extent (data units) proportional to pixelPerUnit, covering
|
|
218
|
+
* BOTH sides of the axis (left side scales with negative values, right
|
|
219
|
+
* side with positive ones). Used by autoFitScaling to separate fixed
|
|
220
|
+
* from variable width components.
|
|
218
221
|
*/
|
|
219
|
-
|
|
222
|
+
getUnitBarExtent() {
|
|
220
223
|
var _a, _b;
|
|
221
|
-
|
|
222
|
-
if (this.stackConfig != null && this.highestStackedTotal > 0) {
|
|
223
|
-
if (this.stackConfig.mode === StackMode.RELATIVE) {
|
|
224
|
-
return 1;
|
|
225
|
-
}
|
|
226
|
-
return this.highestStackedTotal;
|
|
227
|
-
}
|
|
228
|
-
// Non-stacked: bar extent = highestDataPointValue * ppu
|
|
224
|
+
const stacked = this.stackConfig != null && this.highestStackedTotal > 0;
|
|
229
225
|
const vt = this.getVarianceType();
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
226
|
+
const isVariance = vt !== VarianceType.NONE;
|
|
227
|
+
const highest = isVariance ? this.highestVarianceDataPointValue : this.highestDataPointValue;
|
|
228
|
+
const smallest = isVariance ? this.smallestVarianceDataPointValue : this.smallestDataPointValue;
|
|
229
|
+
return computeUnitBarExtent({
|
|
230
|
+
// Relative stacks span exactly 1 * ppu; absolute stacks the max row total
|
|
231
|
+
fixedDomain: stacked ? (this.stackConfig.mode === StackMode.RELATIVE ? 1 : this.highestStackedTotal) : undefined,
|
|
232
|
+
relativeVariance: vt === VarianceType.RELATIVE,
|
|
233
|
+
maxPositive: (_a = highest === null || highest === void 0 ? void 0 : highest.value) !== null && _a !== void 0 ? _a : 0,
|
|
234
|
+
minNegative: (_b = smallest === null || smallest === void 0 ? void 0 : smallest.value) !== null && _b !== void 0 ? _b : 0,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Total bar extent (fraction units) proportional to pixelPerPercentage.
|
|
239
|
+
* Only relative variances scale with it; each side clamps at +/-145%
|
|
240
|
+
* because clipped needles render as fixed-size arrows.
|
|
241
|
+
*/
|
|
242
|
+
getPercentBarExtent() {
|
|
243
|
+
var _a, _b, _c, _d;
|
|
244
|
+
return computePercentBarExtent({
|
|
245
|
+
relativeVariance: this.getVarianceType() === VarianceType.RELATIVE,
|
|
246
|
+
maxPositive: (_b = (_a = this.highestVarianceDataPointValue) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0,
|
|
247
|
+
minNegative: (_d = (_c = this.smallestVarianceDataPointValue) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : 0,
|
|
248
|
+
});
|
|
238
249
|
}
|
|
239
250
|
getAllocatedCanvasWidth() {
|
|
240
251
|
//let columnLabelWidth = this.calculateCategoryWidth();
|
|
@@ -11,7 +11,7 @@ import withRuleSet from "../../utils/withRuleSet";
|
|
|
11
11
|
import withHasError from "../../utils/withHasError";
|
|
12
12
|
import withInheritedProps, { isInheritedValue } from "../../utils/withInheritedProps";
|
|
13
13
|
import { getParentDimensions } from "../../utils/parentDimensions";
|
|
14
|
-
import { parseScaling } from "../../utils/scaling";
|
|
14
|
+
import { formatScalingValue, parseScaling, resolveScalingValue } from "../../utils/scaling";
|
|
15
15
|
import { observeParentResize } from "../../utils/layoutObserver";
|
|
16
16
|
import { OrderColumn, OrderDirection } from "../../utils/model/Order";
|
|
17
17
|
import { Formatter } from "../../utils/formatter";
|
|
@@ -101,8 +101,7 @@ export class Chart {
|
|
|
101
101
|
}
|
|
102
102
|
validateUnitScaling(newValue) {
|
|
103
103
|
const errId = "ERR_unitScaling";
|
|
104
|
-
|
|
105
|
-
if (!isAuto && !isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
104
|
+
if (resolveScalingValue(newValue, this.pixelPerUnitGroupMap).kind === "invalid") {
|
|
106
105
|
this.errors.addOrReplace({
|
|
107
106
|
id: errId,
|
|
108
107
|
type: "warning",
|
|
@@ -115,8 +114,7 @@ export class Chart {
|
|
|
115
114
|
}
|
|
116
115
|
validatePercentageScaling(newValue) {
|
|
117
116
|
const errId = "ERR_percentageScaling";
|
|
118
|
-
|
|
119
|
-
if (!isAuto && !isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
117
|
+
if (resolveScalingValue(newValue, this.pixelPerUnitGroupMap).kind === "invalid") {
|
|
120
118
|
this.errors.addOrReplace({
|
|
121
119
|
id: errId,
|
|
122
120
|
type: "warning",
|
|
@@ -440,7 +438,7 @@ export class Chart {
|
|
|
440
438
|
* original value.
|
|
441
439
|
* <br /><br />
|
|
442
440
|
* values: <br />
|
|
443
|
-
* ```_ // k // M // G // T // P // E // Z // Y // m // μ // n // p //
|
|
441
|
+
* ```_ // k // M // G // T // P // E // Z // Y // m // my (μ) // n // p // f // a // z // y // GREATEST // LEAST```
|
|
444
442
|
* <br /><br />
|
|
445
443
|
* SiPrefix overview:
|
|
446
444
|
* ``` "Y": 1E+24,```<br />
|
|
@@ -453,7 +451,7 @@ export class Chart {
|
|
|
453
451
|
* ``` "k": 1000,```<br />
|
|
454
452
|
* <br />
|
|
455
453
|
* ``` "m": 0.001,```<br />
|
|
456
|
-
* ``` "μ
|
|
454
|
+
* ``` "my" (μ): 0.000001,```<br />
|
|
457
455
|
* ``` "n": 0.000000001,```<br />
|
|
458
456
|
* ``` "p": 0.000000000001,```<br />
|
|
459
457
|
* ``` "f": 0.000000000000001,```<br />
|
|
@@ -488,6 +486,41 @@ export class Chart {
|
|
|
488
486
|
this._lastObservedWidth = 0;
|
|
489
487
|
this._settleTimer = null;
|
|
490
488
|
this._lastAppliedHeight = 0;
|
|
489
|
+
this.autoUnitWarningActive = false;
|
|
490
|
+
this.autoPctWarningActive = false;
|
|
491
|
+
/**
|
|
492
|
+
* Receives the auto-fitted values from the inner ibcs-chart-time (px per
|
|
493
|
+
* unit / px per 1.0 fraction) and surfaces them in the AUTO_* warnings,
|
|
494
|
+
* converted back to the attribute's units-per-em form so users can copy
|
|
495
|
+
* them into a bn-scaling-group.
|
|
496
|
+
*/
|
|
497
|
+
this.handleAutoScalingReport = (report) => {
|
|
498
|
+
var _a, _b;
|
|
499
|
+
const changed = (next, last) => last === undefined || Math.abs(next - last) > Math.abs(next) * 1e-3;
|
|
500
|
+
const effFontPx = this.getEffectiveFontPx();
|
|
501
|
+
if (report.unit !== undefined && report.unit > 0 && this.autoUnitWarningActive) {
|
|
502
|
+
const unitsPerEm = effFontPx / report.unit;
|
|
503
|
+
if (changed(unitsPerEm, this.lastReportedUnitsPerEm)) {
|
|
504
|
+
this.lastReportedUnitsPerEm = unitsPerEm;
|
|
505
|
+
this.errors.addOrReplace({
|
|
506
|
+
id: "AUTO_unitScaling",
|
|
507
|
+
type: "warning",
|
|
508
|
+
message: `unit-scaling: ${Chart.describeScalingInput(String((_a = this.unitScaling) !== null && _a !== void 0 ? _a : "").trim())}, auto-fitted to 1 em ≈ ${formatScalingValue(unitsPerEm)} units.`,
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
if (report.percentage !== undefined && report.percentage > 0 && this.autoPctWarningActive) {
|
|
513
|
+
const ppPerEm = (100 * effFontPx) / report.percentage;
|
|
514
|
+
if (changed(ppPerEm, this.lastReportedPpPerEm)) {
|
|
515
|
+
this.lastReportedPpPerEm = ppPerEm;
|
|
516
|
+
this.errors.addOrReplace({
|
|
517
|
+
id: "AUTO_percentageScaling",
|
|
518
|
+
type: "warning",
|
|
519
|
+
message: `percentage-scaling: ${Chart.describeScalingInput(String((_b = this.percentageScaling) !== null && _b !== void 0 ? _b : "").trim())}, auto-fitted to 1 em ≈ ${formatScalingValue(ppPerEm)} percentage points.`,
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
};
|
|
491
524
|
withStyled(this);
|
|
492
525
|
withComponentStatus(this);
|
|
493
526
|
withDataset(this, (name, _data) => {
|
|
@@ -532,32 +565,111 @@ export class Chart {
|
|
|
532
565
|
this.validateStack(this.stack);
|
|
533
566
|
this.validateScaling(this.scale);
|
|
534
567
|
}
|
|
568
|
+
/**
|
|
569
|
+
* Content width from the rendered SVG width attributes (segments stack
|
|
570
|
+
* vertically, so the widest one counts) — immune to overflow:hidden
|
|
571
|
+
* clipping along the ancestor chain. Falls back to scrollWidth before the
|
|
572
|
+
* inner charts have rendered.
|
|
573
|
+
*/
|
|
574
|
+
measureContentWidth() {
|
|
575
|
+
var _a;
|
|
576
|
+
const inners = (_a = this.element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ibcs-chart-time");
|
|
577
|
+
let widest = 0;
|
|
578
|
+
let found = false;
|
|
579
|
+
inners === null || inners === void 0 ? void 0 : inners.forEach((inner) => {
|
|
580
|
+
var _a, _b, _c;
|
|
581
|
+
const width = parseFloat((_c = (_b = (_a = inner.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("svg#drawCanvas")) === null || _b === void 0 ? void 0 : _b.getAttribute("width")) !== null && _c !== void 0 ? _c : "");
|
|
582
|
+
if (!Number.isNaN(width)) {
|
|
583
|
+
widest = Math.max(widest, width);
|
|
584
|
+
found = true;
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
// scrollWidth additionally sees non-SVG chrome, so take the larger.
|
|
588
|
+
// Floor the fractional SVG width so borderline sub-pixel overhangs are
|
|
589
|
+
// judged with the same integer tolerance as the scroll metrics.
|
|
590
|
+
return found ? Math.max(Math.floor(widest), this.element.scrollWidth) : this.element.scrollWidth;
|
|
591
|
+
}
|
|
592
|
+
/** Content height as the sum of the vertically stacked segment SVGs. */
|
|
593
|
+
measureContentHeight() {
|
|
594
|
+
var _a;
|
|
595
|
+
const inners = (_a = this.element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ibcs-chart-time");
|
|
596
|
+
let total = 0;
|
|
597
|
+
let found = false;
|
|
598
|
+
inners === null || inners === void 0 ? void 0 : inners.forEach((inner) => {
|
|
599
|
+
var _a, _b, _c;
|
|
600
|
+
const height = parseFloat((_c = (_b = (_a = inner.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("svg#drawCanvas")) === null || _b === void 0 ? void 0 : _b.getAttribute("height")) !== null && _c !== void 0 ? _c : "");
|
|
601
|
+
if (!Number.isNaN(height)) {
|
|
602
|
+
total += height;
|
|
603
|
+
found = true;
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
// scrollHeight additionally sees non-SVG chrome (e.g. the footer).
|
|
607
|
+
// Floor the fractional SVG heights so borderline sub-pixel overhangs are
|
|
608
|
+
// judged with the same integer tolerance as the scroll metrics.
|
|
609
|
+
return found ? Math.max(Math.floor(total), this.element.scrollHeight) : this.element.scrollHeight;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Reports a WARN_overflow item when the rendered chart exceeds its
|
|
613
|
+
* container. Overflow attributable to a fixed scaling attribute is an
|
|
614
|
+
* error (height: unit-scaling / percentage-scaling, width: scale);
|
|
615
|
+
* overflow in fully-auto mode is a warning — auto-fit prevents it by
|
|
616
|
+
* construction, so it only fires when the content cannot fit at any scale.
|
|
617
|
+
*/
|
|
618
|
+
checkOverflow() {
|
|
619
|
+
const errId = "WARN_overflow";
|
|
620
|
+
const parent = getParentDimensions(this.element);
|
|
621
|
+
const contentWidth = this.measureContentWidth();
|
|
622
|
+
const contentHeight = this.measureContentHeight();
|
|
623
|
+
const widthOver = parent.width > 0 && contentWidth > parent.width + 1;
|
|
624
|
+
const heightOver = parent.height > 0 && contentHeight > parent.height + 1;
|
|
625
|
+
if (!widthOver && !heightOver) {
|
|
626
|
+
this.errors.remove(errId);
|
|
627
|
+
return;
|
|
628
|
+
}
|
|
629
|
+
const hasRelativeVariance = this.prepareVariances().some((variance) => variance.startsWith("dr"));
|
|
630
|
+
const fixedUnit = resolveScalingValue(this.unitScaling, this.pixelPerUnitGroupMap).kind === "value";
|
|
631
|
+
const fixedPercent = hasRelativeVariance && resolveScalingValue(this.percentageScaling, this.pixelPerUnitGroupMap).kind === "value";
|
|
632
|
+
const { mode } = parseScaling(this.scale);
|
|
633
|
+
const fixedScale = mode !== "auto" && mode !== "empty";
|
|
634
|
+
const fixedAttrs = [];
|
|
635
|
+
if (heightOver && fixedUnit)
|
|
636
|
+
fixedAttrs.push("unit-scaling");
|
|
637
|
+
if (heightOver && fixedPercent)
|
|
638
|
+
fixedAttrs.push("percentage-scaling");
|
|
639
|
+
if (widthOver && fixedScale)
|
|
640
|
+
fixedAttrs.push("scale");
|
|
641
|
+
const dims = [];
|
|
642
|
+
if (widthOver)
|
|
643
|
+
dims.push(`width (${Math.round(contentWidth)}px > ${Math.round(parent.width)}px)`);
|
|
644
|
+
if (heightOver)
|
|
645
|
+
dims.push(`height (${Math.round(contentHeight)}px > ${Math.round(parent.height)}px)`);
|
|
646
|
+
this.errors.addOrReplace({
|
|
647
|
+
id: errId,
|
|
648
|
+
type: fixedAttrs.length > 0 ? "error" : "warning",
|
|
649
|
+
message: `Chart exceeds available ${dims.join(" and ")}. ` +
|
|
650
|
+
(fixedAttrs.length > 0
|
|
651
|
+
? `Adjust ${fixedAttrs.join(" / ")} or set to "auto".`
|
|
652
|
+
: "Content does not fit even at minimum auto scaling; enlarge the container."),
|
|
653
|
+
});
|
|
654
|
+
}
|
|
535
655
|
componentDidRender() {
|
|
536
656
|
const { mode } = parseScaling(this.scale);
|
|
537
657
|
if (mode !== "auto" && mode !== "empty") {
|
|
538
658
|
this._autoScaleGuard = false;
|
|
539
|
-
|
|
540
|
-
const errId = "WARN_overflow";
|
|
541
|
-
if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
|
|
542
|
-
this.errors.addOrReplace({
|
|
543
|
-
id: errId,
|
|
544
|
-
type: "warning",
|
|
545
|
-
message: "Chart exceeds available space and will be cut off. Check unit-scaling value.",
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
else {
|
|
549
|
-
this.errors.remove(errId);
|
|
550
|
-
}
|
|
659
|
+
this.checkOverflow();
|
|
551
660
|
return;
|
|
552
661
|
}
|
|
553
662
|
if (this._autoScaleGuard) {
|
|
554
663
|
this._autoScaleGuard = false;
|
|
664
|
+
this.checkOverflow();
|
|
555
665
|
return;
|
|
556
666
|
}
|
|
557
667
|
const host = this.element;
|
|
558
668
|
const { width: parentWidth } = getParentDimensions(host);
|
|
559
|
-
if (parentWidth <= 0)
|
|
669
|
+
if (parentWidth <= 0) {
|
|
670
|
+
this.checkOverflow();
|
|
560
671
|
return;
|
|
672
|
+
}
|
|
561
673
|
// Keep observer tracking in sync so the observer callback does not
|
|
562
674
|
// trigger spurious forceUpdate calls with stale threshold values.
|
|
563
675
|
this._lastObservedWidth = parentWidth;
|
|
@@ -568,6 +680,7 @@ export class Chart {
|
|
|
568
680
|
// the content only fits BECAUSE of the current factor.
|
|
569
681
|
if (currentWidth <= parentWidth + 1) {
|
|
570
682
|
this.errors.remove("AUTO_scale");
|
|
683
|
+
this.checkOverflow();
|
|
571
684
|
return;
|
|
572
685
|
}
|
|
573
686
|
// Content overflows. Compute a new factor based on the ratio of
|
|
@@ -575,6 +688,8 @@ export class Chart {
|
|
|
575
688
|
const computedFactor = Math.max(0.3, (currentFactor * (parentWidth - 1)) / currentWidth);
|
|
576
689
|
// Only apply if the change is significant (> 1% of current factor).
|
|
577
690
|
if (Math.abs(computedFactor - currentFactor) < 0.01) {
|
|
691
|
+
// Converged (possibly at the 0.3 floor) but still overflowing — report it.
|
|
692
|
+
this.checkOverflow();
|
|
578
693
|
return;
|
|
579
694
|
}
|
|
580
695
|
host.style.setProperty("--bn-font-size", `${baseFontSize * computedFactor}px`);
|
|
@@ -592,6 +707,10 @@ export class Chart {
|
|
|
592
707
|
writeTask(() => {
|
|
593
708
|
this.appliedScaleFactor = computedFactor;
|
|
594
709
|
});
|
|
710
|
+
// Check with the current (pre-factor) content so overflow is reported
|
|
711
|
+
// even if the scheduled re-render stalls; the follow-up render re-checks
|
|
712
|
+
// in the guard branch and clears any transiently reported overflow.
|
|
713
|
+
this.checkOverflow();
|
|
595
714
|
}
|
|
596
715
|
componentDidLoad() {
|
|
597
716
|
// Watch for size changes (window resize, card relayout).
|
|
@@ -665,7 +784,13 @@ export class Chart {
|
|
|
665
784
|
const variancesList = this.prepareVariances();
|
|
666
785
|
this.canvasWidthSegmented = parent.width / (scenariosList.length + variancesList.length || 1);
|
|
667
786
|
this._lastAppliedHeight = parent.height;
|
|
668
|
-
|
|
787
|
+
// The base chart and each variance render as vertically stacked segments
|
|
788
|
+
// (see render()), so each one may only claim its share of the height.
|
|
789
|
+
// The measure-scale footer (first segment only) renders below its SVG:
|
|
790
|
+
// reserve roughly one em for it so the fitted charts leave it room.
|
|
791
|
+
const segmentCount = 1 + variancesList.length;
|
|
792
|
+
const footerAllowance = this.showMeasureScale === "true" ? this.getEffectiveFontPx() : 0;
|
|
793
|
+
return { width: this.canvasWidthSegmented, height: Math.max(0, parent.height - footerAllowance) / segmentCount };
|
|
669
794
|
}
|
|
670
795
|
prepareScenarios() {
|
|
671
796
|
var _a, _b, _c, _d;
|
|
@@ -721,48 +846,56 @@ export class Chart {
|
|
|
721
846
|
const i18nMapGlobal = new Map(i18nMetaLabelsGlobal.map((key) => [key, this.t("global.".concat(key))]));
|
|
722
847
|
return new Map([...i18nMapGlobal.entries(), ...i18nMapLocal.entries()]);
|
|
723
848
|
}
|
|
849
|
+
/** "not set" for blank input, `invalid value "x"` otherwise — for AUTO_* messages. */
|
|
850
|
+
static describeScalingInput(raw) {
|
|
851
|
+
return raw === "" ? "not set" : `invalid value "${raw}"`;
|
|
852
|
+
}
|
|
724
853
|
preparePixelPerUnit() {
|
|
725
|
-
|
|
726
|
-
if (
|
|
854
|
+
const resolved = resolveScalingValue(this.unitScaling, this.pixelPerUnitGroupMap);
|
|
855
|
+
if (resolved.kind === "value") {
|
|
727
856
|
this.errors.remove("AUTO_unitScaling");
|
|
728
|
-
|
|
857
|
+
this.autoUnitWarningActive = false;
|
|
858
|
+
this.lastReportedUnitsPerEm = undefined;
|
|
859
|
+
// The attribute is data units per em; the inner chart expects px for one data unit.
|
|
860
|
+
return this.getEffectiveFontPx() / resolved.value;
|
|
729
861
|
}
|
|
730
862
|
// Explicit 'auto' → auto-calculate silently
|
|
731
|
-
if (
|
|
863
|
+
if (resolved.kind === "auto") {
|
|
732
864
|
this.errors.remove("AUTO_unitScaling");
|
|
865
|
+
this.autoUnitWarningActive = false;
|
|
866
|
+
this.lastReportedUnitsPerEm = undefined;
|
|
733
867
|
return 0;
|
|
734
868
|
}
|
|
735
|
-
const numeric = Number(this.unitScaling);
|
|
736
|
-
if (!isNaN(numeric) && numeric > 0) {
|
|
737
|
-
this.errors.remove("AUTO_unitScaling");
|
|
738
|
-
return numeric;
|
|
739
|
-
}
|
|
740
869
|
// Not set / invalid → auto-calculate with warning
|
|
870
|
+
this.autoUnitWarningActive = true;
|
|
741
871
|
this.errors.addOrReplace({
|
|
742
872
|
id: "AUTO_unitScaling",
|
|
743
873
|
type: "warning",
|
|
744
|
-
message: `unit-scaling:
|
|
874
|
+
message: `unit-scaling: ${Chart.describeScalingInput(resolved.raw)}, auto-calculated to fit available space.`,
|
|
745
875
|
});
|
|
746
876
|
return 0;
|
|
747
877
|
}
|
|
748
878
|
preparePixelPerPercentage() {
|
|
749
|
-
|
|
750
|
-
if (
|
|
751
|
-
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
752
|
-
}
|
|
753
|
-
if (((_a = this.percentageScaling) === null || _a === void 0 ? void 0 : _a.toString().trim().toLowerCase()) === "auto") {
|
|
879
|
+
const resolved = resolveScalingValue(this.percentageScaling, this.pixelPerUnitGroupMap);
|
|
880
|
+
if (resolved.kind === "value") {
|
|
754
881
|
this.errors.remove("AUTO_percentageScaling");
|
|
755
|
-
|
|
882
|
+
this.autoPctWarningActive = false;
|
|
883
|
+
this.lastReportedPpPerEm = undefined;
|
|
884
|
+
// The attribute is percentage points per em; the inner chart expects
|
|
885
|
+
// px per 1.0 fraction (= per 100 percentage points).
|
|
886
|
+
return (100 * this.getEffectiveFontPx()) / resolved.value;
|
|
756
887
|
}
|
|
757
|
-
|
|
758
|
-
if (!isNaN(numeric) && numeric > 0) {
|
|
888
|
+
if (resolved.kind === "auto") {
|
|
759
889
|
this.errors.remove("AUTO_percentageScaling");
|
|
760
|
-
|
|
890
|
+
this.autoPctWarningActive = false;
|
|
891
|
+
this.lastReportedPpPerEm = undefined;
|
|
892
|
+
return 0;
|
|
761
893
|
}
|
|
894
|
+
this.autoPctWarningActive = true;
|
|
762
895
|
this.errors.addOrReplace({
|
|
763
896
|
id: "AUTO_percentageScaling",
|
|
764
897
|
type: "warning",
|
|
765
|
-
message: `percentage-scaling:
|
|
898
|
+
message: `percentage-scaling: ${Chart.describeScalingInput(resolved.raw)}, auto-calculated to fit available space.`,
|
|
766
899
|
});
|
|
767
900
|
return 0;
|
|
768
901
|
}
|
|
@@ -1032,13 +1165,12 @@ export class Chart {
|
|
|
1032
1165
|
const preparedI18n = this.prepareI18n();
|
|
1033
1166
|
const preparedStyle = this.prepareStyle();
|
|
1034
1167
|
const fullParentWidth = getParentDimensions(this.element).width;
|
|
1035
|
-
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
1036
1168
|
const ppu = this.preparePixelPerUnit();
|
|
1037
1169
|
const ppp = this.preparePixelPerPercentage();
|
|
1038
1170
|
const stackConfig = this.prepareStackConfig();
|
|
1039
1171
|
const scenarios = this.prepareScenarios();
|
|
1040
1172
|
const effectiveScenarios = (stackConfig === null || stackConfig === void 0 ? void 0 : stackConfig.by) === StackBy.DIMENSIONS ? scenarios.slice(0, 1) : scenarios;
|
|
1041
|
-
return (h("ibcs-chart-time", { tableName: this.datasetName, dataVersion: this.dataVersion, chartTitle: this.prepareChartTitle(idx), scenarios: effectiveScenarios, variances: [localScenarioString], hideAxisLabels: this.prepareHideAxisLabels(idx), pixelPerUnit: ppu
|
|
1173
|
+
return (h("ibcs-chart-time", { tableName: this.datasetName, dataVersion: this.dataVersion, chartTitle: this.prepareChartTitle(idx), scenarios: effectiveScenarios, variances: [localScenarioString], hideAxisLabels: this.prepareHideAxisLabels(idx), pixelPerUnit: ppu, pixelPerPercentage: ppp, reportAutoScaling: this.handleAutoScalingReport, limit: this.prepareLimit(), leftSideOffsetForHorizontalSync: this.prepareLeftSideOffset(preparedI18n, preparedStyle), styles: preparedStyle, i18n: preparedI18n, order: this.prepareOrder(), level: this.prepareLevel(), dateInterval: this.prepareDateInterval(), intervalSpanLimit: this.prepareIntervalSpanLimit(), axisLabelsMode: this.prepareAxisLabelsMode(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showOverlayAvg: this.prepareAvg(), showOverlayMedian: this.prepareMedian(), showMeasureScale: this.prepareShowMeasureScale(idx), chartMode: this.prepareChartMode(), maxBars: this.prepareMaxBars(), stackConfig: stackConfig, lineFullWidth: this.prepareLineFullWidth(), containerWidth: fullParentWidth, parentDimensions: this.prepareDimension(), ruleSetConfig: this.ruleSetConfig() }));
|
|
1042
1174
|
}
|
|
1043
1175
|
getEffectiveScaleFactor() {
|
|
1044
1176
|
const { mode, factor } = parseScaling(this.scale);
|
|
@@ -1048,6 +1180,11 @@ export class Chart {
|
|
|
1048
1180
|
return this.appliedScaleFactor;
|
|
1049
1181
|
return 1;
|
|
1050
1182
|
}
|
|
1183
|
+
/** Effective font size in px: base font from the style store × effective scale factor. */
|
|
1184
|
+
getEffectiveFontPx() {
|
|
1185
|
+
const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
|
|
1186
|
+
return baseFontSize * this.getEffectiveScaleFactor();
|
|
1187
|
+
}
|
|
1051
1188
|
getFontStyles() {
|
|
1052
1189
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
1053
1190
|
return this.componentStyle(($) => {
|
|
@@ -1068,7 +1205,7 @@ export class Chart {
|
|
|
1068
1205
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
1069
1206
|
}
|
|
1070
1207
|
const fontStyles = this.getFontStyles();
|
|
1071
|
-
return (h(Host, { key: '
|
|
1208
|
+
return (h(Host, { key: 'aff5ffed56838af70ca1525204497a708194012e', style: fontStyles }, h("div", { key: 'a9e0699c0fdbff19efe787e438ddf2921fac35a4', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
1072
1209
|
}
|
|
1073
1210
|
static get is() { return "bn-chart-time"; }
|
|
1074
1211
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1237,12 +1374,12 @@ export class Chart {
|
|
|
1237
1374
|
"text": "unit-scaling=\"auto\""
|
|
1238
1375
|
}, {
|
|
1239
1376
|
"name": "example",
|
|
1240
|
-
"text": "unit-scaling=\"
|
|
1377
|
+
"text": "unit-scaling=\"1M\""
|
|
1241
1378
|
}, {
|
|
1242
1379
|
"name": "example",
|
|
1243
1380
|
"text": "unit-scaling=\"revenue-scale\""
|
|
1244
1381
|
}],
|
|
1245
|
-
"text": "
|
|
1382
|
+
"text": "Data units displayed per 1 em of bar length (vertical bars) \u2014 map-scale\nsemantics: a larger value means smaller bars.\n\n| Value | Behavior |\n|--------------------|-------------------------------------------------------------|\n| `\"auto\"` | Auto-fit bars to fill the available container height |\n| not set / invalid | Same as auto, but emits `AUTO_unitScaling` warning |\n| `\"250000\"`, `\"1M\"` | Units per em; optional SI suffix `k`/`K`/`M`/`G`/`T` |\n| group name | References a `<bn-scaling-group>` for synchronized scaling |"
|
|
1246
1383
|
},
|
|
1247
1384
|
"getter": false,
|
|
1248
1385
|
"setter": false,
|
|
@@ -1262,12 +1399,12 @@ export class Chart {
|
|
|
1262
1399
|
"docs": {
|
|
1263
1400
|
"tags": [{
|
|
1264
1401
|
"name": "example",
|
|
1265
|
-
"text": "percentage-scaling=\"
|
|
1402
|
+
"text": "percentage-scaling=\"10\""
|
|
1266
1403
|
}, {
|
|
1267
1404
|
"name": "example",
|
|
1268
1405
|
"text": "percentage-scaling=\"pct-scale\""
|
|
1269
1406
|
}],
|
|
1270
|
-
"text": "
|
|
1407
|
+
"text": "Percentage points displayed per 1 em of pin/bar length for relative\nvariances \u2014 a larger value means shorter pins.\n\n| Value | Behavior |\n|-------------------|---------------------------------------------------------------|\n| `\"auto\"` | Auto-fit to available height (same two-pass as unit-scaling) |\n| not set / invalid | Same as auto with `AUTO_percentageScaling` warning |\n| `\"10\"`, `\"2.5\"` | Percentage points per em; optional SI suffix `k`/`K`/`M`/`G`/`T` |\n| group name | References a `<bn-scaling-group>` for synchronized scaling |"
|
|
1271
1408
|
},
|
|
1272
1409
|
"getter": false,
|
|
1273
1410
|
"setter": false,
|
|
@@ -1529,7 +1666,7 @@ export class Chart {
|
|
|
1529
1666
|
"optional": false,
|
|
1530
1667
|
"docs": {
|
|
1531
1668
|
"tags": [],
|
|
1532
|
-
"text": "Sets the SiPrefix of the Mesaurements and converts the\noriginal value.\n<br /><br />\nvalues: <br />\n```_ // k // M // G // T // P // E // Z // Y // m // \u03BC // n // p //
|
|
1669
|
+
"text": "Sets the SiPrefix of the Mesaurements and converts the\noriginal value.\n<br /><br />\nvalues: <br />\n```_ // k // M // G // T // P // E // Z // Y // m // my (\u03BC) // n // p // f // a // z // y // GREATEST // LEAST```\n<br /><br />\nSiPrefix overview:\n``` \"Y\": 1E+24,```<br />\n``` \"Z\": 1E+21,```<br />\n``` \"E\": 1E+18,```<br />\n``` \"P\": 1E+15,```<br />\n``` \"T\": 1E+12,```<br />\n``` \"G\": 1000000000,```<br />\n``` \"M\": 1000000,```<br />\n``` \"k\": 1000,```<br />\n<br />\n``` \"m\": 0.001,```<br />\n``` \"my\" (\u03BC): 0.000001,```<br />\n``` \"n\": 0.000000001,```<br />\n``` \"p\": 0.000000000001,```<br />\n``` \"f\": 0.000000000000001,```<br />\n``` \"a\": 0.000000000000000001,```<br />\n``` \"z\": 0.000000000000000000001,```<br />\n``` \"y\": 0.000000000000000000000001,```<br />\n<br /><br />\nSpecial modes:\n```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />\n```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />\n<br /><br />\n```_``` is the value for no SiPrefix the value is displayed as in the dataset stored."
|
|
1533
1670
|
},
|
|
1534
1671
|
"getter": false,
|
|
1535
1672
|
"setter": false,
|
|
@@ -90,7 +90,13 @@ div {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.footer-hide {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
/* Fully removed from layout: an invisible footer must not consume height
|
|
94
|
+
that the height-fitted chart was given to fill. */
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
svg#drawCanvas {
|
|
99
|
+
/* Inline SVGs sit on a text baseline and add a ~4px line-box gap below;
|
|
100
|
+
the height-fitted chart must not spend its budget on that. */
|
|
101
|
+
display: block;
|
|
96
102
|
}
|