jmchart 1.2.6 → 1.2.7

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.
@@ -4635,6 +4635,7 @@ define(['exports'], function (exports) { 'use strict';
4635
4635
  if(typeof wx != 'undefined' && wx.canIUse && wx.canIUse('canvas')) {
4636
4636
  if(typeof canvas === 'string') canvas = wx.createSelectorQuery().select('#' + canvas);
4637
4637
  this.isWXMiniApp = true;// 微信小程序平台
4638
+ this.container = canvas;
4638
4639
  }
4639
4640
  else {
4640
4641
  if(typeof canvas === 'string' && typeof document != 'undefined') {
@@ -8602,10 +8603,7 @@ define(['exports'], function (exports) { 'use strict';
8602
8603
 
8603
8604
  container && container.style && (container.style.position = 'relative'); // 要先从选项中取出canvas,否则clone过滤掉
8604
8605
 
8605
- let cn = options.touchCanvas;
8606
- options = this.utils.clone(options, {
8607
- autoRefresh: true
8608
- }, true); // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8606
+ let cn = options.touchCanvas; // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8609
8607
  // isWXMiniApp 非微信小程序下才能创建
8610
8608
 
8611
8609
  if (container && (options.touchGraph || cn)) {
@@ -8620,6 +8618,9 @@ define(['exports'], function (exports) { 'use strict';
8620
8618
  }
8621
8619
 
8622
8620
  if (cn) {
8621
+ options = this.utils.clone(options, {
8622
+ autoRefresh: true
8623
+ }, true);
8623
8624
  this.touchGraph = new jmGraph(cn, options);
8624
8625
  this.touchGraph.chartGraph = this;
8625
8626
  this.on('propertyChange', (name, args) => {
@@ -4637,6 +4637,7 @@ class jmGraph$1 extends jmControl {
4637
4637
  if(typeof wx != 'undefined' && wx.canIUse && wx.canIUse('canvas')) {
4638
4638
  if(typeof canvas === 'string') canvas = wx.createSelectorQuery().select('#' + canvas);
4639
4639
  this.isWXMiniApp = true;// 微信小程序平台
4640
+ this.container = canvas;
4640
4641
  }
4641
4642
  else {
4642
4643
  if(typeof canvas === 'string' && typeof document != 'undefined') {
@@ -8604,10 +8605,7 @@ class jmChart extends jmGraph {
8604
8605
 
8605
8606
  container && container.style && (container.style.position = 'relative'); // 要先从选项中取出canvas,否则clone过滤掉
8606
8607
 
8607
- let cn = options.touchCanvas;
8608
- options = this.utils.clone(options, {
8609
- autoRefresh: true
8610
- }, true); // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8608
+ let cn = options.touchCanvas; // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8611
8609
  // isWXMiniApp 非微信小程序下才能创建
8612
8610
 
8613
8611
  if (container && (options.touchGraph || cn)) {
@@ -8622,6 +8620,9 @@ class jmChart extends jmGraph {
8622
8620
  }
8623
8621
 
8624
8622
  if (cn) {
8623
+ options = this.utils.clone(options, {
8624
+ autoRefresh: true
8625
+ }, true);
8625
8626
  this.touchGraph = new jmGraph(cn, options);
8626
8627
  this.touchGraph.chartGraph = this;
8627
8628
  this.on('propertyChange', (name, args) => {
@@ -4633,6 +4633,7 @@ class jmGraph$1 extends jmControl {
4633
4633
  if(typeof wx != 'undefined' && wx.canIUse && wx.canIUse('canvas')) {
4634
4634
  if(typeof canvas === 'string') canvas = wx.createSelectorQuery().select('#' + canvas);
4635
4635
  this.isWXMiniApp = true;// 微信小程序平台
4636
+ this.container = canvas;
4636
4637
  }
4637
4638
  else {
4638
4639
  if(typeof canvas === 'string' && typeof document != 'undefined') {
@@ -8600,10 +8601,7 @@ class jmChart extends jmGraph {
8600
8601
 
8601
8602
  container && container.style && (container.style.position = 'relative'); // 要先从选项中取出canvas,否则clone过滤掉
8602
8603
 
8603
- let cn = options.touchCanvas;
8604
- options = this.utils.clone(options, {
8605
- autoRefresh: true
8606
- }, true); // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8604
+ let cn = options.touchCanvas; // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8607
8605
  // isWXMiniApp 非微信小程序下才能创建
8608
8606
 
8609
8607
  if (container && (options.touchGraph || cn)) {
@@ -8618,6 +8616,9 @@ class jmChart extends jmGraph {
8618
8616
  }
8619
8617
 
8620
8618
  if (cn) {
8619
+ options = this.utils.clone(options, {
8620
+ autoRefresh: true
8621
+ }, true);
8621
8622
  this.touchGraph = new jmGraph(cn, options);
8622
8623
  this.touchGraph.chartGraph = this;
8623
8624
  this.on('propertyChange', (name, args) => {
@@ -4636,6 +4636,7 @@
4636
4636
  if(typeof wx != 'undefined' && wx.canIUse && wx.canIUse('canvas')) {
4637
4637
  if(typeof canvas === 'string') canvas = wx.createSelectorQuery().select('#' + canvas);
4638
4638
  this.isWXMiniApp = true;// 微信小程序平台
4639
+ this.container = canvas;
4639
4640
  }
4640
4641
  else {
4641
4642
  if(typeof canvas === 'string' && typeof document != 'undefined') {
@@ -8603,10 +8604,7 @@
8603
8604
 
8604
8605
  container && container.style && (container.style.position = 'relative'); // 要先从选项中取出canvas,否则clone过滤掉
8605
8606
 
8606
- let cn = options.touchCanvas;
8607
- options = this.utils.clone(options, {
8608
- autoRefresh: true
8609
- }, true); // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8607
+ let cn = options.touchCanvas; // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8610
8608
  // isWXMiniApp 非微信小程序下才能创建
8611
8609
 
8612
8610
  if (container && (options.touchGraph || cn)) {
@@ -8621,6 +8619,9 @@
8621
8619
  }
8622
8620
 
8623
8621
  if (cn) {
8622
+ options = this.utils.clone(options, {
8623
+ autoRefresh: true
8624
+ }, true);
8624
8625
  this.touchGraph = new jmGraph(cn, options);
8625
8626
  this.touchGraph.chartGraph = this;
8626
8627
  this.on('propertyChange', (name, args) => {
@@ -4638,6 +4638,7 @@ System.register([], function (exports) {
4638
4638
  if(typeof wx != 'undefined' && wx.canIUse && wx.canIUse('canvas')) {
4639
4639
  if(typeof canvas === 'string') canvas = wx.createSelectorQuery().select('#' + canvas);
4640
4640
  this.isWXMiniApp = true;// 微信小程序平台
4641
+ this.container = canvas;
4641
4642
  }
4642
4643
  else {
4643
4644
  if(typeof canvas === 'string' && typeof document != 'undefined') {
@@ -8605,10 +8606,7 @@ System.register([], function (exports) {
8605
8606
 
8606
8607
  container && container.style && (container.style.position = 'relative'); // 要先从选项中取出canvas,否则clone过滤掉
8607
8608
 
8608
- let cn = options.touchCanvas;
8609
- options = this.utils.clone(options, {
8610
- autoRefresh: true
8611
- }, true); // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8609
+ let cn = options.touchCanvas; // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
8612
8610
  // isWXMiniApp 非微信小程序下才能创建
8613
8611
 
8614
8612
  if (container && (options.touchGraph || cn)) {
@@ -8623,6 +8621,9 @@ System.register([], function (exports) {
8623
8621
  }
8624
8622
 
8625
8623
  if (cn) {
8624
+ options = this.utils.clone(options, {
8625
+ autoRefresh: true
8626
+ }, true);
8626
8627
  this.touchGraph = new jmGraph(cn, options);
8627
8628
  this.touchGraph.chartGraph = this;
8628
8629
  this.on('propertyChange', (name, args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmchart",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "chart",
5
5
  "main": "./index.js",
6
6
  "directories": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/jiamao/jmchart#readme",
30
30
  "dependencies": {
31
- "jmgraph": "^3.2.1"
31
+ "jmgraph": "^3.2.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/core": "^7.10.2",
package/src/jmChart.js CHANGED
@@ -138,10 +138,6 @@ export default class jmChart extends jmGraph {
138
138
  // 要先从选项中取出canvas,否则clone过滤掉
139
139
  let cn = options.touchCanvas;
140
140
 
141
- options = this.utils.clone(options, {
142
- autoRefresh: true
143
- }, true);
144
-
145
141
  // 生成图层, 当图刷新慢时,需要用一个操作图层来进行滑动等操作重绘
146
142
  // isWXMiniApp 非微信小程序下才能创建
147
143
  if(container && (options.touchGraph || cn)) {
@@ -155,6 +151,10 @@ export default class jmChart extends jmGraph {
155
151
  container.appendChild(cn);
156
152
  }
157
153
  if(cn) {
154
+ options = this.utils.clone(options, {
155
+ autoRefresh: true
156
+ }, true);
157
+
158
158
  this.touchGraph = new jmGraph(cn, options);
159
159
  this.touchGraph.chartGraph = this;
160
160