| * @Author : Caven Chen | * @Author : Caven Chen | ||||
| */ | */ | ||||
| // eslint-disable-next-line no-console | |||||
| console.clear() | |||||
| // eslint-disable-next-line no-console | // eslint-disable-next-line no-console | ||||
| console.log( | console.log( | ||||
| `%c \n DC-SDK \n %c \n 用数字描绘世界之美 %c \n | `%c \n DC-SDK \n %c \n 用数字描绘世界之美 %c \n |
| * limitations under the License. | * limitations under the License. | ||||
| * | * | ||||
| * Portions licensed separately. | * 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. | |||||
| */ | */ |
| class Viewer { | class Viewer { | ||||
| constructor(container, options = {}) { | constructor(container, options = {}) { | ||||
| __cmdOut && __cmdOut() | |||||
| if ( | if ( | ||||
| !container || | !container || | ||||
| (typeof container === 'string' && !document.getElementById(container)) | (typeof container === 'string' && !document.getElementById(container)) |