@minofrk/xelto-diagram-canvas
Version:
An implementation of <xelto-diagram> in TypeScript.
19 lines • 458 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const source = {
x: 24,
y: 16,
};
function getScales(destination) {
return {
x: destination.x / source.x,
y: destination.y / source.y,
};
}
exports.getScales = getScales;
function getMaxScale(destination) {
const { x, y } = getScales(destination);
return Math.max(x, y);
}
exports.getMaxScale = getMaxScale;
//# sourceMappingURL=scale.js.map