How to use victory-create-container - 1 common examples

To help you get started, we’ve selected a few victory-create-container examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github FormidableLabs / victory-native / lib / helpers / create-container.js View on Github external
} from "victory-brush-container/es";
import {
  cursorContainerMixin as cursorContainerMixinOriginal
} from "victory-cursor-container/es";
import { makeCreateContainerFunction } from "victory-create-container/es";

import { VictoryContainer } from "../index";

// load directly, as "../index" would cause a circular dep
import { zoomContainerMixin } from "../components/victory-zoom-container";
import { voronoiContainerMixin } from "../components/victory-voronoi-container";
import { selectionContainerMixin } from "../components/victory-selection-container";
import { brushContainerMixin } from "../components/victory-brush-container";
import { cursorContainerMixin } from "../components/victory-cursor-container";

export const createContainer = makeCreateContainerFunction({
  zoom: [zoomContainerMixinOriginal, zoomContainerMixin],
  voronoi: [voronoiContainerMixinOriginal, voronoiContainerMixin],
  selection: [selectionContainerMixinOriginal, selectionContainerMixin],
  brush: [brushContainerMixinOriginal, brushContainerMixin],
  cursor: [cursorContainerMixinOriginal, cursorContainerMixin]
}, VictoryContainer);

export default createContainer;

victory-create-container

Container Helper for Victory

MIT
Latest version published 10 days ago

Package Health Score

98 / 100
Full package analysis

Popular victory-create-container functions