MCPcopy Create free account
hub / github.com/esengine/esengine / addBeforeMe

Method addBeforeMe

packages/fairygui/src/widgets/GGraph.ts:241–248  ·  view source on GitHub ↗
(target: GObject)

Source from the content-addressed store, hash-verified

239 }
240
241 public addBeforeMe(target: GObject): void {
242 if (!this._parent) {
243 throw new Error('parent not set');
244 }
245
246 const index = this._parent.getChildIndex(this);
247 this._parent.addChildAt(target, index);
248 }
249
250 /**
251 * Add target after this object

Callers

nothing calls this directly

Calls 2

getChildIndexMethod · 0.80
addChildAtMethod · 0.45

Tested by

no test coverage detected