@triniwiz/nativescript-masonkit 1.0.0-alpha.9 → 1.0.0-beta.1

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 (397) hide show
  1. package/button/index.android.d.ts +13 -0
  2. package/button/index.android.js +56 -0
  3. package/button/index.android.js.map +1 -0
  4. package/button/index.ios.d.ts +21 -0
  5. package/button/index.ios.js +216 -0
  6. package/button/index.ios.js.map +1 -0
  7. package/common.d.ts +78 -33
  8. package/common.js +1137 -251
  9. package/common.js.map +1 -1
  10. package/img/index.android.d.ts +10 -0
  11. package/img/index.android.js +40 -0
  12. package/img/index.android.js.map +1 -0
  13. package/img/index.ios.d.ts +13 -0
  14. package/img/index.ios.js +102 -0
  15. package/img/index.ios.js.map +1 -0
  16. package/index.android.d.ts +6 -34
  17. package/index.android.js +6 -139
  18. package/index.android.js.map +1 -1
  19. package/index.d.ts +88 -60
  20. package/index.ios.d.ts +6 -48
  21. package/index.ios.js +6 -355
  22. package/index.ios.js.map +1 -1
  23. package/package.json +5 -2
  24. package/platforms/android/include.gradle +5 -1
  25. package/platforms/android/masonkit-release.aar +0 -0
  26. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +794 -284
  27. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason.h +0 -5
  28. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/NSObject+MasonElement_Defaults.h +100 -0
  29. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +118 -93
  30. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  31. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  32. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  33. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +52485 -22807
  34. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +1234 -255
  35. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  36. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +1234 -255
  37. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  38. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4252 -1932
  39. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +1588 -568
  40. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason.h +0 -5
  41. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/NSObject+MasonElement_Defaults.h +100 -0
  42. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +118 -93
  43. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  44. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  45. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  46. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  47. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +52485 -22807
  48. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1211 -232
  49. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  50. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1211 -232
  51. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +52485 -22807
  52. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1211 -232
  53. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  54. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1211 -232
  55. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +31 -31
  56. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  57. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4246 -1932
  58. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +4124 -1883
  59. package/scroll/index.android.d.ts +12 -0
  60. package/scroll/index.android.js +50 -0
  61. package/scroll/index.android.js.map +1 -0
  62. package/scroll/index.ios.d.ts +14 -0
  63. package/scroll/index.ios.js +120 -0
  64. package/scroll/index.ios.js.map +1 -0
  65. package/style.d.ts +112 -53
  66. package/style.js +1199 -110
  67. package/style.js.map +1 -1
  68. package/text/index.android.d.ts +30 -0
  69. package/text/index.android.js +124 -0
  70. package/text/index.android.js.map +1 -0
  71. package/text/index.ios.d.ts +38 -0
  72. package/text/index.ios.js +251 -0
  73. package/text/index.ios.js.map +1 -0
  74. package/tree/index.android.d.ts +28 -0
  75. package/tree/index.android.js +77 -0
  76. package/tree/index.android.js.map +1 -0
  77. package/tree/index.ios.d.ts +29 -0
  78. package/tree/index.ios.js +76 -0
  79. package/tree/index.ios.js.map +1 -0
  80. package/utils/index.android.d.ts +187 -0
  81. package/utils/index.android.js +514 -0
  82. package/utils/index.android.js.map +1 -0
  83. package/utils/index.ios.d.ts +198 -0
  84. package/utils/index.ios.js +710 -0
  85. package/utils/index.ios.js.map +1 -0
  86. package/view/index.android.d.ts +12 -0
  87. package/view/index.android.js +50 -0
  88. package/view/index.android.js.map +1 -0
  89. package/view/index.ios.d.ts +16 -0
  90. package/view/index.ios.js +124 -0
  91. package/view/index.ios.js.map +1 -0
  92. package/web.d.ts +55 -0
  93. package/web.js +189 -0
  94. package/web.js.map +1 -0
  95. package/helpers.d.ts +0 -255
  96. package/helpers.js +0 -1318
  97. package/helpers.js.map +0 -1
  98. package/node.d.ts +0 -2
  99. package/node.js +0 -3
  100. package/node.js.map +0 -1
  101. package/platforms/ios/Podfile +0 -1
  102. package/platforms/ios/build.xcconfig +0 -5
  103. package/platforms/ios/prebuild.sh +0 -101
  104. package/platforms/new_native_src/cpp/Caches.cpp +0 -36
  105. package/platforms/new_native_src/cpp/Caches.h +0 -42
  106. package/platforms/new_native_src/cpp/Common.h +0 -34
  107. package/platforms/new_native_src/cpp/ConcurrentMap.h +0 -57
  108. package/platforms/new_native_src/cpp/Helpers.cpp +0 -101
  109. package/platforms/new_native_src/cpp/Helpers.h +0 -364
  110. package/platforms/new_native_src/cpp/MasonImpl.cpp +0 -68
  111. package/platforms/new_native_src/cpp/MasonImpl.h +0 -40
  112. package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +0 -89
  113. package/platforms/new_native_src/cpp/MasonNodeImpl.h +0 -47
  114. package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +0 -2181
  115. package/platforms/new_native_src/cpp/MasonStyleImpl.h +0 -420
  116. package/platforms/new_native_src/cpp/include/mason_native.h +0 -972
  117. package/platforms/new_native_src/cpp/include/robin_hood.h +0 -2544
  118. package/src-native/pods/Headers/include/APIDesign.md +0 -72
  119. package/src-native/pods/Headers/include/DEPS +0 -10
  120. package/src-native/pods/Headers/include/DIR_METADATA +0 -11
  121. package/src-native/pods/Headers/include/OWNERS +0 -23
  122. package/src-native/pods/Headers/include/cppgc/DEPS +0 -8
  123. package/src-native/pods/Headers/include/cppgc/OWNERS +0 -2
  124. package/src-native/pods/Headers/include/cppgc/README.md +0 -133
  125. package/src-native/pods/Headers/include/cppgc/allocation.h +0 -310
  126. package/src-native/pods/Headers/include/cppgc/common.h +0 -29
  127. package/src-native/pods/Headers/include/cppgc/cross-thread-persistent.h +0 -465
  128. package/src-native/pods/Headers/include/cppgc/custom-space.h +0 -97
  129. package/src-native/pods/Headers/include/cppgc/default-platform.h +0 -67
  130. package/src-native/pods/Headers/include/cppgc/ephemeron-pair.h +0 -30
  131. package/src-native/pods/Headers/include/cppgc/explicit-management.h +0 -100
  132. package/src-native/pods/Headers/include/cppgc/garbage-collected.h +0 -106
  133. package/src-native/pods/Headers/include/cppgc/heap-consistency.h +0 -266
  134. package/src-native/pods/Headers/include/cppgc/heap-state.h +0 -82
  135. package/src-native/pods/Headers/include/cppgc/heap-statistics.h +0 -120
  136. package/src-native/pods/Headers/include/cppgc/heap.h +0 -206
  137. package/src-native/pods/Headers/include/cppgc/internal/api-constants.h +0 -55
  138. package/src-native/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -48
  139. package/src-native/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -79
  140. package/src-native/pods/Headers/include/cppgc/internal/compiler-specific.h +0 -38
  141. package/src-native/pods/Headers/include/cppgc/internal/finalizer-trait.h +0 -93
  142. package/src-native/pods/Headers/include/cppgc/internal/gc-info.h +0 -156
  143. package/src-native/pods/Headers/include/cppgc/internal/logging.h +0 -50
  144. package/src-native/pods/Headers/include/cppgc/internal/name-trait.h +0 -122
  145. package/src-native/pods/Headers/include/cppgc/internal/persistent-node.h +0 -216
  146. package/src-native/pods/Headers/include/cppgc/internal/pointer-policies.h +0 -186
  147. package/src-native/pods/Headers/include/cppgc/internal/write-barrier.h +0 -435
  148. package/src-native/pods/Headers/include/cppgc/liveness-broker.h +0 -77
  149. package/src-native/pods/Headers/include/cppgc/macros.h +0 -26
  150. package/src-native/pods/Headers/include/cppgc/member.h +0 -291
  151. package/src-native/pods/Headers/include/cppgc/name-provider.h +0 -65
  152. package/src-native/pods/Headers/include/cppgc/object-size-trait.h +0 -58
  153. package/src-native/pods/Headers/include/cppgc/persistent.h +0 -370
  154. package/src-native/pods/Headers/include/cppgc/platform.h +0 -156
  155. package/src-native/pods/Headers/include/cppgc/prefinalizer.h +0 -75
  156. package/src-native/pods/Headers/include/cppgc/process-heap-statistics.h +0 -36
  157. package/src-native/pods/Headers/include/cppgc/sentinel-pointer.h +0 -32
  158. package/src-native/pods/Headers/include/cppgc/source-location.h +0 -92
  159. package/src-native/pods/Headers/include/cppgc/testing.h +0 -106
  160. package/src-native/pods/Headers/include/cppgc/trace-trait.h +0 -116
  161. package/src-native/pods/Headers/include/cppgc/type-traits.h +0 -240
  162. package/src-native/pods/Headers/include/cppgc/visitor.h +0 -379
  163. package/src-native/pods/Headers/include/js_protocol-1.2.json +0 -936
  164. package/src-native/pods/Headers/include/js_protocol-1.3.json +0 -1112
  165. package/src-native/pods/Headers/include/js_protocol.pdl +0 -1709
  166. package/src-native/pods/Headers/include/libffi/arm64/ffi.h +0 -524
  167. package/src-native/pods/Headers/include/libffi/arm64/ffitarget.h +0 -92
  168. package/src-native/pods/Headers/include/libffi/x86_64/ffi.h +0 -524
  169. package/src-native/pods/Headers/include/libffi/x86_64/ffitarget.h +0 -147
  170. package/src-native/pods/Headers/include/libffi.h +0 -12
  171. package/src-native/pods/Headers/include/libplatform/DEPS +0 -9
  172. package/src-native/pods/Headers/include/libplatform/libplatform-export.h +0 -29
  173. package/src-native/pods/Headers/include/libplatform/libplatform.h +0 -106
  174. package/src-native/pods/Headers/include/libplatform/v8-tracing.h +0 -333
  175. package/src-native/pods/Headers/include/v8-array-buffer.h +0 -433
  176. package/src-native/pods/Headers/include/v8-callbacks.h +0 -397
  177. package/src-native/pods/Headers/include/v8-container.h +0 -129
  178. package/src-native/pods/Headers/include/v8-context.h +0 -407
  179. package/src-native/pods/Headers/include/v8-cppgc.h +0 -215
  180. package/src-native/pods/Headers/include/v8-data.h +0 -80
  181. package/src-native/pods/Headers/include/v8-date.h +0 -43
  182. package/src-native/pods/Headers/include/v8-debug.h +0 -168
  183. package/src-native/pods/Headers/include/v8-embedder-heap.h +0 -218
  184. package/src-native/pods/Headers/include/v8-embedder-state-scope.h +0 -51
  185. package/src-native/pods/Headers/include/v8-exception.h +0 -217
  186. package/src-native/pods/Headers/include/v8-extension.h +0 -62
  187. package/src-native/pods/Headers/include/v8-external.h +0 -37
  188. package/src-native/pods/Headers/include/v8-fast-api-calls.h +0 -939
  189. package/src-native/pods/Headers/include/v8-forward.h +0 -81
  190. package/src-native/pods/Headers/include/v8-function-callback.h +0 -475
  191. package/src-native/pods/Headers/include/v8-function.h +0 -125
  192. package/src-native/pods/Headers/include/v8-initialization.h +0 -315
  193. package/src-native/pods/Headers/include/v8-inspector-protocol.h +0 -13
  194. package/src-native/pods/Headers/include/v8-inspector.h +0 -376
  195. package/src-native/pods/Headers/include/v8-internal.h +0 -661
  196. package/src-native/pods/Headers/include/v8-isolate.h +0 -1709
  197. package/src-native/pods/Headers/include/v8-json.h +0 -47
  198. package/src-native/pods/Headers/include/v8-local-handle.h +0 -455
  199. package/src-native/pods/Headers/include/v8-locker.h +0 -149
  200. package/src-native/pods/Headers/include/v8-maybe.h +0 -137
  201. package/src-native/pods/Headers/include/v8-memory-span.h +0 -43
  202. package/src-native/pods/Headers/include/v8-message.h +0 -216
  203. package/src-native/pods/Headers/include/v8-metrics.h +0 -255
  204. package/src-native/pods/Headers/include/v8-microtask-queue.h +0 -152
  205. package/src-native/pods/Headers/include/v8-microtask.h +0 -28
  206. package/src-native/pods/Headers/include/v8-object.h +0 -775
  207. package/src-native/pods/Headers/include/v8-persistent-handle.h +0 -590
  208. package/src-native/pods/Headers/include/v8-platform.h +0 -1092
  209. package/src-native/pods/Headers/include/v8-primitive-object.h +0 -118
  210. package/src-native/pods/Headers/include/v8-primitive.h +0 -866
  211. package/src-native/pods/Headers/include/v8-profiler.h +0 -1198
  212. package/src-native/pods/Headers/include/v8-promise.h +0 -174
  213. package/src-native/pods/Headers/include/v8-proxy.h +0 -50
  214. package/src-native/pods/Headers/include/v8-regexp.h +0 -105
  215. package/src-native/pods/Headers/include/v8-script.h +0 -748
  216. package/src-native/pods/Headers/include/v8-snapshot.h +0 -196
  217. package/src-native/pods/Headers/include/v8-statistics.h +0 -217
  218. package/src-native/pods/Headers/include/v8-template.h +0 -1079
  219. package/src-native/pods/Headers/include/v8-traced-handle.h +0 -420
  220. package/src-native/pods/Headers/include/v8-typed-array.h +0 -282
  221. package/src-native/pods/Headers/include/v8-unwinder-state.h +0 -31
  222. package/src-native/pods/Headers/include/v8-unwinder.h +0 -132
  223. package/src-native/pods/Headers/include/v8-util.h +0 -658
  224. package/src-native/pods/Headers/include/v8-value-serializer-version.h +0 -24
  225. package/src-native/pods/Headers/include/v8-value-serializer.h +0 -279
  226. package/src-native/pods/Headers/include/v8-value.h +0 -526
  227. package/src-native/pods/Headers/include/v8-version-string.h +0 -38
  228. package/src-native/pods/Headers/include/v8-version.h +0 -20
  229. package/src-native/pods/Headers/include/v8-wasm-trap-handler-posix.h +0 -31
  230. package/src-native/pods/Headers/include/v8-wasm-trap-handler-win.h +0 -28
  231. package/src-native/pods/Headers/include/v8-wasm.h +0 -257
  232. package/src-native/pods/Headers/include/v8-weak-callback-info.h +0 -86
  233. package/src-native/pods/Headers/include/v8.h +0 -88
  234. package/src-native/pods/Headers/include/v8config.h +0 -605
  235. package/src-native/pods/Headers/inspector/InspectorServer.h +0 -20
  236. package/src-native/pods/Headers/inspector/JsV8InspectorClient.h +0 -66
  237. package/src-native/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -1123
  238. package/src-native/pods/Headers/inspector/base64.h +0 -9
  239. package/src-native/pods/Headers/inspector/src/base/address-region.h +0 -95
  240. package/src-native/pods/Headers/inspector/src/base/atomic-utils.h +0 -219
  241. package/src-native/pods/Headers/inspector/src/base/atomicops.h +0 -332
  242. package/src-native/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -89
  243. package/src-native/pods/Headers/inspector/src/base/base-export.h +0 -31
  244. package/src-native/pods/Headers/inspector/src/base/bits.h +0 -343
  245. package/src-native/pods/Headers/inspector/src/base/build_config.h +0 -234
  246. package/src-native/pods/Headers/inspector/src/base/compiler-specific.h +0 -136
  247. package/src-native/pods/Headers/inspector/src/base/export-template.h +0 -163
  248. package/src-native/pods/Headers/inspector/src/base/flags.h +0 -130
  249. package/src-native/pods/Headers/inspector/src/base/immediate-crash.h +0 -162
  250. package/src-native/pods/Headers/inspector/src/base/lazy-instance.h +0 -258
  251. package/src-native/pods/Headers/inspector/src/base/logging.h +0 -417
  252. package/src-native/pods/Headers/inspector/src/base/macros.h +0 -423
  253. package/src-native/pods/Headers/inspector/src/base/memory.h +0 -89
  254. package/src-native/pods/Headers/inspector/src/base/once.h +0 -108
  255. package/src-native/pods/Headers/inspector/src/base/optional.h +0 -882
  256. package/src-native/pods/Headers/inspector/src/base/platform/mutex.h +0 -370
  257. package/src-native/pods/Headers/inspector/src/base/platform/platform.h +0 -476
  258. package/src-native/pods/Headers/inspector/src/base/platform/semaphore.h +0 -108
  259. package/src-native/pods/Headers/inspector/src/base/platform/v8-time.h +0 -513
  260. package/src-native/pods/Headers/inspector/src/base/platform/wrappers.h +0 -73
  261. package/src-native/pods/Headers/inspector/src/base/safe_conversions.h +0 -389
  262. package/src-native/pods/Headers/inspector/src/base/safe_conversions_impl.h +0 -822
  263. package/src-native/pods/Headers/inspector/src/base/template-utils.h +0 -113
  264. package/src-native/pods/Headers/inspector/src/base/v8-fallthrough.h +0 -21
  265. package/src-native/pods/Headers/inspector/src/common/checks.h +0 -38
  266. package/src-native/pods/Headers/inspector/src/common/globals.h +0 -1842
  267. package/src-native/pods/Headers/inspector/src/debug/debug-interface.h +0 -667
  268. package/src-native/pods/Headers/inspector/src/debug/interface-types.h +0 -175
  269. package/src-native/pods/Headers/inspector/src/init/v8.h +0 -52
  270. package/src-native/pods/Headers/inspector/src/inspector/custom-preview.h +0 -24
  271. package/src-native/pods/Headers/inspector/src/inspector/injected-script.h +0 -251
  272. package/src-native/pods/Headers/inspector/src/inspector/inspected-context.h +0 -79
  273. package/src-native/pods/Headers/inspector/src/inspector/protocol/CSS.h +0 -2148
  274. package/src-native/pods/Headers/inspector/src/inspector/protocol/Console.h +0 -211
  275. package/src-native/pods/Headers/inspector/src/inspector/protocol/DOM.h +0 -1008
  276. package/src-native/pods/Headers/inspector/src/inspector/protocol/Debugger.h +0 -892
  277. package/src-native/pods/Headers/inspector/src/inspector/protocol/Forward.h +0 -75
  278. package/src-native/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -346
  279. package/src-native/pods/Headers/inspector/src/inspector/protocol/Log.h +0 -342
  280. package/src-native/pods/Headers/inspector/src/inspector/protocol/Network.h +0 -2528
  281. package/src-native/pods/Headers/inspector/src/inspector/protocol/Overlay.h +0 -281
  282. package/src-native/pods/Headers/inspector/src/inspector/protocol/Page.h +0 -1189
  283. package/src-native/pods/Headers/inspector/src/inspector/protocol/Profiler.h +0 -1001
  284. package/src-native/pods/Headers/inspector/src/inspector/protocol/Protocol.h +0 -617
  285. package/src-native/pods/Headers/inspector/src/inspector/protocol/Runtime.h +0 -1696
  286. package/src-native/pods/Headers/inspector/src/inspector/protocol/Schema.h +0 -146
  287. package/src-native/pods/Headers/inspector/src/inspector/protocol/Security.h +0 -793
  288. package/src-native/pods/Headers/inspector/src/inspector/remote-object-id.h +0 -54
  289. package/src-native/pods/Headers/inspector/src/inspector/search-util.h +0 -26
  290. package/src-native/pods/Headers/inspector/src/inspector/string-16.h +0 -180
  291. package/src-native/pods/Headers/inspector/src/inspector/string-util.h +0 -128
  292. package/src-native/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -48
  293. package/src-native/pods/Headers/inspector/src/inspector/v8-console-message.h +0 -147
  294. package/src-native/pods/Headers/inspector/src/inspector/v8-console.h +0 -173
  295. package/src-native/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -62
  296. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -248
  297. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-id.h +0 -44
  298. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-script.h +0 -123
  299. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger.h +0 -257
  300. package/src-native/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -91
  301. package/src-native/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -80
  302. package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -191
  303. package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -156
  304. package/src-native/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -34
  305. package/src-native/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -71
  306. package/src-native/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -24
  307. package/src-native/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -70
  308. package/src-native/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -88
  309. package/src-native/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -104
  310. package/src-native/pods/Headers/inspector/src/inspector/v8-regex.h +0 -38
  311. package/src-native/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -157
  312. package/src-native/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -38
  313. package/src-native/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -164
  314. package/src-native/pods/Headers/inspector/src/inspector/v8-string-conversions.h +0 -17
  315. package/src-native/pods/Headers/inspector/src/inspector/v8-value-utils.h +0 -23
  316. package/src-native/pods/Headers/inspector/src/inspector/value-mirror.h +0 -87
  317. package/src-native/pods/Headers/inspector/src/libplatform/default-platform.h +0 -92
  318. package/src-native/pods/Headers/inspector/src/logging/tracing-flags.h +0 -50
  319. package/src-native/pods/Headers/inspector/src/numbers/conversions.h +0 -183
  320. package/src-native/pods/Headers/inspector/src/tracing/trace-event.h +0 -664
  321. package/src-native/pods/Headers/inspector/src/utils/allocation.h +0 -367
  322. package/src-native/pods/Headers/inspector/src/utils/vector.h +0 -324
  323. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -305
  324. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -314
  325. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -62
  326. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -6
  327. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -58
  328. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -47
  329. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -80
  330. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -52
  331. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -26
  332. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -104
  333. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -39
  334. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -406
  335. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -32
  336. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -158
  337. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -99
  338. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -139
  339. package/src-native/pods/Headers/inspector/utils.h +0 -32
  340. package/src-native/pods/Headers/inspector/v8-inspector-platform.h +0 -44
  341. package/src-native/pods/Headers/jsi/decorator.h +0 -762
  342. package/src-native/pods/Headers/jsi/instrumentation.h +0 -117
  343. package/src-native/pods/Headers/jsi/jsi-inl.h +0 -322
  344. package/src-native/pods/Headers/jsi/jsi.h +0 -1387
  345. package/src-native/pods/Headers/jsi/jsilib.h +0 -59
  346. package/src-native/pods/Headers/jsi/threadsafe.h +0 -79
  347. package/src-native/pods/Headers/runtime/ArgConverter.h +0 -61
  348. package/src-native/pods/Headers/runtime/ArrayAdapter.h +0 -13
  349. package/src-native/pods/Headers/runtime/Caches.h +0 -98
  350. package/src-native/pods/Headers/runtime/ClassBuilder.h +0 -61
  351. package/src-native/pods/Headers/runtime/Common.h +0 -9
  352. package/src-native/pods/Headers/runtime/ConcurrentMap.h +0 -55
  353. package/src-native/pods/Headers/runtime/ConcurrentQueue.h +0 -28
  354. package/src-native/pods/Headers/runtime/Console.h +0 -27
  355. package/src-native/pods/Headers/runtime/Constants.h +0 -15
  356. package/src-native/pods/Headers/runtime/DataWrapper.h +0 -671
  357. package/src-native/pods/Headers/runtime/DictionaryAdapter.h +0 -13
  358. package/src-native/pods/Headers/runtime/ExtVector.h +0 -21
  359. package/src-native/pods/Headers/runtime/FFICall.h +0 -105
  360. package/src-native/pods/Headers/runtime/FastEnumerationAdapter.h +0 -13
  361. package/src-native/pods/Headers/runtime/FunctionReference.h +0 -18
  362. package/src-native/pods/Headers/runtime/Helpers.h +0 -84
  363. package/src-native/pods/Headers/runtime/InlineFunctions.h +0 -16
  364. package/src-native/pods/Headers/runtime/Interop.h +0 -202
  365. package/src-native/pods/Headers/runtime/KnownUnknownClassPair.h +0 -35
  366. package/src-native/pods/Headers/runtime/Metadata.h +0 -981
  367. package/src-native/pods/Headers/runtime/MetadataBuilder.h +0 -72
  368. package/src-native/pods/Headers/runtime/MetadataInlines.h +0 -157
  369. package/src-native/pods/Headers/runtime/ModuleInternal.h +0 -59
  370. package/src-native/pods/Headers/runtime/NSDataAdapter.h +0 -13
  371. package/src-native/pods/Headers/runtime/NativeScriptException.h +0 -27
  372. package/src-native/pods/Headers/runtime/ObjectManager.h +0 -31
  373. package/src-native/pods/Headers/runtime/OneByteStringResource.h +0 -21
  374. package/src-native/pods/Headers/runtime/Pointer.h +0 -26
  375. package/src-native/pods/Headers/runtime/PromiseProxy.h +0 -15
  376. package/src-native/pods/Headers/runtime/Reference.h +0 -38
  377. package/src-native/pods/Headers/runtime/Runtime.h +0 -67
  378. package/src-native/pods/Headers/runtime/RuntimeConfig.h +0 -17
  379. package/src-native/pods/Headers/runtime/SetTimeout.h +0 -34
  380. package/src-native/pods/Headers/runtime/SimpleAllocator.h +0 -23
  381. package/src-native/pods/Headers/runtime/StringHasher.h +0 -315
  382. package/src-native/pods/Headers/runtime/SymbolIterator.h +0 -18
  383. package/src-native/pods/Headers/runtime/SymbolLoader.h +0 -27
  384. package/src-native/pods/Headers/runtime/TNSDerivedClass.h +0 -8
  385. package/src-native/pods/Headers/runtime/TSHelpers.h +0 -15
  386. package/src-native/pods/Headers/runtime/Tasks.h +0 -19
  387. package/src-native/pods/Headers/runtime/UnmanagedType.h +0 -21
  388. package/src-native/pods/Headers/runtime/WeakRef.h +0 -15
  389. package/src-native/pods/Headers/runtime/Worker.h +0 -26
  390. package/src-native/pods/Headers/runtime/robin_hood.h +0 -2184
  391. package/src-native/pods/Headers/v8runtime/HostProxy.h +0 -71
  392. package/src-native/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -70
  393. package/src-native/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  394. package/src-native/pods/Headers/v8runtime/V8Runtime.h +0 -215
  395. package/src-native/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  396. package/src-native/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  397. package/src-native/pods/NativeScript.podspec +0 -68
@@ -1,2181 +0,0 @@
1
- //
2
- // Created by Osei Fortune on 01/01/2024.
3
- //
4
-
5
- #include "MasonStyleImpl.h"
6
- #include "Caches.h"
7
-
8
-
9
- /*
10
-
11
- [[maybe_unused]] rust::Vec<CMasonNonRepeatedTrackSizingFunction>
12
- toNonRepeatedTrackSizingFunction(v8::Isolate *isolate, v8::Local<v8::Array> &array)
13
- {
14
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
15
- auto len = array->Length();
16
-
17
- auto auto_vec = rust::Vec<CMasonNonRepeatedTrackSizingFunction>();
18
-
19
- if (len == 0)
20
- {
21
- return std::move(auto_vec);
22
- }
23
-
24
- auto_vec.reserve(len);
25
-
26
- for (int i = 0; i < len; i++)
27
- {
28
- auto value = array->Get(context, i).ToLocalChecked().As<v8::Object>();
29
-
30
- // object {type: number, min_type: number, min_value: number, max_type: number, max_value: number};
31
- auto min_type = value->Get(context,
32
- STRING_TO_V8_VALUE("min_type"))
33
- .ToLocalChecked()
34
- ->Int32Value(
35
- context)
36
- .FromJust();
37
- auto min_value = (float)value->Get(context, STRING_TO_V8_VALUE(
38
- "min_value"))
39
- .ToLocalChecked()
40
- ->NumberValue(context)
41
- .FromJust();
42
-
43
- auto max_type = value->Get(context,
44
- STRING_TO_V8_VALUE("max_type"))
45
- .ToLocalChecked()
46
- ->Int32Value(
47
- context)
48
- .FromJust();
49
- auto max_value = (float)value->Get(context, STRING_TO_V8_VALUE(
50
- "max_value"))
51
- .ToLocalChecked()
52
- ->NumberValue(context)
53
- .FromJust();
54
-
55
- CMasonMinMax minMax = {};
56
- minMax.min_type = min_type;
57
- minMax.min_value = min_value;
58
- minMax.max_type = max_type;
59
- minMax.max_value = max_value;
60
-
61
- mason_util_create_non_repeated_track_sizing_function(minMax, -1, auto_vec);
62
- }
63
-
64
- return std::move(auto_vec);
65
- }
66
-
67
- [[maybe_unused]] rust::Vec<CMasonTrackSizingFunction>
68
- toTrackSizingFunction(v8::Isolate *isolate, v8::Local<v8::Array> &array)
69
- {
70
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
71
- auto len = array->Length();
72
-
73
- auto auto_vec = rust::Vec<CMasonTrackSizingFunction>();
74
-
75
- if (len == 0)
76
- {
77
- return std::move(auto_vec);
78
- }
79
-
80
- auto_vec.reserve(len);
81
-
82
- for (int i = 0; i < len; i++)
83
- {
84
- auto object = array->Get(context, i).ToLocalChecked().As<v8::Object>();
85
- bool is_repeating = object->Get(context, STRING_TO_V8_VALUE(
86
- "is_repeating"))
87
- .ToLocalChecked()
88
- ->BooleanValue(isolate);
89
- auto repeating_type = object->Get(context, STRING_TO_V8_VALUE(
90
- "repeating_type"))
91
- .ToLocalChecked()
92
- ->Int32Value(context)
93
- .FromJust();
94
- auto repeating_count = (short)object->Get(context, STRING_TO_V8_VALUE(
95
- "repeating_count"))
96
- .ToLocalChecked()
97
- ->Int32Value(context)
98
- .FromJust();
99
-
100
- auto value = object->Get(context, STRING_TO_V8_VALUE("value"));
101
- if (is_repeating)
102
- {
103
- auto value_array = value.ToLocalChecked().As<v8::Array>();
104
- auto repeating_length = value_array->Length();
105
-
106
- rust::Vec<CMasonMinMax> vec;
107
- vec.reserve(repeating_length);
108
-
109
- for (int j = 0; j < repeating_length; j++)
110
- {
111
- auto repeat_object = value_array->Get(context, i).ToLocalChecked().As<v8::Object>();
112
-
113
- auto min_type = repeat_object->Get(context, STRING_TO_V8_VALUE(
114
- "min_type"))
115
- .ToLocalChecked()
116
- ->Int32Value(context)
117
- .FromJust();
118
- auto min_value = (float)repeat_object->Get(context, STRING_TO_V8_VALUE(
119
- "min_value"))
120
- .ToLocalChecked()
121
- ->NumberValue(context)
122
- .FromJust();
123
-
124
- auto max_type = repeat_object->Get(context, STRING_TO_V8_VALUE(
125
- "max_type"))
126
- .ToLocalChecked()
127
- ->Int32Value(context)
128
- .FromJust();
129
- auto max_value = (float)repeat_object->Get(context, STRING_TO_V8_VALUE(
130
- "max_value"))
131
- .ToLocalChecked()
132
- ->NumberValue(context)
133
- .FromJust();
134
-
135
- CMasonMinMax minMax{};
136
- minMax.min_type = min_type;
137
- minMax.min_value = min_value;
138
-
139
- minMax.max_type = max_type;
140
- minMax.max_value = max_value;
141
-
142
- vec.emplace_back(minMax);
143
- }
144
-
145
- mason_util_create_auto_repeating_track_sizing_function(
146
- repeating_type, repeating_count, std::move(vec), -1, auto_vec);
147
- }
148
- else
149
- {
150
- auto single_object = value.ToLocalChecked().As<v8::Object>();
151
-
152
- auto min_type = single_object->Get(context, STRING_TO_V8_VALUE(
153
- "min_type"))
154
- .ToLocalChecked()
155
- ->Int32Value(context)
156
- .FromJust();
157
- auto min_value = (float)single_object->Get(context, STRING_TO_V8_VALUE(
158
- "min_value"))
159
- .ToLocalChecked()
160
- ->NumberValue(context)
161
- .FromJust();
162
-
163
- auto max_type = single_object->Get(context, STRING_TO_V8_VALUE(
164
- "max_type"))
165
- .ToLocalChecked()
166
- ->Int32Value(context)
167
- .FromJust();
168
- auto max_value = (float)single_object->Get(context, STRING_TO_V8_VALUE(
169
- "max_value"))
170
- .ToLocalChecked()
171
- ->NumberValue(context)
172
- .FromJust();
173
-
174
- CMasonMinMax minMax{};
175
- minMax.min_type = min_type;
176
- minMax.min_value = min_value;
177
-
178
- minMax.max_type = max_type;
179
- minMax.max_value = max_value;
180
-
181
- mason_util_create_single_track_sizing_function(minMax, -1, auto_vec);
182
- }
183
- }
184
-
185
- return std::move(auto_vec);
186
- }
187
-
188
- */
189
-
190
-
191
- void MasonStyleImpl::Init(v8::Isolate *isolate) {
192
- v8::Locker locker(isolate);
193
- v8::Isolate::Scope isolate_scope(isolate);
194
- v8::HandleScope handle_scope(isolate);
195
-
196
- auto ctor = GetCtor(isolate);
197
- auto context = isolate->GetCurrentContext();
198
- auto global = context->Global();
199
- auto func = ctor->GetFunction(context).ToLocalChecked();
200
-
201
- global->Set(context, Helpers::ConvertToV8String(isolate, "NSCMasonStyle"), func);
202
- }
203
-
204
- MasonStyleImpl *MasonStyleImpl::GetPointer(v8::Local<v8::Object> object) {
205
- auto ptr = object->GetInternalField(0).As<v8::External>()->Value();
206
- if (ptr == nullptr) {
207
- return nullptr;
208
- }
209
- return static_cast<MasonStyleImpl *>(ptr);
210
- }
211
-
212
- v8::Local<v8::FunctionTemplate> MasonStyleImpl::GetCtor(v8::Isolate *isolate) {
213
- auto cache = Caches::Get(isolate);
214
- auto ctor = cache->MasonStyleTmpl.get();
215
- if (ctor != nullptr) {
216
- return ctor->Get(isolate);
217
- }
218
-
219
- v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate, nullptr);
220
-
221
- ctorTmpl->InstanceTemplate()->SetInternalFieldCount(1);
222
- ctorTmpl->SetClassName(Helpers::ConvertToV8String(isolate, "NSCMasonStyle"));
223
-
224
- auto tmpl = ctorTmpl->InstanceTemplate();
225
- tmpl->SetInternalFieldCount(1);
226
-
227
-
228
- tmpl->SetAccessor(
229
- Helpers::ConvertToV8String(isolate, "display"),
230
- &GetDisplay,
231
- &SetDisplay
232
- );
233
-
234
-
235
- tmpl->SetAccessor(
236
- Helpers::ConvertToV8String(isolate, "scrollbarWidth"),
237
- &GetScrollbarWidth,
238
- &SetScrollbarWidth
239
- );
240
-
241
-
242
- tmpl->SetAccessor(
243
- Helpers::ConvertToV8String(isolate, "overflow"),
244
- nullptr,
245
- &SetOverflow
246
- );
247
-
248
- tmpl->SetAccessor(
249
- Helpers::ConvertToV8String(isolate, "overflowX"),
250
- &GetOverflowX,
251
- &SetOverflowX
252
- );
253
-
254
- tmpl->SetAccessor(
255
- Helpers::ConvertToV8String(isolate, "overflowY"),
256
- &GetOverflowY,
257
- &SetOverflowY
258
- );
259
-
260
- tmpl->SetAccessor(
261
- Helpers::ConvertToV8String(isolate, "position"),
262
- &GetPosition,
263
- &SetPosition
264
- );
265
-
266
-
267
- tmpl->SetAccessor(
268
- Helpers::ConvertToV8String(isolate, "flexWrap"),
269
- &GetFlexWrap,
270
- &SetFlexWrap
271
- );
272
-
273
- tmpl->SetAccessor(
274
- Helpers::ConvertToV8String(isolate, "alignItems"),
275
- &GetAlignItems,
276
- &SetAlignItems
277
- );
278
-
279
-
280
- tmpl->SetAccessor(
281
- Helpers::ConvertToV8String(isolate, "alignContent"),
282
- &GetAlignContent,
283
- &SetAlignContent
284
- );
285
-
286
-
287
- tmpl->SetAccessor(
288
- Helpers::ConvertToV8String(isolate, "alignSelf"),
289
- &GetAlignSelf,
290
- &SetAlignSelf
291
- );
292
-
293
-
294
- tmpl->SetAccessor(
295
- Helpers::ConvertToV8String(isolate, "justifyItems"),
296
- &GetJustifyItems,
297
- &SetJustifyItems
298
- );
299
-
300
-
301
- tmpl->SetAccessor(
302
- Helpers::ConvertToV8String(isolate, "justifyContent"),
303
- &GetJustifyContent,
304
- &SetJustifyContent
305
- );
306
-
307
-
308
- tmpl->SetAccessor(
309
- Helpers::ConvertToV8String(isolate, "justifySelf"),
310
- &GetJustifySelf,
311
- &SetJustifySelf
312
- );
313
-
314
-
315
- cache->MasonStyleTmpl =
316
- std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
317
-
318
- return ctorTmpl;
319
-
320
- }
321
-
322
- MasonStyleImpl::MasonStyleImpl(void *style) : style_(style) {}
323
-
324
-
325
- void MasonStyleImpl::GetDisplay(v8::Local<v8::String> property,
326
- const v8::PropertyCallbackInfo<v8::Value> &info) {
327
- MasonStyleImpl *ptr = GetPointer(info.This());
328
- if (ptr == nullptr) {
329
- info.GetReturnValue().Set(0);
330
- return;
331
- }
332
-
333
- auto ret = mason_style_get_display(ptr->style_);
334
-
335
- info.GetReturnValue().Set(ret);
336
-
337
- }
338
-
339
- void MasonStyleImpl::SetDisplay(v8::Local<v8::String> property,
340
- v8::Local<v8::Value> value,
341
- const v8::PropertyCallbackInfo<void> &info) {
342
- MasonStyleImpl *ptr = GetPointer(info.This());
343
- if (ptr == nullptr) {
344
- return;
345
- }
346
- auto isolate = info.GetIsolate();
347
- auto context = isolate->GetCurrentContext();
348
- auto val = value->Int32Value(context).ToChecked();
349
- mason_style_set_display(ptr->style_, val);
350
- }
351
-
352
-
353
- void MasonStyleImpl::GetScrollbarWidth(v8::Local<v8::String> property,
354
- const v8::PropertyCallbackInfo<v8::Value> &info) {
355
- MasonStyleImpl *ptr = GetPointer(info.This());
356
- if (ptr == nullptr) {
357
- info.GetReturnValue().Set(0);
358
- return;
359
- }
360
-
361
- auto ret = mason_style_get_scrollbar_width(ptr->style_);
362
-
363
- info.GetReturnValue().Set((double) ret);
364
-
365
- }
366
-
367
- void MasonStyleImpl::SetScrollbarWidth(v8::Local<v8::String> property,
368
- v8::Local<v8::Value> value,
369
- const v8::PropertyCallbackInfo<void> &info) {
370
- MasonStyleImpl *ptr = GetPointer(info.This());
371
- if (ptr == nullptr) {
372
- return;
373
- }
374
- auto isolate = info.GetIsolate();
375
- auto context = isolate->GetCurrentContext();
376
- auto val = (float) value->NumberValue(context).ToChecked();
377
- mason_style_set_scrollbar_width(ptr->style_, val);
378
- }
379
-
380
-
381
- void MasonStyleImpl::GetOverflow(v8::Local<v8::String> property,
382
- const v8::PropertyCallbackInfo<v8::Value> &info) {
383
-
384
-
385
- }
386
-
387
- void MasonStyleImpl::SetOverflow(v8::Local<v8::String> property,
388
- v8::Local<v8::Value> value,
389
- const v8::PropertyCallbackInfo<void> &info) {
390
- MasonStyleImpl *ptr = GetPointer(info.This());
391
- if (ptr == nullptr) {
392
- return;
393
- }
394
- auto isolate = info.GetIsolate();
395
- auto context = isolate->GetCurrentContext();
396
- auto val = value->Int32Value(context).ToChecked();
397
- mason_style_set_overflow(ptr->style_, val);
398
- }
399
-
400
- void MasonStyleImpl::GetOverflowX(v8::Local<v8::String> property,
401
- const v8::PropertyCallbackInfo<v8::Value> &info) {
402
- MasonStyleImpl *ptr = GetPointer(info.This());
403
- if (ptr == nullptr) {
404
- info.GetReturnValue().Set(0);
405
- return;
406
- }
407
-
408
- auto ret = mason_style_get_overflow_x(ptr->style_);
409
-
410
- info.GetReturnValue().Set((double) ret);
411
-
412
- }
413
-
414
- void MasonStyleImpl::SetOverflowX(v8::Local<v8::String> property,
415
- v8::Local<v8::Value> value,
416
- const v8::PropertyCallbackInfo<void> &info) {
417
- MasonStyleImpl *ptr = GetPointer(info.This());
418
- if (ptr == nullptr) {
419
- return;
420
- }
421
- auto isolate = info.GetIsolate();
422
- auto context = isolate->GetCurrentContext();
423
- auto val = value->Int32Value(context).ToChecked();
424
- mason_style_set_overflow_x(ptr->style_, val);
425
- }
426
-
427
- void MasonStyleImpl::GetOverflowY(v8::Local<v8::String> property,
428
- const v8::PropertyCallbackInfo<v8::Value> &info) {
429
- MasonStyleImpl *ptr = GetPointer(info.This());
430
- if (ptr == nullptr) {
431
- info.GetReturnValue().Set(0);
432
- return;
433
- }
434
-
435
- auto ret = mason_style_get_overflow_y(ptr->style_);
436
-
437
- info.GetReturnValue().Set((double) ret);
438
-
439
- }
440
-
441
- void MasonStyleImpl::SetOverflowY(v8::Local<v8::String> property,
442
- v8::Local<v8::Value> value,
443
- const v8::PropertyCallbackInfo<void> &info) {
444
- MasonStyleImpl *ptr = GetPointer(info.This());
445
- if (ptr == nullptr) {
446
- return;
447
- }
448
- auto isolate = info.GetIsolate();
449
- auto context = isolate->GetCurrentContext();
450
- auto val = value->Int32Value(context).ToChecked();
451
- mason_style_set_overflow_y(ptr->style_, val);
452
- }
453
-
454
- void MasonStyleImpl::GetPosition(v8::Local<v8::String> property,
455
- const v8::PropertyCallbackInfo<v8::Value> &info) {
456
- MasonStyleImpl *ptr = GetPointer(info.This());
457
- if (ptr == nullptr) {
458
- info.GetReturnValue().Set(0);
459
- return;
460
- }
461
-
462
- auto ret = mason_style_get_position(ptr->style_);
463
-
464
- info.GetReturnValue().Set(ret);
465
-
466
- }
467
-
468
- void MasonStyleImpl::SetPosition(v8::Local<v8::String> property,
469
- v8::Local<v8::Value> value,
470
- const v8::PropertyCallbackInfo<void> &info) {
471
- MasonStyleImpl *ptr = GetPointer(info.This());
472
- if (ptr == nullptr) {
473
- return;
474
- }
475
- auto isolate = info.GetIsolate();
476
- auto context = isolate->GetCurrentContext();
477
- auto val = value->Int32Value(context).ToChecked();
478
- mason_style_set_position(ptr->style_, val);
479
- }
480
-
481
- void MasonStyleImpl::GetFlexWrap(v8::Local<v8::String> property,
482
- const v8::PropertyCallbackInfo<v8::Value> &info) {
483
- MasonStyleImpl *ptr = GetPointer(info.This());
484
- if (ptr == nullptr) {
485
- info.GetReturnValue().Set(0);
486
- return;
487
- }
488
-
489
- auto ret = mason_style_get_flex_wrap(ptr->style_);
490
-
491
- info.GetReturnValue().Set(ret);
492
-
493
- }
494
-
495
- void MasonStyleImpl::SetFlexWrap(v8::Local<v8::String> property,
496
- v8::Local<v8::Value> value,
497
- const v8::PropertyCallbackInfo<void> &info) {
498
- MasonStyleImpl *ptr = GetPointer(info.This());
499
- if (ptr == nullptr) {
500
- return;
501
- }
502
- auto isolate = info.GetIsolate();
503
- auto context = isolate->GetCurrentContext();
504
- auto val = value->Int32Value(context).ToChecked();
505
- mason_style_set_flex_wrap(ptr->style_, val);
506
- }
507
-
508
- void MasonStyleImpl::GetAlignItems(v8::Local<v8::String> property,
509
- const v8::PropertyCallbackInfo<v8::Value> &info) {
510
- MasonStyleImpl *ptr = GetPointer(info.This());
511
- if (ptr == nullptr) {
512
- info.GetReturnValue().Set(0);
513
- return;
514
- }
515
-
516
- auto ret = mason_style_get_align_items(ptr->style_);
517
-
518
- info.GetReturnValue().Set(ret);
519
-
520
- }
521
-
522
- void MasonStyleImpl::SetAlignItems(v8::Local<v8::String> property,
523
- v8::Local<v8::Value> value,
524
- const v8::PropertyCallbackInfo<void> &info) {
525
- MasonStyleImpl *ptr = GetPointer(info.This());
526
- if (ptr == nullptr) {
527
- return;
528
- }
529
- auto isolate = info.GetIsolate();
530
- auto context = isolate->GetCurrentContext();
531
- auto val = value->Int32Value(context).ToChecked();
532
- mason_style_set_align_items(ptr->style_, val);
533
- }
534
-
535
- void MasonStyleImpl::GetAlignContent(v8::Local<v8::String> property,
536
- const v8::PropertyCallbackInfo<v8::Value> &info) {
537
- MasonStyleImpl *ptr = GetPointer(info.This());
538
- if (ptr == nullptr) {
539
- info.GetReturnValue().Set(0);
540
- return;
541
- }
542
-
543
- auto ret = mason_style_get_align_content(ptr->style_);
544
-
545
- info.GetReturnValue().Set(ret);
546
-
547
- }
548
-
549
- void MasonStyleImpl::SetAlignContent(v8::Local<v8::String> property,
550
- v8::Local<v8::Value> value,
551
- const v8::PropertyCallbackInfo<void> &info) {
552
- MasonStyleImpl *ptr = GetPointer(info.This());
553
- if (ptr == nullptr) {
554
- return;
555
- }
556
- auto isolate = info.GetIsolate();
557
- auto context = isolate->GetCurrentContext();
558
- auto val = value->Int32Value(context).ToChecked();
559
- mason_style_set_align_content(ptr->style_, val);
560
- }
561
-
562
- void MasonStyleImpl::GetAlignSelf(v8::Local<v8::String> property,
563
- const v8::PropertyCallbackInfo<v8::Value> &info) {
564
- MasonStyleImpl *ptr = GetPointer(info.This());
565
- if (ptr == nullptr) {
566
- info.GetReturnValue().Set(0);
567
- return;
568
- }
569
-
570
- auto ret = mason_style_get_align_self(ptr->style_);
571
-
572
- info.GetReturnValue().Set(ret);
573
-
574
- }
575
-
576
- void MasonStyleImpl::SetAlignSelf(v8::Local<v8::String> property,
577
- v8::Local<v8::Value> value,
578
- const v8::PropertyCallbackInfo<void> &info) {
579
- MasonStyleImpl *ptr = GetPointer(info.This());
580
- if (ptr == nullptr) {
581
- return;
582
- }
583
- auto isolate = info.GetIsolate();
584
- auto context = isolate->GetCurrentContext();
585
- auto val = value->Int32Value(context).ToChecked();
586
- mason_style_set_align_self(ptr->style_, val);
587
- }
588
-
589
- void MasonStyleImpl::GetJustifyItems(v8::Local<v8::String> property,
590
- const v8::PropertyCallbackInfo<v8::Value> &info) {
591
- MasonStyleImpl *ptr = GetPointer(info.This());
592
- if (ptr == nullptr) {
593
- info.GetReturnValue().Set(0);
594
- return;
595
- }
596
-
597
- auto ret = mason_style_get_justify_items(ptr->style_);
598
-
599
- info.GetReturnValue().Set(ret);
600
-
601
- }
602
-
603
- void MasonStyleImpl::SetJustifyItems(v8::Local<v8::String> property,
604
- v8::Local<v8::Value> value,
605
- const v8::PropertyCallbackInfo<void> &info) {
606
- MasonStyleImpl *ptr = GetPointer(info.This());
607
- if (ptr == nullptr) {
608
- return;
609
- }
610
- auto isolate = info.GetIsolate();
611
- auto context = isolate->GetCurrentContext();
612
- auto val = value->Int32Value(context).ToChecked();
613
- mason_style_set_justify_items(ptr->style_, val);
614
- }
615
-
616
-
617
- void MasonStyleImpl::GetJustifyContent(v8::Local<v8::String> property,
618
- const v8::PropertyCallbackInfo<v8::Value> &info) {
619
- MasonStyleImpl *ptr = GetPointer(info.This());
620
- if (ptr == nullptr) {
621
- info.GetReturnValue().Set(0);
622
- return;
623
- }
624
-
625
- auto ret = mason_style_get_justify_content(ptr->style_);
626
-
627
- info.GetReturnValue().Set(ret);
628
-
629
- }
630
-
631
- void MasonStyleImpl::SetJustifyContent(v8::Local<v8::String> property,
632
- v8::Local<v8::Value> value,
633
- const v8::PropertyCallbackInfo<void> &info) {
634
- MasonStyleImpl *ptr = GetPointer(info.This());
635
- if (ptr == nullptr) {
636
- return;
637
- }
638
- auto isolate = info.GetIsolate();
639
- auto context = isolate->GetCurrentContext();
640
- auto val = value->Int32Value(context).ToChecked();
641
- mason_style_set_justify_content(ptr->style_, val);
642
- }
643
-
644
- void MasonStyleImpl::GetJustifySelf(v8::Local<v8::String> property,
645
- const v8::PropertyCallbackInfo<v8::Value> &info) {
646
- MasonStyleImpl *ptr = GetPointer(info.This());
647
- if (ptr == nullptr) {
648
- info.GetReturnValue().Set(0);
649
- return;
650
- }
651
-
652
- auto ret = mason_style_get_justify_self(ptr->style_);
653
-
654
- info.GetReturnValue().Set(ret);
655
-
656
- }
657
-
658
- void MasonStyleImpl::SetJustifySelf(v8::Local<v8::String> property,
659
- v8::Local<v8::Value> value,
660
- const v8::PropertyCallbackInfo<void> &info) {
661
- MasonStyleImpl *ptr = GetPointer(info.This());
662
- if (ptr == nullptr) {
663
- return;
664
- }
665
- auto isolate = info.GetIsolate();
666
- auto context = isolate->GetCurrentContext();
667
- auto val = value->Int32Value(context).ToChecked();
668
- mason_style_set_justify_self(ptr->style_, val);
669
- }
670
-
671
- void MasonStyleImpl::GetInset(v8::Local<v8::String> property,
672
- const v8::PropertyCallbackInfo<v8::Value> &info) {
673
-
674
-
675
- }
676
-
677
- void MasonStyleImpl::SetInset(v8::Local<v8::String> property,
678
- v8::Local<v8::Value> value,
679
- const v8::PropertyCallbackInfo<void> &info) {
680
- // MasonStyleImpl *ptr = GetPointer(info.This());
681
- // if (ptr == nullptr) {
682
- // return;
683
- // }
684
- // auto isolate = info.GetIsolate();
685
- // auto context = isolate->GetCurrentContext();
686
- // auto val = value->Int32Value(context).ToChecked();
687
- // mason_style_set_inset(ptr->style_, val);
688
- }
689
-
690
-
691
- void MasonStyleImpl::GetInsetLeft(v8::Local<v8::String> property,
692
- const v8::PropertyCallbackInfo<v8::Value> &info) {
693
- MasonStyleImpl *ptr = GetPointer(info.This());
694
- if (ptr == nullptr) {
695
- info.GetReturnValue().Set(0);
696
- return;
697
- }
698
-
699
- auto ret = mason_style_get_inset_left(ptr->style_);
700
-
701
- info.GetReturnValue().Set(ret);
702
-
703
- }
704
-
705
- void MasonStyleImpl::SetInsetLeft(v8::Local<v8::String> property,
706
- v8::Local<v8::Value> value,
707
- const v8::PropertyCallbackInfo<void> &info) {
708
- MasonStyleImpl *ptr = GetPointer(info.This());
709
- if (ptr == nullptr) {
710
- return;
711
- }
712
- auto isolate = info.GetIsolate();
713
- auto context = isolate->GetCurrentContext();
714
- auto val = value->Int32Value(context).ToChecked();
715
- mason_style_set_inset_left(ptr->style_, val);
716
- }
717
-
718
-
719
- void MasonStyleImpl::GetInsetTop(v8::Local<v8::String> property,
720
- const v8::PropertyCallbackInfo<v8::Value> &info) {
721
- MasonStyleImpl *ptr = GetPointer(info.This());
722
- if (ptr == nullptr) {
723
- info.GetReturnValue().Set(0);
724
- return;
725
- }
726
-
727
- auto ret = mason_style_get_inset_top(ptr->style_);
728
-
729
- info.GetReturnValue().Set(ret);
730
-
731
- }
732
-
733
- void MasonStyleImpl::SetInsetTop(v8::Local<v8::String> property,
734
- v8::Local<v8::Value> value,
735
- const v8::PropertyCallbackInfo<void> &info) {
736
- MasonStyleImpl *ptr = GetPointer(info.This());
737
- if (ptr == nullptr) {
738
- return;
739
- }
740
- auto isolate = info.GetIsolate();
741
- auto context = isolate->GetCurrentContext();
742
- auto val = value->Int32Value(context).ToChecked();
743
- mason_style_set_inset_top(ptr->style_, val);
744
- }
745
-
746
-
747
- void MasonStyleImpl::GetInsetRight(v8::Local<v8::String> property,
748
- const v8::PropertyCallbackInfo<v8::Value> &info) {
749
- MasonStyleImpl *ptr = GetPointer(info.This());
750
- if (ptr == nullptr) {
751
- info.GetReturnValue().Set(0);
752
- return;
753
- }
754
-
755
- auto ret = mason_style_get_inset_right(ptr->style_);
756
-
757
- info.GetReturnValue().Set(ret);
758
-
759
- }
760
-
761
- void MasonStyleImpl::SetInsetRight(v8::Local<v8::String> property,
762
- v8::Local<v8::Value> value,
763
- const v8::PropertyCallbackInfo<void> &info) {
764
- MasonStyleImpl *ptr = GetPointer(info.This());
765
- if (ptr == nullptr) {
766
- return;
767
- }
768
- auto isolate = info.GetIsolate();
769
- auto context = isolate->GetCurrentContext();
770
- auto val = value->Int32Value(context).ToChecked();
771
- mason_style_set_inset_right(ptr->style_, val);
772
- }
773
-
774
-
775
- void MasonStyleImpl::GetInsetBottom(v8::Local<v8::String> property,
776
- const v8::PropertyCallbackInfo<v8::Value> &info) {
777
- MasonStyleImpl *ptr = GetPointer(info.This());
778
- if (ptr == nullptr) {
779
- info.GetReturnValue().Set(0);
780
- return;
781
- }
782
-
783
- auto ret = mason_style_get_inset_bottom(ptr->style_);
784
-
785
- info.GetReturnValue().Set(ret);
786
-
787
- }
788
-
789
- void MasonStyleImpl::SetInsetBottom(v8::Local<v8::String> property,
790
- v8::Local<v8::Value> value,
791
- const v8::PropertyCallbackInfo<void> &info) {
792
- MasonStyleImpl *ptr = GetPointer(info.This());
793
- if (ptr == nullptr) {
794
- return;
795
- }
796
- auto isolate = info.GetIsolate();
797
- auto context = isolate->GetCurrentContext();
798
- auto val = value->Int32Value(context).ToChecked();
799
- mason_style_set_inset_bottom(ptr->style_, val);
800
- }
801
-
802
-
803
- void MasonStyleImpl::GetMargin(v8::Local<v8::String> property,
804
- const v8::PropertyCallbackInfo<v8::Value> &info) {
805
-
806
-
807
- }
808
-
809
- void MasonStyleImpl::SetMargin(v8::Local<v8::String> property,
810
- v8::Local<v8::Value> value,
811
- const v8::PropertyCallbackInfo<void> &info) {
812
- // MasonStyleImpl *ptr = GetPointer(info.This());
813
- // if (ptr == nullptr) {
814
- // return;
815
- // }
816
- // auto isolate = info.GetIsolate();
817
- // auto context = isolate->GetCurrentContext();
818
- // auto val = value->Int32Value(context).ToChecked();
819
- // mason_style_set_Margin(ptr->style_, val);
820
- }
821
-
822
-
823
- void MasonStyleImpl::GetMarginLeft(v8::Local<v8::String> property,
824
- const v8::PropertyCallbackInfo<v8::Value> &info) {
825
- MasonStyleImpl *ptr = GetPointer(info.This());
826
- if (ptr == nullptr) {
827
- info.GetReturnValue().Set(0);
828
- return;
829
- }
830
-
831
- auto ret = mason_style_get_margin_left(ptr->style_);
832
-
833
- info.GetReturnValue().Set(ret);
834
-
835
- }
836
-
837
- void MasonStyleImpl::SetMarginLeft(v8::Local<v8::String> property,
838
- v8::Local<v8::Value> value,
839
- const v8::PropertyCallbackInfo<void> &info) {
840
- MasonStyleImpl *ptr = GetPointer(info.This());
841
- if (ptr == nullptr) {
842
- return;
843
- }
844
- auto isolate = info.GetIsolate();
845
- auto context = isolate->GetCurrentContext();
846
- auto val = value->Int32Value(context).ToChecked();
847
- mason_style_set_margin_left(ptr->style_, val);
848
- }
849
-
850
-
851
- void MasonStyleImpl::GetMarginTop(v8::Local<v8::String> property,
852
- const v8::PropertyCallbackInfo<v8::Value> &info) {
853
- MasonStyleImpl *ptr = GetPointer(info.This());
854
- if (ptr == nullptr) {
855
- info.GetReturnValue().Set(0);
856
- return;
857
- }
858
-
859
- auto ret = mason_style_get_margin_top(ptr->style_);
860
-
861
- info.GetReturnValue().Set(ret);
862
-
863
- }
864
-
865
- void MasonStyleImpl::SetMarginTop(v8::Local<v8::String> property,
866
- v8::Local<v8::Value> value,
867
- const v8::PropertyCallbackInfo<void> &info) {
868
- MasonStyleImpl *ptr = GetPointer(info.This());
869
- if (ptr == nullptr) {
870
- return;
871
- }
872
- auto isolate = info.GetIsolate();
873
- auto context = isolate->GetCurrentContext();
874
- auto val = value->Int32Value(context).ToChecked();
875
- mason_style_set_margin_top(ptr->style_, val);
876
- }
877
-
878
-
879
- void MasonStyleImpl::GetMarginRight(v8::Local<v8::String> property,
880
- const v8::PropertyCallbackInfo<v8::Value> &info) {
881
- MasonStyleImpl *ptr = GetPointer(info.This());
882
- if (ptr == nullptr) {
883
- info.GetReturnValue().Set(0);
884
- return;
885
- }
886
-
887
- auto ret = mason_style_get_margin_right(ptr->style_);
888
-
889
- info.GetReturnValue().Set(ret);
890
-
891
- }
892
-
893
- void MasonStyleImpl::SetMarginRight(v8::Local<v8::String> property,
894
- v8::Local<v8::Value> value,
895
- const v8::PropertyCallbackInfo<void> &info) {
896
- MasonStyleImpl *ptr = GetPointer(info.This());
897
- if (ptr == nullptr) {
898
- return;
899
- }
900
- auto isolate = info.GetIsolate();
901
- auto context = isolate->GetCurrentContext();
902
- auto val = value->Int32Value(context).ToChecked();
903
- mason_style_set_margin_right(ptr->style_, val);
904
- }
905
-
906
-
907
- void MasonStyleImpl::GetMarginBottom(v8::Local<v8::String> property,
908
- const v8::PropertyCallbackInfo<v8::Value> &info) {
909
- MasonStyleImpl *ptr = GetPointer(info.This());
910
- if (ptr == nullptr) {
911
- info.GetReturnValue().Set(0);
912
- return;
913
- }
914
-
915
- auto ret = mason_style_get_margin_bottom(ptr->style_);
916
-
917
- info.GetReturnValue().Set(ret);
918
-
919
- }
920
-
921
- void MasonStyleImpl::SetMarginBottom(v8::Local<v8::String> property,
922
- v8::Local<v8::Value> value,
923
- const v8::PropertyCallbackInfo<void> &info) {
924
- MasonStyleImpl *ptr = GetPointer(info.This());
925
- if (ptr == nullptr) {
926
- return;
927
- }
928
- auto isolate = info.GetIsolate();
929
- auto context = isolate->GetCurrentContext();
930
- auto val = value->Int32Value(context).ToChecked();
931
- mason_style_set_margin_bottom(ptr->style_, val);
932
- }
933
-
934
-
935
- void MasonStyleImpl::GetPadding(v8::Local<v8::String> property,
936
- const v8::PropertyCallbackInfo<v8::Value> &info) {
937
-
938
-
939
- }
940
-
941
- void MasonStyleImpl::SetPadding(v8::Local<v8::String> property,
942
- v8::Local<v8::Value> value,
943
- const v8::PropertyCallbackInfo<void> &info) {
944
- // MasonStyleImpl *ptr = GetPointer(info.This());
945
- // if (ptr == nullptr) {
946
- // return;
947
- // }
948
- // auto isolate = info.GetIsolate();
949
- // auto context = isolate->GetCurrentContext();
950
- // auto val = value->Int32Value(context).ToChecked();
951
- // mason_style_set_Padding(ptr->style_, val);
952
- }
953
-
954
-
955
- void MasonStyleImpl::GetPaddingLeft(v8::Local<v8::String> property,
956
- const v8::PropertyCallbackInfo<v8::Value> &info) {
957
- MasonStyleImpl *ptr = GetPointer(info.This());
958
- if (ptr == nullptr) {
959
- info.GetReturnValue().Set(0);
960
- return;
961
- }
962
-
963
- auto ret = mason_style_get_padding_left(ptr->style_);
964
-
965
- info.GetReturnValue().Set(ret);
966
-
967
- }
968
-
969
- void MasonStyleImpl::SetPaddingLeft(v8::Local<v8::String> property,
970
- v8::Local<v8::Value> value,
971
- const v8::PropertyCallbackInfo<void> &info) {
972
- MasonStyleImpl *ptr = GetPointer(info.This());
973
- if (ptr == nullptr) {
974
- return;
975
- }
976
- auto isolate = info.GetIsolate();
977
- auto context = isolate->GetCurrentContext();
978
- auto val = value->Int32Value(context).ToChecked();
979
- mason_style_set_padding_left(ptr->style_, val);
980
- }
981
-
982
-
983
- void MasonStyleImpl::GetPaddingTop(v8::Local<v8::String> property,
984
- const v8::PropertyCallbackInfo<v8::Value> &info) {
985
- MasonStyleImpl *ptr = GetPointer(info.This());
986
- if (ptr == nullptr) {
987
- info.GetReturnValue().Set(0);
988
- return;
989
- }
990
-
991
- auto ret = mason_style_get_padding_top(ptr->style_);
992
-
993
- info.GetReturnValue().Set(ret);
994
-
995
- }
996
-
997
- void MasonStyleImpl::SetPaddingTop(v8::Local<v8::String> property,
998
- v8::Local<v8::Value> value,
999
- const v8::PropertyCallbackInfo<void> &info) {
1000
- MasonStyleImpl *ptr = GetPointer(info.This());
1001
- if (ptr == nullptr) {
1002
- return;
1003
- }
1004
- auto isolate = info.GetIsolate();
1005
- auto context = isolate->GetCurrentContext();
1006
- auto val = value->Int32Value(context).ToChecked();
1007
- mason_style_set_padding_top(ptr->style_, val);
1008
- }
1009
-
1010
-
1011
- void MasonStyleImpl::GetPaddingRight(v8::Local<v8::String> property,
1012
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1013
- MasonStyleImpl *ptr = GetPointer(info.This());
1014
- if (ptr == nullptr) {
1015
- info.GetReturnValue().Set(0);
1016
- return;
1017
- }
1018
-
1019
- auto ret = mason_style_get_padding_right(ptr->style_);
1020
-
1021
- info.GetReturnValue().Set(ret);
1022
-
1023
- }
1024
-
1025
- void MasonStyleImpl::SetPaddingRight(v8::Local<v8::String> property,
1026
- v8::Local<v8::Value> value,
1027
- const v8::PropertyCallbackInfo<void> &info) {
1028
- MasonStyleImpl *ptr = GetPointer(info.This());
1029
- if (ptr == nullptr) {
1030
- return;
1031
- }
1032
- auto isolate = info.GetIsolate();
1033
- auto context = isolate->GetCurrentContext();
1034
- auto val = value->Int32Value(context).ToChecked();
1035
- mason_style_set_padding_right(ptr->style_, val);
1036
- }
1037
-
1038
-
1039
- void MasonStyleImpl::GetPaddingBottom(v8::Local<v8::String> property,
1040
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1041
- MasonStyleImpl *ptr = GetPointer(info.This());
1042
- if (ptr == nullptr) {
1043
- info.GetReturnValue().Set(0);
1044
- return;
1045
- }
1046
-
1047
- auto ret = mason_style_get_padding_bottom(ptr->style_);
1048
-
1049
- info.GetReturnValue().Set(ret);
1050
-
1051
- }
1052
-
1053
- void MasonStyleImpl::SetPaddingBottom(v8::Local<v8::String> property,
1054
- v8::Local<v8::Value> value,
1055
- const v8::PropertyCallbackInfo<void> &info) {
1056
- MasonStyleImpl *ptr = GetPointer(info.This());
1057
- if (ptr == nullptr) {
1058
- return;
1059
- }
1060
- auto isolate = info.GetIsolate();
1061
- auto context = isolate->GetCurrentContext();
1062
- auto val = value->Int32Value(context).ToChecked();
1063
- mason_style_set_padding_bottom(ptr->style_, val);
1064
- }
1065
-
1066
-
1067
- void MasonStyleImpl::GetBorder(v8::Local<v8::String> property,
1068
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1069
-
1070
-
1071
- }
1072
-
1073
- void MasonStyleImpl::SetBorder(v8::Local<v8::String> property,
1074
- v8::Local<v8::Value> value,
1075
- const v8::PropertyCallbackInfo<void> &info) {
1076
- // MasonStyleImpl *ptr = GetPointer(info.This());
1077
- // if (ptr == nullptr) {
1078
- // return;
1079
- // }
1080
- // auto isolate = info.GetIsolate();
1081
- // auto context = isolate->GetCurrentContext();
1082
- // auto val = value->Int32Value(context).ToChecked();
1083
- // mason_style_set_Border(ptr->style_, val);
1084
- }
1085
-
1086
-
1087
- void MasonStyleImpl::GetBorderLeft(v8::Local<v8::String> property,
1088
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1089
- MasonStyleImpl *ptr = GetPointer(info.This());
1090
- if (ptr == nullptr) {
1091
- info.GetReturnValue().Set(0);
1092
- return;
1093
- }
1094
-
1095
- auto ret = mason_style_get_border_left(ptr->style_);
1096
-
1097
- info.GetReturnValue().Set(ret);
1098
-
1099
- }
1100
-
1101
- void MasonStyleImpl::SetBorderLeft(v8::Local<v8::String> property,
1102
- v8::Local<v8::Value> value,
1103
- const v8::PropertyCallbackInfo<void> &info) {
1104
- MasonStyleImpl *ptr = GetPointer(info.This());
1105
- if (ptr == nullptr) {
1106
- return;
1107
- }
1108
- auto isolate = info.GetIsolate();
1109
- auto context = isolate->GetCurrentContext();
1110
- auto val = value->Int32Value(context).ToChecked();
1111
- mason_style_set_border_left(ptr->style_, val);
1112
- }
1113
-
1114
-
1115
- void MasonStyleImpl::GetBorderTop(v8::Local<v8::String> property,
1116
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1117
- MasonStyleImpl *ptr = GetPointer(info.This());
1118
- if (ptr == nullptr) {
1119
- info.GetReturnValue().Set(0);
1120
- return;
1121
- }
1122
-
1123
- auto ret = mason_style_get_border_top(ptr->style_);
1124
-
1125
- info.GetReturnValue().Set(ret);
1126
-
1127
- }
1128
-
1129
- void MasonStyleImpl::SetBorderTop(v8::Local<v8::String> property,
1130
- v8::Local<v8::Value> value,
1131
- const v8::PropertyCallbackInfo<void> &info) {
1132
- MasonStyleImpl *ptr = GetPointer(info.This());
1133
- if (ptr == nullptr) {
1134
- return;
1135
- }
1136
- auto isolate = info.GetIsolate();
1137
- auto context = isolate->GetCurrentContext();
1138
- auto val = value->Int32Value(context).ToChecked();
1139
- mason_style_set_border_top(ptr->style_, val);
1140
- }
1141
-
1142
-
1143
- void MasonStyleImpl::GetBorderRight(v8::Local<v8::String> property,
1144
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1145
- MasonStyleImpl *ptr = GetPointer(info.This());
1146
- if (ptr == nullptr) {
1147
- info.GetReturnValue().Set(0);
1148
- return;
1149
- }
1150
-
1151
- auto ret = mason_style_get_border_right(ptr->style_);
1152
-
1153
- info.GetReturnValue().Set(ret);
1154
-
1155
- }
1156
-
1157
- void MasonStyleImpl::SetBorderRight(v8::Local<v8::String> property,
1158
- v8::Local<v8::Value> value,
1159
- const v8::PropertyCallbackInfo<void> &info) {
1160
- MasonStyleImpl *ptr = GetPointer(info.This());
1161
- if (ptr == nullptr) {
1162
- return;
1163
- }
1164
- auto isolate = info.GetIsolate();
1165
- auto context = isolate->GetCurrentContext();
1166
- auto val = value->Int32Value(context).ToChecked();
1167
- mason_style_set_border_right(ptr->style_, val);
1168
- }
1169
-
1170
-
1171
- void MasonStyleImpl::GetBorderBottom(v8::Local<v8::String> property,
1172
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1173
- MasonStyleImpl *ptr = GetPointer(info.This());
1174
- if (ptr == nullptr) {
1175
- info.GetReturnValue().Set(0);
1176
- return;
1177
- }
1178
-
1179
- auto ret = mason_style_get_border_bottom(ptr->style_);
1180
-
1181
- info.GetReturnValue().Set(ret);
1182
-
1183
- }
1184
-
1185
- void MasonStyleImpl::SetBorderBottom(v8::Local<v8::String> property,
1186
- v8::Local<v8::Value> value,
1187
- const v8::PropertyCallbackInfo<void> &info) {
1188
- MasonStyleImpl *ptr = GetPointer(info.This());
1189
- if (ptr == nullptr) {
1190
- return;
1191
- }
1192
- auto isolate = info.GetIsolate();
1193
- auto context = isolate->GetCurrentContext();
1194
- auto val = value->Int32Value(context).ToChecked();
1195
- mason_style_set_border_bottom(ptr->style_, val);
1196
- }
1197
-
1198
-
1199
- void MasonStyleImpl::GetBorder(v8::Local<v8::String> property,
1200
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1201
-
1202
-
1203
- }
1204
-
1205
- void MasonStyleImpl::SetBorder(v8::Local<v8::String> property,
1206
- v8::Local<v8::Value> value,
1207
- const v8::PropertyCallbackInfo<void> &info) {
1208
- // MasonStyleImpl *ptr = GetPointer(info.This());
1209
- // if (ptr == nullptr) {
1210
- // return;
1211
- // }
1212
- // auto isolate = info.GetIsolate();
1213
- // auto context = isolate->GetCurrentContext();
1214
- // auto val = value->Int32Value(context).ToChecked();
1215
- // mason_style_set_Border(ptr->style_, val);
1216
- }
1217
-
1218
-
1219
- void MasonStyleImpl::GetBorderLeft(v8::Local<v8::String> property,
1220
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1221
- MasonStyleImpl *ptr = GetPointer(info.This());
1222
- if (ptr == nullptr) {
1223
- info.GetReturnValue().Set(0);
1224
- return;
1225
- }
1226
-
1227
- auto ret = mason_style_get_border_left(ptr->style_);
1228
-
1229
- info.GetReturnValue().Set(ret);
1230
-
1231
- }
1232
-
1233
- void MasonStyleImpl::SetBorderLeft(v8::Local<v8::String> property,
1234
- v8::Local<v8::Value> value,
1235
- const v8::PropertyCallbackInfo<void> &info) {
1236
- MasonStyleImpl *ptr = GetPointer(info.This());
1237
- if (ptr == nullptr) {
1238
- return;
1239
- }
1240
- auto isolate = info.GetIsolate();
1241
- auto context = isolate->GetCurrentContext();
1242
- auto val = value->Int32Value(context).ToChecked();
1243
- mason_style_set_border_left(ptr->style_, val);
1244
- }
1245
-
1246
-
1247
- void MasonStyleImpl::GetBorderTop(v8::Local<v8::String> property,
1248
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1249
- MasonStyleImpl *ptr = GetPointer(info.This());
1250
- if (ptr == nullptr) {
1251
- info.GetReturnValue().Set(0);
1252
- return;
1253
- }
1254
-
1255
- auto ret = mason_style_get_border_top(ptr->style_);
1256
-
1257
- info.GetReturnValue().Set(ret);
1258
-
1259
- }
1260
-
1261
- void MasonStyleImpl::SetBorderTop(v8::Local<v8::String> property,
1262
- v8::Local<v8::Value> value,
1263
- const v8::PropertyCallbackInfo<void> &info) {
1264
- MasonStyleImpl *ptr = GetPointer(info.This());
1265
- if (ptr == nullptr) {
1266
- return;
1267
- }
1268
- auto isolate = info.GetIsolate();
1269
- auto context = isolate->GetCurrentContext();
1270
- auto val = value->Int32Value(context).ToChecked();
1271
- mason_style_set_border_top(ptr->style_, val);
1272
- }
1273
-
1274
-
1275
- void MasonStyleImpl::GetBorderRight(v8::Local<v8::String> property,
1276
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1277
- MasonStyleImpl *ptr = GetPointer(info.This());
1278
- if (ptr == nullptr) {
1279
- info.GetReturnValue().Set(0);
1280
- return;
1281
- }
1282
-
1283
- auto ret = mason_style_get_border_right(ptr->style_);
1284
-
1285
- info.GetReturnValue().Set(ret);
1286
-
1287
- }
1288
-
1289
- void MasonStyleImpl::SetBorderRight(v8::Local<v8::String> property,
1290
- v8::Local<v8::Value> value,
1291
- const v8::PropertyCallbackInfo<void> &info) {
1292
- MasonStyleImpl *ptr = GetPointer(info.This());
1293
- if (ptr == nullptr) {
1294
- return;
1295
- }
1296
- auto isolate = info.GetIsolate();
1297
- auto context = isolate->GetCurrentContext();
1298
- auto val = value->Int32Value(context).ToChecked();
1299
- mason_style_set_border_right(ptr->style_, val);
1300
- }
1301
-
1302
-
1303
- void MasonStyleImpl::GetBorderBottom(v8::Local<v8::String> property,
1304
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1305
- MasonStyleImpl *ptr = GetPointer(info.This());
1306
- if (ptr == nullptr) {
1307
- info.GetReturnValue().Set(0);
1308
- return;
1309
- }
1310
-
1311
- auto ret = mason_style_get_border_bottom(ptr->style_);
1312
-
1313
- info.GetReturnValue().Set(ret);
1314
-
1315
- }
1316
-
1317
- void MasonStyleImpl::SetBorderBottom(v8::Local<v8::String> property,
1318
- v8::Local<v8::Value> value,
1319
- const v8::PropertyCallbackInfo<void> &info) {
1320
- MasonStyleImpl *ptr = GetPointer(info.This());
1321
- if (ptr == nullptr) {
1322
- return;
1323
- }
1324
- auto isolate = info.GetIsolate();
1325
- auto context = isolate->GetCurrentContext();
1326
- auto val = value->Int32Value(context).ToChecked();
1327
- mason_style_set_border_bottom(ptr->style_, val);
1328
- }
1329
-
1330
-
1331
- void MasonStyleImpl::GetFlexGrow(v8::Local<v8::String> property,
1332
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1333
- MasonStyleImpl *ptr = GetPointer(info.This());
1334
- if (ptr == nullptr) {
1335
- info.GetReturnValue().Set(0);
1336
- return;
1337
- }
1338
-
1339
- auto ret = mason_style_get_flex_grow(ptr->style_);
1340
-
1341
- info.GetReturnValue().Set((double) ret);
1342
-
1343
- }
1344
-
1345
- void MasonStyleImpl::SetFlexGrow(v8::Local<v8::String> property,
1346
- v8::Local<v8::Value> value,
1347
- const v8::PropertyCallbackInfo<void> &info) {
1348
- MasonStyleImpl *ptr = GetPointer(info.This());
1349
- if (ptr == nullptr) {
1350
- return;
1351
- }
1352
- auto isolate = info.GetIsolate();
1353
- auto context = isolate->GetCurrentContext();
1354
- auto val = (float) value->NumberValue(context).ToChecked();
1355
- mason_style_set_flex_grow(ptr->style_, val);
1356
- }
1357
-
1358
- void MasonStyleImpl::GetFlexShrink(v8::Local<v8::String> property,
1359
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1360
- MasonStyleImpl *ptr = GetPointer(info.This());
1361
- if (ptr == nullptr) {
1362
- info.GetReturnValue().Set(0);
1363
- return;
1364
- }
1365
-
1366
- auto ret = mason_style_get_flex_shrink(ptr->style_);
1367
-
1368
- info.GetReturnValue().Set((double) ret);
1369
-
1370
- }
1371
-
1372
- void MasonStyleImpl::SetFlexShrink(v8::Local<v8::String> property,
1373
- v8::Local<v8::Value> value,
1374
- const v8::PropertyCallbackInfo<void> &info) {
1375
- MasonStyleImpl *ptr = GetPointer(info.This());
1376
- if (ptr == nullptr) {
1377
- return;
1378
- }
1379
- auto isolate = info.GetIsolate();
1380
- auto context = isolate->GetCurrentContext();
1381
- auto val = (float) value->NumberValue(context).ToChecked();
1382
- mason_style_set_flex_shrink(ptr->style_, val);
1383
- }
1384
-
1385
- void MasonStyleImpl::GetFlexBasis(v8::Local<v8::String> property,
1386
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1387
- MasonStyleImpl *ptr = GetPointer(info.This());
1388
- if (ptr == nullptr) {
1389
- info.GetReturnValue().Set(0);
1390
- return;
1391
- }
1392
-
1393
- auto ret = mason_style_get_flex_basis(ptr->style_);
1394
-
1395
- info.GetReturnValue().Set(ret);
1396
-
1397
- }
1398
-
1399
- void MasonStyleImpl::SetFlexBasis(v8::Local<v8::String> property,
1400
- v8::Local<v8::Value> value,
1401
- const v8::PropertyCallbackInfo<void> &info) {
1402
- MasonStyleImpl *ptr = GetPointer(info.This());
1403
- if (ptr == nullptr) {
1404
- return;
1405
- }
1406
- auto isolate = info.GetIsolate();
1407
- auto context = isolate->GetCurrentContext();
1408
- auto val = (float) value->NumberValue(context).ToChecked();
1409
- mason_style_set_flex_basis(ptr->style_, val);
1410
- }
1411
-
1412
-
1413
- void MasonStyleImpl::GetGap(v8::Local<v8::String> property,
1414
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1415
- MasonStyleImpl *ptr = GetPointer(info.This());
1416
- if (ptr == nullptr) {
1417
- info.GetReturnValue().Set(0);
1418
- return;
1419
- }
1420
-
1421
- auto ret = mason_style_get_gap(ptr->style_);
1422
-
1423
- info.GetReturnValue().Set(ret);
1424
-
1425
- }
1426
-
1427
- void MasonStyleImpl::SetGap(v8::Local<v8::String> property,
1428
- v8::Local<v8::Value> value,
1429
- const v8::PropertyCallbackInfo<void> &info) {
1430
- MasonStyleImpl *ptr = GetPointer(info.This());
1431
- if (ptr == nullptr) {
1432
- return;
1433
- }
1434
- auto isolate = info.GetIsolate();
1435
- auto context = isolate->GetCurrentContext();
1436
- auto val = (float) value->NumberValue(context).ToChecked();
1437
- mason_style_set_gap(ptr->style_, val);
1438
- }
1439
-
1440
-
1441
- void MasonStyleImpl::GetRowGap(v8::Local<v8::String> property,
1442
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1443
- MasonStyleImpl *ptr = GetPointer(info.This());
1444
- if (ptr == nullptr) {
1445
- info.GetReturnValue().Set(0);
1446
- return;
1447
- }
1448
-
1449
- auto ret = mason_style_get_row_gap(ptr->style_);
1450
-
1451
- info.GetReturnValue().Set(ret);
1452
-
1453
- }
1454
-
1455
- void MasonStyleImpl::SetRowGap(v8::Local<v8::String> property,
1456
- v8::Local<v8::Value> value,
1457
- const v8::PropertyCallbackInfo<void> &info) {
1458
- MasonStyleImpl *ptr = GetPointer(info.This());
1459
- if (ptr == nullptr) {
1460
- return;
1461
- }
1462
- auto isolate = info.GetIsolate();
1463
- auto context = isolate->GetCurrentContext();
1464
- auto val = (float) value->NumberValue(context).ToChecked();
1465
- mason_style_set_row_gap(ptr->style_, val);
1466
- }
1467
-
1468
-
1469
-
1470
- void MasonStyleImpl::GetColumnGap(v8::Local<v8::String> property,
1471
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1472
- MasonStyleImpl *ptr = GetPointer(info.This());
1473
- if (ptr == nullptr) {
1474
- info.GetReturnValue().Set(0);
1475
- return;
1476
- }
1477
-
1478
- auto ret = mason_style_get_column_gap(ptr->style_);
1479
-
1480
- info.GetReturnValue().Set(ret);
1481
-
1482
- }
1483
-
1484
- void MasonStyleImpl::SetColumnGap(v8::Local<v8::String> property,
1485
- v8::Local<v8::Value> value,
1486
- const v8::PropertyCallbackInfo<void> &info) {
1487
- MasonStyleImpl *ptr = GetPointer(info.This());
1488
- if (ptr == nullptr) {
1489
- return;
1490
- }
1491
- auto isolate = info.GetIsolate();
1492
- auto context = isolate->GetCurrentContext();
1493
- auto val = (float) value->NumberValue(context).ToChecked();
1494
- mason_style_set_column_gap(ptr->style_, val);
1495
- }
1496
-
1497
-
1498
- void MasonStyleImpl::GetAspectRatio(v8::Local<v8::String> property,
1499
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1500
- MasonStyleImpl *ptr = GetPointer(info.This());
1501
- if (ptr == nullptr) {
1502
- info.GetReturnValue().Set(0);
1503
- return;
1504
- }
1505
-
1506
- auto ret = mason_style_get_aspect_ratio(ptr->style_);
1507
-
1508
- info.GetReturnValue().Set((double )ret);
1509
-
1510
- }
1511
-
1512
- void MasonStyleImpl::SetAspectRatio(v8::Local<v8::String> property,
1513
- v8::Local<v8::Value> value,
1514
- const v8::PropertyCallbackInfo<void> &info) {
1515
- MasonStyleImpl *ptr = GetPointer(info.This());
1516
- if (ptr == nullptr) {
1517
- return;
1518
- }
1519
- auto isolate = info.GetIsolate();
1520
- auto context = isolate->GetCurrentContext();
1521
- auto val = (float) value->NumberValue(context).ToChecked();
1522
- mason_style_set_aspect_ratio(ptr->style_, val);
1523
- }
1524
-
1525
- void MasonStyleImpl::GetFlexDirection(v8::Local<v8::String> property,
1526
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1527
- MasonStyleImpl *ptr = GetPointer(info.This());
1528
- if (ptr == nullptr) {
1529
- info.GetReturnValue().Set(0);
1530
- return;
1531
- }
1532
-
1533
- auto ret = mason_style_get_flex_direction(ptr->style_);
1534
-
1535
- info.GetReturnValue().Set(ret);
1536
-
1537
- }
1538
-
1539
- void MasonStyleImpl::SetFlexDirection(v8::Local<v8::String> property,
1540
- v8::Local<v8::Value> value,
1541
- const v8::PropertyCallbackInfo<void> &info) {
1542
- MasonStyleImpl *ptr = GetPointer(info.This());
1543
- if (ptr == nullptr) {
1544
- return;
1545
- }
1546
- auto isolate = info.GetIsolate();
1547
- auto context = isolate->GetCurrentContext();
1548
- auto val = value->Int32Value(context).ToChecked();
1549
- mason_style_set_flex_direction(ptr->style_, val);
1550
- }
1551
-
1552
- void MasonStyleImpl::GetGridAutoRows(v8::Local<v8::String> property,
1553
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1554
- auto isolate = info.GetIsolate();
1555
- MasonStyleImpl *ptr = GetPointer(info.This());
1556
- if (ptr == nullptr) {
1557
- info.GetReturnValue().Set(0);
1558
- return;
1559
- }
1560
-
1561
- auto rows = mason_style_get_grid_auto_rows(ptr->style_);
1562
- auto parsed = mason_util_parse_non_repeated_track_sizing_function(rows);
1563
- info.GetReturnValue().Set(Helpers::ConvertToV8String(isolate, parsed));
1564
-
1565
- }
1566
-
1567
- void MasonStyleImpl::SetGridAutoRows(v8::Local<v8::String> property,
1568
- v8::Local<v8::Value> value,
1569
- const v8::PropertyCallbackInfo<void> &info) {
1570
- MasonStyleImpl *ptr = GetPointer(info.This());
1571
- if (ptr == nullptr) {
1572
- return;
1573
- }
1574
- auto isolate = info.GetIsolate();
1575
- auto context = isolate->GetCurrentContext();
1576
- auto val = value->Int32Value(context).ToChecked();
1577
- mason_style_set_grid_auto_rows(ptr->style_, val);
1578
- }
1579
-
1580
-
1581
- void MasonStyleImpl::GetGridAutoColumns(v8::Local<v8::String> property,
1582
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1583
- auto isolate = info.GetIsolate();
1584
- MasonStyleImpl *ptr = GetPointer(info.This());
1585
- if (ptr == nullptr) {
1586
- info.GetReturnValue().SetEmptyString();
1587
- return;
1588
- }
1589
-
1590
- auto columns = mason_style_get_grid_auto_columns(ptr->style_);
1591
- auto parsed = mason_util_parse_non_repeated_track_sizing_function(columns);
1592
- info.GetReturnValue().Set(Helpers::ConvertToV8String(isolate, parsed));
1593
- }
1594
-
1595
- void MasonStyleImpl::SetGridAutoColumns(v8::Local<v8::String> property,
1596
- v8::Local<v8::Value> value,
1597
- const v8::PropertyCallbackInfo<void> &info) {
1598
- MasonStyleImpl *ptr = GetPointer(info.This());
1599
- if (ptr == nullptr) {
1600
- return;
1601
- }
1602
- auto isolate = info.GetIsolate();
1603
- auto context = isolate->GetCurrentContext();
1604
- auto val = value->Int32Value(context).ToChecked();
1605
- mason_style_set_grid_auto_columns(ptr->style_, val);
1606
- }
1607
-
1608
-
1609
-
1610
- void MasonStyleImpl::GetArea(v8::Local<v8::String> property,
1611
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1612
-
1613
- auto isolate = info.GetIsolate();
1614
- auto context = isolate->GetCurrentContext();
1615
- MasonStyleImpl *ptr = GetPointer(info.This());
1616
- if (ptr == nullptr) {
1617
- info.GetReturnValue().SetEmptyString();
1618
- return;
1619
- }
1620
-
1621
- auto row_start = mason_style_get_grid_row_start(ptr->style_);
1622
- auto row_end = mason_style_get_grid_row_start(ptr->style_);
1623
-
1624
- auto col_start = mason_style_get_grid_column_start(ptr->style_);
1625
- auto col_end = mason_style_get_grid_column_start(ptr->style_);
1626
-
1627
- v8::Local<v8::Object> object = v8::Object::New((isolate));
1628
- object->Set(context, Helpers::ConvertToV8String(isolate, "col_start_type"), v8::Int32::New(isolate, (int)col_start.value_type)).Check();
1629
- object->Set(context, Helpers::ConvertToV8String(isolate,"col_start_value"), v8::Int32::New(isolate, (int)col_start.value)).Check();
1630
-
1631
- object->Set(context, Helpers::ConvertToV8String(isolate, "col_end_type"), v8::Int32::New(isolate, (int)col_end.value_type)).Check();
1632
- object->Set(context, Helpers::ConvertToV8String(isolate,"col_end_value"), v8::Int32::New(isolate, (int)col_end.value)).Check();
1633
-
1634
- object->Set(context, Helpers::ConvertToV8String(isolate,"row_start_type"), v8::Int32::New(isolate, (int)row_start.value_type)).Check();
1635
- object->Set(context, Helpers::ConvertToV8String(isolate,"row_start_value"), v8::Int32::New(isolate, (int)row_start.value)).Check();
1636
-
1637
- object->Set(context, Helpers::ConvertToV8String(isolate,"row_end_type"), v8::Int32::New(isolate, (int)row_end.value_type)).Check();
1638
- object->Set(context, Helpers::ConvertToV8String(isolate,"row_end_value"), v8::Int32::New(isolate, (int)row_end.value)).Check();
1639
-
1640
- std::stringstream ss;
1641
- if (col_start.value == col_end.value &&
1642
- col_start.value_type == col_end.value_type)
1643
- {
1644
- if (col_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1645
- ss << "auto";
1646
- } else {
1647
- ss << col_start.value;
1648
- if (col_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1649
- ss << " span";
1650
- }
1651
- }
1652
- }
1653
- else
1654
- {
1655
- if (col_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1656
- ss << "auto";
1657
- } else {
1658
- ss << col_start.value;
1659
- if (col_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1660
- ss << " span";
1661
- }
1662
- }
1663
-
1664
- ss << " / ";
1665
-
1666
- if (col_end.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1667
- ss << "auto";
1668
- } else {
1669
- ss << col_end.value;
1670
- if (col_end.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1671
- ss << " span";
1672
- }
1673
- }
1674
- }
1675
- object->Set(context, Helpers::ConvertToV8String(isolate,"colFormatted"), STRING_TO_V8_VALUE(ss.str().c_str())).Check();
1676
-
1677
- std::stringstream row_ss;
1678
- if (row_start.value == row_end.value &&
1679
- row_start.value_type == row_end.value_type)
1680
- {
1681
- if (row_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1682
- row_ss << "auto";
1683
- } else {
1684
- row_ss << row_start.value;
1685
- if (row_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1686
- row_ss << " span";
1687
- }
1688
- }
1689
- }
1690
- else
1691
- {
1692
- if (row_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1693
- row_ss << "auto";
1694
- } else {
1695
- row_ss << row_start.value;
1696
- if (row_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1697
- row_ss << " span";
1698
- }
1699
- }
1700
-
1701
- row_ss << " / ";
1702
-
1703
- if (row_end.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1704
- row_ss << "auto";
1705
- } else {
1706
- row_ss << row_end.value;
1707
- if (row_end.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1708
- row_ss << " span";
1709
- }
1710
- }
1711
- }
1712
- object->Set(context, Helpers::ConvertToV8String(isolate,"rowFormatted"), STRING_TO_V8_VALUE(ss.str().c_str())).Check();
1713
-
1714
- info.GetReturnValue().Set(object);
1715
-
1716
-
1717
- }
1718
-
1719
- void MasonStyleImpl::SetArea(v8::Local<v8::String> property,
1720
- v8::Local<v8::Value> value,
1721
- const v8::PropertyCallbackInfo<void> &info) {
1722
- MasonStyleImpl *ptr = GetPointer(info.This());
1723
- if (ptr == nullptr) {
1724
- return;
1725
- }
1726
- auto isolate = info.GetIsolate();
1727
- auto context = isolate->GetCurrentContext();
1728
-
1729
-
1730
- auto object = value.As<v8::Object>();
1731
-
1732
- auto rowStartType = (int)object->Get(context,
1733
- Helpers::ConvertToV8String(isolate, "row_start_type"))
1734
- .ToLocalChecked()
1735
- ->Int32Value(context)
1736
- .FromJust();
1737
-
1738
- auto rowStartValue = (short)object->Get(context,
1739
- Helpers::ConvertToV8String(isolate, "row_start_value"))
1740
- .ToLocalChecked()
1741
- ->Int32Value(context)
1742
- .FromJust();
1743
-
1744
- auto rowEndType = (int)object->Get(context,
1745
- Helpers::ConvertToV8String(isolate, "row_end_type"))
1746
- .ToLocalChecked()
1747
- ->Int32Value(context)
1748
- .FromJust();
1749
- auto rowEndValue = (short)object->Get(context,
1750
- Helpers::ConvertToV8String(isolate, "row_end_value"))
1751
- .ToLocalChecked()
1752
- ->Int32Value(context)
1753
- .FromJust();
1754
-
1755
- auto columnStartType = (int)object->Get(context,
1756
- Helpers::ConvertToV8String(isolate, "col_start_value"))
1757
- .ToLocalChecked()
1758
- ->Int32Value(context)
1759
- .FromJust();
1760
- auto columnStartValue = (short)object->Get(context,
1761
- Helpers::ConvertToV8String(isolate, "col_start_type"))
1762
- .ToLocalChecked()
1763
- ->Int32Value(context)
1764
- .FromJust();
1765
-
1766
- auto columnEndType = (int)object->Get(context,
1767
- Helpers::ConvertToV8String(isolate, "col_end_type"))
1768
- .ToLocalChecked()
1769
- ->Int32Value(context)
1770
- .FromJust();
1771
- auto columnEndValue = (short)object->Get(context,
1772
- Helpers::ConvertToV8String(isolate, "col_end_value"))
1773
- .ToLocalChecked()
1774
- ->Int32Value(context)
1775
- .FromJust();
1776
-
1777
- mason_style_set_grid_area(
1778
- ptr->style_,
1779
- jsToGridPlacement(rowStartValue, rowStartType),
1780
- jsToGridPlacement(rowEndValue, rowEndType),
1781
- jsToGridPlacement(columnStartValue, columnStartType),
1782
- jsToGridPlacement(columnEndValue, columnEndType));
1783
-
1784
- // MASON_UPDATE_NODE(info[4])
1785
-
1786
- }
1787
-
1788
-
1789
- void MasonStyleImpl::GetColumn(v8::Local<v8::String> property,
1790
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1791
-
1792
- auto isolate = info.GetIsolate();
1793
- auto context = isolate->GetCurrentContext();
1794
- MasonStyleImpl *ptr = GetPointer(info.This());
1795
- if (ptr == nullptr) {
1796
- info.GetReturnValue().SetEmptyString();
1797
- return;
1798
- }
1799
-
1800
-
1801
- auto col_start = mason_style_get_grid_column_start(ptr->style_);
1802
- auto col_end = mason_style_get_grid_column_start(ptr->style_);
1803
-
1804
- v8::Local<v8::Object> object = v8::Object::New((isolate));
1805
- object->Set(context, Helpers::ConvertToV8String(isolate, "col_start_type"), v8::Int32::New(isolate, (int)col_start.value_type)).Check();
1806
- object->Set(context, Helpers::ConvertToV8String(isolate, "col_start_value"), v8::Int32::New(isolate, (int)col_start.value)).Check();
1807
-
1808
- object->Set(context, Helpers::ConvertToV8String(isolate, "col_end_type"), v8::Int32::New(isolate, (int)col_end.value_type)).Check();
1809
- object->Set(context, Helpers::ConvertToV8String(isolate, "col_end_value"), v8::Int32::New(isolate, (int)col_end.value)).Check();
1810
-
1811
- std::stringstream ss;
1812
- if (col_start.value == col_end.value &&
1813
- col_start.value_type == col_end.value_type)
1814
- {
1815
- if (col_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1816
- ss << "auto";
1817
- } else {
1818
- ss << col_start.value;
1819
- if (col_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1820
- ss << " span";
1821
- }
1822
- }
1823
- }
1824
- else
1825
- {
1826
- if (col_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1827
- ss << "auto";
1828
- } else {
1829
- ss << col_start.value;
1830
- if (col_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1831
- ss << " span";
1832
- }
1833
- }
1834
-
1835
- ss << " / ";
1836
-
1837
- if (col_end.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1838
- ss << "auto";
1839
- } else {
1840
- ss << col_end.value;
1841
- if (col_end.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1842
- ss << " span";
1843
- }
1844
- }
1845
- }
1846
-
1847
- object->Set(context, Helpers::ConvertToV8String(isolate, "colFormatted"), Helpers::ConvertToV8String(isolate, ss.c_str())).Check();
1848
-
1849
- info.GetReturnValue().Set(object);
1850
-
1851
- }
1852
-
1853
- void MasonStyleImpl::SetColumn(v8::Local<v8::String> property,
1854
- v8::Local<v8::Value> value,
1855
- const v8::PropertyCallbackInfo<void> &info) {
1856
- MasonStyleImpl *ptr = GetPointer(info.This());
1857
- if (ptr == nullptr) {
1858
- return;
1859
- }
1860
- auto isolate = info.GetIsolate();
1861
- auto context = isolate->GetCurrentContext();
1862
-
1863
-
1864
- auto object = value.As<v8::Object>();
1865
-
1866
- auto columnStartType = (int)object->Get(context,
1867
- Helpers::ConvertToV8String(isolate, "col_start_value"))
1868
- .ToLocalChecked()
1869
- ->Int32Value(context)
1870
- .FromJust();
1871
- auto columnStartValue = (short)object->Get(context,
1872
- Helpers::ConvertToV8String(isolate, "col_start_type"))
1873
- .ToLocalChecked()
1874
- ->Int32Value(context)
1875
- .FromJust();
1876
-
1877
- auto columnEndType = (int)object->Get(context,
1878
- Helpers::ConvertToV8String(isolate, "col_end_type"))
1879
- .ToLocalChecked()
1880
- ->Int32Value(context)
1881
- .FromJust();
1882
- auto columnEndValue = (short)object->Get(context,
1883
- Helpers::ConvertToV8String(isolate, "col_end_value"))
1884
- .ToLocalChecked()
1885
- ->Int32Value(context)
1886
- .FromJust();
1887
-
1888
- mason_style_set_grid_column(
1889
- ptr->style_,
1890
- jsToGridPlacement(columnStartValue, columnStartType),
1891
- jsToGridPlacement(columnEndValue, columnEndType));
1892
-
1893
- // MASON_UPDATE_NODE(info[4])
1894
- }
1895
-
1896
-
1897
- void MasonStyleImpl::GetRow(v8::Local<v8::String> property,
1898
- const v8::PropertyCallbackInfo<v8::Value> &info) {
1899
-
1900
- auto isolate = info.GetIsolate();
1901
- auto context = isolate->GetCurrentContext();
1902
- MasonStyleImpl *ptr = GetPointer(info.This());
1903
- if (ptr == nullptr) {
1904
- info.GetReturnValue().SetNull();
1905
- return;
1906
- }
1907
-
1908
-
1909
- auto row_start = mason_style_get_grid_row_start(ptr->style_);
1910
- auto row_end = mason_style_get_grid_row_start(ptr->style_);
1911
-
1912
- v8::Local<v8::Object> object = v8::Object::New((isolate));
1913
-
1914
- object->Set(context, Helpers::ConvertToV8String(isolate, "row_start_type"), v8::Int32::New(isolate, (int)row_start.value_type)).Check();
1915
- object->Set(context, Helpers::ConvertToV8String(isolate, "row_start_value"), v8::Int32::New(isolate, (int)row_start.value)).Check();
1916
-
1917
- object->Set(context, Helpers::ConvertToV8String(isolate, "row_end_type"), v8::Int32::New(isolate, (int)row_end.value_type)).Check();
1918
- object->Set(context, Helpers::ConvertToV8String(isolate, "row_end_value"), v8::Int32::New(isolate, (int)row_end.value)).Check();
1919
-
1920
- std::stringstream row_ss;
1921
- if (row_start.value == row_end.value &&
1922
- row_start.value_type == row_end.value_type)
1923
- {
1924
- if (row_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1925
- row_ss << "auto";
1926
- } else {
1927
- row_ss << row_start.value;
1928
- if (row_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1929
- row_ss << " span";
1930
- }
1931
- }
1932
- }
1933
- else
1934
- {
1935
- if (row_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1936
- row_ss << "auto";
1937
- } else {
1938
- row_ss << row_start.value;
1939
- if (row_start.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1940
- row_ss << " span";
1941
- }
1942
- }
1943
-
1944
- row_ss << " / ";
1945
-
1946
- if (row_end.value_type == CMasonGridPlacementType::MasonGridPlacementTypeAuto) {
1947
- row_ss << "auto";
1948
- } else {
1949
- row_ss << row_end.value;
1950
- if (row_end.value_type == CMasonGridPlacementType::MasonGridPlacementTypeSpan) {
1951
- row_ss << " span";
1952
- }
1953
- }
1954
- }
1955
- object->Set(context, Helpers::ConvertToV8String(isolate, "rowFormatted"), Helpers::ConvertToV8String(isolate, row_ss.c_str())).Check();
1956
-
1957
- info.GetReturnValue().Set(object);
1958
-
1959
- }
1960
-
1961
- void MasonStyleImpl::SetRow(v8::Local<v8::String> property,
1962
- v8::Local<v8::Value> value,
1963
- const v8::PropertyCallbackInfo<void> &info) {
1964
- MasonStyleImpl *ptr = GetPointer(info.This());
1965
- if (ptr == nullptr) {
1966
- return;
1967
- }
1968
- auto isolate = info.GetIsolate();
1969
- auto context = isolate->GetCurrentContext();
1970
-
1971
-
1972
- auto object = value.As<v8::Object>();
1973
-
1974
- auto rowStartType = (int)object->Get(context,
1975
- Helpers::ConvertToV8String(isolate, "row_start_type"))
1976
- .ToLocalChecked()
1977
- ->Int32Value(context)
1978
- .FromJust();
1979
-
1980
- auto rowStartValue = (short)object->Get(context,
1981
- Helpers::ConvertToV8String(isolate, "row_start_value"))
1982
- .ToLocalChecked()
1983
- ->Int32Value(context)
1984
- .FromJust();
1985
-
1986
- auto rowEndType = (int)object->Get(context,
1987
- Helpers::ConvertToV8String(isolate, "row_end_type"))
1988
- .ToLocalChecked()
1989
- ->Int32Value(context)
1990
- .FromJust();
1991
- auto rowEndValue = (short)object->Get(context,
1992
- Helpers::ConvertToV8String(isolate, "row_end_value"))
1993
- .ToLocalChecked()
1994
- ->Int32Value(context)
1995
- .FromJust();
1996
-
1997
- mason_style_set_grid_row(
1998
- ptr->style_,
1999
- jsToGridPlacement(rowStartValue, rowStartType),
2000
- jsToGridPlacement(rowEndValue, rowEndType));
2001
-
2002
- // MASON_UPDATE_NODE(info[4])
2003
- }
2004
-
2005
-
2006
- void MasonStyleImpl::GetColumnStart(v8::Local<v8::String> property,
2007
- const v8::PropertyCallbackInfo<v8::Value> &info) {
2008
-
2009
- auto isolate = info.GetIsolate();
2010
- auto context = isolate->GetCurrentContext();
2011
- MasonStyleImpl *ptr = GetPointer(info.This());
2012
- if (ptr == nullptr) {
2013
- info.GetReturnValue().SetNull();
2014
- return;
2015
- }
2016
-
2017
- auto ret = mason_style_get_grid_column_start(ptr->style_);
2018
-
2019
- }
2020
-
2021
- void MasonStyleImpl::SetColumnStart(v8::Local<v8::String> property,
2022
- v8::Local<v8::Value> value,
2023
- const v8::PropertyCallbackInfo<void> &info) {
2024
- MasonStyleImpl *ptr = GetPointer(info.This());
2025
- if (ptr == nullptr) {
2026
- return;
2027
- }
2028
- auto isolate = info.GetIsolate();
2029
- auto context = isolate->GetCurrentContext();
2030
-
2031
-
2032
- auto ret = mason_style_set_grid_column_start(ptr->style_);
2033
- }
2034
-
2035
-
2036
- void MasonStyleImpl::GetColumnEnd(v8::Local<v8::String> property,
2037
- const v8::PropertyCallbackInfo<v8::Value> &info) {
2038
-
2039
- auto isolate = info.GetIsolate();
2040
- auto context = isolate->GetCurrentContext();
2041
- MasonStyleImpl *ptr = GetPointer(info.This());
2042
- if (ptr == nullptr) {
2043
- info.GetReturnValue().SetNull();
2044
- return;
2045
- }
2046
-
2047
- auto ret = mason_style_get_grid_column_start(ptr->style_);
2048
-
2049
- }
2050
-
2051
- void MasonStyleImpl::SetColumnEnd(v8::Local<v8::String> property,
2052
- v8::Local<v8::Value> value,
2053
- const v8::PropertyCallbackInfo<void> &info) {
2054
- MasonStyleImpl *ptr = GetPointer(info.This());
2055
- if (ptr == nullptr) {
2056
- return;
2057
- }
2058
- auto isolate = info.GetIsolate();
2059
- auto context = isolate->GetCurrentContext();
2060
-
2061
-
2062
- auto ret = mason_style_set_grid_column_start(ptr->style_);
2063
- }
2064
-
2065
-
2066
- void MasonStyleImpl::GetRowStart(v8::Local<v8::String> property,
2067
- const v8::PropertyCallbackInfo<v8::Value> &info) {
2068
-
2069
- auto isolate = info.GetIsolate();
2070
- auto context = isolate->GetCurrentContext();
2071
- MasonStyleImpl *ptr = GetPointer(info.This());
2072
- if (ptr == nullptr) {
2073
- info.GetReturnValue().SetNull();
2074
- return;
2075
- }
2076
-
2077
- auto ret = mason_style_get_grid_column_start(ptr->style_);
2078
-
2079
- }
2080
-
2081
- void MasonStyleImpl::SetRowStart(v8::Local<v8::String> property,
2082
- v8::Local<v8::Value> value,
2083
- const v8::PropertyCallbackInfo<void> &info) {
2084
- MasonStyleImpl *ptr = GetPointer(info.This());
2085
- if (ptr == nullptr) {
2086
- return;
2087
- }
2088
- auto isolate = info.GetIsolate();
2089
- auto context = isolate->GetCurrentContext();
2090
-
2091
-
2092
- auto ret = mason_style_set_grid_column_start(ptr->style_);
2093
- }
2094
-
2095
- void MasonStyleImpl::GetRowEnd(v8::Local<v8::String> property,
2096
- const v8::PropertyCallbackInfo<v8::Value> &info) {
2097
-
2098
- auto isolate = info.GetIsolate();
2099
- auto context = isolate->GetCurrentContext();
2100
- MasonStyleImpl *ptr = GetPointer(info.This());
2101
- if (ptr == nullptr) {
2102
- info.GetReturnValue().SetNull();
2103
- return;
2104
- }
2105
-
2106
- auto ret = mason_style_get_grid_column_start(ptr->style_);
2107
-
2108
- }
2109
-
2110
- void MasonStyleImpl::SetRowEnd(v8::Local<v8::String> property,
2111
- v8::Local<v8::Value> value,
2112
- const v8::PropertyCallbackInfo<void> &info) {
2113
- MasonStyleImpl *ptr = GetPointer(info.This());
2114
- if (ptr == nullptr) {
2115
- return;
2116
- }
2117
- auto isolate = info.GetIsolate();
2118
- auto context = isolate->GetCurrentContext();
2119
-
2120
-
2121
- auto ret = mason_style_set_grid_column_start(ptr->style_);
2122
- }
2123
-
2124
- void MasonStyleImpl::GetGridTemplateRows(v8::Local<v8::String> property,
2125
- const v8::PropertyCallbackInfo<v8::Value> &info) {
2126
-
2127
- auto isolate = info.GetIsolate();
2128
- auto context = isolate->GetCurrentContext();
2129
- MasonStyleImpl *ptr = GetPointer(info.This());
2130
- if (ptr == nullptr) {
2131
- info.GetReturnValue().SetNull();
2132
- return;
2133
- }
2134
-
2135
- auto ret = mason_style_get_grid_column_start(ptr->style_);
2136
-
2137
- }
2138
-
2139
- void MasonStyleImpl::SetGridTemplateRows(v8::Local<v8::String> property,
2140
- v8::Local<v8::Value> value,
2141
- const v8::PropertyCallbackInfo<void> &info) {
2142
- MasonStyleImpl *ptr = GetPointer(info.This());
2143
- if (ptr == nullptr) {
2144
- return;
2145
- }
2146
- auto isolate = info.GetIsolate();
2147
- auto context = isolate->GetCurrentContext();
2148
-
2149
-
2150
- auto ret = mason_style_set_grid_column_start(ptr->style_);
2151
- }
2152
-
2153
-
2154
- void MasonStyleImpl::GetGridTemplateColumns(v8::Local<v8::String> property,
2155
- const v8::PropertyCallbackInfo<v8::Value> &info) {
2156
-
2157
- auto isolate = info.GetIsolate();
2158
- auto context = isolate->GetCurrentContext();
2159
- MasonStyleImpl *ptr = GetPointer(info.This());
2160
- if (ptr == nullptr) {
2161
- info.GetReturnValue().SetNull();
2162
- return;
2163
- }
2164
-
2165
- auto ret = mason_style_get_grid_column_start(ptr->style_);
2166
-
2167
- }
2168
-
2169
- void MasonStyleImpl::SetGridTemplateColumns(v8::Local<v8::String> property,
2170
- v8::Local<v8::Value> value,
2171
- const v8::PropertyCallbackInfo<void> &info) {
2172
- MasonStyleImpl *ptr = GetPointer(info.This());
2173
- if (ptr == nullptr) {
2174
- return;
2175
- }
2176
- auto isolate = info.GetIsolate();
2177
- auto context = isolate->GetCurrentContext();
2178
-
2179
-
2180
- auto ret = mason_style_set_grid_column_start(ptr->style_);
2181
- }