Skip to content

Commit

Permalink
fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
KenanYusuf committed Jan 23, 2024
1 parent 25ce4b0 commit 5dc181a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { defaults, isFunction } from "lodash";
import ZoomHelpers from "./zoom-helpers";
import { ZoomHelpers } from "./zoom-helpers";
import {
VictoryContainer,
VictoryClipContainer,
Expand Down
6 changes: 2 additions & 4 deletions packages/victory-zoom-container/src/zoom-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Children } from "react";
import { Selection, Collection, Wrapper } from "victory-core";
import { throttle, isFunction, defaults, delay } from "lodash";

const RawZoomHelpers = {
export const RawZoomHelpers = {
checkDomainEquality(a, b) {
const checkDimension = (dim) => {
const val1 = a && a[dim];
Expand Down Expand Up @@ -361,9 +361,7 @@ const RawZoomHelpers = {
},
};

export { RawZoomHelpers }; // allow victory-native to extend these helpers

export default {
export const ZoomHelpers = {
checkDomainEquality: RawZoomHelpers.checkDomainEquality.bind(RawZoomHelpers),
onMouseDown: RawZoomHelpers.onMouseDown.bind(RawZoomHelpers),
onMouseUp: RawZoomHelpers.onMouseUp.bind(RawZoomHelpers),
Expand Down

0 comments on commit 5dc181a

Please sign in to comment.