瀏覽代碼

add the cmd out

pull/211/head
cavencj 5 月之前
父節點
當前提交
7a3a9db33c
共有 3 個檔案被更改,包括 2 行新增4 行删除
  1. 0
    3
      src/copyright/cmdOut.js
  2. 1
    1
      src/copyright/header.js
  3. 1
    0
      src/modules/viewer/Viewer.js

+ 0
- 3
src/copyright/cmdOut.js 查看文件

@@ -2,9 +2,6 @@
* @Author : Caven Chen
*/

// eslint-disable-next-line no-console
console.clear()

// eslint-disable-next-line no-console
console.log(
`%c \n DC-SDK \n %c \n 用数字描绘世界之美 %c \n

+ 1
- 1
src/copyright/header.js 查看文件

@@ -21,5 +21,5 @@
* limitations under the License.
*
* Portions licensed separately.
* See https://github.com/dvgis/dc-sdk/blob/master/LICENSE.MD for full licensing details.
* See https://github.com/dvt3d/dc-sdk/blob/master/LICENSE.MD for full licensing details.
*/

+ 1
- 0
src/modules/viewer/Viewer.js 查看文件

@@ -29,6 +29,7 @@ const DEF_OPTS = {

class Viewer {
constructor(container, options = {}) {
__cmdOut && __cmdOut()
if (
!container ||
(typeof container === 'string' && !document.getElementById(container))

Loading…
取消
儲存