Skip to content

Commit

Permalink
feat: export segment
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Mar 18, 2020
1 parent 8d3a1e4 commit f3f14a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/x6/src/geometry/path/index.ts
@@ -1 +1,2 @@
export * from './path'
export * from './segment'
6 changes: 3 additions & 3 deletions packages/x6/src/geometry/path/path.ts
Expand Up @@ -368,7 +368,7 @@ export class Path {
return lastVisibleIndex
}

protected getSegmentSubdivisions(options: Path.Options = {}): Segment[][] {
getSegmentSubdivisions(options: Path.Options = {}): Segment[][] {
const precision = this.getPrecision(options)
const segmentSubdivisions = []
for (let i = 0, ii = this.segments.length; i < ii; i += 1) {
Expand Down Expand Up @@ -1088,8 +1088,8 @@ export class Path {

export namespace Path {
export interface Options {
precision?: number
segmentSubdivisions?: Segment[][]
precision?: number | null
segmentSubdivisions?: Segment[][] | null
}
}
export namespace Path {
Expand Down

0 comments on commit f3f14a2

Please sign in to comment.