@genesislcap/g2plot-chart 15.24.2 → 15.26.0

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.
@@ -64,7 +64,7 @@
64
64
  "type": {
65
65
  "text": "ElementStyles"
66
66
  },
67
- "default": "css`\n :host {\n --datasource-error-background-color: var(--neutral-layer-4);\n --datasource-error-background-opacity: 0.5;\n --datasource-error-dialog-max-width: 50%;\n\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n .hidden {\n display: none;\n }\n\n :host::part(chart-container) {\n z-index: 1;\n }\n\n :host::part(chart-datasource-error) {\n z-index: 2;\n }\n\n :host::part(chart-datasource-error)::before {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 0;\n height: 100%;\n width: 100%;\n border-radius: 2px;\n background-color: var(--datasource-error-background-color);\n opacity: var(--datasource-error-background-opacity);\n z-index: 1;\n }\n`",
67
+ "default": "css`\n :host {\n --datasource-error-background-color: var(--neutral-layer-4);\n --datasource-error-background-opacity: 0.5;\n --datasource-error-dialog-max-width: 50%;\n\n /*\n * A custom element is display: inline by default, where the width/height below are\n * ignored — the host then measures as auto, and G2Plot's getChartSize falls back to a\n * fixed 400x400 canvas that ignores the panel it sits in.\n *\n * overflow: hidden stops the chart's size feeding back into a scrolling ancestor.\n * G2Plot's autoFit measures the container, so under an overflow: auto ancestor (a\n * flexlayout-react tab, say) a canvas even slightly too large raises a scrollbar, which\n * shrinks the container, which shrinks the canvas, which drops the scrollbar — two\n * self-consistent states that autoFit then flips between forever, seen as flicker.\n */\n display: block;\n overflow: hidden;\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n .hidden {\n display: none;\n }\n\n :host::part(chart-container) {\n z-index: 1;\n }\n\n :host::part(chart-datasource-error) {\n z-index: 2;\n }\n\n :host::part(chart-datasource-error)::before {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 0;\n height: 100%;\n width: 100%;\n border-radius: 2px;\n background-color: var(--datasource-error-background-color);\n opacity: var(--datasource-error-background-opacity);\n z-index: 1;\n }\n`",
68
68
  "description": "The Chart styles.",
69
69
  "privacy": "public"
70
70
  }
@@ -1 +1 @@
1
- {"version":3,"file":"chart.styles.d.ts","sourceRoot":"","sources":["../../src/chart.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAoCnC,CAAC"}
1
+ {"version":3,"file":"chart.styles.d.ts","sourceRoot":"","sources":["../../src/chart.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAiDnC,CAAC"}
@@ -9,6 +9,19 @@ export const foundationChartStyles = css `
9
9
  --datasource-error-background-opacity: 0.5;
10
10
  --datasource-error-dialog-max-width: 50%;
11
11
 
12
+ /*
13
+ * A custom element is display: inline by default, where the width/height below are
14
+ * ignored — the host then measures as auto, and G2Plot's getChartSize falls back to a
15
+ * fixed 400x400 canvas that ignores the panel it sits in.
16
+ *
17
+ * overflow: hidden stops the chart's size feeding back into a scrolling ancestor.
18
+ * G2Plot's autoFit measures the container, so under an overflow: auto ancestor (a
19
+ * flexlayout-react tab, say) a canvas even slightly too large raises a scrollbar, which
20
+ * shrinks the container, which shrinks the canvas, which drops the scrollbar — two
21
+ * self-consistent states that autoFit then flips between forever, seen as flicker.
22
+ */
23
+ display: block;
24
+ overflow: hidden;
12
25
  position: relative;
13
26
  width: 100%;
14
27
  height: 100%;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/g2plot-chart",
3
3
  "description": "Genesis G2plot Chart",
4
- "version": "15.24.2",
4
+ "version": "15.26.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -53,21 +53,21 @@
53
53
  }
54
54
  },
55
55
  "devDependencies": {
56
- "@genesislcap/foundation-testing": "15.24.2",
57
- "@genesislcap/genx": "15.24.2",
58
- "@genesislcap/rollup-builder": "15.24.2",
59
- "@genesislcap/ts-builder": "15.24.2",
60
- "@genesislcap/uvu-playwright-builder": "15.24.2",
61
- "@genesislcap/vite-builder": "15.24.2",
62
- "@genesislcap/webpack-builder": "15.24.2"
56
+ "@genesislcap/foundation-testing": "15.26.0",
57
+ "@genesislcap/genx": "15.26.0",
58
+ "@genesislcap/rollup-builder": "15.26.0",
59
+ "@genesislcap/ts-builder": "15.26.0",
60
+ "@genesislcap/uvu-playwright-builder": "15.26.0",
61
+ "@genesislcap/vite-builder": "15.26.0",
62
+ "@genesislcap/webpack-builder": "15.26.0"
63
63
  },
64
64
  "dependencies": {
65
65
  "@antv/g2plot": "^2.4.32",
66
- "@genesislcap/foundation-comms": "15.24.2",
67
- "@genesislcap/foundation-logger": "15.24.2",
68
- "@genesislcap/foundation-ui": "15.24.2",
69
- "@genesislcap/foundation-utils": "15.24.2",
70
- "@genesislcap/foundation-zero": "15.24.2",
66
+ "@genesislcap/foundation-comms": "15.26.0",
67
+ "@genesislcap/foundation-logger": "15.26.0",
68
+ "@genesislcap/foundation-ui": "15.26.0",
69
+ "@genesislcap/foundation-utils": "15.26.0",
70
+ "@genesislcap/foundation-zero": "15.26.0",
71
71
  "@microsoft/fast-element": "1.14.0",
72
72
  "@microsoft/fast-foundation": "2.50.0"
73
73
  },