@antv/g-mobile
Advanced tools
Comparing version 0.0.1-beta.9 to 0.0.1-beta.10
@@ -43,3 +43,3 @@ import { __extends } from "tslib"; | ||
// 是否允许局部刷新图表 | ||
cfg['localRefresh'] = false; | ||
cfg['localRefresh'] = true; | ||
cfg['refreshElements'] = []; | ||
@@ -95,2 +95,3 @@ // 是否在视图内自动裁剪 | ||
if (changeType === 'attr' || changeType === 'sort' || changeType === 'changeSize') { | ||
this.set('refreshElements', [this]); | ||
this.draw(); | ||
@@ -275,3 +276,3 @@ } | ||
if (this.isMini() && !this.isMiniNative()) { | ||
context.draw(); | ||
context.draw(true); | ||
} | ||
@@ -289,3 +290,3 @@ this.set('refreshElements', []); | ||
if (this.isMini() && !this.isMiniNative()) { | ||
context.draw(); | ||
context.draw(true); | ||
} | ||
@@ -292,0 +293,0 @@ // 对于 https://github.com/antvis/g/issues/422 的场景,全局渲染的模式下也会记录更新的元素队列,因此全局渲染完后也需要置空 |
@@ -45,3 +45,3 @@ "use strict"; | ||
// 是否允许局部刷新图表 | ||
cfg['localRefresh'] = false; | ||
cfg['localRefresh'] = true; | ||
cfg['refreshElements'] = []; | ||
@@ -97,2 +97,3 @@ // 是否在视图内自动裁剪 | ||
if (changeType === 'attr' || changeType === 'sort' || changeType === 'changeSize') { | ||
this.set('refreshElements', [this]); | ||
this.draw(); | ||
@@ -277,3 +278,3 @@ } | ||
if (this.isMini() && !this.isMiniNative()) { | ||
context.draw(); | ||
context.draw(true); | ||
} | ||
@@ -291,3 +292,3 @@ this.set('refreshElements', []); | ||
if (this.isMini() && !this.isMiniNative()) { | ||
context.draw(); | ||
context.draw(true); | ||
} | ||
@@ -294,0 +295,0 @@ // 对于 https://github.com/antvis/g/issues/422 的场景,全局渲染的模式下也会记录更新的元素队列,因此全局渲染完后也需要置空 |
{ | ||
"name": "@antv/g-mobile", | ||
"version": "0.0.1-beta.9", | ||
"version": "0.0.1-beta.10", | ||
"description": "A mobile canvas library which providing 2d", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -48,3 +48,3 @@ import { AbstractCanvas, CanvasCfg, Point } from '@antv/g-base'; | ||
// 是否允许局部刷新图表 | ||
cfg['localRefresh'] = false; | ||
cfg['localRefresh'] = true; | ||
cfg['refreshElements'] = []; | ||
@@ -104,2 +104,3 @@ // 是否在视图内自动裁剪 | ||
if (changeType === 'attr' || changeType === 'sort' || changeType === 'changeSize') { | ||
this.set('refreshElements', [this]); | ||
this.draw(); | ||
@@ -291,3 +292,3 @@ } | ||
if (this.isMini() && !this.isMiniNative()) { | ||
context.draw(); | ||
context.draw(true); | ||
} | ||
@@ -306,3 +307,3 @@ this.set('refreshElements', []); | ||
if (this.isMini() && !this.isMiniNative()) { | ||
context.draw(); | ||
context.draw(true); | ||
} | ||
@@ -309,0 +310,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1965238
13159