MCPcopy Index your code
hub / github.com/SplootCode/splootcode / updateLayout

Method updateLayout

packages/editor/src/layout/rendered_node.ts:180–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178 }
179
180 updateLayout() {
181 const nodeLayout = this.node.getNodeLayout()
182 for (const component of nodeLayout.components) {
183 if (
184 component.type === LayoutComponentType.CHILD_SET_TREE_BRACKETS ||
185 component.type === LayoutComponentType.CHILD_SET_TREE
186 ) {
187 this.renderedChildSets[component.identifier].updateLayout(component)
188 }
189 }
190 }
191
192 calculateDimensions(x: number, y: number, selection: NodeSelection, marginApplied = false, label?: string) {
193 this.marginTop = 0

Callers 1

handleNodeMutationMethod · 0.95

Calls 2

updateLayoutMethod · 0.65
getNodeLayoutMethod · 0.45

Tested by

no test coverage detected