Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@geoblocks/cesium-compass

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geoblocks/cesium-compass

  • 0.5.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
461
increased by24.93%
Maintainers
0
Weekly downloads
 
Created
Source

compass widget for CesiumJS

Note: the code is based on the Compass class from TerriaJS

Installation

npm i --save @geoblocks/cesium-compass

Usage

 <cesium-compass .scene="${viewer.scene}" .clock="${viewer.clock}"></cesium-compass>

API

Properties/Attributes

NameTypeDefaultDescription
sceneCesium.SceneA Cesium Scene instance
clockCesium.ClockA Cesium Clock instance
resetSpeednumberMath.PI/100The speed of the reset to north animation in radians / milliseconds.

CSS Custom Properties

NameDefaultDescription
--cesium-compass-stroke-colorrgba(0, 0, 0, 0.6)Stroke color
--cesium-compass-fill-colorrgb(224, 225, 226)Fill color

FAQs

Package last updated on 03 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc