MCPcopy Index your code
hub / github.com/microsoft/SandDance / getOffsets

Function getOffsets

docs/app/js/sanddance-app.js:139098–139103  ·  view source on GitHub ↗
(_, count)

Source from the content-addressed store, hash-verified

139096 return data;
139097}
139098function getOffsets(_, count) {
139099 const offsets = new Float64Array(count), n = _.length;
139100 for(let i10 = 0; i10 < n; ++i10)offsets[i10] = _[i10] || 0;
139101 for(let i9 = n; i9 < count; ++i9)offsets[i9] = offsets[n - 1];
139102 return offsets;
139103}
139104function getAnchors(_, count) {
139105 const anchors = new Int8Array(count), n = _.length;
139106 for(let i12 = 0; i12 < n; ++i12)anchors[i12] |= anchorCode[_[i12]];

Callers 1

labelLayoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected