- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
16 lines
899 B
JavaScript
16 lines
899 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var get_style_1 = require("./get-style");
|
|
var get_height_1 = require("./get-height");
|
|
function getOuterHeight(el, defaultValue) {
|
|
var height = (0, get_height_1.default)(el, defaultValue);
|
|
var bTop = parseFloat((0, get_style_1.default)(el, 'borderTopWidth')) || 0;
|
|
var pTop = parseFloat((0, get_style_1.default)(el, 'paddingTop')) || 0;
|
|
var pBottom = parseFloat((0, get_style_1.default)(el, 'paddingBottom')) || 0;
|
|
var bBottom = parseFloat((0, get_style_1.default)(el, 'borderBottomWidth')) || 0;
|
|
var mTop = parseFloat((0, get_style_1.default)(el, 'marginTop')) || 0;
|
|
var mBottom = parseFloat((0, get_style_1.default)(el, 'marginBottom')) || 0;
|
|
return height + bTop + bBottom + pTop + pBottom + mTop + mBottom;
|
|
}
|
|
exports.default = getOuterHeight;
|
|
//# sourceMappingURL=get-outer-height.js.map
|