1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.getShapeType = void 0;
|
4 | var util_1 = require("util");
|
5 | /**
|
6 | * @ignore
|
7 | * 从图形数据中获取 shape 类型
|
8 | * @param shapeCfg
|
9 | * @param defaultShapeType
|
10 | * @returns
|
11 | */
|
12 | function getShapeType(shapeCfg, defaultShapeType) {
|
13 | var shapeType = defaultShapeType;
|
14 | if (shapeCfg.shape) {
|
15 | shapeType = (0, util_1.isArray)(shapeCfg.shape) ? shapeCfg.shape[0] : shapeCfg.shape;
|
16 | }
|
17 | return shapeType;
|
18 | }
|
19 | exports.getShapeType = getShapeType;
|
20 | //# sourceMappingURL=get-shape-type.js.map |
\ | No newline at end of file |