@pompadour/react-native-skia 1.5.24 → 1.5.26
Sign up to get free protection for your applications and to get access to all the features.
- package/cpp/skia/modules/neatplayer/include/NeatPlayer.h +68 -0
- package/lib/commonjs/index.d.ts +1 -0
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/neat/index.d.ts +7 -0
- package/lib/commonjs/neat/index.js +6 -0
- package/lib/commonjs/neat/index.js.map +1 -0
- package/lib/module/index.d.ts +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/neat/index.d.ts +7 -0
- package/lib/module/neat/index.js +2 -0
- package/lib/module/neat/index.js.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/neat/index.d.ts +7 -0
- package/libs/android/arm64-v8a/libskottie.a +0 -0
- package/libs/android/armeabi-v7a/libskottie.a +0 -0
- package/libs/android/x86/libskottie.a +0 -0
- package/libs/android/x86_64/libskottie.a +0 -0
- package/libs/ios/libskottie.xcframework/Info.plist +5 -5
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
- package/libs/ios/libsksg.xcframework/Info.plist +5 -5
- package/libs/ios/libskshaper.xcframework/Info.plist +5 -5
- package/libs/ios/libskunicode.xcframework/Info.plist +5 -5
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/neat/index.ts +20 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
#ifndef NEAT_PLAYER_H
|
2
|
+
#define NEAT_PLAYER_H
|
3
|
+
|
4
|
+
#include "AnimationManager.h"
|
5
|
+
#include "InputManager.h"
|
6
|
+
#include "PerformanceManager.h"
|
7
|
+
#include "Renderer.h"
|
8
|
+
#include "ResourceManager.h"
|
9
|
+
#include "ShaderManager.h"
|
10
|
+
#include "State.h"
|
11
|
+
#include "UIManager.h"
|
12
|
+
#include "utils/Input.h"
|
13
|
+
|
14
|
+
class NeatPlayer {
|
15
|
+
public:
|
16
|
+
NeatPlayer();
|
17
|
+
~NeatPlayer();
|
18
|
+
|
19
|
+
// Update / Render
|
20
|
+
void initialize(int argc, char** argv);
|
21
|
+
void update(double deltaTime);
|
22
|
+
void render(SkCanvas* canvas);
|
23
|
+
|
24
|
+
// Data Loading
|
25
|
+
bool load();
|
26
|
+
#ifdef __EMSCRIPTEN__
|
27
|
+
void loadUrl(const std::string& url);
|
28
|
+
void loadJSON(const std::string& json);
|
29
|
+
#endif
|
30
|
+
|
31
|
+
// System Input
|
32
|
+
bool onKey(skui::Key key, skui::InputState inputState, skui::ModifierKey modifiers);
|
33
|
+
bool onChar(SkUnichar character);
|
34
|
+
bool onMouse(int x, int y, skui::InputState inputState, skui::ModifierKey modifiers);
|
35
|
+
bool onMouseWheel(float delta, int x, int y, skui::ModifierKey modifiers);
|
36
|
+
|
37
|
+
// Player API
|
38
|
+
bool isPlaying();
|
39
|
+
void togglePlayPause();
|
40
|
+
void seek(double time);
|
41
|
+
void cyclePlaybackSpeed();
|
42
|
+
bool previous();
|
43
|
+
bool next();
|
44
|
+
void cycleBackgroundShader();
|
45
|
+
void cycleForegroundShader();
|
46
|
+
void toggleDebugVisibility();
|
47
|
+
void toggleHelpVisibility();
|
48
|
+
|
49
|
+
private:
|
50
|
+
State state;
|
51
|
+
Renderer renderer;
|
52
|
+
FontManager fontManager;
|
53
|
+
AnimationManager animationManager;
|
54
|
+
ResourceManager resourceManager;
|
55
|
+
UIManager uiManager;
|
56
|
+
ShaderManager shaderManager;
|
57
|
+
InputManager inputManager;
|
58
|
+
PerformanceManager& performanceManager;
|
59
|
+
|
60
|
+
const double seekDelta = 1.0; // 1 seconds seek
|
61
|
+
const std::vector<double> playbackSpeeds = {0.1, 0.25, 0.5, 1.0, 1.5, 2.0, 5.0};
|
62
|
+
size_t currentSpeedIndex = 1; // Start at normal speed (1.0)
|
63
|
+
|
64
|
+
// void initializeInputHandlers();
|
65
|
+
void initializeKeyBindings();
|
66
|
+
};
|
67
|
+
|
68
|
+
#endif // NEAT_PLAYER_H
|
package/lib/commonjs/index.d.ts
CHANGED
package/lib/commonjs/index.js
CHANGED
@@ -122,4 +122,16 @@ Object.keys(_nodes).forEach(function (key) {
|
|
122
122
|
}
|
123
123
|
});
|
124
124
|
});
|
125
|
+
var _neat = require("./neat");
|
126
|
+
Object.keys(_neat).forEach(function (key) {
|
127
|
+
if (key === "default" || key === "__esModule") return;
|
128
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
129
|
+
if (key in exports && exports[key] === _neat[key]) return;
|
130
|
+
Object.defineProperty(exports, key, {
|
131
|
+
enumerable: true,
|
132
|
+
get: function () {
|
133
|
+
return _neat[key];
|
134
|
+
}
|
135
|
+
});
|
136
|
+
});
|
125
137
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["require","_JsiSkImage","_renderer","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Canvas","_Offscreen","_views","_skia","_external","_animation","_types","_nodes"],"sources":["index.ts"],"sourcesContent":["import \"./skia/NativeSetup\";\nexport { JsiSkImage } from \"./skia/web/JsiSkImage\";\nexport * from \"./renderer\";\nexport * from \"./renderer/Canvas\";\nexport * from \"./renderer/Offscreen\";\nexport * from \"./views\";\nexport * from \"./skia\";\nexport * from \"./external\";\nexport * from \"./animation\";\nexport * from \"./dom/types\";\nexport * from \"./dom/nodes\";\n"],"mappings":";;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,SAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,G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,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAQ,MAAA,CAAAhB,GAAA;IAAA;EAAA;AAAA"}
|
1
|
+
{"version":3,"names":["require","_JsiSkImage","_renderer","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Canvas","_Offscreen","_views","_skia","_external","_animation","_types","_nodes","_neat"],"sources":["index.ts"],"sourcesContent":["import \"./skia/NativeSetup\";\nexport { JsiSkImage } from \"./skia/web/JsiSkImage\";\nexport * from \"./renderer\";\nexport * from \"./renderer/Canvas\";\nexport * from \"./renderer/Offscreen\";\nexport * from \"./views\";\nexport * from \"./skia\";\nexport * from \"./external\";\nexport * from \"./animation\";\nexport * from \"./dom/types\";\nexport * from \"./dom/nodes\";\nexport * from \"./neat\";\n"],"mappings":";;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,SAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,SAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,SAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAf,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAW,OAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,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A,CAAAjB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAS,KAAA,CAAAjB,GAAA;IAAA;EAAA;AAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["import { SkCanvas } from \"../skia\"\n\nexport interface NeatPlayer {\n update: (deltaTime: number) => void\n render: (canvas: SkCanvas) => void\n\n load: () => boolean\n // loadUrl: (url: string) => void\n // loadJSON: (json: string) => void\n\n // isPlaying: () => boolean\n togglePlayPause: () => void\n // seek: (time: number) => void\n // cyclePlaybackSpeed: () => void\n // previous: () => void\n // next: () => void\n // cycleBackgroundShader: () => void\n // cycleForegroundShader: () => void\n}\n\n"],"mappings":""}
|
package/lib/module/index.d.ts
CHANGED
package/lib/module/index.js
CHANGED
package/lib/module/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkImage"],"sources":["index.ts"],"sourcesContent":["import \"./skia/NativeSetup\";\nexport { JsiSkImage } from \"./skia/web/JsiSkImage\";\nexport * from \"./renderer\";\nexport * from \"./renderer/Canvas\";\nexport * from \"./renderer/Offscreen\";\nexport * from \"./views\";\nexport * from \"./skia\";\nexport * from \"./external\";\nexport * from \"./animation\";\nexport * from \"./dom/types\";\nexport * from \"./dom/nodes\";\n"],"mappings":"AAAA,OAAO,oBAAoB;AAC3B,SAASA,UAAU,QAAQ,uBAAuB;AAClD,cAAc,YAAY;AAC1B,cAAc,mBAAmB;AACjC,cAAc,sBAAsB;AACpC,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,aAAa;AAC3B,cAAc,aAAa"}
|
1
|
+
{"version":3,"names":["JsiSkImage"],"sources":["index.ts"],"sourcesContent":["import \"./skia/NativeSetup\";\nexport { JsiSkImage } from \"./skia/web/JsiSkImage\";\nexport * from \"./renderer\";\nexport * from \"./renderer/Canvas\";\nexport * from \"./renderer/Offscreen\";\nexport * from \"./views\";\nexport * from \"./skia\";\nexport * from \"./external\";\nexport * from \"./animation\";\nexport * from \"./dom/types\";\nexport * from \"./dom/nodes\";\nexport * from \"./neat\";\n"],"mappings":"AAAA,OAAO,oBAAoB;AAC3B,SAASA,UAAU,QAAQ,uBAAuB;AAClD,cAAc,YAAY;AAC1B,cAAc,mBAAmB;AACjC,cAAc,sBAAsB;AACpC,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,aAAa;AAC3B,cAAc,aAAa;AAC3B,cAAc,QAAQ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["import { SkCanvas } from \"../skia\"\n\nexport interface NeatPlayer {\n update: (deltaTime: number) => void\n render: (canvas: SkCanvas) => void\n\n load: () => boolean\n // loadUrl: (url: string) => void\n // loadJSON: (json: string) => void\n\n // isPlaying: () => boolean\n togglePlayPause: () => void\n // seek: (time: number) => void\n // cyclePlaybackSpeed: () => void\n // previous: () => void\n // next: () => void\n // cycleBackgroundShader: () => void\n // cycleForegroundShader: () => void\n}\n\n"],"mappings":""}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -8,34 +8,34 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libskottie.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>ios-
|
11
|
+
<string>ios-arm64_arm64e</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libskottie.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
15
15
|
<array>
|
16
16
|
<string>arm64</string>
|
17
17
|
<string>arm64e</string>
|
18
|
-
<string>x86_64</string>
|
19
18
|
</array>
|
20
19
|
<key>SupportedPlatform</key>
|
21
20
|
<string>ios</string>
|
22
|
-
<key>SupportedPlatformVariant</key>
|
23
|
-
<string>simulator</string>
|
24
21
|
</dict>
|
25
22
|
<dict>
|
26
23
|
<key>BinaryPath</key>
|
27
24
|
<string>libskottie.a</string>
|
28
25
|
<key>LibraryIdentifier</key>
|
29
|
-
<string>ios-
|
26
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
30
27
|
<key>LibraryPath</key>
|
31
28
|
<string>libskottie.a</string>
|
32
29
|
<key>SupportedArchitectures</key>
|
33
30
|
<array>
|
34
31
|
<string>arm64</string>
|
35
32
|
<string>arm64e</string>
|
33
|
+
<string>x86_64</string>
|
36
34
|
</array>
|
37
35
|
<key>SupportedPlatform</key>
|
38
36
|
<string>ios</string>
|
37
|
+
<key>SupportedPlatformVariant</key>
|
38
|
+
<string>simulator</string>
|
39
39
|
</dict>
|
40
40
|
</array>
|
41
41
|
<key>CFBundlePackageType</key>
|
Binary file
|
Binary file
|
@@ -8,34 +8,34 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libsksg.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>ios-
|
11
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libsksg.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
15
15
|
<array>
|
16
16
|
<string>arm64</string>
|
17
17
|
<string>arm64e</string>
|
18
|
+
<string>x86_64</string>
|
18
19
|
</array>
|
19
20
|
<key>SupportedPlatform</key>
|
20
21
|
<string>ios</string>
|
22
|
+
<key>SupportedPlatformVariant</key>
|
23
|
+
<string>simulator</string>
|
21
24
|
</dict>
|
22
25
|
<dict>
|
23
26
|
<key>BinaryPath</key>
|
24
27
|
<string>libsksg.a</string>
|
25
28
|
<key>LibraryIdentifier</key>
|
26
|
-
<string>ios-
|
29
|
+
<string>ios-arm64_arm64e</string>
|
27
30
|
<key>LibraryPath</key>
|
28
31
|
<string>libsksg.a</string>
|
29
32
|
<key>SupportedArchitectures</key>
|
30
33
|
<array>
|
31
34
|
<string>arm64</string>
|
32
35
|
<string>arm64e</string>
|
33
|
-
<string>x86_64</string>
|
34
36
|
</array>
|
35
37
|
<key>SupportedPlatform</key>
|
36
38
|
<string>ios</string>
|
37
|
-
<key>SupportedPlatformVariant</key>
|
38
|
-
<string>simulator</string>
|
39
39
|
</dict>
|
40
40
|
</array>
|
41
41
|
<key>CFBundlePackageType</key>
|
@@ -8,34 +8,34 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libskshaper.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>ios-
|
11
|
+
<string>ios-arm64_arm64e</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libskshaper.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
15
15
|
<array>
|
16
16
|
<string>arm64</string>
|
17
17
|
<string>arm64e</string>
|
18
|
-
<string>x86_64</string>
|
19
18
|
</array>
|
20
19
|
<key>SupportedPlatform</key>
|
21
20
|
<string>ios</string>
|
22
|
-
<key>SupportedPlatformVariant</key>
|
23
|
-
<string>simulator</string>
|
24
21
|
</dict>
|
25
22
|
<dict>
|
26
23
|
<key>BinaryPath</key>
|
27
24
|
<string>libskshaper.a</string>
|
28
25
|
<key>LibraryIdentifier</key>
|
29
|
-
<string>ios-
|
26
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
30
27
|
<key>LibraryPath</key>
|
31
28
|
<string>libskshaper.a</string>
|
32
29
|
<key>SupportedArchitectures</key>
|
33
30
|
<array>
|
34
31
|
<string>arm64</string>
|
35
32
|
<string>arm64e</string>
|
33
|
+
<string>x86_64</string>
|
36
34
|
</array>
|
37
35
|
<key>SupportedPlatform</key>
|
38
36
|
<string>ios</string>
|
37
|
+
<key>SupportedPlatformVariant</key>
|
38
|
+
<string>simulator</string>
|
39
39
|
</dict>
|
40
40
|
</array>
|
41
41
|
<key>CFBundlePackageType</key>
|
@@ -8,34 +8,34 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libskunicode.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>ios-
|
11
|
+
<string>ios-arm64_arm64e</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libskunicode.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
15
15
|
<array>
|
16
16
|
<string>arm64</string>
|
17
17
|
<string>arm64e</string>
|
18
|
-
<string>x86_64</string>
|
19
18
|
</array>
|
20
19
|
<key>SupportedPlatform</key>
|
21
20
|
<string>ios</string>
|
22
|
-
<key>SupportedPlatformVariant</key>
|
23
|
-
<string>simulator</string>
|
24
21
|
</dict>
|
25
22
|
<dict>
|
26
23
|
<key>BinaryPath</key>
|
27
24
|
<string>libskunicode.a</string>
|
28
25
|
<key>LibraryIdentifier</key>
|
29
|
-
<string>ios-
|
26
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
30
27
|
<key>LibraryPath</key>
|
31
28
|
<string>libskunicode.a</string>
|
32
29
|
<key>SupportedArchitectures</key>
|
33
30
|
<array>
|
34
31
|
<string>arm64</string>
|
35
32
|
<string>arm64e</string>
|
33
|
+
<string>x86_64</string>
|
36
34
|
</array>
|
37
35
|
<key>SupportedPlatform</key>
|
38
36
|
<string>ios</string>
|
37
|
+
<key>SupportedPlatformVariant</key>
|
38
|
+
<string>simulator</string>
|
39
39
|
</dict>
|
40
40
|
</array>
|
41
41
|
<key>CFBundlePackageType</key>
|
package/package.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
"setup-skia-web": "./scripts/setup-canvaskit.js"
|
8
8
|
},
|
9
9
|
"title": "React Native Skia",
|
10
|
-
"version": "1.5.
|
10
|
+
"version": "1.5.26",
|
11
11
|
"description": "High-performance React Native Graphics using Skia",
|
12
12
|
"main": "lib/module/index.js",
|
13
13
|
"react-native": "src/index.ts",
|
package/src/index.ts
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { SkCanvas } from "../skia"
|
2
|
+
|
3
|
+
export interface NeatPlayer {
|
4
|
+
update: (deltaTime: number) => void
|
5
|
+
render: (canvas: SkCanvas) => void
|
6
|
+
|
7
|
+
load: () => boolean
|
8
|
+
// loadUrl: (url: string) => void
|
9
|
+
// loadJSON: (json: string) => void
|
10
|
+
|
11
|
+
// isPlaying: () => boolean
|
12
|
+
togglePlayPause: () => void
|
13
|
+
// seek: (time: number) => void
|
14
|
+
// cyclePlaybackSpeed: () => void
|
15
|
+
// previous: () => void
|
16
|
+
// next: () => void
|
17
|
+
// cycleBackgroundShader: () => void
|
18
|
+
// cycleForegroundShader: () => void
|
19
|
+
}
|
20
|
+
|