소스 검색

add the bounce primitive

tags/2.4.0
Caven Chen 4 년 전
부모
커밋
da03f381ee
2개의 변경된 파일0개의 추가작업 그리고 33개의 파일을 삭제
  1. 0
    18
      modules/overlay/primitive/BounceBillboardPrimitive.js
  2. 0
    15
      modules/overlay/primitive/BounceLabelPrimitive.js

+ 0
- 18
modules/overlay/primitive/BounceBillboardPrimitive.js 파일 보기

@@ -71,24 +71,6 @@ class BounceBillboardPrimitive extends BillboardPrimitive {
this._currentOffset.y += offsetAmount * (this._isUp ? -1 : 1)
this._delegate.pixelOffset = this._currentOffset
}

/**
*
* @param style
* @returns {BounceBillboardPrimitive}
*/
setStyle(style) {
if (!style || Object.keys(style).length === 0) {
return this
}
delete style['position'] &&
delete style['image'] &&
delete style['width'] &&
delete style['height']
this._style = style
Util.merge(this._delegate, this._style)
return this
}
}

Overlay.registerType('bounce_billboard_primitive')

+ 0
- 15
modules/overlay/primitive/BounceLabelPrimitive.js 파일 보기

@@ -71,21 +71,6 @@ class BounceLabelPrimitive extends LabelPrimitive {
this._currentOffset.y += offsetAmount * (this._isUp ? -1 : 1)
this._delegate.pixelOffset = this._currentOffset
}

/**
*
* @param style
* @returns {BounceLabelPrimitive}
*/
setStyle(style) {
if (!style || Object.keys(style).length === 0) {
return this
}
delete style['position'] && delete style['text']
this._style = style
Util.merge(this._delegate, this._style)
return this
}
}

Overlay.registerType('bounce_label_primitive')

Loading…
취소
저장