UNPKG

@antv/g6

Version:

A Graph Visualization Framework in JavaScript

17 lines 502 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseSize = parseSize; /** * <zh/> 解析尺寸配置 * * <en/> Parse size configuration * @param size - <zh/> 尺寸配置 | <en/> size configuration * @returns <zh/> 标准尺寸格式 | <en/> standard size format */ function parseSize(size = 0) { if (typeof size === 'number') return [size, size, size]; const [x, y = x, z = x] = size; return [x, y, z]; } //# sourceMappingURL=size.js.map