MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / width

Method width

src/mapml-viewer.js:73–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 this.setAttribute('controlslist', value);
72 }
73 get width() {
74 return +window.getComputedStyle(this).width.replace('px', '');
75 }
76 set width(val) {
77 //img.height or img.width setters change or add the corresponding attributes
78 this.setAttribute('width', val);

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.80
setAttributeMethod · 0.80

Tested by

no test coverage detected