UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

17 lines (16 loc) 557 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateAxisIds = void 0; /** @ignore */ function updateAxisIds(item) { var _a, _b; if (!item.parentSurface) return; if (!item.xAxisId) { item.xAxisId = (_a = item.parentSurface.getDefaultXAxis()) === null || _a === void 0 ? void 0 : _a.id; } if (!item.yAxisId) { item.yAxisId = (_b = item.parentSurface.getDefaultYAxis()) === null || _b === void 0 ? void 0 : _b.id; } } exports.updateAxisIds = updateAxisIds;