UNPKG

victory-native

Version:

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

16 lines (15 loc) 594 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPieLayout = void 0; const react_native_skia_1 = require("@shopify/react-native-skia"); const computePieLayout_1 = require("./computePieLayout"); function getPieLayout({ canvasSize, size, }) { const { centerX, centerY, radius, layoutWidth, layoutHeight } = (0, computePieLayout_1.computePieLayout)({ canvasSize, size }); return { center: (0, react_native_skia_1.vec)(centerX, centerY), radius, layoutWidth, layoutHeight, }; } exports.getPieLayout = getPieLayout;