Skip to content

Commit

Permalink
fix failed build in min bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
mggower committed Sep 20, 2023
1 parent cb9394e commit 141a46c
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 105 deletions.
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@
"ts-loader": "^6.2.2",
"typescript": "^5.2.2"
},
"keywords": [
"graph",
"network",
"infovis",
"visualization",
"react",
"webgl"
],
"keywords": ["graph", "network", "infovis", "visualization", "react", "webgl"],
"peerDependencies": {
"react": ">=16.0"
},
Expand Down
45 changes: 0 additions & 45 deletions src/bindings/index.ts

This file was deleted.

94 changes: 91 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,92 @@
export * from './trellis'
export * from './layout'
export * from './renderers'
export * from './bindings'

// layout
export { default as Cluster } from './layout/cluster'
export { default as Collide } from './layout/collide'
export { default as Components } from './layout/components'
export { default as Fisheye } from './layout/fisheye'
export { default as Force } from './layout/force'
export { default as Hierarchy } from './layout/hierarchy'
export { default as Radial } from './layout/radial'

import type { Options as CollideOptions } from './layout/collide'
import type { Options as ComponentsOptions } from './layout/components'
import type { Options as ForceOptions } from './layout/force'
import type { Options as HierarchyOptions } from './layout/hierarchy'
import type { Options as RadialOptions } from './layout/radial'

export type { CollideOptions, ComponentsOptions, ForceOptions, HierarchyOptions, RadialOptions }

// renderers
export { default as ImageRenderer, BlobRenderer } from './renderers/image'
export { default as Renderer } from './renderers/webgl'

import type { Options as ImageOptions } from './renderers/image'
import type {
NodePointerEvent,
NodeDragEvent,
EdgePointerEvent,
AnnotationPointerEvent,
AnnotationResizeEvent,
AnnotationDragEvent,
AnnotationResizePointerEvent,
ViewportPointerEvent,
ViewportDragEvent,
ViewportDragDecelerateEvent,
ViewportWheelEvent,
Options as RendererOptions
} from './renderers/webgl'

export type {
ImageOptions,
NodePointerEvent,
NodeDragEvent,
EdgePointerEvent,
AnnotationPointerEvent,
AnnotationResizeEvent,
AnnotationDragEvent,
AnnotationResizePointerEvent,
ViewportPointerEvent,
ViewportDragEvent,
ViewportDragDecelerateEvent,
ViewportWheelEvent,
RendererOptions
}

// bindings
export { default as Download } from './bindings/native/download'
export { default as Selection } from './bindings/native/selection'
export { default as Zoom } from './bindings/native/zoom'
export { default as ReactButton } from './bindings/react/button'
export { default as ReactButtonGroup } from './bindings/react/buttonGroup'
export { default as ReactRenderer } from './bindings/react/renderer'
export { default as ReactSelection } from './bindings/react/selection'
export { default as ReactZoom } from './bindings/react/zoom'

import type { Options as DownloadOptions } from './bindings/native/download'
import type { Options as ZoomOptions, ViewportChangeOptions } from './bindings/native/zoom'
import type { Options as SelectionOptions, SelectionChangeEvent } from './bindings/native/selection'
import type { Props as ButtonProps } from './bindings/react/button'
import type { Props as ButtonGroupProps } from './bindings/react/buttonGroup'
import type { Props as RendererProps } from './bindings/react/renderer'
import type { Props as ZoomProps } from './bindings/react/zoom'
import type {
Props as SelectionProps,
ChildProps as SelectionChildProps,
SelectionChangeEvent as ReactSelectionChangeEvent
} from './bindings/react/selection'

export type {
DownloadOptions,
SelectionOptions,
ZoomOptions,
ViewportChangeOptions,
SelectionChangeEvent,
ButtonProps,
ButtonGroupProps,
RendererProps,
SelectionProps,
SelectionChildProps,
ZoomProps,
ReactSelectionChangeEvent
}
15 changes: 0 additions & 15 deletions src/layout/index.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/renderers/index.ts

This file was deleted.

0 comments on commit 141a46c

Please sign in to comment.