@nativescript/canvas 2.0.0-alpha.30 → 2.0.0-alpha.31

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.
Files changed (37) hide show
  1. package/Canvas/common.d.ts +14 -0
  2. package/Canvas/common.js +17 -0
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +1 -0
  5. package/Canvas/index.android.js +34 -7
  6. package/Canvas/index.android.js.map +1 -1
  7. package/Canvas/index.ios.d.ts +1 -0
  8. package/Canvas/index.ios.js +46 -20
  9. package/Canvas/index.ios.js.map +1 -1
  10. package/package.json +1 -1
  11. package/platforms/android/canvas-release.aar +0 -0
  12. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  13. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +1 -0
  14. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +52 -0
  15. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  16. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +188 -166
  17. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -0
  18. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +1 -0
  19. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  20. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  21. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +2 -0
  22. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +52 -0
  23. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  24. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  25. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +188 -166
  26. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -0
  27. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
  28. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +188 -166
  29. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -0
  30. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -0
  31. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +24 -24
  32. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  33. package/platforms/ios/src/cpp/Caches.h +4 -0
  34. package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1 -0
  35. package/platforms/ios/src/cpp/CanvasJSIModule.h +1 -0
  36. package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
  37. package/platforms/ios/src/cpp/URLImpl.h +119 -0
@@ -0,0 +1,119 @@
1
+ //
2
+ // Created by Osei Fortune on 15/011/2023.
3
+ //
4
+
5
+ #pragma once
6
+
7
+ #include <vector>
8
+ #include "Common.h"
9
+
10
+ class URLImpl {
11
+ public:
12
+ URLImpl(URL *url);
13
+
14
+ ~URLImpl() {
15
+ canvas_url_destroy(this->GetURL());
16
+ this->url_ = nullptr;
17
+ }
18
+
19
+ URL *GetURL();
20
+
21
+ static void Init(const v8::Local<v8::Object> &canvasModule, v8::Isolate *isolate);
22
+
23
+ static URLImpl *GetPointer(v8::Local<v8::Object> object);
24
+
25
+ static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate);
26
+
27
+ static void Ctor(const v8::FunctionCallbackInfo<v8::Value> &args);
28
+
29
+
30
+ static void
31
+ GetHash(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
32
+
33
+ static void SetHash(v8::Local<v8::String> property,
34
+ v8::Local<v8::Value> value,
35
+ const v8::PropertyCallbackInfo<void> &info);
36
+
37
+
38
+ static void
39
+ GetHost(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
40
+
41
+ static void SetHost(v8::Local<v8::String> property,
42
+ v8::Local<v8::Value> value,
43
+ const v8::PropertyCallbackInfo<void> &info);
44
+
45
+
46
+ static void
47
+ GetHostName(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
48
+
49
+ static void SetHostName(v8::Local<v8::String> property,
50
+ v8::Local<v8::Value> value,
51
+ const v8::PropertyCallbackInfo<void> &info);
52
+
53
+
54
+ static void
55
+ GetHref(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
56
+
57
+ static void SetHref(v8::Local<v8::String> property,
58
+ v8::Local<v8::Value> value,
59
+ const v8::PropertyCallbackInfo<void> &info);
60
+
61
+
62
+ static void
63
+ GetOrigin(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
64
+
65
+
66
+ static void
67
+ GetPassword(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
68
+
69
+ static void SetPassword(v8::Local<v8::String> property,
70
+ v8::Local<v8::Value> value,
71
+ const v8::PropertyCallbackInfo<void> &info);
72
+
73
+
74
+ static void
75
+ GetPathName(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
76
+
77
+ static void SetPathName(v8::Local<v8::String> property,
78
+ v8::Local<v8::Value> value,
79
+ const v8::PropertyCallbackInfo<void> &info);
80
+
81
+
82
+ static void
83
+ GetPort(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
84
+
85
+ static void SetPort(v8::Local<v8::String> property,
86
+ v8::Local<v8::Value> value,
87
+ const v8::PropertyCallbackInfo<void> &info);
88
+
89
+
90
+ static void
91
+ GetProtocol(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
92
+
93
+ static void SetProtocol(v8::Local<v8::String> property,
94
+ v8::Local<v8::Value> value,
95
+ const v8::PropertyCallbackInfo<void> &info);
96
+
97
+
98
+ static void
99
+ GetSearch(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
100
+
101
+ static void SetSearch(v8::Local<v8::String> property,
102
+ v8::Local<v8::Value> value,
103
+ const v8::PropertyCallbackInfo<void> &info);
104
+
105
+
106
+ static void
107
+ GetUserName(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value> &info);
108
+
109
+ static void SetUserName(v8::Local<v8::String> property,
110
+ v8::Local<v8::Value> value,
111
+ const v8::PropertyCallbackInfo<void> &info);
112
+
113
+ static void ToString(const v8::FunctionCallbackInfo<v8::Value> &args);
114
+
115
+ static void CanParse(const v8::FunctionCallbackInfo<v8::Value> &args);
116
+
117
+ private:
118
+ URL *url_;
119
+ };