UNPKG

@visactor/vrender-components

Version:

components library for dp visualization

18 lines (13 loc) 896 B
import { InteractiveSubRenderContribution, AutoEnablePlugins, ContainerModule, container } from "@visactor/vrender-core"; import { PopTipRenderContribution } from "./contribution"; import { PopTipPlugin, PopTipForClipedTextPlugin } from "./poptip-plugin"; export const popTipModule = new ContainerModule(((bind, unbind, isBound, rebind) => { isBound(PopTipRenderContribution) || (bind(PopTipRenderContribution).toSelf().inSingletonScope(), bind(InteractiveSubRenderContribution).toService(PopTipRenderContribution)), isBound(PopTipPlugin) || (bind(PopTipPlugin).toSelf(), bind(AutoEnablePlugins).toService(PopTipPlugin)), isBound(PopTipForClipedTextPlugin) || (bind(PopTipForClipedTextPlugin).toSelf(), bind(AutoEnablePlugins).toService(PopTipForClipedTextPlugin)); })); export function loadPoptip() { container.load(popTipModule); } //# sourceMappingURL=module.js.map