A Simple Cesium Gizmo using Cesium's Public API.
Under development.
There're three mode: translate, rotate, scale. And the translate mode has two sub-modes: local and surface.
- local: XYZ coordinates of a freely moving object.
- surface: moves along the latitude and longitude lines of the ellipsoid's surface.
Thanks to the amazing job from cesium-gizmo and three.js TransformControls
一个使用Cesium公共API的简易Gizmo
有三种模式:平移,旋转,缩放。平移有两种子模式:local 和 surface
- local:自由移动物体的XYZ坐标
- surface:沿地球表面经纬线移动
npm install cesium-gizmo
import { Gizmo } from "cesium-gizmo";
const gizmo = new Gizmo();
gizmo.attach(viewer);
This repository contains an example in index.html.
npm install
npm run dev
For the built, production version
npm run build
npm run eslint
- Lint this projectnpm run prettier
- Format all the code to a consistent stylenpm run prettier-check
- Check the format of code but do not change itnpm run dev
- Starts the Vite development server server atlocalhost:5173
npm run build
- Runs the Vite production build