UNPKG

vue-cesium

Version:
1,198 lines (1,193 loc) 25.6 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('./util.js'); var cesiumHelpers = require('./cesium-helpers.js'); var shared = require('@vue/shared'); "use strict"; const position = { /** * A Property specifying the entity position. */ position: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3, deep: true // use-common 中已将 SampledPositionProperty 类型的 deep 设为 false } } }; const viewFrom = { /** * A suggested initial offset for viewing this object. */ viewFrom: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3, deep: true } } }; const orientation = { orientation: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeQuaternion } } }; const alignedAxis = { alignedAxis: { type: [Object, Array, Function], default: () => { return { x: 0, y: 0, z: 0 }; }, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3 } } }; const color = { color: { type: [Object, String, Array, Function], default: "white", watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const depthFailColor = { depthFailColor: { type: [Object, String, Array, Function], default: "white", watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const disableDepthTestDistance = { disableDepthTestDistance: [Number, Object, Function] }; const distanceDisplayCondition = { distanceDisplayCondition: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeDistanceDisplayCondition } } }; const eyeOffset = { eyeOffset: { type: [Object, Array, Function], default: () => { return { x: 0, y: 0, z: 0 }; }, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3 } } }; const height = { height: [Number, Object, Function] }; const heightReference = { heightReference: { type: [Number, Object, Function] // default: 0 } }; const horizontalOrigin = { horizontalOrigin: { type: [Number, Object, Function], default: 0 } }; const image = { image: [String, Object, HTMLCanvasElement, Function] }; const imageSubRegion = { imageSubRegion: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeBoundingRectangle } } }; const pixelOffset = { pixelOffset: { type: [Object, Array, Function], default: () => { return { x: 0, y: 0 }; }, validator: (v) => { if (shared.isArray(v)) { return v.length === 2; } if (shared.isObject(v)) { return shared.hasOwn(v, "x") && shared.hasOwn(v, "y"); } if (shared.isFunction(v)) { return true; } return false; }, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian2 } } }; const pixelOffsetScaleByDistance = { pixelOffsetScaleByDistance: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeNearFarScalar } } }; const rotation = { rotation: { type: [Number, Object, Function], default: 0 } }; const scale = { scale: { type: [Number, Object, Function], default: 1 } }; const scaleByDistance = { scaleByDistance: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeNearFarScalar } } }; const show = { show: { type: [Boolean, Object, Function], default: true } }; const sizeInMeters = { sizeInMeters: { type: [Boolean, Object, Function], default: false } }; const translucencyByDistance = { translucencyByDistance: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeNearFarScalar } } }; const verticalOrigin = { verticalOrigin: { type: [Number, Object, Function], default: 0 } }; const width = { width: [Number, Object, Function] }; const dimensions = { dimensions: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3 } } }; const fill = { fill: { type: [Boolean, Object, Function], default: true } }; const material = { material: { type: [Object, String, Array, Function], default: "white", watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeMaterial } } }; const outline = { outline: { type: [Boolean, Object, Function], default: false } }; const outlineColor = { outlineColor: { type: [Object, String, Array, Function], default: "black", watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const outlineWidth = { outlineWidth: { type: [Number, Object, Function], default: 1 } }; const shadows = { shadows: [Number, Object, Function] }; const positions = { positions: { type: [Array, Object, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3Array, exclude: "_callback", deep: true } } }; const extrudedHeight = { extrudedHeight: [Number, Object, Function] }; const extrudedHeightReference = { extrudedHeightReference: [Number, Object, Function] }; const cornerType = { cornerType: { type: [Number, Object, Function], default: 0 } }; const granularity = { granularity: [Number, Object, Function] }; const classificationType = { classificationType: { type: [Number, Object, Function] } }; const zIndex = { zIndex: [Number, Object, Function] }; const length = { length: [Number, Object, Function] }; const topRadius = { topRadius: [Number, Object, Function] }; const bottomRadius = { bottomRadius: [Number, Object, Function] }; const numberOfVerticalLines = { numberOfVerticalLines: { type: [Number, Object, Function], default: 16 } }; const slices = { slices: { type: [Number, Object, Function], default: 128 } }; const semiMajorAxis = { semiMajorAxis: [Number, Object, Function] }; const semiMinorAxis = { semiMinorAxis: [Number, Object, Function] }; const stRotation = { stRotation: { type: [Number, Object, Function], default: 0 } }; const radii = { radii: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3 } } }; const innerRadii = { innerRadii: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3 } } }; const minimumClock = { minimumClock: { type: [Number, Object, Function], default: 0 } }; const maximumClock = { maximumClock: { type: [Number, Object, Function], default: 2 * Math.PI } }; const minimumCone = { minimumCone: { type: [Number, Object, Function], default: 0 } }; const maximumCone = { maximumCone: { type: [Number, Object, Function], default: Math.PI } }; const stackPartitions = { stackPartitions: { type: [Number, Object, Function], default: 64 } }; const slicePartitions = { slicePartitions: { type: [Number, Object, Function], default: 64 } }; const subdivisions = { subdivisions: { type: [Number, Object, Function], default: 128 } }; const text = { text: [String, Object, Function] }; const font = { font: { type: [String, Object, Function], default: "30px sans-serif" } }; const labelStyle = { labelStyle: { type: [Number, Object, Function], default: 0 } }; const showBackground = { showBackground: { type: [Boolean, Object, Function], default: false } }; const backgroundColor = { backgroundColor: { type: [Object, String, Array, Function], default: () => { return { x: 0.165, y: 0.165, z: 0.165, w: 0.8 }; }, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const backgroundPadding = { backgroundPadding: { type: [Object, Array, Function], default: () => { return { x: 7, y: 5 }; }, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian2 } } }; const fillColor = { fillColor: { type: [Object, String, Array, Function], default: "white", watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const uri = { uri: [String, Object, Function] }; const minimumPixelSize = { minimumPixelSize: { type: [Number, Object, Function], default: 0 } }; const maximumScale = { maximumScale: [Number, Object, Function] }; const incrementallyLoadTextures = { incrementallyLoadTextures: { type: [Boolean, Object, Function], default: true } }; const runAnimations = { clampAnimations: { type: [Boolean, Object, Function], default: true } }; const clampAnimations = { clampAnimations: { type: [Boolean, Object, Function], default: true } }; const silhouetteColor = { silhouetteColor: { type: [Object, String, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const silhouetteSize = { silhouetteSize: { type: [Number, Object, Function], default: 0 } }; const colorBlendMode = { colorBlendMode: { type: [Number, Object, Function], default: 0 } }; const colorBlendAmount = { colorBlendAmount: { type: [Number, Object, Function], default: 0.5 } }; const imageBasedLightingFactor = { imageBasedLightingFactor: { type: [Object, Array, Function], default: () => [1, 1], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian2 } } }; const lightColor = { lightColor: { type: [Object, String, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const nodeTransformations = { nodeTransformations: { type: [Object, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeTranslationRotationScale } } }; const articulations = { articulations: [Object, Function] }; const clippingPlanes = { clippingPlanes: [Object, Function] }; const plane = { plane: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makePlane } } }; const pixelSize = { pixelSize: { type: [Number, Object, Function], default: 1 } }; const hierarchy = { hierarchy: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makePolygonHierarchy, deep: true, exclude: "_callback" } } }; const perPositionHeight = { perPositionHeight: { type: [Boolean, Object, Function], default: false } }; const closeTop = { closeTop: { type: [Boolean, Object, Function], default: true } }; const closeBottom = { closeBottom: { type: [Boolean, Object, Function], default: true } }; const arcType = { arcType: { type: [Number, Object, Function], default: 1 } }; const depthFailMaterial = { depthFailMaterial: { type: [Object, String, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeMaterial } } }; const clampToGround = { clampToGround: { type: [Boolean, Object, Function], default: false } }; const shape = { shape: { type: [Array, Object, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian2Array } } }; const coordinates = { coordinates: { type: [Object, Array, Function], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeRectangle } } }; const maximumScreenSpaceError = { maximumScreenSpaceError: { type: [Number, Object, Function], default: 16 } }; const minimumHeights = { minimumHeights: [Array, Object, Function] }; const maximumHeights = { maximumHeights: [Array, Object, Function] }; const cutoutRectangle = { cutoutRectangle: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeRectangle } } }; const colorToAlpha = { colorToAlpha: { type: [Object, String, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const url = { url: [String, Object] }; const token = { token: String }; const tileDiscardPolicy = { tileDiscardPolicy: Object }; const layers = { layers: String }; const enablePickFeatures = { enablePickFeatures: { type: Boolean, default: true } }; const rectangle = { rectangle: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeRectangle } } }; const tilingScheme = { tilingScheme: Object }; const ellipsoid = { ellipsoid: Object }; const credit = { credit: { type: [String, Object], default: "" } }; const tileWidth = { tileWidth: { type: Number, default: 256 } }; const tileHeight = { tileHeight: { type: Number, default: 256 } }; const maximumLevel = { maximumLevel: Number }; const minimumLevel = { minimumLevel: { type: Number, default: 0 } }; const fileExtension = { fileExtension: { type: String, default: "png" } }; const accessToken = { accessToken: String }; const format = { format: { type: String, default: "png" } }; const subdomains = { subdomains: [String, Array] }; const getFeatureInfoFormats = { getFeatureInfoFormats: Array }; const clock = { clock: Object }; const times = { times: Object }; const projectionTransforms = { projectionTransforms: { type: [Boolean, Object], default: false } }; const customShader = { customShader: { type: Object } }; const maximumMemoryUsage = { maximumMemoryUsage: { type: Number, default: 256 } }; const defaultColor = { defaultColor: { type: [Object, String, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const tileStyle = { tileStyle: { type: Object } }; const allowPicking = { allowPicking: { type: Boolean, default: true } }; const asynchronous = { asynchronous: { type: Boolean, default: true } }; const debugShowShadowVolume = { debugShowShadowVolume: { type: Boolean, default: false } }; const releaseGeometryInstances = { releaseGeometryInstances: { type: Boolean, default: true } }; const interleave = { interleave: { type: Boolean, default: false } }; const appearance = { appearance: { type: Object, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeAppearance, deep: true // use-common 中已将 CesiumAppearance 类型的 deep 设为 false } } }; const depthFailAppearance = { depthFailAppearance: { type: Object, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeAppearance, deep: true } } }; const geometryInstances = { geometryInstances: [Array, Object] }; const vertexCacheOptimize = { vertexCacheOptimize: { type: Boolean, default: false } }; const compressVertices = { compressVertices: { type: Boolean, default: true } }; const modelMatrix = { modelMatrix: Object }; const debugShowBoundingVolume = { debugShowBoundingVolume: { tyep: Boolean, default: false } }; const scene = { scene: Object }; const blendOption = { blendOption: { type: Number, default: 2 } }; const id = { id: null }; const loop = { loop: { type: Boolean, default: false } }; const debugWireframe = { debugWireframe: { type: Boolean, default: false } }; const vertexFormat = { vertexFormat: Object }; const center = { /** * center */ center: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3 } } }; const radius = { radius: Number }; const frustum = { frustum: Object }; const origin = { origin: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3 } } }; const polygonHierarchy = { polygonHierarchy: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makePolygonHierarchy, deep: true } } }; const startColor = { startColor: { type: [Object, String, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const endColor = { endColor: { type: [Object, String, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const minimumImageSize = { minimumImageSize: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian2 } } }; const maximumImageSize = { maximumImageSize: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian2 } } }; const imageSize = { imageSize: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian2 } } }; const shapePositions = { shapePositions: { type: Array, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian2Array, deep: true } } }; const polylinePositions = { polylinePositions: { type: Array, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3Array, deep: true } } }; const lightColor2 = { lightColor: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3 } } }; const luminanceAtZenith = { luminanceAtZenith: { type: Number, default: 0.2 } }; const sphericalHarmonicCoefficients = { sphericalHarmonicCoefficients: { type: [Array, Object], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeCartesian3Array } } }; const specularEnvironmentMaps = { specularEnvironmentMaps: String }; const imageBasedLighting = { imageBasedLighting: { type: Object, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeImageBasedLighting } } }; const backFaceCulling = { backFaceCulling: { type: Boolean, default: true } }; const colors = { colors: { type: Array, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColors, deep: true } } }; const data = { data: { type: [String, Object], required: true } }; const sourceUri = { sourceUri: { type: [String, Object] } }; const options = { options: { type: Object, watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeOptions, deep: true } } }; const glowColor = { glowColor: { type: [String, Array, Object], default: () => [0, 1, 0, 0.05], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const clearColor = { clearColor: { type: [String, Array, Object], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeColor } } }; const scissorRectangle = { scissorRectangle: { type: [Object, Array], watcherOptions: { cesiumObjectBuilder: cesiumHelpers.makeBoundingRectangle } } }; const enableMouseEvent = { enableMouseEvent: { type: Boolean, default: true } }; exports.accessToken = accessToken; exports.alignedAxis = alignedAxis; exports.allowPicking = allowPicking; exports.appearance = appearance; exports.arcType = arcType; exports.articulations = articulations; exports.asynchronous = asynchronous; exports.backFaceCulling = backFaceCulling; exports.backgroundColor = backgroundColor; exports.backgroundPadding = backgroundPadding; exports.blendOption = blendOption; exports.bottomRadius = bottomRadius; exports.center = center; exports.clampAnimations = clampAnimations; exports.clampToGround = clampToGround; exports.classificationType = classificationType; exports.clearColor = clearColor; exports.clippingPlanes = clippingPlanes; exports.clock = clock; exports.closeBottom = closeBottom; exports.closeTop = closeTop; exports.color = color; exports.colorBlendAmount = colorBlendAmount; exports.colorBlendMode = colorBlendMode; exports.colorToAlpha = colorToAlpha; exports.colors = colors; exports.compressVertices = compressVertices; exports.coordinates = coordinates; exports.cornerType = cornerType; exports.credit = credit; exports.customShader = customShader; exports.cutoutRectangle = cutoutRectangle; exports.data = data; exports.debugShowBoundingVolume = debugShowBoundingVolume; exports.debugShowShadowVolume = debugShowShadowVolume; exports.debugWireframe = debugWireframe; exports.defaultColor = defaultColor; exports.depthFailAppearance = depthFailAppearance; exports.depthFailColor = depthFailColor; exports.depthFailMaterial = depthFailMaterial; exports.dimensions = dimensions; exports.disableDepthTestDistance = disableDepthTestDistance; exports.distanceDisplayCondition = distanceDisplayCondition; exports.ellipsoid = ellipsoid; exports.enableMouseEvent = enableMouseEvent; exports.enablePickFeatures = enablePickFeatures; exports.endColor = endColor; exports.extrudedHeight = extrudedHeight; exports.extrudedHeightReference = extrudedHeightReference; exports.eyeOffset = eyeOffset; exports.fileExtension = fileExtension; exports.fill = fill; exports.fillColor = fillColor; exports.font = font; exports.format = format; exports.frustum = frustum; exports.geometryInstances = geometryInstances; exports.getFeatureInfoFormats = getFeatureInfoFormats; exports.glowColor = glowColor; exports.granularity = granularity; exports.height = height; exports.heightReference = heightReference; exports.hierarchy = hierarchy; exports.horizontalOrigin = horizontalOrigin; exports.id = id; exports.image = image; exports.imageBasedLighting = imageBasedLighting; exports.imageBasedLightingFactor = imageBasedLightingFactor; exports.imageSize = imageSize; exports.imageSubRegion = imageSubRegion; exports.incrementallyLoadTextures = incrementallyLoadTextures; exports.innerRadii = innerRadii; exports.interleave = interleave; exports.labelStyle = labelStyle; exports.layers = layers; exports.length = length; exports.lightColor = lightColor; exports.lightColor2 = lightColor2; exports.loop = loop; exports.luminanceAtZenith = luminanceAtZenith; exports.material = material; exports.maximumClock = maximumClock; exports.maximumCone = maximumCone; exports.maximumHeights = maximumHeights; exports.maximumImageSize = maximumImageSize; exports.maximumLevel = maximumLevel; exports.maximumMemoryUsage = maximumMemoryUsage; exports.maximumScale = maximumScale; exports.maximumScreenSpaceError = maximumScreenSpaceError; exports.minimumClock = minimumClock; exports.minimumCone = minimumCone; exports.minimumHeights = minimumHeights; exports.minimumImageSize = minimumImageSize; exports.minimumLevel = minimumLevel; exports.minimumPixelSize = minimumPixelSize; exports.modelMatrix = modelMatrix; exports.nodeTransformations = nodeTransformations; exports.numberOfVerticalLines = numberOfVerticalLines; exports.options = options; exports.orientation = orientation; exports.origin = origin; exports.outline = outline; exports.outlineColor = outlineColor; exports.outlineWidth = outlineWidth; exports.perPositionHeight = perPositionHeight; exports.pixelOffset = pixelOffset; exports.pixelOffsetScaleByDistance = pixelOffsetScaleByDistance; exports.pixelSize = pixelSize; exports.plane = plane; exports.polygonHierarchy = polygonHierarchy; exports.polylinePositions = polylinePositions; exports.position = position; exports.positions = positions; exports.projectionTransforms = projectionTransforms; exports.radii = radii; exports.radius = radius; exports.rectangle = rectangle; exports.releaseGeometryInstances = releaseGeometryInstances; exports.rotation = rotation; exports.runAnimations = runAnimations; exports.scale = scale; exports.scaleByDistance = scaleByDistance; exports.scene = scene; exports.scissorRectangle = scissorRectangle; exports.semiMajorAxis = semiMajorAxis; exports.semiMinorAxis = semiMinorAxis; exports.shadows = shadows; exports.shape = shape; exports.shapePositions = shapePositions; exports.show = show; exports.showBackground = showBackground; exports.silhouetteColor = silhouetteColor; exports.silhouetteSize = silhouetteSize; exports.sizeInMeters = sizeInMeters; exports.slicePartitions = slicePartitions; exports.slices = slices; exports.sourceUri = sourceUri; exports.specularEnvironmentMaps = specularEnvironmentMaps; exports.sphericalHarmonicCoefficients = sphericalHarmonicCoefficients; exports.stRotation = stRotation; exports.stackPartitions = stackPartitions; exports.startColor = startColor; exports.subdivisions = subdivisions; exports.subdomains = subdomains; exports.text = text; exports.tileDiscardPolicy = tileDiscardPolicy; exports.tileHeight = tileHeight; exports.tileStyle = tileStyle; exports.tileWidth = tileWidth; exports.tilingScheme = tilingScheme; exports.times = times; exports.token = token; exports.topRadius = topRadius; exports.translucencyByDistance = translucencyByDistance; exports.uri = uri; exports.url = url; exports.vertexCacheOptimize = vertexCacheOptimize; exports.vertexFormat = vertexFormat; exports.verticalOrigin = verticalOrigin; exports.viewFrom = viewFrom; exports.width = width; exports.zIndex = zIndex; //# sourceMappingURL=cesium-props.js.map