Commit caf2294
committed
fix(workspace): Add missing d3fc CSS variables for chart plugins
Fixes #3101
Chart plugins (Y Line, Y Bar, Y Area, etc.) crash in perspective-workspace
with error 'Cannot read properties of null (reading opacity)'.
Root cause: workspace theme files were missing the d3fc CSS variable
definitions (@include perspective-viewer-pro--d3fc mixin), causing
--d3fc-series and related variables to be undefined.
Changes:
- Add @include perspective-viewer-pro--d3fc to pro.less
- Add @include perspective-viewer-pro-dark--d3fc to pro-dark.less
- Add defensive null check in getOpacityFromColor() as additional protection1 parent 046a0ac commit caf2294
File tree
3 files changed
+7
-1
lines changed- packages
- viewer-d3fc/src/ts/series
- workspace/src/themes
3 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments