From 3f7c92e9856fc9a6d096a523d8c9ce01c9aa90f6 Mon Sep 17 00:00:00 2001 From: Nshen Date: Wed, 14 Jul 2021 09:40:39 +0800 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 59360c5..9ea98fd 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,13 @@ import './css/main.css'; const viewer = new Viewer('cesiumContainer'); ``` +> or if you like global Cesium object you can write as + +```js +import * as Cesium from 'cesium'; +const viewer = new Cesium.Viewer('cesiumContainer'); +``` + `index.html` ```html @@ -121,6 +128,9 @@ Run `yarn dev` For full demo project please check [./demo](https://github.com/nshen/vite-plugin-cesium/tree/main/demo) folder. +## + + ## License MIT