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

Function box

docs/app/js/sanddance-app.js:8626–8638  ·  view source on GitHub ↗
(gx, gy, height, width, stroke, strokeWidth, diagonals = false)

Source from the content-addressed store, hash-verified

8624 return line;
8625}
8626function box(gx, gy, height, width, stroke, strokeWidth, diagonals = false) {
8627 const lines = [
8628 styledLine(gx, gy, gx + width, gy, stroke, strokeWidth),
8629 styledLine(gx + width, gy, gx + width, gy + height, stroke, strokeWidth),
8630 styledLine(gx + width, gy + height, gx, gy + height, stroke, strokeWidth),
8631 styledLine(gx, gy + height, gx, gy, stroke, strokeWidth)
8632 ];
8633 if (diagonals) {
8634 lines.push(styledLine(gx, gy, gx + width, gy + height, stroke, strokeWidth));
8635 lines.push(styledLine(gx, gy + height, gx + width, gy, stroke, strokeWidth));
8636 }
8637 return lines;
8638}
8639exports.default = markStager;
8640
8641},{"../base":"9SeSX","../color":"3W8ci","../defaults":"lNLF5","../zaxis":"1Ecln","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"1Ecln":[function(require,module,exports) {

Callers

nothing calls this directly

Calls 1

styledLineFunction · 0.70

Tested by

no test coverage detected