MCPcopy Create free account
hub / github.com/microsoft/SandDance / convertAngle

Function convertAngle

packages/vega-deck.gl/src/marks/text.ts:68–73  ·  view source on GitHub ↗
(vegaTextAngle: number)

Source from the content-addressed store, hash-verified

66};
67
68function convertAngle(vegaTextAngle: number) {
69 if (vegaTextAngle && !isNaN(vegaTextAngle)) {
70 return 360 - vegaTextAngle;
71 }
72 return 0;
73}
74
75function convertAlignment(textAlign: SceneTextAlign): TextAnchor {
76 switch (textAlign) {

Callers 1

markStagerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected