소스 검색

发布1.9.4版本

tags/1.9.4
Caven Chen 5 년 전
부모
커밋
f15c0953fb
4개의 변경된 파일14개의 추가작업 그리고 15개의 파일을 삭제
  1. 1
    1
      dist/dc.base.min.js
  2. 1
    1
      dist/dc.core.min.js
  3. 1
    1
      package.json
  4. 11
    12
      src/core/Loader.js

+ 1
- 1
dist/dc.base.min.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
dist/dc.core.min.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
package.json 파일 보기

@@ -4,7 +4,7 @@
"description": " The SDK is a secondary development based on the open source project Cesium, which optimizes some operations of Cesium and enables developers to quickly develop 3D applications through the framework.",
"main": "index.js",
"repository": "https://github.com/dvgis/dc-sdk.git",
"homepage": "http://dc.dvgis.cn",
"homepage": "https://www.dvgis.cn",
"keywords": [
"3D",
"webgl",

+ 11
- 12
src/core/Loader.js 파일 보기

@@ -42,6 +42,16 @@ import {

const { Cesium } = DC.Namespace

Cesium.Math.area = area
Cesium.Math.bounds = bounds
Cesium.Math.mid = mid
Cesium.Math.center = center
Cesium.Math.distance = distance
Cesium.Math.heading = heading
Cesium.Math.isBetween = isBetween
Cesium.Math.parabola = parabola
Cesium.Math.curve = curve

const core = {
ImageryLayerFactory,
TerrainFactory,
@@ -63,18 +73,7 @@ const core = {
Polygon,
Model,
Tileset,
Math: {
...Cesium.Math,
area,
bounds,
mid,
center,
distance,
heading,
isBetween,
parabola,
curve
}
Math: Cesium.Math
}

DC.mixin(core)

Loading…
취소
저장