@easyv/charts 1.6.1 → 1.6.2

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.
@@ -153,13 +153,7 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref2) {
153
153
  // }
154
154
  // }
155
155
 
156
- return /*#__PURE__*/_react["default"].createElement("div", {
157
- id: "bigscreen-container",
158
- style: {
159
- transform: "scale(1.3)",
160
- transformOrigin: "left top"
161
- }
162
- }, /*#__PURE__*/_react["default"].createElement(_context.chartContext.Provider, {
156
+ return /*#__PURE__*/_react["default"].createElement(_context.chartContext.Provider, {
163
157
  value: context
164
158
  }, type == 'pie' ? /*#__PURE__*/_react["default"].createElement(_.PieChart, (0, _extends2["default"])({
165
159
  id: id,
@@ -171,7 +165,7 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref2) {
171
165
  config: config,
172
166
  data: data,
173
167
  active: active
174
- }, props)))); //获取大屏缩放系数
168
+ }, props))); //获取大屏缩放系数
175
169
 
176
170
  function getScreenScale() {
177
171
  setTimeout(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -126,15 +126,13 @@ const Chart = memo(
126
126
  // }
127
127
 
128
128
  return (
129
- <div id="bigscreen-container" style={{transform:"scale(1.3)",transformOrigin:"left top"}}>
130
- <chartContext.Provider value={context}>
131
- {type == 'pie' ? (
132
- <PieChart id={id} config={config} data={data} active={active} {...props} />
133
- ) : (
134
- <CartesianChart id={id} config={config} data={data} active={active} {...props} />
135
- )}
136
- </chartContext.Provider>
137
- </div>
129
+ <chartContext.Provider value={context}>
130
+ {type == 'pie' ? (
131
+ <PieChart id={id} config={config} data={data} active={active} {...props} />
132
+ ) : (
133
+ <CartesianChart id={id} config={config} data={data} active={active} {...props} />
134
+ )}
135
+ </chartContext.Provider>
138
136
 
139
137
  );
140
138
  //获取大屏缩放系数