@flowgram.ai/free-auto-layout-plugin 0.1.0-alpha.25 → 0.1.0-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -2374,7 +2374,7 @@ var LayoutPosition = class {
|
|
|
2374
2374
|
const layoutPosition = {
|
|
2375
2375
|
x: layoutNode.position.x + layoutNode.offset.x,
|
|
2376
2376
|
// layoutNode.position.y 是中心点,但画布节点原点在上边沿的中间,所以 y 坐标需要转化后一下
|
|
2377
|
-
y: layoutNode.position.y - layoutNode.size.height
|
|
2377
|
+
y: layoutNode.position.y + layoutNode.offset.y - (layoutNode.size.height - layoutNode.padding.top - layoutNode.padding.bottom) / 2
|
|
2378
2378
|
};
|
|
2379
2379
|
const deltaX = (layoutPosition.x - transform.position.x) * step / 100;
|
|
2380
2380
|
const deltaY = (layoutPosition.y - transform.position.y) * step / 100;
|