Skip to content

Commit

Permalink
🎨 rm
Browse files Browse the repository at this point in the history
  • Loading branch information
fefeding committed Nov 16, 2023
1 parent 0319a39 commit 6914105
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/core/jmGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,6 @@ export default class jmGraph extends jmControl {
this.context.viewport && this.context.viewport(0, 0, w, h);
}

/**
* 内部坐标转为页面坐标,这里主要是有devicePixelRatio倍数问题
* @param {x, y} point 内部坐标
*/
pointToPixes(point) {
if(this.dprScaleSize && this.dprScaleSize !== 1) {
point = Object.assign({}, point, {
x: point.x / this.dprScaleSize,
y: point.y / this.dprScaleSize
});
}
return point;
}

/**
* 宽度
* @property width
Expand Down

0 comments on commit 6914105

Please sign in to comment.