UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

9 lines 415 B
import { NumberExt } from '../../common'; import { Point } from '../../geometry'; export function normalizePoint(bbox, args = {}) { return new Point(NumberExt.normalizePercentage(args.x, bbox.width), NumberExt.normalizePercentage(args.y, bbox.height)); } export function toResult(point, angle, rawArgs) { return Object.assign({ angle, position: point.toJSON() }, rawArgs); } //# sourceMappingURL=util.js.map