| @@ -27,29 +27,9 @@ class BounceBillboardPrimitive extends BillboardPrimitive { | |||
| /** | |||
| * | |||
| * @private | |||
| * @param frameState | |||
| */ | |||
| _addedHook() { | |||
| if (!this._delegate || !this._layer) { | |||
| return | |||
| } | |||
| this._delegate.layerId = this._layer?.layerId | |||
| this._delegate.overlayId = this._id | |||
| this._layer.delegate.add(this) | |||
| } | |||
| /** | |||
| * | |||
| * @private | |||
| */ | |||
| _removedHook() { | |||
| if (!this._layer) { | |||
| return | |||
| } | |||
| this._layer.delegate.remove(this) | |||
| } | |||
| update() { | |||
| update(frameState) { | |||
| if (!this._show) { | |||
| return | |||
| } | |||
| @@ -27,29 +27,9 @@ class BounceLabelPrimitive extends LabelPrimitive { | |||
| /** | |||
| * | |||
| * @private | |||
| * @param frameState | |||
| */ | |||
| _addedHook() { | |||
| if (!this._delegate || !this._layer) { | |||
| return | |||
| } | |||
| this._delegate.layerId = this._layer?.layerId | |||
| this._delegate.overlayId = this._id | |||
| this._layer.delegate.add(this) | |||
| } | |||
| /** | |||
| * | |||
| * @private | |||
| */ | |||
| _removedHook() { | |||
| if (!this._layer) { | |||
| return | |||
| } | |||
| this._layer.delegate.remove(this) | |||
| } | |||
| update() { | |||
| update(frameState) { | |||
| if (!this._show) { | |||
| return | |||
| } | |||
| @@ -108,37 +108,6 @@ class DiffuseWallPrimitive extends Overlay { | |||
| return heights | |||
| } | |||
| /** | |||
| * | |||
| * @param layer | |||
| * @private | |||
| */ | |||
| _onAdd(layer) { | |||
| if (!layer) { | |||
| return | |||
| } | |||
| this._layer = layer | |||
| if (this._layer?.delegate?.add) { | |||
| this._layer.delegate.add(this) | |||
| } | |||
| this._addedHook && this._addedHook() | |||
| this._state = State.ADDED | |||
| } | |||
| /** | |||
| * | |||
| * @private | |||
| */ | |||
| _onRemove() { | |||
| if (!this._layer) { | |||
| return | |||
| } | |||
| if (this._layer?.delegate?.remove) { | |||
| this._layer.delegate.remove(this) | |||
| } | |||
| this._state = State.REMOVED | |||
| } | |||
| /** | |||
| * | |||
| * @param frameState | |||
| @@ -182,6 +151,7 @@ class DiffuseWallPrimitive extends Overlay { | |||
| }) | |||
| this._delegate.update(frameState) | |||
| } | |||
| /** | |||
| * | |||
| * @param style | |||