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

Function baseBitmaps

docs/app/js/sanddance-app.js:138623–138630  ·  view source on GitHub ↗
($, data)

Source from the content-addressed store, hash-verified

138621const INSIDE_OPACITY_IN_ALPHA = 0x10000000;
138622const INSIDE_OPACITY = 0.0625;
138623function baseBitmaps($, data) {
138624 const bitmap = $.bitmap(); // when there is no base mark but data points are to be avoided
138625 (data || []).forEach((d)=>bitmap.set($(d.boundary[0]), $(d.boundary[3])));
138626 return [
138627 bitmap,
138628 undefined
138629 ];
138630}
138631function markBitmaps($, avoidMarks, labelInside, isGroupArea) {
138632 // create canvas
138633 const width = $.width, height = $.height, border = labelInside || isGroupArea, context = (0, _vegaCanvas.canvas)(width, height).getContext("2d"); // render all marks to be avoided into canvas

Callers 1

labelLayoutFunction · 0.70

Calls 3

$Function · 0.70
forEachMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected