@chainplatform/sdk 0.1.7 → 0.1.8
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/LayoutAdmin.js +2 -0
- package/package.json +1 -1
package/LayoutAdmin.js
CHANGED
@@ -21,11 +21,13 @@ export function getLayoutAdmin(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
21
21
|
padding = styles.s75;
|
22
22
|
}
|
23
23
|
const chartWidth = (layoutWidth - sideBarMiniWidth - padding) / numberChart;
|
24
|
+
const chartWidthPC = 100 / numberChart;
|
24
25
|
let view = {};
|
25
26
|
view.sideBarWidth = sideBarWidth;
|
26
27
|
view.sideBarMiniWidth = sideBarMiniWidth;
|
27
28
|
view.sideBarSecondWidth = sideBarSecondWidth;
|
28
29
|
view.sideBarOpen = sideBarOpen;
|
29
30
|
view.chartWidth = chartWidth;
|
31
|
+
view.chartWidthPC = chartWidthPC + "%";
|
30
32
|
return view;
|
31
33
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@chainplatform/sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.8",
|
4
4
|
"description": "@chainplatform/sdk is a React Native library implement for react-native and react-native-web. Require crypto-js and react-native-mmkv packages.",
|
5
5
|
"main": "index.js",
|
6
6
|
"devDependencies": {
|