UNPKG

victory-native

Version:

A charting library for React Native with a focus on performance and customization.

12 lines (11 loc) 863 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveCandlestickPathOptions = void 0; const resolveCandlestickPathOptions = ({ color, wickStrokeWidth, options, }) => { var _a, _b, _c, _d, _e, _f; return ({ bodyOptions: Object.assign(Object.assign({}, options.body), { color: (_b = (_a = options.body) === null || _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : color }), wickOptions: Object.assign(Object.assign({}, options.wick), { color: (_d = (_c = options.wick) === null || _c === void 0 ? void 0 : _c.color) !== null && _d !== void 0 ? _d : color, strokeWidth: (_f = (_e = options.wick) === null || _e === void 0 ? void 0 : _e.strokeWidth) !== null && _f !== void 0 ? _f : wickStrokeWidth }), }); }; exports.resolveCandlestickPathOptions = resolveCandlestickPathOptions;