ddan-js 2.8.9 → 2.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -334,6 +334,11 @@ declare const dHook: {
334
334
  pipe: (func: import("./typings").Ddan.Function, callback?: ((result: import("./typings").Ddan.SafeResult<any>) => void) | undefined) => import("./modules/hook/modules/pipeline").default;
335
335
  pipeline: (max?: number) => import("./modules/hook/modules/pipeline").default;
336
336
  safeTask: (func: import("./typings").Ddan.Function, callback?: ((result: import("./typings").Ddan.SafeResult<any>) => void) | undefined) => import("./modules/hook/modules/safeTask").default;
337
+ bezier1: (p0: import("./typings").Ddan.IPoint, p1: import("./typings").Ddan.IPoint, t: number) => import("./typings").Ddan.IPoint;
338
+ bezier2: (p0: import("./typings").Ddan.IPoint, p1: import("./typings").Ddan.IPoint, p2: import("./typings").Ddan.IPoint, t: number) => import("./typings").Ddan.IPoint;
339
+ bezier3: (p0: import("./typings").Ddan.IPoint, p1: import("./typings").Ddan.IPoint, p2: import("./typings").Ddan.IPoint, p3: import("./typings").Ddan.IPoint, t: number) => import("./typings").Ddan.IPoint;
340
+ bezier: (points: import("./typings").Ddan.IPoint[], t: number) => import("./typings").Ddan.IPoint;
341
+ bezierCurve: (points: import("./typings").Ddan.IPoint[], t: number) => import("./typings").Ddan.IPoint;
337
342
  logString: (data: any) => string;
338
343
  logParse: (logStr: string) => string;
339
344
  logRString: (data: any) => Promise<string>;
@@ -721,6 +726,11 @@ declare const _default: {
721
726
  pipe: (func: import("./typings").Ddan.Function, callback?: ((result: import("./typings").Ddan.SafeResult<any>) => void) | undefined) => import("./modules/hook/modules/pipeline").default;
722
727
  pipeline: (max?: number) => import("./modules/hook/modules/pipeline").default;
723
728
  safeTask: (func: import("./typings").Ddan.Function, callback?: ((result: import("./typings").Ddan.SafeResult<any>) => void) | undefined) => import("./modules/hook/modules/safeTask").default;
729
+ bezier1: (p0: import("./typings").Ddan.IPoint, p1: import("./typings").Ddan.IPoint, t: number) => import("./typings").Ddan.IPoint;
730
+ bezier2: (p0: import("./typings").Ddan.IPoint, p1: import("./typings").Ddan.IPoint, p2: import("./typings").Ddan.IPoint, t: number) => import("./typings").Ddan.IPoint;
731
+ bezier3: (p0: import("./typings").Ddan.IPoint, p1: import("./typings").Ddan.IPoint, p2: import("./typings").Ddan.IPoint, p3: import("./typings").Ddan.IPoint, t: number) => import("./typings").Ddan.IPoint;
732
+ bezier: (points: import("./typings").Ddan.IPoint[], t: number) => import("./typings").Ddan.IPoint;
733
+ bezierCurve: (points: import("./typings").Ddan.IPoint[], t: number) => import("./typings").Ddan.IPoint;
724
734
  logString: (data: any) => string;
725
735
  logParse: (logStr: string) => string;
726
736
  logRString: (data: any) => Promise<string>;
@@ -25,6 +25,11 @@ declare const _default: {
25
25
  pipe: (func: Ddan.Function, callback?: ((result: Ddan.SafeResult<any>) => void) | undefined) => DPipeline;
26
26
  pipeline: (max?: number) => DPipeline;
27
27
  safeTask: (func: Ddan.Function, callback?: ((result: Ddan.SafeResult<any>) => void) | undefined) => DSafeTask;
28
+ bezier1: (p0: Ddan.IPoint, p1: Ddan.IPoint, t: number) => Ddan.IPoint;
29
+ bezier2: (p0: Ddan.IPoint, p1: Ddan.IPoint, p2: Ddan.IPoint, t: number) => Ddan.IPoint;
30
+ bezier3: (p0: Ddan.IPoint, p1: Ddan.IPoint, p2: Ddan.IPoint, p3: Ddan.IPoint, t: number) => Ddan.IPoint;
31
+ bezier: (points: Ddan.IPoint[], t: number) => Ddan.IPoint;
32
+ bezierCurve: (points: Ddan.IPoint[], t: number) => Ddan.IPoint;
28
33
  logString: (data: any) => string;
29
34
  logParse: (logStr: string) => string;
30
35
  logRString: (data: any) => Promise<string>;
@@ -0,0 +1,9 @@
1
+ import { Ddan } from '../../../typings';
2
+ declare const _default: {
3
+ bezier1: (p0: Ddan.IPoint, p1: Ddan.IPoint, t: number) => Ddan.IPoint;
4
+ bezier2: (p0: Ddan.IPoint, p1: Ddan.IPoint, p2: Ddan.IPoint, t: number) => Ddan.IPoint;
5
+ bezier3: (p0: Ddan.IPoint, p1: Ddan.IPoint, p2: Ddan.IPoint, p3: Ddan.IPoint, t: number) => Ddan.IPoint;
6
+ bezier: (points: Ddan.IPoint[], t: number) => Ddan.IPoint;
7
+ bezierCurve: (points: Ddan.IPoint[], t: number) => Ddan.IPoint;
8
+ };
9
+ export default _default;
@@ -4,6 +4,10 @@ export declare namespace Ddan {
4
4
  key: string;
5
5
  value: T;
6
6
  }
7
+ interface IPoint {
8
+ x: number;
9
+ y: number;
10
+ }
7
11
  type KeyValue<T = any> = Required<IKeyValuePart<T>>;
8
12
  type Function = (...args: any[]) => void;
9
13
  type PFunction<T = any> = Promise<T> | Function;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddan-js",
3
- "version": "2.8.9",
3
+ "version": "2.8.11",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "ddan-js",
@@ -19,6 +19,7 @@
19
19
  ],
20
20
  "main": "bin/ddan-js.js",
21
21
  "module": "bin/ddan-js.esm.js",
22
+ "browser": "bin/ddan-js.browser.js",
22
23
  "typings": "bin/types/index.d.ts",
23
24
  "files": [
24
25
  "bin"