@awayfl/awayfl-player 0.2.44 → 0.2.45
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.
- package/bundle/awayfl-player.umd.js +1 -1
- package/bundle/awayfl-player.umd.js.gz +0 -0
- package/bundle/awayfl-player.umd.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/Box2Dold/Common/b2Settings.d.ts +21 -21
- package/dist/lib/Box2Dold/Common/b2Settings.d.ts.map +1 -1
- package/index.ts +1 -1
- package/lib/Box2Dold/Common/b2Settings.ts +21 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BitmapImage2D, ImageUtils } from "@awayjs/stage";
|
|
2
|
-
console.debug("AwayFL-Player - 0.2.
|
|
2
|
+
console.debug("AwayFL-Player - 0.2.45");
|
|
3
3
|
export { AVMPlayer } from "./lib/AVMPlayer";
|
|
4
4
|
export { AVM1Player } from "./lib/AVM1Player";
|
|
5
5
|
export { AVM2Player } from "./lib/AVM2Player";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export declare class b2Settings {
|
|
2
|
-
static
|
|
3
|
-
static
|
|
4
|
-
static
|
|
5
|
-
static
|
|
6
|
-
static
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
static
|
|
14
|
-
static
|
|
15
|
-
static
|
|
16
|
-
static
|
|
17
|
-
static
|
|
18
|
-
static
|
|
19
|
-
static
|
|
20
|
-
static
|
|
21
|
-
static
|
|
22
|
-
static
|
|
2
|
+
static USHRT_MAX: number /** int */;
|
|
3
|
+
static b2_pi: number;
|
|
4
|
+
static b2_maxManifoldPoints: number /** int */;
|
|
5
|
+
static b2_maxPolygonVertices: number /** int */;
|
|
6
|
+
static b2_maxProxies: number /** int */;
|
|
7
|
+
static b2_maxPairs: number /** int */;
|
|
8
|
+
static b2_linearSlop: number;
|
|
9
|
+
static b2_angularSlop: number;
|
|
10
|
+
static b2_toiSlop: number;
|
|
11
|
+
static b2_maxTOIContactsPerIsland: number /** int */;
|
|
12
|
+
static b2_velocityThreshold: number;
|
|
13
|
+
static b2_maxLinearCorrection: number;
|
|
14
|
+
static b2_maxAngularCorrection: number;
|
|
15
|
+
static b2_maxLinearVelocity: number;
|
|
16
|
+
static b2_maxLinearVelocitySquared: number;
|
|
17
|
+
static b2_maxAngularVelocity: number;
|
|
18
|
+
static b2_maxAngularVelocitySquared: number;
|
|
19
|
+
static b2_contactBaumgarte: number;
|
|
20
|
+
static b2_timeToSleep: number;
|
|
21
|
+
static b2_linearSleepTolerance: number;
|
|
22
|
+
static b2_angularSleepTolerance: number;
|
|
23
23
|
static b2Assert(a: boolean): void;
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=b2Settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"b2Settings.d.ts","sourceRoot":"","sources":["../../../../lib/Box2Dold/Common/b2Settings.ts"],"names":[],"mappings":"AAoBA,qBAAa,UAAU;IAEtB,
|
|
1
|
+
{"version":3,"file":"b2Settings.d.ts","sourceRoot":"","sources":["../../../../lib/Box2Dold/Common/b2Settings.ts"],"names":[],"mappings":"AAoBA,qBAAa,UAAU;IAEtB,OAAc,SAAS,EAAE,MAAM,CAAC,UAAU,CAAc;IAExD,OAAc,KAAK,EAAE,MAAM,CAAW;IAGtC,OAAc,oBAAoB,EAAE,MAAM,CAAC,UAAU,CAAK;IAC1D,OAAc,qBAAqB,EAAE,MAAM,CAAC,UAAU,CAAK;IAC3D,OAAc,aAAa,EAAE,MAAM,CAAC,UAAU,CAAO;IACrD,OAAc,WAAW,EAAE,MAAM,CAAC,UAAU,CAAgC;IAM5E,OAAc,aAAa,EAAE,MAAM,CAAS;IAI5C,OAAc,cAAc,EAAE,MAAM,CAAkC;IAKtE,OAAc,UAAU,EAAE,MAAM,CAAkC;IAGlE,OAAc,0BAA0B,EAAE,MAAM,CAAC,UAAU,CAAM;IAIjE,OAAc,oBAAoB,EAAE,MAAM,CAAO;IAIjD,OAAc,sBAAsB,EAAE,MAAM,CAAO;IAInD,OAAc,uBAAuB,EAAE,MAAM,CAAkC;IAI/E,OAAc,oBAAoB,EAAE,MAAM,CAAS;IACnD,OAAc,2BAA2B,EAAE,MAAM,CAAqE;IAItH,OAAc,qBAAqB,EAAE,MAAM,CAAS;IACpD,OAAc,4BAA4B,EAAE,MAAM,CAAuE;IAKzH,OAAc,mBAAmB,EAAE,MAAM,CAAO;IAKhD,OAAc,cAAc,EAAE,MAAM,CAAO;IAE3C,OAAc,uBAAuB,EAAE,MAAM,CAAQ;IAErD,OAAc,wBAAwB,EAAE,MAAM,CAAe;WAG/C,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI;CAMxC"}
|
package/index.ts
CHANGED
|
@@ -20,69 +20,69 @@ import { b2Vec2 } from './Math';
|
|
|
20
20
|
|
|
21
21
|
export class b2Settings {
|
|
22
22
|
|
|
23
|
-
public static
|
|
23
|
+
public static USHRT_MAX: number /** int */ = 0x0000ffff;
|
|
24
24
|
|
|
25
|
-
public static
|
|
25
|
+
public static b2_pi: number = Math.PI;
|
|
26
26
|
|
|
27
27
|
// Collision
|
|
28
|
-
public static
|
|
29
|
-
public static
|
|
30
|
-
public static
|
|
31
|
-
public static
|
|
28
|
+
public static b2_maxManifoldPoints: number /** int */ = 2;
|
|
29
|
+
public static b2_maxPolygonVertices: number /** int */ = 8;
|
|
30
|
+
public static b2_maxProxies: number /** int */ = 512; // this must be a power of two
|
|
31
|
+
public static b2_maxPairs: number /** int */ = 8 * b2Settings.b2_maxProxies; // this must be a power of two
|
|
32
32
|
|
|
33
33
|
// Dynamics
|
|
34
34
|
|
|
35
35
|
/// A small length used as a collision and constraint tolerance. Usually it is
|
|
36
36
|
/// chosen to be numerically significant, but visually insignificant.
|
|
37
|
-
public static
|
|
37
|
+
public static b2_linearSlop: number = 0.005; // 0.5 cm
|
|
38
38
|
|
|
39
39
|
/// A small angle used as a collision and constraint tolerance. Usually it is
|
|
40
40
|
/// chosen to be numerically significant, but visually insignificant.
|
|
41
|
-
public static
|
|
41
|
+
public static b2_angularSlop: number = 2.0 / 180.0 * b2Settings.b2_pi; // 2 degrees
|
|
42
42
|
|
|
43
43
|
/// Continuous collision detection (CCD) works with core, shrunken shapes. This is the
|
|
44
44
|
/// amount by which shapes are automatically shrunk to work with CCD. This must be
|
|
45
45
|
/// larger than b2_linearSlop.
|
|
46
|
-
public static
|
|
46
|
+
public static b2_toiSlop: number = 8.0 * b2Settings.b2_linearSlop;
|
|
47
47
|
|
|
48
48
|
/// Maximum number of contacts to be handled to solve a TOI island.
|
|
49
|
-
public static
|
|
49
|
+
public static b2_maxTOIContactsPerIsland: number /** int */ = 32;
|
|
50
50
|
|
|
51
51
|
/// A velocity threshold for elastic collisions. Any collision with a relative linear
|
|
52
52
|
/// velocity below this threshold will be treated as inelastic.
|
|
53
|
-
public static
|
|
53
|
+
public static b2_velocityThreshold: number = 1.0; // 1 m/s
|
|
54
54
|
|
|
55
55
|
/// The maximum linear position correction used when solving constraints. This helps to
|
|
56
56
|
/// prevent overshoot.
|
|
57
|
-
public static
|
|
57
|
+
public static b2_maxLinearCorrection: number = 0.2; // 20 cm
|
|
58
58
|
|
|
59
59
|
/// The maximum angular position correction used when solving constraints. This helps to
|
|
60
60
|
/// prevent overshoot.
|
|
61
|
-
public static
|
|
61
|
+
public static b2_maxAngularCorrection: number = 8.0 / 180.0 * b2Settings.b2_pi; // 8 degrees
|
|
62
62
|
|
|
63
63
|
/// The maximum linear velocity of a body. This limit is very large and is used
|
|
64
64
|
/// to prevent numerical problems. You shouldn't need to adjust this.
|
|
65
|
-
public static
|
|
66
|
-
public static
|
|
65
|
+
public static b2_maxLinearVelocity: number = 200.0;
|
|
66
|
+
public static b2_maxLinearVelocitySquared: number = b2Settings.b2_maxLinearVelocity * b2Settings.b2_maxLinearVelocity;
|
|
67
67
|
|
|
68
68
|
/// The maximum angular velocity of a body. This limit is very large and is used
|
|
69
69
|
/// to prevent numerical problems. You shouldn't need to adjust this.
|
|
70
|
-
public static
|
|
71
|
-
public static
|
|
70
|
+
public static b2_maxAngularVelocity: number = 250.0;
|
|
71
|
+
public static b2_maxAngularVelocitySquared: number = b2Settings.b2_maxAngularVelocity * b2Settings.b2_maxAngularVelocity;
|
|
72
72
|
|
|
73
73
|
/// This scale factor controls how fast overlap is resolved. Ideally this would be 1 so
|
|
74
74
|
/// that overlap is removed in one time step. However using values close to 1 often lead
|
|
75
75
|
/// to overshoot.
|
|
76
|
-
public static
|
|
76
|
+
public static b2_contactBaumgarte: number = 0.2;
|
|
77
77
|
|
|
78
78
|
// Sleep
|
|
79
79
|
|
|
80
80
|
/// The time that a body must be still before it will go to sleep.
|
|
81
|
-
public static
|
|
81
|
+
public static b2_timeToSleep: number = 0.5; // half a second
|
|
82
82
|
/// A body cannot sleep if its linear velocity is above this tolerance.
|
|
83
|
-
public static
|
|
83
|
+
public static b2_linearSleepTolerance: number = 0.01; // 1 cm/s
|
|
84
84
|
/// A body cannot sleep if its angular velocity is above this tolerance.
|
|
85
|
-
public static
|
|
85
|
+
public static b2_angularSleepTolerance: number = 2.0 / 180.0; // 2 degrees/s
|
|
86
86
|
|
|
87
87
|
// assert
|
|
88
88
|
public static b2Assert(a: boolean): void {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awayfl/awayfl-player",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.45",
|
|
4
4
|
"description": "Flash Player emulator for executing SWF files (published for FP versions 6 and up) in javascript",
|
|
5
5
|
"main": "bundle/awayfl-player.umd.js",
|
|
6
6
|
"module": "dist/index.js",
|