MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / set_position

Method set_position

ui/src/workflow/common/app-node.ts:335–344  ·  view source on GitHub ↗
(position: { x?: number; y?: number })

Source from the content-addressed store, hash-verified

333 })
334 }
335 set_position(position: { x?: number; y?: number }) {
336 const { x, y } = position
337 if (x) {
338 this.x = x
339 }
340 if (y) {
341 this.y = y
342 }
343 this.refreshDeges()
344 }
345 getResizeOutlineStyle() {
346 const style = super.getResizeOutlineStyle()
347 style.stroke = 'none'

Callers 1

layoutMethod · 0.80

Calls 1

refreshDegesMethod · 0.95

Tested by

no test coverage detected