victory-native
Version:
A charting library for React Native with a focus on performance and customization.
14 lines (13 loc) • 424 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resetChartPressState = void 0;
const resetChartPressState = (state) => {
state.isActive.value = false;
state.matchedIndex.value = -1;
state.yIndex.value = -1;
state.x.position.value = 0;
for (const key in state.y) {
state.y[key].position.value = 0;
}
};
exports.resetChartPressState = resetChartPressState;