MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / getElementIdProperty

Function getElementIdProperty

src/pages/Workspace/index.jsx:392–395  ·  view source on GitHub ↗
(elementId, name)

Source from the content-addressed store, hash-verified

390 });
391 }
392 function getElementIdProperty(elementId, name) {
393 // 根据元素id 获取对应style中的值
394 return Number(document.getElementById(elementId).style[name].split('px')[0])
395 }
396 function cannelSelect() {
397 // 取消选中
398 setCurrent({ type: 'blur' });

Callers 2

zoomChangeFunction · 0.85
iframeMoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected