Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 5, 2024
1 parent 06fc3c7 commit c369334
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 10 deletions.
8 changes: 6 additions & 2 deletions docs/Globe.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
this._canvas.style.opacity = "0";
}

public attachTo(target: HTMLElement | string) {
public attachTo(target: HTMLElement | string, isFirst?: boolean) {

this.detach();

Expand All @@ -356,7 +356,11 @@

if (t) {
this.$target = t as HTMLElement;
t.appendChild(this.$inner);
if (isFirst && this.$target.firstChild) {
this.$target.insertBefore(this.$inner, this.$target.firstChild);
} else {
t.appendChild(this.$inner);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/KML.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Vector.html

Large diffs are not rendered by default.

79 changes: 75 additions & 4 deletions docs/entity_GeometryHandler.ts.html

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions docs/layer_Vector.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@
* @public
*/
public override clear() {
super.clear();
let temp: Entity[] = new Array(this._entities.length);

for (let i = 0; i < temp.length; i++) {
Expand All @@ -599,6 +600,7 @@
this._entityCollectionsTree = null;
this._entityCollectionsTreeNorth = null;
this._entityCollectionsTreeSouth = null;
this._geometryHandler.clear()
}

/**
Expand Down Expand Up @@ -981,7 +983,7 @@

protected _execDeferredNode(node: EntityCollectionNode) {
this._counter++;
setTimeout(() => {
requestAnimationFrame(() => {
node.applyCollection();
this._counter--;
if (this._deferredEntitiesPendingQueue.length && this._counter < 1) {
Expand All @@ -994,7 +996,7 @@
}
}
}
}, 0);
});
}

/**
Expand Down

0 comments on commit c369334

Please sign in to comment.