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

Method push

packages/pathfinding/src/core/BinaryHeap.ts:42–45  ·  view source on GitHub ↗

* @zh 插入元素 * @en Push element

(item: T)

Source from the content-addressed store, hash-verified

40 * @en Push element
41 */
42 push(item: T): void {
43 this.heap.push(item);
44 this.bubbleUp(this.heap.length - 1);
45 }
46
47 /**
48 * @zh 弹出最小元素

Callers 1

findPolygonPathMethod · 0.95

Calls 2

bubbleUpMethod · 0.95
pushMethod · 0.65

Tested by

no test coverage detected