@bino-bi/bn-template-engine 1.0.0-next.28 → 1.0.0-next.30
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-132ad556.entry.js +1 -0
- package/dist/bn-template-engine/p-17d71782.entry.js +1 -0
- package/dist/bn-template-engine/p-40ba7f43.entry.js +1 -0
- package/dist/bn-template-engine/p-467871f3.entry.js +1 -0
- package/dist/bn-template-engine/p-64803a42.entry.js +1 -0
- package/dist/bn-template-engine/p-B8AjeKja.js +1 -0
- package/dist/bn-template-engine/p-CCZcKl0Q.js +2 -0
- package/dist/bn-template-engine/p-CrT83eO4.js +1 -0
- package/dist/bn-template-engine/p-D_DzKxRV.js +1 -0
- package/dist/bn-template-engine/p-Z2rUaSh_.js +1 -0
- package/dist/bn-template-engine/p-c41c0a1b.entry.js +1 -0
- package/dist/bn-template-engine/p-yc69rwuH.js +1 -0
- package/dist/cjs/{bn-asset_28.cjs.entry.js → bn-annotation-layer_30.cjs.entry.js} +27566 -26774
- package/dist/cjs/bn-grid.cjs.entry.js +11 -63
- package/dist/cjs/bn-image.cjs.entry.js +5 -6
- package/dist/cjs/bn-internationalization.cjs.entry.js +11 -7
- package/dist/cjs/bn-ruleset.cjs.entry.js +7 -8
- package/dist/cjs/bn-template-engine.cjs.js +2 -2
- package/dist/cjs/bn-text.cjs.entry.js +18 -18
- package/dist/cjs/{diagnostics-Cq-qDtXq.js → diagnostics-C4Ggts3w.js} +50 -2
- package/dist/cjs/{index-C1Z9vO7z.js → index-DGis1BzT.js} +0 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{withBodyObserver-CaPUjuC5.js → withBodyObserver-BK4idxqG.js} +2 -2
- package/dist/cjs/{context-protocol-C0rKepqu.js → withHasError-CqvcS23z.js} +462 -14
- package/dist/cjs/{withStyled-vSfogp9J.js → withStyled-70D4Isgt.js} +22 -35
- package/dist/cjs/{sanitizeHtml-Yx1xn6i_.js → withTranslation-C6Pye2CM.js} +148 -129
- package/dist/collection/collection-manifest.json +11 -11
- package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.css +24 -0
- package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.js +430 -0
- package/dist/collection/components/bn-annotation-layer/utils/marks.js +161 -0
- package/dist/collection/components/bn-annotation-layer/utils/matchPoint.js +25 -0
- package/dist/collection/components/bn-annotation-list/bn-annotation-list.css +46 -0
- package/dist/collection/components/bn-annotation-list/bn-annotation-list.js +112 -0
- package/dist/collection/components/bn-asset/bn-asset.js +1 -1
- package/dist/collection/components/bn-body/bn-body.js +24 -1
- package/dist/collection/components/bn-card/bn-card.js +24 -1
- package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.js → bn-chart-bubble-renderer/bn-chart-bubble-renderer.js} +153 -59
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +70 -13
- package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +29 -21
- package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.js → bn-chart-bullet-renderer/bn-chart-bullet-renderer.js} +127 -53
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +83 -20
- package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +26 -17
- package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +4 -4
- package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.js → bn-chart-scatter-renderer/bn-chart-scatter-renderer.js} +132 -53
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +69 -12
- package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +26 -14
- package/dist/collection/components/bn-chart-structure/{ibcs-chart-structure.js → bn-chart-structure-renderer/bn-chart-structure-renderer.js} +159 -66
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +115 -95
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +44 -15
- package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +1 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/Bar.js +6 -2
- package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/Marker.js +5 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +4 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +6 -2
- package/dist/collection/components/bn-chart-time/{ibcs-chart-time.js → bn-chart-time-renderer/bn-chart-time-renderer.js} +188 -150
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +140 -405
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +55 -15
- package/dist/collection/components/bn-chart-time/utils/elements/Column.js +5 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Label.js +14 -0
- package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +18 -12
- package/dist/collection/components/bn-chart-time/utils/elements/Marker.js +5 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +4 -1
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +6 -2
- package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +2 -2
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +2 -18
- package/dist/collection/components/bn-component-style/bn-component-style.js +3 -3
- package/dist/collection/components/bn-context/bn-context.js +24 -5
- package/dist/collection/components/bn-dataset/bn-dataset.js +8 -8
- package/dist/collection/components/bn-datasource/bn-datasource.js +8 -8
- package/dist/collection/components/bn-footer/bn-footer.css +1 -15
- package/dist/collection/components/bn-footer/bn-footer.js +17 -34
- package/dist/collection/components/bn-grid/bn-grid.js +38 -71
- package/dist/collection/components/bn-image/bn-image.js +21 -2
- package/dist/collection/components/bn-internationalization/bn-internationalization.js +7 -1
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +3 -32
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +3 -32
- package/dist/collection/components/bn-message/bn-message.js +20 -2
- package/dist/collection/components/bn-page/bn-page.js +22 -3
- package/dist/collection/components/bn-ruleset/bn-ruleset.js +3 -3
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +9 -9
- package/dist/collection/components/bn-table/{ibcs-table.js → bn-table-renderer/bn-table-renderer.js} +230 -83
- package/dist/collection/components/bn-table/bn-table.js +134 -157
- package/dist/collection/components/bn-table/utils/Table.js +3 -3
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +1 -1
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +38 -4
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +3 -1
- package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +2 -2
- package/dist/collection/components/bn-text/bn-text.js +66 -8
- package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.js → bn-title-renderer/bn-title-renderer.js} +59 -83
- package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.js +2 -2
- package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.js +1 -1
- package/dist/collection/components/bn-title/bn-title.js +58 -14
- package/dist/collection/components/bn-tree/bn-tree.js +30 -28
- package/dist/collection/index.js +0 -1
- package/dist/collection/schemas.js +1 -0
- package/dist/collection/stores/componentStyles.js +10 -6
- package/dist/collection/stores/createScopedStores.js +3 -1
- package/dist/collection/stores/internationalization.js +10 -6
- package/dist/collection/utils/annotations.js +66 -0
- package/dist/collection/utils/autoFit.js +2 -2
- package/dist/collection/utils/emptyState.js +1 -1
- package/dist/collection/utils/ibcsRuleSet.js +42 -0
- package/dist/collection/utils/layoutState/dataPoint.js +59 -0
- package/dist/collection/utils/layoutState/geometry.js +46 -0
- package/dist/collection/utils/layoutState/index.js +1 -0
- package/dist/collection/utils/layoutState/svgChartElements.js +113 -11
- package/dist/collection/utils/layoutTemplate.js +0 -2
- package/dist/collection/utils/scaling.js +9 -0
- package/dist/collection/utils/validate.js +0 -7
- package/dist/collection/utils/withComponentStyle.js +14 -18
- package/dist/collection/utils/withDataset.js +22 -11
- package/dist/collection/utils/withHasError.js +17 -2
- package/dist/collection/utils/withRuleSet.js +7 -7
- package/dist/collection/utils/withTranslation.js +14 -14
- package/dist/collection/utils/xy/XYFrame.js +13 -3
- package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +8 -9
- package/dist/collection/utils/xy/pointKey.js +10 -0
- package/dist/components/{ibcs-chart-bullet.d.ts → bn-annotation-layer.d.ts} +4 -4
- package/dist/components/bn-annotation-layer.js +1 -0
- package/dist/components/{ibcs-chart-scatter.d.ts → bn-annotation-list.d.ts} +4 -4
- package/dist/components/bn-annotation-list.js +1 -0
- package/dist/components/bn-asset.js +1 -1
- package/dist/components/bn-body.js +1 -1
- package/dist/components/bn-card.js +1 -1
- package/dist/components/bn-chart-bubble-renderer.d.ts +11 -0
- package/dist/components/bn-chart-bubble-renderer.js +1 -0
- package/dist/components/bn-chart-bubble.js +1 -1
- package/dist/components/bn-chart-bullet-renderer.d.ts +11 -0
- package/dist/components/bn-chart-bullet-renderer.js +1 -0
- package/dist/components/bn-chart-bullet.js +1 -1
- package/dist/components/bn-chart-scatter-renderer.d.ts +11 -0
- package/dist/components/bn-chart-scatter-renderer.js +1 -0
- package/dist/components/bn-chart-scatter.js +1 -1
- package/dist/components/bn-chart-structure-renderer.d.ts +11 -0
- package/dist/components/bn-chart-structure-renderer.js +1 -0
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/{bn-template.d.ts → bn-chart-time-renderer.d.ts} +4 -4
- package/dist/components/bn-chart-time-renderer.js +1 -0
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-component-style.js +1 -1
- package/dist/components/bn-context.js +1 -1
- package/dist/components/bn-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-footer.js +1 -1
- package/dist/components/bn-grid.js +1 -1
- package/dist/components/bn-image.js +1 -1
- package/dist/components/bn-internationalization.js +1 -1
- package/dist/components/bn-layout-card.js +1 -1
- package/dist/components/bn-layout-page.js +1 -1
- package/dist/components/bn-message.js +1 -1
- package/dist/components/bn-page.js +1 -1
- package/dist/components/bn-ruleset.js +1 -1
- package/dist/components/bn-scaling-group.js +1 -1
- package/dist/components/{ibcs-chart-bubble.d.ts → bn-table-renderer.d.ts} +4 -4
- package/dist/components/bn-table-renderer.js +1 -0
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/{editor-companion.d.ts → bn-title-renderer.d.ts} +4 -4
- package/dist/components/bn-title-renderer.js +1 -0
- package/dist/components/bn-title.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B1nL0yOa.js +1 -0
- package/dist/components/p-B7uwck1J.js +1 -0
- package/dist/components/p-BDS_jiow.js +1 -0
- package/dist/components/p-BIIDTtcR.js +1 -0
- package/dist/components/p-BQMKgvEC.js +1 -0
- package/dist/components/p-BSV_vyqs.js +1 -0
- package/dist/components/p-BVKLCz2k.js +1 -0
- package/dist/components/p-BWBHlztH.js +1 -0
- package/dist/components/p-BXrPfAvP.js +1 -0
- package/dist/components/p-Ba9PUiBp.js +1 -0
- package/dist/components/p-BpCL2bfw.js +1 -0
- package/dist/components/p-BpsXOtoW.js +1 -0
- package/dist/components/p-Bs-YxJEt.js +1 -0
- package/dist/components/p-CGI6XIaK.js +1 -0
- package/dist/components/p-CMM8vtHW.js +1 -0
- package/dist/components/p-COqIkH1M.js +1 -0
- package/dist/components/p-CYwd_ZNM.js +1 -0
- package/dist/components/p-CkW23yp2.js +1 -0
- package/dist/components/p-CtBM3KFY.js +1 -0
- package/dist/{bn-template-engine/p-DFmSrSnf.js → components/p-CurWSJkH.js} +1 -1
- package/dist/components/p-CxPSvrcF.js +1 -0
- package/dist/components/p-D2Epww9R.js +1 -0
- package/dist/components/p-D5-dYgK_.js +1 -0
- package/dist/components/p-D6YGOYV1.js +2 -0
- package/dist/components/p-DEHnizot.js +1 -0
- package/dist/components/p-DIyUaSBg.js +1 -0
- package/dist/components/p-DPLcGhVt.js +1 -0
- package/dist/components/p-DUHp_9X-.js +1 -0
- package/dist/components/p-DYG9FH_u.js +1 -0
- package/dist/components/p-DdGnuNtc.js +1 -0
- package/dist/components/p-Dlb4ncGF.js +1 -0
- package/dist/components/p-Dm55bMs2.js +1 -0
- package/dist/components/p-Dq1AzGKX.js +1 -0
- package/dist/components/p-Dq4KMCDU.js +1 -0
- package/dist/components/p-DsOaqeTN.js +1 -0
- package/dist/components/p-Ds_BSK8v.js +1 -0
- package/dist/components/p-LZ9lAY8T.js +1 -0
- package/dist/components/p-U3zkcEJZ.js +1 -0
- package/dist/components/p-WzaayhTX.js +1 -0
- package/dist/components/p-X9hpquOX.js +1 -0
- package/dist/components/p-Xb6Ilq8u.js +1 -0
- package/dist/components/p-ey23VlID.js +1 -0
- package/dist/components/p-jbp6YiHf.js +1 -0
- package/dist/components/p-oJjMz8JF.js +1 -0
- package/dist/components/p-xhiPDAZa.js +1 -0
- package/dist/components/p-xpguaboj.js +1 -0
- package/dist/esm/{bn-asset_28.entry.js → bn-annotation-layer_30.entry.js} +24689 -23899
- package/dist/esm/bn-grid.entry.js +11 -63
- package/dist/esm/bn-image.entry.js +4 -5
- package/dist/esm/bn-internationalization.entry.js +9 -5
- package/dist/esm/bn-ruleset.entry.js +6 -7
- package/dist/esm/bn-template-engine.js +3 -3
- package/dist/esm/bn-text.entry.js +12 -12
- package/dist/esm/{diagnostics-vw6TKMiT.js → diagnostics-Cyqy1zDT.js} +48 -2
- package/dist/esm/{index-C5UYpZUU.js → index-CCZcKl0Q.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{withBodyObserver-DD_-r04o.js → withBodyObserver-JcRB9OPQ.js} +2 -2
- package/dist/esm/{context-protocol-CdTp19uA.js → withHasError-l3cMN-oP.js} +458 -14
- package/dist/esm/{withStyled-BDEyKd_H.js → withStyled-DGOiR00Q.js} +17 -29
- package/dist/esm/{sanitizeHtml-C5bFtARM.js → withTranslation-BpO8BC5B.js} +144 -126
- package/dist/schemas/axis.schema.json +52 -0
- package/dist/schemas/i18n.schema.json +31 -0
- package/dist/schemas/partof.schema.json +33 -0
- package/dist/schemas/ruleset.schema.json +59 -0
- package/dist/schemas/stack.schema.json +51 -0
- package/dist/schemas/theme.schema.json +604 -0
- package/dist/schemas/thereof.schema.json +34 -0
- package/dist/types/components/bn-annotation-layer/bn-annotation-layer.d.ts +81 -0
- package/dist/types/components/bn-annotation-layer/utils/marks.d.ts +69 -0
- package/dist/types/components/bn-annotation-layer/utils/matchPoint.d.ts +17 -0
- package/dist/types/components/bn-annotation-list/bn-annotation-list.d.ts +35 -0
- package/dist/types/components/bn-body/bn-body.d.ts +5 -0
- package/dist/types/components/bn-card/bn-card.d.ts +5 -0
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble-renderer/bn-chart-bubble-renderer.d.ts +97 -0
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +20 -2
- package/dist/types/components/bn-chart-bullet/bn-chart-bullet-renderer/bn-chart-bullet-renderer.d.ts +81 -0
- package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +21 -3
- package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +2 -0
- package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +2 -2
- package/dist/types/components/bn-chart-scatter/bn-chart-scatter-renderer/bn-chart-scatter-renderer.d.ts +85 -0
- package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +20 -2
- package/dist/types/components/bn-chart-structure/{ibcs-chart-structure.d.ts → bn-chart-structure-renderer/bn-chart-structure-renderer.d.ts} +43 -13
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +29 -17
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +5 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Marker.d.ts +1 -0
- package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +2 -1
- package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +3 -0
- package/dist/types/components/bn-chart-time/{ibcs-chart-time.d.ts → bn-chart-time-renderer/bn-chart-time-renderer.d.ts} +50 -17
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +36 -66
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +7 -0
- package/dist/types/components/bn-chart-time/utils/elements/Label.d.ts +5 -0
- package/dist/types/components/bn-chart-time/utils/elements/LineSeries.d.ts +5 -1
- package/dist/types/components/bn-chart-time/utils/elements/Marker.d.ts +1 -0
- package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +2 -1
- package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +1 -1
- package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +3 -0
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +2 -8
- package/dist/types/components/bn-context/bn-context.d.ts +7 -1
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +2 -2
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +2 -2
- package/dist/types/components/bn-footer/bn-footer.d.ts +5 -7
- package/dist/types/components/bn-grid/bn-grid.d.ts +8 -6
- package/dist/types/components/bn-image/bn-image.d.ts +4 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +0 -1
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +0 -1
- package/dist/types/components/bn-message/bn-message.d.ts +5 -0
- package/dist/types/components/bn-page/bn-page.d.ts +5 -0
- package/dist/types/components/bn-table/{ibcs-table.d.ts → bn-table-renderer/bn-table-renderer.d.ts} +49 -12
- package/dist/types/components/bn-table/bn-table.d.ts +48 -49
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +2 -1
- package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +3 -0
- package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +9 -2
- package/dist/types/components/bn-text/bn-text.d.ts +19 -1
- package/dist/types/components/bn-title/{ibcs-title/ibcs-title.d.ts → bn-title-renderer/bn-title-renderer.d.ts} +15 -4
- package/dist/types/components/bn-title/bn-title.d.ts +15 -3
- package/dist/types/components/bn-tree/bn-tree.d.ts +6 -2
- package/dist/types/components.d.ts +2070 -2406
- package/dist/types/context/context-protocol.d.ts +2 -0
- package/dist/types/context/scopedDb.d.ts +9 -12
- package/dist/types/index.d.ts +0 -1
- package/dist/types/schemas.d.ts +50 -0
- package/dist/types/stores/componentStyles.d.ts +8 -0
- package/dist/types/stores/createScopedStores.d.ts +1 -0
- package/dist/types/stores/internationalization.d.ts +3 -2
- package/dist/types/stores/ruleSets.d.ts +15 -3
- package/dist/types/utils/annotations.d.ts +45 -0
- package/dist/types/utils/autoFit.d.ts +2 -2
- package/dist/types/utils/emptyState.d.ts +1 -1
- package/dist/types/utils/ibcsRuleSet.d.ts +16 -0
- package/dist/types/utils/layoutState/dataPoint.d.ts +13 -0
- package/dist/types/utils/layoutState/geometry.d.ts +12 -0
- package/dist/types/utils/layoutState/index.d.ts +1 -0
- package/dist/types/utils/layoutState/svgChartElements.d.ts +9 -6
- package/dist/types/utils/layoutState/types.d.ts +29 -0
- package/dist/types/utils/model/ChartStyles.d.ts +2 -1
- package/dist/types/utils/scaling.d.ts +2 -0
- package/dist/types/utils/validate.d.ts +0 -1
- package/dist/types/utils/withComponentStyle.d.ts +4 -4
- package/dist/types/utils/withDataset.d.ts +3 -3
- package/dist/types/utils/withHasError.d.ts +22 -1
- package/dist/types/utils/withRuleSet.d.ts +3 -2
- package/dist/types/utils/withTranslation.d.ts +1 -2
- package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +6 -7
- package/dist/types/utils/xy/pointKey.d.ts +9 -0
- package/package.json +24 -8
- package/readme.md +14 -8
- package/dist/bn-template-engine/assets/bar.png +0 -0
- package/dist/bn-template-engine/assets/matrix.png +0 -0
- package/dist/bn-template-engine/p-5075771a.entry.js +0 -1
- package/dist/bn-template-engine/p-5d516435.entry.js +0 -1
- package/dist/bn-template-engine/p-5e90e728.entry.js +0 -1
- package/dist/bn-template-engine/p-9ef7e132.entry.js +0 -1
- package/dist/bn-template-engine/p-9f7a1980.entry.js +0 -1
- package/dist/bn-template-engine/p-BeXgxHkW.js +0 -1
- package/dist/bn-template-engine/p-C5UYpZUU.js +0 -2
- package/dist/bn-template-engine/p-CH0bpt_k.js +0 -1
- package/dist/bn-template-engine/p-DI3efDSV.js +0 -1
- package/dist/bn-template-engine/p-DXLTTILG.js +0 -1
- package/dist/bn-template-engine/p-DtP4jqG5.js +0 -1
- package/dist/bn-template-engine/p-a8281b71.entry.js +0 -1
- package/dist/bn-template-engine/p-b31277e7.entry.js +0 -1
- package/dist/bn-template-engine/p-b396ac84.entry.js +0 -1
- package/dist/cjs/bn-template.cjs.entry.js +0 -18
- package/dist/cjs/editor-companion.cjs.entry.js +0 -56
- package/dist/cjs/withHasError-qGW_yqIv.js +0 -426
- package/dist/collection/components/bn-footer/assets/bar.png +0 -0
- package/dist/collection/components/bn-footer/assets/matrix.png +0 -0
- package/dist/collection/components/bn-message/assets/bar.png +0 -0
- package/dist/collection/components/bn-message/assets/matrix.png +0 -0
- package/dist/collection/components/bn-template/bn-template.js +0 -38
- package/dist/collection/components/editor-companion/editor-companion.css +0 -3
- package/dist/collection/components/editor-companion/editor-companion.js +0 -137
- package/dist/collection/utils/templateId.js +0 -12
- package/dist/collection/utils/testing/fakeGroup.js +0 -21
- package/dist/collection/utils/testing/hostFont.js +0 -20
- package/dist/collection/utils/testing/mutationObserver.js +0 -44
- package/dist/collection/utils/testing/structureChart.js +0 -26
- package/dist/collection/utils/testing/timeChart.js +0 -28
- package/dist/components/AxisConfig.js +0 -1
- package/dist/components/CompareUtil.js +0 -1
- package/dist/components/DataFormatDigits.js +0 -1
- package/dist/components/DateStringFactory.js +0 -1
- package/dist/components/LabelCollisionManager.js +0 -1
- package/dist/components/Order.js +0 -1
- package/dist/components/SVGStyle.js +0 -1
- package/dist/components/SVGVariancesStyleGroup.js +0 -1
- package/dist/components/StringAdapter.js +0 -1
- package/dist/components/VarianceMeasure.js +0 -1
- package/dist/components/XYChartDataRow.js +0 -1
- package/dist/components/bn-body2.js +0 -1
- package/dist/components/bn-card2.js +0 -1
- package/dist/components/bn-footer2.js +0 -1
- package/dist/components/bn-message2.js +0 -1
- package/dist/components/bn-page2.js +0 -1
- package/dist/components/bn-template.js +0 -1
- package/dist/components/bn-title2.js +0 -1
- package/dist/components/checkXYOverflow.js +0 -1
- package/dist/components/contentDecoder.js +0 -1
- package/dist/components/context-protocol.js +0 -1
- package/dist/components/editor-companion.js +0 -1
- package/dist/components/formatter.js +0 -1
- package/dist/components/geometry.js +0 -1
- package/dist/components/ibcs-chart-bubble.js +0 -1
- package/dist/components/ibcs-chart-bubble2.js +0 -1
- package/dist/components/ibcs-chart-bullet.js +0 -1
- package/dist/components/ibcs-chart-bullet2.js +0 -1
- package/dist/components/ibcs-chart-scatter.js +0 -1
- package/dist/components/ibcs-chart-scatter2.js +0 -1
- package/dist/components/ibcs-chart-structure.d.ts +0 -11
- package/dist/components/ibcs-chart-structure.js +0 -1
- package/dist/components/ibcs-chart-structure2.js +0 -1
- package/dist/components/ibcs-chart-time.d.ts +0 -11
- package/dist/components/ibcs-chart-time.js +0 -1
- package/dist/components/ibcs-chart-time2.js +0 -1
- package/dist/components/ibcs-table.d.ts +0 -11
- package/dist/components/ibcs-table.js +0 -1
- package/dist/components/ibcs-table2.js +0 -1
- package/dist/components/ibcs-title.d.ts +0 -11
- package/dist/components/ibcs-title.js +0 -1
- package/dist/components/ibcs-title2.js +0 -1
- package/dist/components/layoutTemplate.js +0 -1
- package/dist/components/luxon.js +0 -1
- package/dist/components/scaling.js +0 -1
- package/dist/components/svg.esm.js +0 -1
- package/dist/components/svgChartElements.js +0 -1
- package/dist/components/types.js +0 -1
- package/dist/components/validate.js +0 -1
- package/dist/components/withBodyObserver.js +0 -1
- package/dist/components/withComponentStatus.js +0 -1
- package/dist/components/withComponentStyle.js +0 -1
- package/dist/components/withDataset.js +0 -1
- package/dist/components/withHasError.js +0 -1
- package/dist/components/withRuleSet.js +0 -1
- package/dist/components/withScalingGroup.js +0 -1
- package/dist/components/withStyled.js +0 -1
- package/dist/components/withTranslation.js +0 -1
- package/dist/esm/bn-template.entry.js +0 -16
- package/dist/esm/editor-companion.entry.js +0 -54
- package/dist/esm/withHasError-73WV2SP5.js +0 -422
- package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +0 -59
- package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +0 -53
- package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +0 -54
- package/dist/types/components/bn-template/bn-template.d.ts +0 -10
- package/dist/types/components/editor-companion/editor-companion.d.ts +0 -20
- package/dist/types/utils/templateId.d.ts +0 -9
- package/dist/types/utils/testing/fakeGroup.d.ts +0 -8
- package/dist/types/utils/testing/hostFont.d.ts +0 -16
- package/dist/types/utils/testing/mutationObserver.d.ts +0 -5
- package/dist/types/utils/testing/structureChart.d.ts +0 -5
- package/dist/types/utils/testing/timeChart.d.ts +0 -5
- /package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.css → bn-chart-bubble-renderer/bn-chart-bubble-renderer.css} +0 -0
- /package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.css → bn-chart-bullet-renderer/bn-chart-bullet-renderer.css} +0 -0
- /package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.css → bn-chart-scatter-renderer/bn-chart-scatter-renderer.css} +0 -0
- /package/dist/collection/components/bn-chart-time/{ibcs-chart-time.css → bn-chart-time-renderer/bn-chart-time-renderer.css} +0 -0
- /package/dist/collection/components/bn-table/{ibcs-table.css → bn-table-renderer/bn-table-renderer.css} +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.css → bn-title-renderer/bn-title-renderer.css} +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.js +0 -0
- /package/dist/components/{stackColors.js → p-4q8nRcWC.js} +0 -0
- /package/dist/components/{merge.js → p-B2NXsfMz.js} +0 -0
- /package/dist/components/{layoutObserver.js → p-B6kka9sT.js} +0 -0
- /package/dist/components/{NumericScale.js → p-BJmwHV0a.js} +0 -0
- /package/dist/components/{stackLayout.js → p-BTnRaHPb.js} +0 -0
- /package/dist/components/{emotion-hash.esm.js → p-BYBpC0EO.js} +0 -0
- /package/dist/components/{diagnostics.js → p-CckAR27O.js} +0 -0
- /package/dist/components/{SiPrefix.js → p-CeE4_3wQ.js} +0 -0
- /package/dist/components/{queryError.js → p-ClruFZD_.js} +0 -0
- /package/dist/components/{sanitizeHtml.js → p-CyUmrWfW.js} +0 -0
- /package/dist/components/{TableAttribute.js → p-DCPLGEs_.js} +0 -0
- /package/dist/components/{parentDimensions.js → p-DD1zlev_.js} +0 -0
- /package/dist/components/{pageFormats.js → p-DM7fwmH4.js} +0 -0
- /package/dist/components/{emptyState.js → p-DakXa7Dp.js} +0 -0
- /package/dist/components/{relativeVariance.js → p-fCjsrD7I.js} +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.d.ts +0 -0
|
@@ -27,6 +27,52 @@ export function toDualRect(rect, origins) {
|
|
|
27
27
|
export function measure(el, origins) {
|
|
28
28
|
return toDualRect(el.getBoundingClientRect(), origins);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Width in layout px of a sign that a `::before` draws in front of the content
|
|
32
|
+
* of an element. 0 without one. A range does not see it, and a screen box has no
|
|
33
|
+
* "in front" on a rotated page, so it is reported next to the box.
|
|
34
|
+
*/
|
|
35
|
+
export function measureSign(el) {
|
|
36
|
+
const before = getComputedStyle(el, "::before").content;
|
|
37
|
+
if (!before || before === "none" || before === "normal")
|
|
38
|
+
return 0;
|
|
39
|
+
const context = el.ownerDocument.createElement("canvas").getContext("2d");
|
|
40
|
+
if (!context)
|
|
41
|
+
return 0;
|
|
42
|
+
const { fontStyle, fontWeight, fontSize, fontFamily } = getComputedStyle(el);
|
|
43
|
+
context.font = `${fontStyle} ${fontWeight} ${fontSize} ${fontFamily}`;
|
|
44
|
+
return context.measureText(before.replace(/^"|"$/g, "")).width;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The box of what a table cell shows, without its free space: the text, or the
|
|
48
|
+
* number of an in-cell bar chart. Cut to the cell, which clips a long text.
|
|
49
|
+
* `undefined` when it shows nothing.
|
|
50
|
+
*/
|
|
51
|
+
export function measureContent(el, origins) {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
const range = (_b = (_a = el.ownerDocument) === null || _a === void 0 ? void 0 : _a.createRange) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
54
|
+
if (!range)
|
|
55
|
+
return undefined;
|
|
56
|
+
const cell = el.getBoundingClientRect();
|
|
57
|
+
const chartLabel = el.querySelector("svg text");
|
|
58
|
+
let measured;
|
|
59
|
+
if (chartLabel) {
|
|
60
|
+
measured = chartLabel.getBoundingClientRect();
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
range.selectNodeContents(el);
|
|
64
|
+
// a repeated prefix ("thereof ") is there, but transparent
|
|
65
|
+
const hidden = el.querySelector(".prefix-second");
|
|
66
|
+
if (hidden)
|
|
67
|
+
range.setStartAfter(hidden);
|
|
68
|
+
measured = range.getBoundingClientRect();
|
|
69
|
+
}
|
|
70
|
+
const left = Math.max(measured.left, cell.left);
|
|
71
|
+
const top = Math.max(measured.top, cell.top);
|
|
72
|
+
const width = Math.min(measured.right, cell.right) - left;
|
|
73
|
+
const height = Math.min(measured.bottom, cell.bottom) - top;
|
|
74
|
+
return width > 0 && height > 0 ? toDualRect({ left, top, width, height }, origins) : undefined;
|
|
75
|
+
}
|
|
30
76
|
/**
|
|
31
77
|
* Resolves the coordinate origins for a component host: the nearest
|
|
32
78
|
* `bn-context` ancestor's top-left and the host's own top-left. Without a
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { readLayoutPoint } from "./dataPoint";
|
|
1
2
|
import { readDiagnostics } from "./diagnostics";
|
|
2
3
|
import { measure } from "./geometry";
|
|
3
4
|
import { resolveStandaloneId } from "./identity";
|
|
4
5
|
import { LAYOUT_STATE_VERSION, } from "./types";
|
|
5
6
|
const SCENARIO_GROUP_RE = /^Scenario([1-4])$/;
|
|
7
|
+
const STACK_SEGMENT_RE = /^stacked_(?:col|bar)_(\d+)_seg_\d+$/;
|
|
8
|
+
const STACK_SEGMENTS = 'g[id^="stacked_col_"], g[id^="stacked_bar_"]';
|
|
6
9
|
/** Nearest `#Scenario1..4` ancestor of an element, as "scenario1".."scenario4". */
|
|
7
10
|
function scenarioOf(el, root) {
|
|
8
11
|
var _a;
|
|
@@ -17,9 +20,26 @@ function scenarioOf(el, root) {
|
|
|
17
20
|
}
|
|
18
21
|
/** Data-point index encoded in a group id like "3_RECT" or "3_DATA_Label". */
|
|
19
22
|
function indexOfGroup(id) {
|
|
23
|
+
if (id === "")
|
|
24
|
+
return undefined;
|
|
20
25
|
const parsed = Number(id.split("_")[0]);
|
|
21
26
|
return Number.isFinite(parsed) ? parsed : undefined;
|
|
22
27
|
}
|
|
28
|
+
/** Ordinal a mark without a group of its own carries itself. */
|
|
29
|
+
function ownIndex(el) {
|
|
30
|
+
const index = el.getAttribute("data-bn-index");
|
|
31
|
+
return index === null ? undefined : Number(index);
|
|
32
|
+
}
|
|
33
|
+
/** Index of the data-point group around an element: a marker shape has no id of its own. */
|
|
34
|
+
function indexAround(el, root) {
|
|
35
|
+
var _a;
|
|
36
|
+
for (let current = el; current && current !== root; current = current.parentElement) {
|
|
37
|
+
const index = indexOfGroup((_a = current.id) !== null && _a !== void 0 ? _a : "");
|
|
38
|
+
if (index !== undefined)
|
|
39
|
+
return index;
|
|
40
|
+
}
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
23
43
|
function hasClass(el, name) {
|
|
24
44
|
var _a;
|
|
25
45
|
return ((_a = el.getAttribute("class")) !== null && _a !== void 0 ? _a : "").split(/\s+/).includes(name);
|
|
@@ -38,14 +58,18 @@ function insideLabelGroup(el, root) {
|
|
|
38
58
|
/**
|
|
39
59
|
* Walks one time/structure chart segment SVG (`svg#drawCanvas`) and classifies
|
|
40
60
|
* its rendered elements by the chart's stable group-id conventions:
|
|
41
|
-
* `<index>_RECT` bar groups inside `#Scenario1..4`,
|
|
42
|
-
* `<index>_SCENARIO_Label` label groups,
|
|
43
|
-
* and the category/title texts of the
|
|
61
|
+
* `<index>_RECT` bar groups inside `#Scenario1..4`, `stacked_col_<index>_seg_<n>`
|
|
62
|
+
* stack segments, `<index>_DATA_Label` / `<index>_SCENARIO_Label` label groups,
|
|
63
|
+
* the `#axis` group's `.axis-*` line, and the category/title texts of the
|
|
64
|
+
* axis-labels group. Every other element with a `data-bn-part` attribute is a
|
|
65
|
+
* data point too: a value label, a stack total, a line or scenario marker.
|
|
44
66
|
*/
|
|
45
67
|
export function collectChartSegmentElements(svgRoot, segment, origins) {
|
|
46
68
|
const elements = [];
|
|
69
|
+
const collected = new Set();
|
|
47
70
|
svgRoot.querySelectorAll('g[id$="_RECT"]').forEach((group, walkIndex) => {
|
|
48
71
|
var _a;
|
|
72
|
+
collected.add(group);
|
|
49
73
|
const bar = {
|
|
50
74
|
kind: "bar",
|
|
51
75
|
id: group.id,
|
|
@@ -53,6 +77,26 @@ export function collectChartSegmentElements(svgRoot, segment, origins) {
|
|
|
53
77
|
scenario: scenarioOf(group, svgRoot),
|
|
54
78
|
index: (_a = indexOfGroup(group.id)) !== null && _a !== void 0 ? _a : walkIndex,
|
|
55
79
|
rect: measure(group, origins),
|
|
80
|
+
point: readLayoutPoint(group),
|
|
81
|
+
};
|
|
82
|
+
elements.push(bar);
|
|
83
|
+
});
|
|
84
|
+
svgRoot.querySelectorAll(STACK_SEGMENTS).forEach((group) => {
|
|
85
|
+
var _a, _b, _c;
|
|
86
|
+
const match = STACK_SEGMENT_RE.exec(group.id);
|
|
87
|
+
// a segment without a value keeps its place in the stack and draws nothing
|
|
88
|
+
if (!match || !group.querySelector("rect"))
|
|
89
|
+
return;
|
|
90
|
+
collected.add(group);
|
|
91
|
+
const point = readLayoutPoint(group);
|
|
92
|
+
const bar = {
|
|
93
|
+
kind: "bar",
|
|
94
|
+
id: group.id,
|
|
95
|
+
segment,
|
|
96
|
+
scenario: `stack:${(_c = (_b = (_a = point === null || point === void 0 ? void 0 : point.scenario) !== null && _a !== void 0 ? _a : point === null || point === void 0 ? void 0 : point.subCategory) !== null && _b !== void 0 ? _b : point === null || point === void 0 ? void 0 : point.category) !== null && _c !== void 0 ? _c : ""}`,
|
|
97
|
+
index: Number(match[1]),
|
|
98
|
+
rect: measure(group, origins),
|
|
99
|
+
point,
|
|
56
100
|
};
|
|
57
101
|
elements.push(bar);
|
|
58
102
|
});
|
|
@@ -64,6 +108,7 @@ export function collectChartSegmentElements(svgRoot, segment, origins) {
|
|
|
64
108
|
const text = (_b = (_a = group.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : "";
|
|
65
109
|
if (!text)
|
|
66
110
|
return;
|
|
111
|
+
collected.add(group);
|
|
67
112
|
const label = {
|
|
68
113
|
kind: "label",
|
|
69
114
|
id: group.id,
|
|
@@ -72,10 +117,40 @@ export function collectChartSegmentElements(svgRoot, segment, origins) {
|
|
|
72
117
|
segment,
|
|
73
118
|
index: (_c = indexOfGroup(group.id)) !== null && _c !== void 0 ? _c : walkIndex,
|
|
74
119
|
rect: measure(group, origins),
|
|
120
|
+
point: readLayoutPoint(group),
|
|
75
121
|
};
|
|
76
122
|
elements.push(label);
|
|
77
123
|
});
|
|
78
124
|
});
|
|
125
|
+
svgRoot.querySelectorAll("[data-bn-part]").forEach((el, walkIndex) => {
|
|
126
|
+
var _a, _b, _c;
|
|
127
|
+
if (collected.has(el))
|
|
128
|
+
return;
|
|
129
|
+
const point = readLayoutPoint(el);
|
|
130
|
+
const index = (_a = ownIndex(el)) !== null && _a !== void 0 ? _a : indexAround(el, svgRoot);
|
|
131
|
+
if (point.part === "element") {
|
|
132
|
+
const mark = {
|
|
133
|
+
kind: "point",
|
|
134
|
+
series: point.scenario,
|
|
135
|
+
index: index !== null && index !== void 0 ? index : walkIndex,
|
|
136
|
+
rect: measure(el, origins),
|
|
137
|
+
point,
|
|
138
|
+
};
|
|
139
|
+
elements.push(mark);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const label = {
|
|
143
|
+
kind: "label",
|
|
144
|
+
id: el.id || undefined,
|
|
145
|
+
role: "data",
|
|
146
|
+
text: (_c = (_b = el.textContent) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : "",
|
|
147
|
+
segment,
|
|
148
|
+
index,
|
|
149
|
+
rect: measure(el, origins),
|
|
150
|
+
point,
|
|
151
|
+
};
|
|
152
|
+
elements.push(label);
|
|
153
|
+
});
|
|
79
154
|
svgRoot.querySelectorAll('g[id="axis"] line').forEach((line) => {
|
|
80
155
|
var _a;
|
|
81
156
|
const styleClass = ((_a = line.getAttribute("class")) !== null && _a !== void 0 ? _a : "").split(/\s+/).find((cls) => cls.startsWith("axis-"));
|
|
@@ -107,12 +182,19 @@ export function collectChartSegmentElements(svgRoot, segment, origins) {
|
|
|
107
182
|
});
|
|
108
183
|
return elements;
|
|
109
184
|
}
|
|
110
|
-
/** Number of data-point groups in the primary scenario layer (= category/bar count). */
|
|
185
|
+
/** Number of data-point groups in the primary scenario layer, or of stacks in a stacked chart (= category/bar count). */
|
|
111
186
|
export function countPrimaryDataPoints(svgRoot) {
|
|
112
187
|
const scenario1 = svgRoot.querySelector('g[id="Scenario1"]');
|
|
113
|
-
if (
|
|
114
|
-
return 0;
|
|
115
|
-
|
|
188
|
+
if (scenario1) {
|
|
189
|
+
return Array.from(scenario1.children).filter((child) => { var _a; return /^\d+$/.test((_a = child.id) !== null && _a !== void 0 ? _a : ""); }).length;
|
|
190
|
+
}
|
|
191
|
+
const stacks = new Set();
|
|
192
|
+
svgRoot.querySelectorAll(STACK_SEGMENTS).forEach((group) => {
|
|
193
|
+
const match = STACK_SEGMENT_RE.exec(group.id);
|
|
194
|
+
if (match && group.querySelector("rect"))
|
|
195
|
+
stacks.add(match[1]);
|
|
196
|
+
});
|
|
197
|
+
return stacks.size;
|
|
116
198
|
}
|
|
117
199
|
/**
|
|
118
200
|
* Walks a chart facade's inner segment components (one per base/variance
|
|
@@ -151,21 +233,41 @@ export function collectChartFacadeLayout(host, innerTag, segments, origins, deta
|
|
|
151
233
|
}
|
|
152
234
|
/**
|
|
153
235
|
* Walks an XY/bullet chart SVG. Its marks carry no ids or classes, so
|
|
154
|
-
* classification is by tag: circles/ellipses become points,
|
|
155
|
-
*
|
|
236
|
+
* classification is by tag: circles/ellipses become points, keyed rects
|
|
237
|
+
* (the bullet bars) become bars, texts become data labels. Gridlines and
|
|
238
|
+
* frame geometry are deliberately skipped.
|
|
156
239
|
*/
|
|
157
240
|
export function collectXYElements(svgRoot, origins) {
|
|
158
241
|
const elements = [];
|
|
159
242
|
svgRoot.querySelectorAll("circle, ellipse").forEach((mark, index) => {
|
|
160
|
-
const point = { kind: "point", index, rect: measure(mark, origins) };
|
|
243
|
+
const point = { kind: "point", index, rect: measure(mark, origins), point: readLayoutPoint(mark) };
|
|
161
244
|
elements.push(point);
|
|
162
245
|
});
|
|
246
|
+
svgRoot.querySelectorAll('rect[data-bn-part="element"]').forEach((mark, index) => {
|
|
247
|
+
var _a;
|
|
248
|
+
const point = readLayoutPoint(mark);
|
|
249
|
+
const bar = {
|
|
250
|
+
kind: "bar",
|
|
251
|
+
segment: "base",
|
|
252
|
+
scenario: point === null || point === void 0 ? void 0 : point.scenario,
|
|
253
|
+
index: (_a = ownIndex(mark)) !== null && _a !== void 0 ? _a : index,
|
|
254
|
+
rect: measure(mark, origins),
|
|
255
|
+
point,
|
|
256
|
+
};
|
|
257
|
+
elements.push(bar);
|
|
258
|
+
});
|
|
163
259
|
svgRoot.querySelectorAll("text").forEach((textEl) => {
|
|
164
260
|
var _a, _b;
|
|
165
261
|
const text = (_b = (_a = textEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : "";
|
|
166
262
|
if (!text)
|
|
167
263
|
return;
|
|
168
|
-
const label = {
|
|
264
|
+
const label = {
|
|
265
|
+
kind: "label",
|
|
266
|
+
role: "data",
|
|
267
|
+
text,
|
|
268
|
+
rect: measure(textEl, origins),
|
|
269
|
+
point: readLayoutPoint(textEl),
|
|
270
|
+
};
|
|
169
271
|
elements.push(label);
|
|
170
272
|
});
|
|
171
273
|
return elements;
|
|
@@ -14,8 +14,6 @@ const TEMPLATES = new Map([
|
|
|
14
14
|
["2-over-1", '"a b" "c c"'],
|
|
15
15
|
["1-over-3", '"a a a " "b c d"'],
|
|
16
16
|
["3-over-1", '"a b c" "d d d"'],
|
|
17
|
-
["gold3", '"a c" "b c"'],
|
|
18
|
-
["gold4", '"a b c c" "d d c c"'],
|
|
19
17
|
]);
|
|
20
18
|
export const CUSTOM_TEMPLATE = "custom-template";
|
|
21
19
|
const SINGLE_CELL = '"a"';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The four scaling modes a component's `scale` attribute can resolve to:
|
|
3
|
+
* - `"empty"`: attribute absent or blank -- component decides (typically auto)
|
|
4
|
+
* - `"none"`: scaling explicitly disabled (show raw values)
|
|
5
|
+
* - `"auto"`: auto-detect SI prefix from data magnitude
|
|
6
|
+
* - `"factor"`: explicit numeric divisor (e.g. `"1000"` to show values in thousands)
|
|
7
|
+
*/
|
|
8
|
+
/** A stroke width given as a multiple of the font size, in px. Rounded: 0.075 at 13.3333 px is 1, not 0.9999975. */
|
|
9
|
+
export const strokeWidthPx = (factor, fontSizePx) => Math.round(factor * fontSizePx * 100) / 100;
|
|
1
10
|
/**
|
|
2
11
|
* Parses the raw `scale` attribute string into a typed {@link ScalingConfig}.
|
|
3
12
|
* Handles null/empty (-> empty), literal `"none"` / `"auto"`, or a positive
|
|
@@ -184,13 +184,6 @@ export function isValidDataFormat(value) {
|
|
|
184
184
|
}
|
|
185
185
|
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in DataFormat;
|
|
186
186
|
}
|
|
187
|
-
export function isValidBoolean(value) {
|
|
188
|
-
if (isBlankInput(value)) {
|
|
189
|
-
return false;
|
|
190
|
-
}
|
|
191
|
-
const validValues = ["true", "false", true, false];
|
|
192
|
-
return validValues.some((elem) => elem === value);
|
|
193
|
-
}
|
|
194
187
|
export function isValidTableType(value) {
|
|
195
188
|
if (isBlankInput(value)) {
|
|
196
189
|
return false;
|
|
@@ -9,11 +9,11 @@ import { merge } from "@corex/deepmerge";
|
|
|
9
9
|
* The effective style is computed by deep-merging three layers in order:
|
|
10
10
|
* 1. `_system` -- built-in defaults (lowest priority)
|
|
11
11
|
* 2. `_default` -- user-defined global overrides
|
|
12
|
-
* 3. The
|
|
12
|
+
* 3. The style named by the `selectedStyle` prop of the component (highest priority)
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
* reacts to updates in the componentStyles store, triggering a
|
|
16
|
-
* and forced re-render on changes.
|
|
14
|
+
* The prop is read again each time the style is used, and the store
|
|
15
|
+
* subscription reacts to updates in the componentStyles store, triggering a
|
|
16
|
+
* re-merge and forced re-render on changes.
|
|
17
17
|
*
|
|
18
18
|
* @param component - The Stencil component instance
|
|
19
19
|
* @returns A query function `componentStyle(<selector>)` that provides type-safe
|
|
@@ -31,26 +31,17 @@ const withComponentStyle = (component) => {
|
|
|
31
31
|
// seriesColors/stackColors must be replaced wholesale by an override.
|
|
32
32
|
style = merge([state["_system"] || {}, state["_default"] || {}, state[selectedStyle] || {}], { arrayMergeType: "overwrite" });
|
|
33
33
|
};
|
|
34
|
-
const observer = new MutationObserver((mutations) => {
|
|
35
|
-
mutations.forEach((mutation) => {
|
|
36
|
-
if (mutation.attributeName === "selected-style") {
|
|
37
|
-
selectedStyle = getElement(component).getAttribute("selected-style");
|
|
38
|
-
updateStyle();
|
|
39
|
-
forceUpdate(component);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
34
|
const connectedCallback = component["connectedCallback"];
|
|
44
35
|
component["connectedCallback"] = () => {
|
|
45
36
|
const element = getElement(component);
|
|
46
37
|
stores = getStores(element);
|
|
47
38
|
style = stores.componentStyles.state["_system"];
|
|
48
|
-
|
|
49
|
-
selectedStyle = getElement(component).getAttribute("selected-style");
|
|
39
|
+
selectedStyle = component.selectedStyle;
|
|
50
40
|
updateStyle();
|
|
51
41
|
subscription = stores.componentStyles.on("set", (key) => {
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
// `_default` is a layer of every style, and it can be registered after this component
|
|
43
|
+
if (key === selectedStyle || key === "_default") {
|
|
44
|
+
selectedStyle = component.selectedStyle;
|
|
54
45
|
updateStyle();
|
|
55
46
|
forceUpdate(getElement(component));
|
|
56
47
|
}
|
|
@@ -59,12 +50,17 @@ const withComponentStyle = (component) => {
|
|
|
59
50
|
};
|
|
60
51
|
const disconnectedCallback = component["disconnectedCallback"];
|
|
61
52
|
component["disconnectedCallback"] = () => {
|
|
62
|
-
observer.disconnect();
|
|
63
53
|
runIfExisits(subscription);
|
|
64
54
|
clearStoresCache(getElement(component));
|
|
65
55
|
runIfExisits(disconnectedCallback, component);
|
|
66
56
|
};
|
|
67
57
|
const componentStyle = (q) => {
|
|
58
|
+
// A change of the prop renders the component, and the style is read while it renders.
|
|
59
|
+
// So the prop is compared here: no observer, and a property write counts like an attribute.
|
|
60
|
+
if (stores !== undefined && component.selectedStyle !== selectedStyle) {
|
|
61
|
+
selectedStyle = component.selectedStyle;
|
|
62
|
+
updateStyle();
|
|
63
|
+
}
|
|
68
64
|
return q(style);
|
|
69
65
|
};
|
|
70
66
|
return componentStyle;
|
|
@@ -14,7 +14,7 @@ const partition = (predicate, arr) => {
|
|
|
14
14
|
}
|
|
15
15
|
return [matches, nonMatches];
|
|
16
16
|
};
|
|
17
|
-
const WARN_DATASOURCE_ID = "
|
|
17
|
+
const WARN_DATASOURCE_ID = "WARN_datasets";
|
|
18
18
|
/**
|
|
19
19
|
* Emits a warning via the component's ErrorDispatcher when datasource refs
|
|
20
20
|
* (`$name`) are used directly, nudging consumers toward bn-dataset wrappers
|
|
@@ -40,7 +40,7 @@ const warnIfDatasource = (component, datasources) => {
|
|
|
40
40
|
/**
|
|
41
41
|
* Mixin that subscribes a Stencil component to one or more datasets/datasources.
|
|
42
42
|
*
|
|
43
|
-
* **Naming convention:** The `datasets`
|
|
43
|
+
* **Naming convention:** The `datasets` prop of the component accepts a comma-separated list of names.
|
|
44
44
|
* Names prefixed with `$` (e.g. `$revenue`) read directly from the raw datasource tables;
|
|
45
45
|
* unprefixed names read from datasets (registered as tables/views by `<bn-dataset>`).
|
|
46
46
|
*
|
|
@@ -48,8 +48,8 @@ const warnIfDatasource = (component, datasources) => {
|
|
|
48
48
|
* name is registered with `stores.db.subscribe(...)` and the rows are materialized
|
|
49
49
|
* via `db.exec("SELECT * FROM <name>")` whenever the producer fires `notify(name)`.
|
|
50
50
|
*
|
|
51
|
-
* The
|
|
52
|
-
* bindings
|
|
51
|
+
* The prop reflects to the `datasets` attribute. The mixin watches that attribute with a
|
|
52
|
+
* MutationObserver, so bindings follow a change of the attribute or the property.
|
|
53
53
|
*
|
|
54
54
|
* @param component - The Stencil component instance (must expose a host element via `@Element()`)
|
|
55
55
|
* @param onUpdate - Callback invoked with `(name, data)` whenever a subscribed dataset or datasource changes
|
|
@@ -64,6 +64,20 @@ component, onUpdate, onMetaUpdate) => {
|
|
|
64
64
|
let datasets = [];
|
|
65
65
|
let datasources = [];
|
|
66
66
|
let stores;
|
|
67
|
+
/** The `datasets` value the subscriptions were made for. */
|
|
68
|
+
let bound = "";
|
|
69
|
+
// the prop, not the attribute: a property set before the first render is not reflected yet
|
|
70
|
+
const bind = () => {
|
|
71
|
+
const previous = bound;
|
|
72
|
+
bound = component.datasets || "";
|
|
73
|
+
if (previous !== "" && previous !== bound) {
|
|
74
|
+
// the names changed: start empty, or the component keeps the data of a name that is gone
|
|
75
|
+
onUpdate("", []);
|
|
76
|
+
}
|
|
77
|
+
[datasources, datasets] = partition((s) => s.startsWith("$"), bound.split(","));
|
|
78
|
+
warnIfDatasource(component, datasources);
|
|
79
|
+
rebind();
|
|
80
|
+
};
|
|
67
81
|
/** Materialize the current rows for a subscribed name via the shared db, then deliver. */
|
|
68
82
|
const deliver = (name, isDatasource) => {
|
|
69
83
|
const tableName = isDatasource ? name.substring(1) : name;
|
|
@@ -105,10 +119,9 @@ component, onUpdate, onMetaUpdate) => {
|
|
|
105
119
|
};
|
|
106
120
|
const observer = new MutationObserver((mutations) => {
|
|
107
121
|
mutations.forEach((mutation) => {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
rebind();
|
|
122
|
+
// Stencil writes a reflected attribute again with the same value in the first render
|
|
123
|
+
if (mutation.attributeName === "datasets" && (component.datasets || "") !== bound) {
|
|
124
|
+
bind();
|
|
112
125
|
}
|
|
113
126
|
});
|
|
114
127
|
});
|
|
@@ -116,9 +129,7 @@ component, onUpdate, onMetaUpdate) => {
|
|
|
116
129
|
component["connectedCallback"] = () => {
|
|
117
130
|
const element = getElement(component);
|
|
118
131
|
stores = getStores(element);
|
|
119
|
-
|
|
120
|
-
warnIfDatasource(component, datasources);
|
|
121
|
-
rebind();
|
|
132
|
+
bind();
|
|
122
133
|
observer.observe(element, { attributes: true, attributeFilter: ["datasets"] });
|
|
123
134
|
if (onMetaUpdate) {
|
|
124
135
|
subscriptionMeta = stores.datasetsMeta.on("set", (key, newValue) => {
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { getElement } from "@stencil/core";
|
|
2
2
|
import { nanoid } from "nanoid";
|
|
3
3
|
import { ref } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* Reports content that does not fit: `ERR_overflow` when the author fixed the
|
|
6
|
+
* size, `WARN_overflow` otherwise. The id carries the type, so the other id is
|
|
7
|
+
* cleared. `message` null clears both.
|
|
8
|
+
*/
|
|
9
|
+
export function reportOverflow(errors, message, fixedSize = false) {
|
|
10
|
+
errors.remove(message !== null && fixedSize ? "WARN_overflow" : "ERR_overflow");
|
|
11
|
+
if (message === null) {
|
|
12
|
+
errors.remove("WARN_overflow");
|
|
13
|
+
}
|
|
14
|
+
else if (fixedSize) {
|
|
15
|
+
errors.addOrReplace({ id: "ERR_overflow", type: "error", message });
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
errors.addOrReplace({ id: "WARN_overflow", type: "warning", message });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
4
21
|
/**
|
|
5
22
|
* Mixin that provides an {@link ErrorDispatcher} for managing validation
|
|
6
23
|
* errors and warnings on a component.
|
|
@@ -43,8 +60,6 @@ const withHasError = (component) => {
|
|
|
43
60
|
return error.id;
|
|
44
61
|
},
|
|
45
62
|
addOrReplace: (error) => {
|
|
46
|
-
if (error.id === undefined)
|
|
47
|
-
throw "missing";
|
|
48
63
|
modify((current) => [...current.filter((item) => item.id !== error.id), error]);
|
|
49
64
|
return error.id;
|
|
50
65
|
},
|
|
@@ -23,7 +23,8 @@ import { merge } from "@corex/deepmerge";
|
|
|
23
23
|
* path is observed for changes.
|
|
24
24
|
*
|
|
25
25
|
* @param component - The Stencil component instance
|
|
26
|
-
* @returns A function returning the merged {@link RuleSetConfig}
|
|
26
|
+
* @returns A function returning the merged {@link RuleSetConfig}. With `"user"` it returns the
|
|
27
|
+
* `_default` and the selected layer only.
|
|
27
28
|
*/
|
|
28
29
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
30
|
const withRuleSet = (component) => {
|
|
@@ -31,14 +32,13 @@ const withRuleSet = (component) => {
|
|
|
31
32
|
let stores;
|
|
32
33
|
let selectedRuleset;
|
|
33
34
|
let config;
|
|
35
|
+
let userConfig;
|
|
34
36
|
let ancestorObserver = null;
|
|
35
37
|
const updateConfig = () => {
|
|
36
38
|
const state = stores.ruleSets.state;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
state[selectedRuleset] || {},
|
|
41
|
-
]);
|
|
39
|
+
// what a <bn-ruleset> set, without the built-in layer: only these names are labels
|
|
40
|
+
userConfig = merge([state["_default"] || {}, state[selectedRuleset] || {}]);
|
|
41
|
+
config = merge([state["_system"] || {}, userConfig]);
|
|
42
42
|
};
|
|
43
43
|
const resolveRulesetName = () => {
|
|
44
44
|
const element = getElement(component);
|
|
@@ -102,7 +102,7 @@ const withRuleSet = (component) => {
|
|
|
102
102
|
clearStoresCache(getElement(component));
|
|
103
103
|
runIfExisits(disconnectedCallback, component);
|
|
104
104
|
};
|
|
105
|
-
const ruleSetConfig = () => config;
|
|
105
|
+
const ruleSetConfig = (layers = "all") => (layers === "user" ? userConfig : config);
|
|
106
106
|
return ruleSetConfig;
|
|
107
107
|
};
|
|
108
108
|
export default withRuleSet;
|
|
@@ -2,6 +2,7 @@ import { getStores, clearStoresCache } from "../context/context-protocol";
|
|
|
2
2
|
import { forceUpdate, getElement } from "@stencil/core";
|
|
3
3
|
import { runIfExisits } from "./utils";
|
|
4
4
|
import { findAncestorWithAttr } from "./withInheritedProps";
|
|
5
|
+
import { RENAMED_I18N_KEYS } from "../stores/internationalization";
|
|
5
6
|
/**
|
|
6
7
|
* Mixin that provides i18n translation support to a Stencil component.
|
|
7
8
|
*
|
|
@@ -9,8 +10,7 @@ import { findAncestorWithAttr } from "./withInheritedProps";
|
|
|
9
10
|
*
|
|
10
11
|
* **Namespace resolution** (mirrors the ancestor inheritance of `withRuleSet`,
|
|
11
12
|
* but on by default):
|
|
12
|
-
* 1. The
|
|
13
|
-
* `namespace` attribute is honored as a fallback).
|
|
13
|
+
* 1. The component's own `i18nNamespace` prop (attribute `i18n-namespace`).
|
|
14
14
|
* 2. Otherwise the `i18n-namespace` attribute of the nearest ancestor that
|
|
15
15
|
* carries one - a layout card, layout page, tree, grid, or the
|
|
16
16
|
* `bn-context` itself - crossing shadow boundaries. The resolved ancestor
|
|
@@ -36,16 +36,18 @@ import { findAncestorWithAttr } from "./withInheritedProps";
|
|
|
36
36
|
const withTranslation = (component) => {
|
|
37
37
|
let subscription;
|
|
38
38
|
let namespace = undefined;
|
|
39
|
+
/** The `i18nNamespace` prop value that `namespace` was resolved for. */
|
|
40
|
+
let ownNamespace = undefined;
|
|
39
41
|
let stores;
|
|
40
42
|
let ancestorObserver = null;
|
|
41
43
|
const resolveNamespace = () => {
|
|
42
|
-
var _a;
|
|
43
44
|
const element = getElement(component);
|
|
44
45
|
if (ancestorObserver) {
|
|
45
46
|
ancestorObserver.disconnect();
|
|
46
47
|
ancestorObserver = null;
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
+
ownNamespace = component.i18nNamespace;
|
|
50
|
+
namespace = ownNamespace;
|
|
49
51
|
if (namespace != null) {
|
|
50
52
|
return;
|
|
51
53
|
}
|
|
@@ -59,19 +61,10 @@ const withTranslation = (component) => {
|
|
|
59
61
|
ancestorObserver.observe(ancestor, { attributes: true, attributeFilter: ["i18n-namespace"] });
|
|
60
62
|
}
|
|
61
63
|
};
|
|
62
|
-
const observer = new MutationObserver((mutations) => {
|
|
63
|
-
mutations.forEach((mutation) => {
|
|
64
|
-
if (mutation.attributeName === "i18n-namespace" || mutation.attributeName === "namespace") {
|
|
65
|
-
resolveNamespace();
|
|
66
|
-
forceUpdate(component);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
64
|
const connectedCallback = component["connectedCallback"];
|
|
71
65
|
component["connectedCallback"] = () => {
|
|
72
66
|
const element = getElement(component);
|
|
73
67
|
stores = getStores(element);
|
|
74
|
-
observer.observe(element, { attributes: true, attributeFilter: ["i18n-namespace", "namespace"] });
|
|
75
68
|
resolveNamespace();
|
|
76
69
|
subscription = stores.internationalization.on("set", (key, _value) => {
|
|
77
70
|
if (key === namespace || key === "_system") {
|
|
@@ -82,7 +75,6 @@ const withTranslation = (component) => {
|
|
|
82
75
|
};
|
|
83
76
|
const disconnectedCallback = component["disconnectedCallback"];
|
|
84
77
|
component["disconnectedCallback"] = () => {
|
|
85
|
-
observer.disconnect();
|
|
86
78
|
if (ancestorObserver) {
|
|
87
79
|
ancestorObserver.disconnect();
|
|
88
80
|
ancestorObserver = null;
|
|
@@ -93,9 +85,17 @@ const withTranslation = (component) => {
|
|
|
93
85
|
};
|
|
94
86
|
const t = (key, data) => {
|
|
95
87
|
var _a, _b, _c, _d, _e;
|
|
88
|
+
// A change of the prop renders the component, and texts are looked up while it renders:
|
|
89
|
+
// compared here, a property write counts like an attribute.
|
|
90
|
+
if (stores !== undefined && component.i18nNamespace !== ownNamespace) {
|
|
91
|
+
resolveNamespace();
|
|
92
|
+
}
|
|
96
93
|
if (key.startsWith(".")) {
|
|
97
94
|
key = getElement(component).localName + key;
|
|
98
95
|
}
|
|
96
|
+
if (Object.prototype.hasOwnProperty.call(RENAMED_I18N_KEYS, key)) {
|
|
97
|
+
key = RENAMED_I18N_KEYS[key];
|
|
98
|
+
}
|
|
99
99
|
const locales = stores.internationalization.state;
|
|
100
100
|
const locale = stores.context.state.locale;
|
|
101
101
|
// Per-key fallback chain: resolved namespace → _system → the key itself.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { formatXYValue } from "./formatXYValue";
|
|
2
|
+
import { strokeWidthPx } from "../scaling";
|
|
2
3
|
/**
|
|
3
4
|
* Per-panel plot frame for the XY charts: highlight bands, gridlines,
|
|
4
5
|
* reference lines, the frame rectangle, tick labels, and the panel title.
|
|
@@ -43,7 +44,10 @@ export class XYFrame {
|
|
|
43
44
|
}
|
|
44
45
|
/** Horizontal gridlines at the y ticks; vertical ones only when `ticksX` is given. */
|
|
45
46
|
drawGrid(group, ticksY, ticksX) {
|
|
46
|
-
const stroke = {
|
|
47
|
+
const stroke = {
|
|
48
|
+
color: this.styles.axisStyles.pp.stroke,
|
|
49
|
+
width: strokeWidthPx(this.styles.scaleFactors.gridLineWidth, this.em),
|
|
50
|
+
};
|
|
47
51
|
for (const tick of ticksY) {
|
|
48
52
|
const y = this.yScale.scale(tick);
|
|
49
53
|
group.line(this.rect.x, y, this.rect.x + this.rect.width, y).stroke(stroke);
|
|
@@ -57,7 +61,10 @@ export class XYFrame {
|
|
|
57
61
|
}
|
|
58
62
|
/** Thin reference lines at the given axis values (10A quadrant crosshair). */
|
|
59
63
|
drawRefLines(group, xRef, yRef) {
|
|
60
|
-
const stroke = {
|
|
64
|
+
const stroke = {
|
|
65
|
+
color: this.styles.axisStyles.fc.stroke,
|
|
66
|
+
width: strokeWidthPx(this.styles.scaleFactors.refLineWidth, this.em),
|
|
67
|
+
};
|
|
61
68
|
if (xRef !== undefined) {
|
|
62
69
|
const x = this.xScale.scale(xRef);
|
|
63
70
|
group.line(x, this.rect.y, x, this.rect.y + this.rect.height).stroke(stroke);
|
|
@@ -73,7 +80,10 @@ export class XYFrame {
|
|
|
73
80
|
.rect(this.rect.width, this.rect.height)
|
|
74
81
|
.move(this.rect.x, this.rect.y)
|
|
75
82
|
.fill("none")
|
|
76
|
-
.stroke({
|
|
83
|
+
.stroke({
|
|
84
|
+
color: this.styles.axisStyles.ac.stroke,
|
|
85
|
+
width: strokeWidthPx(this.styles.scaleFactors.gridLineWidth, this.em),
|
|
86
|
+
});
|
|
77
87
|
}
|
|
78
88
|
/** Tick labels along the outer edges (no tick marks - template style). */
|
|
79
89
|
drawTickLabels(group, config) {
|