| @@ -1,5 +1,12 @@ | |||
| # 更新 | |||
| ## 1.9.2 | |||
| ### 2020-8-15 | |||
| > 1. 完善控制台输出说明 | |||
| > 2. 修改说明文档 | |||
| ## 1.9.1 | |||
| ### 2020-8-11 | |||
| @@ -10,9 +10,9 @@ | |||
| > 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. | |||
| > [home](http://dc.dvgis.cn) | |||
| > [Home Page](http://dc.dvgis.cn) | |||
| ```warning | |||
| ```warningH | |||
| Tips:This SDK is JS+GIS framework package. Developers need to have some front-end technology and GIS related technology | |||
| ``` | |||
| @@ -79,17 +79,17 @@ DC.ready(() => { | |||
| ## Documentation | |||
| [Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/) | |||
| [DC Api](https://resource.dvgis.cn/dc-api) | |||
| [DC-SDK Api](http://resource.dvgis.cn/dc-api) | |||
| [Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/) | |||
| ## Demo | |||
| |  |  |  |  | | |||
| | :---------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------: | | |||
| |  |  |  |  | | |||
| |  | <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/tileset.png" alt="开始" width="200px" height="150px"/> | <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/html.png" alt="开始" width="200px" height="150px"/> |  | | |||
| |  |  |  |  | | |||
| |  |  |  |  | | |||
| | :-----------------------------------------------------------: | :-----------------------------------------------------------: | :------------------------------------------------------------------: | :--------------------------------------------------------------: | | |||
| |  |  |  |  | | |||
| |  |  |  |  | | |||
| |  |  |  |  | | |||
| [More>>](http://dc.dvgis.cn/#/examples) | |||
| @@ -108,9 +108,9 @@ We reserve the right of final interpretation of this copyright information. | |||
| <p> | |||
| <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/base/q1.png" style="width:60px;height:60px" title="Cesium*融合"/> | |||
| <img src="http://dc.dvgis.cn/examples/images/base/q1.png" style="width:60px;height:60px" title="Cesium*融合"/> | |||
| <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/base/q2.png" style="width:60px;height:60px" title="Cesium开心农场"/> | |||
| <img src="http://dc.dvgis.cn/examples/images/base/q2.png" style="width:60px;height:60px" title="Cesium开心农场"/> | |||
| </p> | |||
| @@ -79,17 +79,19 @@ DC.ready(() => { | |||
| ## 文档 | |||
| [DC Api](https://resource.dvgis.cn/dc-api) | |||
| [Cesium Api](https://cesium.com/docs/cesiumjs-ref-doc/) | |||
| [DC-SDK Api](http://resource.dvgis.cn/dc-api) | |||
| ## 示例 | |||
| |  |  |  |  | | |||
| | :------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------: | | |||
| |  |  |  |  | | |||
| |  | <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/tileset.png" alt="开始" width="200px" height="150px"/> | <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/layer/html.png" alt="开始" width="200px" height="150px"/> |  | | |||
| |  |  |  |  | | |||
| |  |  |  |  | | |||
| | :-----------------------------------------------------------: | :-----------------------------------------------------------: | :------------------------------------------------------------------: | :--------------------------------------------------------------: | | |||
| |  |  |  |  | | |||
| |  |  |  |  | | |||
| |  |  |  |  | | |||
| [更多>>](http://dc.dvgis.cn/#/examples) | |||
| @@ -107,10 +109,11 @@ DC.ready(() => { | |||
| <p> | |||
| <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/base/q1.png" style="width:60px;height:60px" title="Cesium*融合"/> | |||
| <img src="http://dc.dvgis.cn/examples/images/base/q1.png" style="width:60px;height:60px" title="Cesium*融合"/> | |||
| <img src="https://raw.githubusercontent.com/Digital-Visual/dc-sdk-examples/master/images/base/q2.png" style="width:60px;height:60px" title="Cesium开心农场"/> | |||
| <img src="http://dc.dvgis.cn/examples/images/base/q2.png" style="width:60px;height:60px" title="Cesium开心农场"/> | |||
| </p> | |||
| ## 感谢 | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@dvgis/dc-sdk", | |||
| "version": "1.9.1", | |||
| "version": "1.9.2", | |||
| "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", | |||
| @@ -9,7 +9,7 @@ delete window.DC | |||
| let DC = { | |||
| Author: 'Caven Chen <cavencj@gmail.com>', | |||
| GitHub: 'https://github.com/dvgis', | |||
| GitHub: 'https://github.com/dvgis/dc-sdk', | |||
| Home: 'https://www.dvgis.cn', | |||
| Version: build.version, | |||
| Namespace: {}, | |||
| @@ -2,6 +2,7 @@ | |||
| * @Author: Caven | |||
| * @Date: 2020-01-03 12:18:17 | |||
| */ | |||
| import { Util } from '../utils' | |||
| import { OverlayEventType, OverlayEvent } from '../event' | |||
| import State from '../state/State' | |||
| @@ -67,6 +68,13 @@ class Overlay { | |||
| return this._state | |||
| } | |||
| /** | |||
| * The hook for mount layer | |||
| * Subclasses need to be overridden | |||
| * @private | |||
| */ | |||
| _mountedHook() {} | |||
| /** | |||
| * The hook for added | |||
| * @returns {boolean} | |||
| @@ -80,13 +88,6 @@ class Overlay { | |||
| this._delegate.overlayId = this._id | |||
| } | |||
| /** | |||
| * The hook for mounted | |||
| * Subclasses need to be overridden | |||
| * @private | |||
| */ | |||
| _mountedHook() {} | |||
| /** | |||
| * The hook for removed | |||
| * Subclasses need to be overridden | |||
| @@ -1,6 +1,6 @@ | |||
| /** | |||
| * @Author: Caven | |||
| * @Date: 2020-05-10 08:24:57 | |||
| * @Date: 2020-08-15 11:57:02 | |||
| */ | |||
| let OverlayType = {} | |||
| @@ -1,6 +1,6 @@ | |||
| /** | |||
| * @Author: Caven | |||
| * @Date: 2020-01-06 15:03:25 | |||
| * @Date: 2020-01-06 20:03:25 | |||
| */ | |||
| import { Util } from '../../utils' | |||
| @@ -1,6 +1,6 @@ | |||
| /** | |||
| * @Author: Caven | |||
| * @Date: 2020-01-07 08:51:56 | |||
| * @Date: 2020-01-07 20:51:56 | |||
| */ | |||
| import Parse from '../../parse/Parse' | |||
| @@ -1,6 +1,6 @@ | |||
| /** | |||
| * @Author: Caven | |||
| * @Date: 2020-01-18 18:22:23 | |||
| * @Date: 2020-01-18 19:22:23 | |||
| */ | |||
| const path = require('path') | |||
| @@ -31,8 +31,17 @@ function resolve(dir) { | |||
| function getTime() { | |||
| let now = new Date() | |||
| return `${now.getFullYear()}-${now.getMonth() + | |||
| 1}-${now.getDate()} ${now.getHours()}:${now.getMinutes()}` | |||
| let m = now.getMonth() + 1 | |||
| m = m < 10 ? '0' + m : m | |||
| let d = now.getDate() | |||
| d = d < 10 ? '0' + d : d | |||
| let h = now.getHours() | |||
| h = h < 10 ? '0' + h : h | |||
| let min = now.getMinutes() | |||
| min = min < 10 ? '0' + min : min | |||
| let s = now.getSeconds() | |||
| s = s < 10 ? '0' + s : s | |||
| return `${now.getFullYear()}-${m}-${d} ${h}:${min}:${s}` | |||
| } | |||
| module.exports = env => { | |||