Files
lan-manager/web/node_modules/@antv/dom-util/esm/get-outer-width.js
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

13 lines
672 B
JavaScript

import getStyle from './get-style';
import getWidth from './get-width';
export default function getOuterWidth(el, defaultValue) {
var width = getWidth(el, defaultValue);
var bLeft = parseFloat(getStyle(el, 'borderLeftWidth')) || 0;
var pLeft = parseFloat(getStyle(el, 'paddingLeft')) || 0;
var pRight = parseFloat(getStyle(el, 'paddingRight')) || 0;
var bRight = parseFloat(getStyle(el, 'borderRightWidth')) || 0;
var mRight = parseFloat(getStyle(el, 'marginRight')) || 0;
var mLeft = parseFloat(getStyle(el, 'marginLeft')) || 0;
return width + bLeft + bRight + pLeft + pRight + mLeft + mRight;
}
//# sourceMappingURL=get-outer-width.js.map