Commit 824f78d2 authored by rockyl's avatar rockyl

相对坐标

parent 62189bdd
......@@ -42,8 +42,8 @@ export function parseDom(el: HTMLElement) {
}
if (vNode) {
const {left, top, width, height} = bound;
vNode.x = left;
vNode.y = top;
vNode.x = left - pX;
vNode.y = top - pY;
vNode.width = width;
vNode.height = height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment