@siemens/ix-echarts 2.2.0 → 2.3.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.
- package/dist/index.esm.js +13 -1
- package/dist/index.js +13 -0
- package/dist/types/computecss.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1465,6 +1465,18 @@ function registerEChartsThemes(echartsInstance) {
|
|
|
1465
1465
|
});
|
|
1466
1466
|
}
|
|
1467
1467
|
|
|
1468
|
+
/*
|
|
1469
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
1470
|
+
*
|
|
1471
|
+
* SPDX-License-Identifier: MIT
|
|
1472
|
+
*
|
|
1473
|
+
* This source code is licensed under the MIT license found in the
|
|
1474
|
+
* LICENSE file in the root directory of this source tree.
|
|
1475
|
+
*/
|
|
1476
|
+
function getComputedCSSProperty(cssProperty) {
|
|
1477
|
+
return getComputedStyle(document.body).getPropertyValue(`--theme-${cssProperty}`);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1468
1480
|
/*
|
|
1469
1481
|
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
1470
1482
|
*
|
|
@@ -1477,4 +1489,4 @@ function convertThemeName(conventionalName) {
|
|
|
1477
1489
|
return conventionalName.replace('theme-', '');
|
|
1478
1490
|
}
|
|
1479
1491
|
|
|
1480
|
-
export { brandDarkProject as brandDark, brandLightProject as brandLight, classicDarkProject as classicDark, classicLightProject as classicLight, convertThemeName, registerEChartsThemes as registerTheme };
|
|
1492
|
+
export { brandDarkProject as brandDark, brandLightProject as brandLight, classicDarkProject as classicDark, classicLightProject as classicLight, convertThemeName, getComputedCSSProperty, registerEChartsThemes as registerTheme };
|
package/dist/index.js
CHANGED
|
@@ -1469,6 +1469,18 @@ function registerEChartsThemes(echartsInstance) {
|
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
|
|
1472
|
+
/*
|
|
1473
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
1474
|
+
*
|
|
1475
|
+
* SPDX-License-Identifier: MIT
|
|
1476
|
+
*
|
|
1477
|
+
* This source code is licensed under the MIT license found in the
|
|
1478
|
+
* LICENSE file in the root directory of this source tree.
|
|
1479
|
+
*/
|
|
1480
|
+
function getComputedCSSProperty(cssProperty) {
|
|
1481
|
+
return getComputedStyle(document.body).getPropertyValue(`--theme-${cssProperty}`);
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1472
1484
|
/*
|
|
1473
1485
|
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
1474
1486
|
*
|
|
@@ -1486,4 +1498,5 @@ exports.brandLight = brandLightProject;
|
|
|
1486
1498
|
exports.classicDark = classicDarkProject;
|
|
1487
1499
|
exports.classicLight = classicLightProject;
|
|
1488
1500
|
exports.convertThemeName = convertThemeName;
|
|
1501
|
+
exports.getComputedCSSProperty = getComputedCSSProperty;
|
|
1489
1502
|
exports.registerTheme = registerEChartsThemes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getComputedCSSProperty(cssProperty: string): string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as registerTheme } from './register';
|
|
2
|
+
export { default as getComputedCSSProperty } from './computecss';
|
|
2
3
|
export { default as brandDark } from './themes/brand-dark';
|
|
3
4
|
export { default as brandLight } from './themes/brand-light';
|
|
4
5
|
export { default as classicDark } from './themes/classic-dark';
|
package/package.json
CHANGED