MCPcopy Create free account
hub / github.com/breck7/scroll / defaultExtent

Function defaultExtent

external/.d3.js:19620–19631  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19618}
19619
19620function defaultExtent() {
19621 var e = this;
19622 if (e instanceof SVGElement) {
19623 e = e.ownerSVGElement || e;
19624 if (e.hasAttribute("viewBox")) {
19625 e = e.viewBox.baseVal;
19626 return [[e.x, e.y], [e.x + e.width, e.y + e.height]];
19627 }
19628 return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];
19629 }
19630 return [[0, 0], [e.clientWidth, e.clientHeight]];
19631}
19632
19633function defaultTransform() {
19634 return this.__zoom || identity;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected