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

Function dependency

docs/app/js/sanddance-app.js:131586–131590  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

131584 return f;
131585} // check if function depends on individual pixel data
131586function dependency(f) {
131587 if (!(0, _vegaUtil.isFunction)(f)) return false;
131588 const set3 = (0, _vegaUtil.toSet)((0, _vegaUtil.accessorFields)(f));
131589 return set3.$x || set3.$y || set3.$value || set3.$max;
131590} // render raster grid to canvas
131591function toCanvas(grid, obj, color, opacity) {
131592 const n = grid.width, m = grid.height, x1 = grid.x1 || 0, y1 = grid.y1 || 0, x2 = grid.x2 || n, y2 = grid.y2 || m, val = grid.values, value = val ? (i)=>val[i] : (0, _vegaUtil.zero), can = (0, _vegaCanvas.canvas)(x2 - x1, y2 - y1), ctx = can.getContext("2d"), img = ctx.getImageData(0, 0, x2 - x1, y2 - y1), pix = img.data;
131593 for(let j = y1, k = 0; j < y2; ++j){

Callers 2

color_Function · 0.70
opacity_Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected