MCPcopy
hub / github.com/adobe-webplatform/Snap.svg / getW

Function getW

demos/snap-ad/site/js/main.js:2054–2063  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

2052 defs.appendChild(mgr);
2053 }
2054 function getW(val) {
2055 if (val == null) {
2056 return E;
2057 }
2058 if (val == +val) {
2059 return val;
2060 }
2061 $(mgr, {width: val});
2062 return mgr.getBBox().width;
2063 }
2064 function getH(val) {
2065 if (val == null) {
2066 return E;

Callers

nothing calls this directly

Calls 1

$Function · 0.70

Tested by

no test coverage detected