Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
chore: include build files
Browse files Browse the repository at this point in the history
  • Loading branch information
winetree94 committed Feb 27, 2022
1 parent 758de8b commit d502c41
Show file tree
Hide file tree
Showing 36 changed files with 794 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
node_modules
dist
build
.DS_Store
temp
3 changes: 3 additions & 0 deletions build/main-browser.d.ts
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
1 change: 1 addition & 0 deletions build/main-browser.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions build/main-browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/main-browser.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions build/main.d.ts
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
1 change: 1 addition & 0 deletions build/main.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions build/vertor-optimizer/cubic-bezier.d.ts
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
1 change: 1 addition & 0 deletions build/vertor-optimizer/cubic-bezier.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions build/vertor-optimizer/cubic-bezier.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/vertor-optimizer/cubic-bezier.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions build/vertor-optimizer/curve-fit-base.d.ts
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
1 change: 1 addition & 0 deletions build/vertor-optimizer/curve-fit-base.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d502c41

Please sign in to comment.