Skip to content

Commit

Permalink
Fix speling and export layouts (#26)
Browse files Browse the repository at this point in the history
* Fix speling and export layouts

* one more
  • Loading branch information
sroussey authored Feb 5, 2024
1 parent fa3a046 commit 83e210e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ export {
useGraphApi,
} from './context/GraphContext'
export { LayoutEngine } from './layout/layout.ts'
export { DagreLayoutEngine } from './layout/dagre.ts'
export {
PipelineLayoutEngine,
PipelineCenteredLayoutEngine,
} from './layout/pipeline.ts'
4 changes: 2 additions & 2 deletions lib/layout/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function computeLayout(
})
}

export class PiplineLayoutEngine extends LayoutEngine {
export class PipelineLayoutEngine extends LayoutEngine {
name() {
return 'pipeline'
}
Expand All @@ -181,7 +181,7 @@ export class PiplineLayoutEngine extends LayoutEngine {
}
}

export class PiplineCenteredLayoutEngine extends LayoutEngine {
export class PipelineCenteredLayoutEngine extends LayoutEngine {
name() {
return 'pipeline.centered'
}
Expand Down
6 changes: 3 additions & 3 deletions lib/stories/NodeGraphEditorLayout.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { NodeGraphHandle } from '../NodeGraphEditor'
import { Meta, StoryObj } from '@storybook/react'
import { useRef } from 'react'
import { DagreLayoutEngine } from '../layout/dagre'
import { PiplineCenteredLayoutEngine, PiplineLayoutEngine } from '../layout/pipeline'
import { PipelineCenteredLayoutEngine, PipelineLayoutEngine } from '../layout/pipeline'


const dagre = new DagreLayoutEngine()
const pipelineCentered = new PiplineCenteredLayoutEngine()
const pipeline = new PiplineLayoutEngine()
const pipelineCentered = new PipelineCenteredLayoutEngine()
const pipeline = new PipelineLayoutEngine()


const meta = {
Expand Down

0 comments on commit 83e210e

Please sign in to comment.