Skip to content

Commit

Permalink
Separate out enums and constants from other types in lib export
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Aug 18, 2023
1 parent 8f917f2 commit 16f01ee
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions packages/lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,30 +124,20 @@ export {
useInteraction,
useModifierKeyPressed,
} from './interactions/hooks';
export { MouseButton } from './interactions/models';
export { getModifierKeyArray } from './interactions/utils';
export { default as Box } from './interactions/box';

// Constants
export { COLOR_SCALE_TYPES, AXIS_SCALE_TYPES } from '@h5web/shared';

// Models
export { INTERPOLATORS } from './vis/heatmap/interpolators';

// Enums
export { ScaleType } from '@h5web/shared';
export { CurveType, GlyphType } from './vis/line/models';
export { ImageType } from './vis/rgb/models';
export { Notation } from './vis/matrix/models';
export { MouseButton } from './interactions/models';

export type {
ModifierKey,
Rect,
Selection,
CanvasEvent,
CanvasEventCallbacks,
InteractionInfo,
InteractionEntry,
CommonInteractionProps,
} from './interactions/models';

// Models
export type {
Domain,
VisibleDomains,
Expand Down Expand Up @@ -176,6 +166,17 @@ export type {
export type { D3Interpolator, ColorMap } from './vis/heatmap/models';
export type { ScatterAxisParams } from './vis/scatter/models';

export type {
ModifierKey,
Rect,
Selection,
CanvasEvent,
CanvasEventCallbacks,
InteractionInfo,
InteractionConfig,
CommonInteractionProps,
} from './interactions/models';

// Mock data and utilities
export {
mockMetadata,
Expand Down

0 comments on commit 16f01ee

Please sign in to comment.