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

Function viewBounds

docs/app/js/sanddance-app.js:123758–123758  ·  view source on GitHub ↗
(origin, width, height)

Source from the content-addressed store, hash-verified

123756}
123757const base$1 = Renderer.prototype;
123758const viewBounds = (origin, width, height)=>new Bounds().set(0, 0, width, height).translate(-origin[0], -origin[1]);
123759function clipToBounds(g, b18, origin) {
123760 // expand bounds by 1 pixel, then round to pixel boundaries
123761 b18.expand(1).round(); // align to base pixel grid in case of non-integer scaling (#2425)

Callers 1

_renderFunction · 0.70

Calls 2

translateMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected