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

Function parseOverlap

docs/tests/v2/es6/js/sanddance.js:136015–136040  ·  view source on GitHub ↗
(overlap, source, scope)

Source from the content-addressed store, hash-verified

136013}
136014
136015function parseOverlap(overlap, source, scope) {
136016 var method = overlap.method,
136017 bound = overlap.bound,
136018 sep = overlap.separation,
136019 tol;
136020 var params = {
136021 separation: (0, _util.isSignal)(sep) ? scope.signalRef(sep.signal) : sep,
136022 method: (0, _util.isSignal)(method) ? scope.signalRef(method.signal) : method,
136023 pulse: source
136024 };
136025
136026 if (overlap.order) {
136027 params.sort = scope.compareRef({
136028 field: overlap.order
136029 });
136030 }
136031
136032 if (bound) {
136033 tol = bound.tolerance;
136034 params.boundTolerance = (0, _util.isSignal)(tol) ? scope.signalRef(tol.signal) : +tol;
136035 params.boundScale = scope.scaleRef(bound.scale);
136036 params.boundOrient = bound.orient;
136037 }
136038
136039 return (0, _util.ref)(scope.add((0, _transforms.Overlap)(params)));
136040}
136041},{"./marks/clip":"xNu9","./marks/definition":"oQiN","./marks/interactive":"LrWd","./marks/data":"DIX1","./marks/facet":"TcQm","./marks/subflow":"LYbm","./marks/role":"nWcy","./marks/marktypes":"M2D5","./marks/roles":"UXRt","./encode/encode-util":"sfJ8","./transform":"v7J7","./trigger":"YeR3","./spec":"c8Qn","../DataScope":"rKjL","../util":"bnG3","vega-util":"d61Z","../transforms":"VbKC"}],"VuhQ":[function(require,module,exports) {
136042"use strict";
136043

Callers 1

_defaultFunction · 0.70

Calls 1

addMethod · 0.45

Tested by

no test coverage detected