Skip to content

Commit

Permalink
fix: 修复非浏览器环境时,currentStyle报错
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Jan 4, 2020
1 parent 53519b5 commit f90affa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/f2",
"version": "3.5.0-beta.3",
"version": "3.5.0-beta.4",
"description": "Charts for mobile visualization.",
"keywords": [
"f2",
Expand Down
2 changes: 1 addition & 1 deletion src/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Theme = require('./theme');
const Util = require('./util/common');

const Global = {
version: '3.5.0-beta.3',
version: '3.5.0-beta.4',
scales: {},
widthRatio: {
column: 1 / 2,
Expand Down
1 change: 1 addition & 0 deletions src/graphic/canvas-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class CanvasElement {
this.width = 0;
this.height = 0;
this.style = {};
this.currentStyle = {};
// 用来标识是CanvasElement实例
this.isCanvasElement = true;

Expand Down

0 comments on commit f90affa

Please sign in to comment.