-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
node_modules | ||
dist | ||
build | ||
.DS_Store | ||
temp |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import * as VectorOptimizer from './main'; | ||
export = VectorOptimizer; | ||
//# sourceMappingURL=main-browser.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export * from './vertor-optimizer/cubic-bezier'; | ||
export * from './vertor-optimizer/curve-fit-base'; | ||
export * from './vertor-optimizer/curve-fit'; | ||
export * from './vertor-optimizer/curve-preprocess'; | ||
export * from './vertor-optimizer/vector'; | ||
//# sourceMappingURL=main.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Point, Vector } from './vector'; | ||
export declare class CubicBezier { | ||
readonly p0: Vector; | ||
readonly p1: Vector; | ||
readonly p2: Vector; | ||
readonly p3: Vector; | ||
static from(cubicBezierLike: { | ||
p0: Point; | ||
p1: Point; | ||
p2: Point; | ||
p3: Point; | ||
}): CubicBezier; | ||
constructor(p0: Vector, p1: Vector, p2: Vector, p3: Vector); | ||
sample(t: number): Vector; | ||
} | ||
//# sourceMappingURL=cubic-bezier.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { CubicBezier } from './cubic-bezier'; | ||
import { Vector } from './vector'; | ||
export declare class CurveFitBase { | ||
_pts: ReadonlyArray<Vector>; | ||
_arclen: ReadonlyArray<number>; | ||
protected _u: number[]; | ||
protected _squaredError: number; | ||
protected fitCurve(first: number, last: number, tanL: Vector, tanR: Vector, curve: CubicBezier, split: number): { | ||
response: boolean; | ||
split: number; | ||
curve: CubicBezier; | ||
}; | ||
protected findMaxSquaredError(first: number, last: number, curve?: CubicBezier, split?: number): { | ||
response: number; | ||
split: number; | ||
}; | ||
protected generateBezier(first: number, last: number, tanL: Vector, tanR: Vector): CubicBezier; | ||
protected reparameterize(first: number, last: number, curve: CubicBezier): void; | ||
protected arcLengthParamaterize(first: number, last: number): void; | ||
protected getLeftTangent(last: number): Vector; | ||
protected getRightTangent(first: number): Vector; | ||
protected getCenterTangent(first: number, last: number, split: number): Vector; | ||
} | ||
//# sourceMappingURL=curve-fit-base.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.