Commit 553b3b74 authored by 任建锋's avatar 任建锋

添加锚点

parent edb5a4b8
......@@ -203,7 +203,7 @@ async function execute(psdFile, options) {
value = 0;
}
}
console.log(properties);
//console.log(properties);
properties.style[field] = value;
}
}
......@@ -220,7 +220,7 @@ async function execute(psdFile, options) {
};
let dealLater = true;
if (x !== 0) {
console.log(properties);
//console.log(properties);
if(!properties.style.left){
properties.style.left = x - (isSecondLayer ? offset.x : 0);
}
......
......@@ -181,6 +181,7 @@ export async function execute(psdFile, options) {
}
}
properties.style.position="absolute"
properties.style.transformOrigin="0px 0px 0px";
viewNode.rect={
x: properties.style.left?properties.style.left:0,
y: properties.style.top?properties.style.top:0,
......
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