UNPKG

@logicflow/vue-node-registry

Version:

LogicFlow Vue Component Node Registry

18 lines 617 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.computeBaseHeight = computeBaseHeight; exports.shouldUpdateSize = shouldUpdateSize; function computeBaseHeight(measuredHeight, _showTitle, _titleHeight) { var extra = _showTitle ? typeof _titleHeight === 'number' ? _titleHeight : 28 : 0; return Math.max(1, Math.round(measuredHeight) - extra); } function shouldUpdateSize(prevW, prevH, w, h) { if (!w || !h) return false; return !(prevW === Math.round(w) && prevH === Math.round(h)); } //# sourceMappingURL=size.js.map