chore(utils): tsdoc update
This commit is contained in:
@@ -154,8 +154,10 @@ export function XYResizer({ domNode, nodeId, getStoreItems, onChange, onEnd }: X
|
||||
parentExtent = parentNode && node.extent === 'parent' ? nodeToParentExtent(parentNode) : undefined;
|
||||
}
|
||||
|
||||
// Collect all child nodes to correct their relative positions when top/left changes
|
||||
// Determine largest minimal extent the parent node is allowed to resize to
|
||||
/*
|
||||
* Collect all child nodes to correct their relative positions when top/left changes
|
||||
* Determine largest minimal extent the parent node is allowed to resize to
|
||||
*/
|
||||
childNodes = [];
|
||||
childExtent = undefined;
|
||||
|
||||
@@ -230,8 +232,10 @@ export function XYResizer({ domNode, nodeId, getStoreItems, onChange, onEnd }: X
|
||||
prevValues.x = change.x;
|
||||
prevValues.y = change.y;
|
||||
|
||||
// when top/left changes, correct the relative positions of child nodes
|
||||
// so that they stay in the same position
|
||||
/*
|
||||
* when top/left changes, correct the relative positions of child nodes
|
||||
* so that they stay in the same position
|
||||
*/
|
||||
if (childNodes.length > 0) {
|
||||
const xChange = x - prevX;
|
||||
const yChange = y - prevY;
|
||||
|
||||
Reference in New Issue
Block a user