Skip to content

Commit

Permalink
change the Ellipsoid to Sphere
Browse files Browse the repository at this point in the history
  • Loading branch information
cavencj committed Apr 14, 2024
1 parent 070e527 commit f096888
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/modules/overlay/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export { default as Circle } from './vector/Circle'
export { default as Corridor } from './vector/Corridor'
export { default as Cylinder } from './vector/Cylinder'
export { default as Ellipse } from './vector/Ellipse'
export { default as Ellipsoid } from './vector/Ellipsoid'
export { default as Sphere } from './vector/Sphere.js'
export { default as Label } from './vector/Label'
export { default as Plane } from './vector/Plane'
export { default as Point } from './vector/Point'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Parse from '../../parse/Parse'
import { Util } from '../../utils'
import { Transform } from '../../transform'

class Ellipsoid extends Overlay {
class Sphere extends Overlay {
constructor(position, radius) {
super()
this._position = Parse.parsePosition(position)
Expand All @@ -19,7 +19,7 @@ class Ellipsoid extends Overlay {
}

get type() {
return Overlay.getOverlayType('ellipsoid')
return Overlay.getOverlayType('sphere')
}

set position(position) {
Expand Down Expand Up @@ -65,7 +65,7 @@ class Ellipsoid extends Overlay {
/**
* Sets Style
* @param style
* @returns {Ellipsoid}
* @returns {Sphere}
*/
setStyle(style) {
if (Object.keys(style).length === 0) {
Expand All @@ -80,4 +80,4 @@ class Ellipsoid extends Overlay {

Overlay.registerType('ellipsoid')

export default Ellipsoid
export default Sphere
1 change: 1 addition & 0 deletions src/modules/third-part/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const THIRD_PART = {
CustomShader: Cesium.CustomShader,
UniformType: Cesium.UniformType,
Math: Cesium.Math,
Ellipsoid: Cesium.Ellipsoid,
Resource: Cesium.Resource,
createGooglePhotorealistic3DTileset:
Cesium.createGooglePhotorealistic3DTileset,
Expand Down

0 comments on commit f096888

Please sign in to comment.