@octane-xplat/macos-renderer 0.13.0 → 0.15.0

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 (222) hide show
  1. package/README.md +95 -20
  2. package/package.json +15 -2
  3. package/src/appearance.ts +2 -0
  4. package/src/fonts.ts +2 -0
  5. package/src/formatted-text.ts +147 -0
  6. package/src/gestures.ts +196 -0
  7. package/src/host-globals.d.ts +55 -0
  8. package/src/html-text.ts +88 -0
  9. package/src/image.ts +91 -16
  10. package/src/index.d.ts +9 -0
  11. package/src/index.ts +5030 -678
  12. package/src/layer.ts +11 -9
  13. package/src/list-template.ts +266 -0
  14. package/src/list-view.ts +445 -0
  15. package/src/portal-components.macos.tsx +86 -0
  16. package/src/presentation.ts +48 -15
  17. package/src/scroll-view.ts +124 -0
  18. package/src/tab-view.ts +512 -0
  19. package/src/template-props.ts +402 -0
  20. package/src/vendor/listview/LICENSE +19 -0
  21. package/src/vendor/listview/README.md +1 -0
  22. package/src/vendor/listview/binding-options.ts +189 -0
  23. package/src/vendor/listview/expressions.ts +285 -0
  24. package/src/webview.ts +36 -7
  25. package/types/ARKitCore.d.ts +199 -0
  26. package/types/AVFAudio.d.ts +2304 -0
  27. package/types/AVFoundation.d.ts +6974 -0
  28. package/types/AVKit.d.ts +215 -0
  29. package/types/AVRouting.d.ts +7 -0
  30. package/types/Accelerate.d.ts +4776 -0
  31. package/types/Accessibility.d.ts +69 -0
  32. package/types/Accounts.d.ts +134 -0
  33. package/types/AdSupport.d.ts +12 -0
  34. package/types/AddressBook.d.ts +1012 -0
  35. package/types/AppKit.d.ts +34247 -0
  36. package/types/AppTrackingTransparency.d.ts +23 -0
  37. package/types/AppleScriptKit.d.ts +6 -0
  38. package/types/ApplicationServices.d.ts +6346 -0
  39. package/types/AudioToolbox.d.ts +7129 -0
  40. package/types/AudioVideoBridging.d.ts +613 -0
  41. package/types/AuthenticationServices.d.ts +982 -0
  42. package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
  43. package/types/Automator.d.ts +248 -0
  44. package/types/BackgroundAssets.d.ts +9 -0
  45. package/types/BrowserEngineKit.d.ts +166 -0
  46. package/types/BusinessChat.d.ts +29 -0
  47. package/types/CFNetwork.d.ts +931 -0
  48. package/types/CalendarStore.d.ts +354 -0
  49. package/types/CallKit.d.ts +30 -0
  50. package/types/Carbon.d.ts +16207 -0
  51. package/types/ClassKit.d.ts +281 -0
  52. package/types/CloudKit.d.ts +1565 -0
  53. package/types/Collaboration.d.ts +123 -0
  54. package/types/ColorSync.d.ts +562 -0
  55. package/types/CompositorServices.d.ts +60 -0
  56. package/types/ComputeGraph.d.ts +16 -0
  57. package/types/Contacts.d.ts +1558 -0
  58. package/types/ContactsUI.d.ts +39 -0
  59. package/types/CoreAudio.d.ts +1376 -0
  60. package/types/CoreAudioKit.d.ts +122 -0
  61. package/types/CoreAudioTypes.d.ts +1003 -0
  62. package/types/CoreBluetooth.d.ts +657 -0
  63. package/types/CoreData.d.ts +2479 -0
  64. package/types/CoreFoundation.d.ts +5546 -0
  65. package/types/CoreGraphics.d.ts +3676 -0
  66. package/types/CoreHaptics.d.ts +361 -0
  67. package/types/CoreImage.d.ts +4781 -0
  68. package/types/CoreLocation.d.ts +564 -0
  69. package/types/CoreMIDI.d.ts +1538 -0
  70. package/types/CoreML.d.ts +905 -0
  71. package/types/CoreMedia.d.ts +2615 -0
  72. package/types/CoreMediaIO.d.ts +1046 -0
  73. package/types/CoreMotion.d.ts +316 -0
  74. package/types/CoreServices.d.ts +24810 -0
  75. package/types/CoreSpotlight.d.ts +789 -0
  76. package/types/CoreTelephony.d.ts +31 -0
  77. package/types/CoreText.d.ts +3973 -0
  78. package/types/CoreTransferable.d.ts +3 -0
  79. package/types/CoreVideo.d.ts +1162 -0
  80. package/types/CoreWLAN.d.ts +556 -0
  81. package/types/CryptoTokenKit.d.ts +548 -0
  82. package/types/DVDPlayback.d.ts +931 -0
  83. package/types/DataDetection.d.ts +66 -0
  84. package/types/DeviceCheck.d.ts +46 -0
  85. package/types/DeviceDiscoveryExtension.d.ts +142 -0
  86. package/types/DirectoryService.d.ts +966 -0
  87. package/types/DiscRecording.d.ts +2345 -0
  88. package/types/DiscRecordingUI.d.ts +288 -0
  89. package/types/DiskArbitration.d.ts +366 -0
  90. package/types/DriverKit.d.ts +639 -0
  91. package/types/EventKit.d.ts +640 -0
  92. package/types/ExceptionHandling.d.ts +56 -0
  93. package/types/ExecutionPolicy.d.ts +30 -0
  94. package/types/ExternalAccessory.d.ts +98 -0
  95. package/types/FSKit.d.ts +237 -0
  96. package/types/FileProvider.d.ts +495 -0
  97. package/types/FileProviderUI.d.ts +31 -0
  98. package/types/FinderSync.d.ts +165 -0
  99. package/types/FocusEngine.d.ts +133 -0
  100. package/types/ForceFeedback.d.ts +399 -0
  101. package/types/Foundation.d.ts +18216 -0
  102. package/types/GLKit.d.ts +937 -0
  103. package/types/GLUT.d.ts +1018 -0
  104. package/types/GSS.d.ts +855 -0
  105. package/types/GameController.d.ts +1394 -0
  106. package/types/GameKit.d.ts +1958 -0
  107. package/types/GameSave.d.ts +54 -0
  108. package/types/GameplayKit.d.ts +1645 -0
  109. package/types/HealthKit.d.ts +278 -0
  110. package/types/Hypervisor.d.ts +2079 -0
  111. package/types/ICADevices.d.ts +1400 -0
  112. package/types/IOBluetooth.d.ts +6094 -0
  113. package/types/IOBluetoothUI.d.ts +250 -0
  114. package/types/IOKit.d.ts +25804 -0
  115. package/types/IOSurface.d.ts +435 -0
  116. package/types/IOUSBHost.d.ts +809 -0
  117. package/types/ImageCaptureCore.d.ts +1104 -0
  118. package/types/ImageIO.d.ts +1697 -0
  119. package/types/InputMethodKit.d.ts +264 -0
  120. package/types/InstallerPlugins.d.ts +102 -0
  121. package/types/InstantMessage.d.ts +229 -0
  122. package/types/Intents.d.ts +1833 -0
  123. package/types/IntentsUI.d.ts +5 -0
  124. package/types/JavaRuntimeSupport.d.ts +520 -0
  125. package/types/JavaScriptCore.d.ts +934 -0
  126. package/types/Kerberos.d.ts +3754 -0
  127. package/types/Kernel.d.ts +33698 -0
  128. package/types/KernelManagement.d.ts +5 -0
  129. package/types/LatentSemanticMapping.d.ts +152 -0
  130. package/types/LinkPresentation.d.ts +57 -0
  131. package/types/LocalAuthentication.d.ts +94 -0
  132. package/types/MLCompute.d.ts +2343 -0
  133. package/types/MapKit.d.ts +2125 -0
  134. package/types/Matter.d.ts +151 -0
  135. package/types/MediaAccessibility.d.ts +137 -0
  136. package/types/MediaLibrary.d.ts +394 -0
  137. package/types/MediaPlayer.d.ts +475 -0
  138. package/types/MediaToolbox.d.ts +70 -0
  139. package/types/Metal.d.ts +4542 -0
  140. package/types/MetalFX.d.ts +107 -0
  141. package/types/MetalKit.d.ts +524 -0
  142. package/types/MetalPerformanceShaders.d.ts +9306 -0
  143. package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
  144. package/types/MetricKit.d.ts +231 -0
  145. package/types/ModelIO.d.ts +2908 -0
  146. package/types/MultipeerConnectivity.d.ts +348 -0
  147. package/types/NaturalLanguage.d.ts +556 -0
  148. package/types/NearbyInteraction.d.ts +51 -0
  149. package/types/NetFS.d.ts +99 -0
  150. package/types/Network.d.ts +1622 -0
  151. package/types/NetworkExtension.d.ts +1574 -0
  152. package/types/NotificationCenter.d.ts +103 -0
  153. package/types/OSAKit.d.ts +260 -0
  154. package/types/OSLog.d.ts +208 -0
  155. package/types/OpenAL.d.ts +314 -0
  156. package/types/OpenCL.d.ts +2489 -0
  157. package/types/OpenDirectory.d.ts +1919 -0
  158. package/types/OpenGL.d.ts +11322 -0
  159. package/types/PCSC.d.ts +534 -0
  160. package/types/PDFKit.d.ts +1575 -0
  161. package/types/PHASE.d.ts +166 -0
  162. package/types/ParavirtualizedGraphics.d.ts +153 -0
  163. package/types/PassKit.d.ts +1287 -0
  164. package/types/PencilKit.d.ts +201 -0
  165. package/types/Photos.d.ts +1125 -0
  166. package/types/PhotosUI.d.ts +397 -0
  167. package/types/PreferencePanes.d.ts +68 -0
  168. package/types/ProximityReaderStub.d.ts +5 -0
  169. package/types/PushKit.d.ts +45 -0
  170. package/types/Quartz.d.ts +1642 -0
  171. package/types/QuartzCore.d.ts +1398 -0
  172. package/types/QuickLook.d.ts +212 -0
  173. package/types/QuickLookThumbnailing.d.ts +131 -0
  174. package/types/QuickLookUI.d.ts +117 -0
  175. package/types/REVISION.json +5 -0
  176. package/types/ReplayKit.d.ts +294 -0
  177. package/types/Runtime.d.ts +51605 -0
  178. package/types/SafariServices.d.ts +430 -0
  179. package/types/SafetyKit.d.ts +7 -0
  180. package/types/SceneKit.d.ts +4996 -0
  181. package/types/ScreenCaptureKit.d.ts +16 -0
  182. package/types/ScreenSaver.d.ts +41 -0
  183. package/types/ScreenTime.d.ts +41 -0
  184. package/types/ScriptingBridge.d.ts +96 -0
  185. package/types/Security.d.ts +14336 -0
  186. package/types/SecurityFoundation.d.ts +53 -0
  187. package/types/SecurityInterface.d.ts +297 -0
  188. package/types/SensorKit.d.ts +7 -0
  189. package/types/ServiceManagement.d.ts +71 -0
  190. package/types/SharedWithYou.d.ts +9 -0
  191. package/types/SharedWithYouCore.d.ts +5 -0
  192. package/types/ShazamKit.d.ts +12 -0
  193. package/types/Social.d.ts +306 -0
  194. package/types/SoundAnalysis.d.ts +177 -0
  195. package/types/Speech.d.ts +246 -0
  196. package/types/SpriteKit.d.ts +2766 -0
  197. package/types/StoreKit.d.ts +509 -0
  198. package/types/SyncServices.d.ts +551 -0
  199. package/types/SystemConfiguration.d.ts +1415 -0
  200. package/types/SystemExtensions.d.ts +89 -0
  201. package/types/TWAIN.d.ts +380 -0
  202. package/types/Tcl.d.ts +4013 -0
  203. package/types/ThreadNetwork.d.ts +77 -0
  204. package/types/Tk.d.ts +3750 -0
  205. package/types/UIUtilities.d.ts +31 -0
  206. package/types/UniformTypeIdentifiers.d.ts +358 -0
  207. package/types/UserNotifications.d.ts +538 -0
  208. package/types/UserNotificationsUI.d.ts +38 -0
  209. package/types/VideoDecodeAcceleration.d.ts +50 -0
  210. package/types/VideoSubscriberAccount.d.ts +139 -0
  211. package/types/VideoToolbox.d.ts +907 -0
  212. package/types/Virtualization.d.ts +302 -0
  213. package/types/Vision.d.ts +1723 -0
  214. package/types/WebKit.d.ts +5195 -0
  215. package/types/WidgetKit.d.ts +9 -0
  216. package/types/_LocationEssentials.d.ts +159 -0
  217. package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
  218. package/types/iTunesLibrary.d.ts +528 -0
  219. package/types/index.d.ts +9 -0
  220. package/types/vecLib.d.ts +33586 -0
  221. package/types/vmnet.d.ts +178 -0
  222. package/src/appkit.d.ts +0 -472
@@ -0,0 +1,2766 @@
1
+ /// <reference types="@nativescript/objc-node-api" />
2
+ /// <reference path="./Runtime.d.ts" />
3
+ /// <reference path="./AppKit.d.ts" />
4
+
5
+ declare const SKRepeatMode: {
6
+ Clamp: 1
7
+ Loop: 2
8
+ }
9
+
10
+ declare const SKParticleRenderOrder: {
11
+ OldestLast: 0
12
+ OldestFirst: 1
13
+ DontCare: 2
14
+ }
15
+
16
+ declare const SKLabelVerticalAlignmentMode: {
17
+ Baseline: 0
18
+ Center: 1
19
+ Top: 2
20
+ Bottom: 3
21
+ }
22
+
23
+ declare const SKLabelHorizontalAlignmentMode: {
24
+ Center: 0
25
+ Left: 1
26
+ Right: 2
27
+ }
28
+
29
+ declare const SKTileSetType: {
30
+ Grid: 0
31
+ Isometric: 1
32
+ HexagonalFlat: 2
33
+ HexagonalPointy: 3
34
+ }
35
+
36
+ declare const SKTileDefinitionRotation: {
37
+ Rotation0: 0
38
+ Rotation90: 1
39
+ Rotation180: 2
40
+ Rotation270: 3
41
+ }
42
+
43
+ declare const SKAttributeType: {
44
+ None: 0
45
+ Float: 1
46
+ VectorFloat2: 2
47
+ VectorFloat3: 3
48
+ VectorFloat4: 4
49
+ HalfFloat: 5
50
+ VectorHalfFloat2: 6
51
+ VectorHalfFloat3: 7
52
+ VectorHalfFloat4: 8
53
+ }
54
+
55
+ declare const SKTextureFilteringMode: {
56
+ Nearest: 0
57
+ Linear: 1
58
+ }
59
+
60
+ declare const SKInterpolationMode: {
61
+ Linear: 1
62
+ Spline: 2
63
+ Step: 3
64
+ }
65
+
66
+ declare const SKActionTimingMode: {
67
+ Linear: 0
68
+ EaseIn: 1
69
+ EaseOut: 2
70
+ EaseInEaseOut: 3
71
+ }
72
+
73
+ declare const SKBlendMode: {
74
+ Alpha: 0
75
+ Add: 1
76
+ Subtract: 2
77
+ Multiply: 3
78
+ MultiplyX2: 4
79
+ Screen: 5
80
+ Replace: 6
81
+ MultiplyAlpha: 7
82
+ }
83
+
84
+ declare const SKUniformType: {
85
+ None: 0
86
+ Float: 1
87
+ FloatVector2: 2
88
+ FloatVector3: 3
89
+ FloatVector4: 4
90
+ FloatMatrix2: 5
91
+ FloatMatrix3: 6
92
+ FloatMatrix4: 7
93
+ Texture: 8
94
+ }
95
+
96
+ declare const SKTransitionDirection: {
97
+ Up: 0
98
+ Down: 1
99
+ Right: 2
100
+ Left: 3
101
+ }
102
+
103
+ declare const SKTileAdjacencyMask: {
104
+ AdjacencyUp: 1
105
+ AdjacencyUpperRight: 2
106
+ AdjacencyRight: 4
107
+ AdjacencyLowerRight: 8
108
+ AdjacencyDown: 16
109
+ AdjacencyLowerLeft: 32
110
+ AdjacencyLeft: 64
111
+ AdjacencyUpperLeft: 128
112
+ AdjacencyAll: 255
113
+ HexFlatAdjacencyUp: 1
114
+ HexFlatAdjacencyUpperRight: 2
115
+ HexFlatAdjacencyLowerRight: 4
116
+ HexFlatAdjacencyDown: 8
117
+ HexFlatAdjacencyLowerLeft: 16
118
+ HexFlatAdjacencyUpperLeft: 32
119
+ HexFlatAdjacencyAll: 63
120
+ HexPointyAdjacencyUpperLeft: 1
121
+ HexPointyAdjacencyUpperRight: 2
122
+ HexPointyAdjacencyRight: 4
123
+ HexPointyAdjacencyLowerRight: 8
124
+ HexPointyAdjacencyLowerLeft: 16
125
+ HexPointyAdjacencyLeft: 32
126
+ HexPointyAdjacencyAdd: 63
127
+ AdjacencyUpEdge: 124
128
+ AdjacencyUpperRightEdge: 112
129
+ AdjacencyRightEdge: 241
130
+ AdjacencyLowerRightEdge: 193
131
+ AdjacencyDownEdge: 199
132
+ AdjacencyLowerLeftEdge: 7
133
+ AdjacencyLeftEdge: 31
134
+ AdjacencyUpperLeftEdge: 28
135
+ AdjacencyUpperRightCorner: 223
136
+ AdjacencyLowerRightCorner: 127
137
+ AdjacencyLowerLeftCorner: 253
138
+ AdjacencyUpperLeftCorner: 247
139
+ }
140
+
141
+ declare const SKSceneScaleMode: {
142
+ Fill: 0
143
+ AspectFill: 1
144
+ AspectFit: 2
145
+ ResizeFill: 3
146
+ }
147
+
148
+ declare interface SKPhysicsContactDelegate extends NSObjectProtocol {
149
+ didBeginContact?(contact: SKPhysicsContact): void
150
+
151
+ didEndContact?(contact: SKPhysicsContact): void
152
+ }
153
+
154
+ declare class SKPhysicsContactDelegate extends NativeObject implements SKPhysicsContactDelegate {}
155
+
156
+ declare interface SKViewDelegate extends NSObjectProtocol {
157
+ viewShouldRenderAtTime?(view: SKView, time: number): boolean
158
+ }
159
+
160
+ declare class SKViewDelegate extends NativeObject implements SKViewDelegate {}
161
+
162
+ declare interface SKSceneDelegate extends NSObjectProtocol {
163
+ updateForScene?(currentTime: number, scene: SKScene): void
164
+
165
+ didEvaluateActionsForScene?(scene: SKScene): void
166
+
167
+ didSimulatePhysicsForScene?(scene: SKScene): void
168
+
169
+ didApplyConstraintsForScene?(scene: SKScene): void
170
+
171
+ didFinishUpdateForScene?(scene: SKScene): void
172
+ }
173
+
174
+ declare class SKSceneDelegate extends NativeObject implements SKSceneDelegate {}
175
+
176
+ declare interface SKWarpable extends NSObjectProtocol {
177
+ warpGeometry: SKWarpGeometry
178
+
179
+ subdivisionLevels: number
180
+ }
181
+
182
+ declare class SKWarpable extends NativeObject implements SKWarpable {}
183
+
184
+ declare class SKReachConstraints extends NSObject implements NSSecureCoding {
185
+ lowerAngleLimit: number
186
+
187
+ upperAngleLimit: number
188
+
189
+ initWithLowerAngleLimitUpperAngleLimit(lowerAngleLimit: number, upperAngleLimit: number): this
190
+
191
+ static readonly supportsSecureCoding: boolean
192
+
193
+ encodeWithCoder(coder: NSCoder): void
194
+
195
+ initWithCoder(coder: NSCoder): this
196
+ }
197
+
198
+ declare class SKLabelNode extends SKNode {
199
+ static labelNodeWithText<This extends abstract new (...args: any) => any>(
200
+ this: This,
201
+ text: string | null,
202
+ ): InstanceType<This>
203
+
204
+ static labelNodeWithAttributedText<This extends abstract new (...args: any) => any>(
205
+ this: This,
206
+ attributedText: NSAttributedString | null,
207
+ ): InstanceType<This>
208
+
209
+ static labelNodeWithFontNamed<This extends abstract new (...args: any) => any>(
210
+ this: This,
211
+ fontName: string | null,
212
+ ): InstanceType<This>
213
+
214
+ initWithFontNamed(fontName: string | null): this
215
+
216
+ verticalAlignmentMode: interop.Enum<typeof SKLabelVerticalAlignmentMode>
217
+
218
+ horizontalAlignmentMode: interop.Enum<typeof SKLabelHorizontalAlignmentMode>
219
+
220
+ numberOfLines: number
221
+
222
+ lineBreakMode: interop.Enum<typeof NSLineBreakMode>
223
+
224
+ preferredMaxLayoutWidth: number
225
+
226
+ fontName: string
227
+
228
+ text: string
229
+
230
+ attributedText: NSAttributedString
231
+
232
+ fontSize: number
233
+
234
+ fontColor: NSColor
235
+
236
+ colorBlendFactor: number
237
+
238
+ color: NSColor
239
+
240
+ blendMode: interop.Enum<typeof SKBlendMode>
241
+ }
242
+
243
+ declare class SKPhysicsJointSpring extends SKPhysicsJoint {
244
+ static jointWithBodyABodyBAnchorAAnchorB(
245
+ bodyA: SKPhysicsBody,
246
+ bodyB: SKPhysicsBody,
247
+ anchorA: CGPoint,
248
+ anchorB: CGPoint,
249
+ ): SKPhysicsJointSpring
250
+
251
+ damping: number
252
+
253
+ frequency: number
254
+ }
255
+
256
+ declare class SKSpriteNode extends SKNode implements SKWarpable {
257
+ static spriteNodeWithTextureSize<This extends abstract new (...args: any) => any>(
258
+ this: This,
259
+ texture: SKTexture | null,
260
+ size: CGSize,
261
+ ): InstanceType<This>
262
+
263
+ static spriteNodeWithTexture<This extends abstract new (...args: any) => any>(
264
+ this: This,
265
+ texture: SKTexture | null,
266
+ ): InstanceType<This>
267
+
268
+ static spriteNodeWithTextureNormalMap<This extends abstract new (...args: any) => any>(
269
+ this: This,
270
+ texture: SKTexture | null,
271
+ normalMap: SKTexture | null,
272
+ ): InstanceType<This>
273
+
274
+ static spriteNodeWithImageNamed<This extends abstract new (...args: any) => any>(
275
+ this: This,
276
+ name: string,
277
+ ): InstanceType<This>
278
+
279
+ static spriteNodeWithImageNamedNormalMapped<This extends abstract new (...args: any) => any>(
280
+ this: This,
281
+ name: string,
282
+ generateNormalMap: boolean,
283
+ ): InstanceType<This>
284
+
285
+ static spriteNodeWithColorSize<This extends abstract new (...args: any) => any>(
286
+ this: This,
287
+ color: NSColor,
288
+ size: CGSize,
289
+ ): InstanceType<This>
290
+
291
+ initWithTextureColorSize(texture: SKTexture | null, color: NSColor, size: CGSize): this
292
+
293
+ initWithTexture(texture: SKTexture | null): this
294
+
295
+ initWithImageNamed(name: string): this
296
+
297
+ initWithColorSize(color: NSColor, size: CGSize): this
298
+
299
+ initWithCoder(coder: NSCoder): this
300
+ initWithCoder(aDecoder: NSCoder): this
301
+
302
+ texture: SKTexture
303
+
304
+ normalTexture: SKTexture
305
+
306
+ lightingBitMask: number
307
+
308
+ shadowCastBitMask: number
309
+
310
+ shadowedBitMask: number
311
+
312
+ centerRect: CGRect
313
+
314
+ colorBlendFactor: number
315
+
316
+ color: NSColor
317
+
318
+ blendMode: interop.Enum<typeof SKBlendMode>
319
+
320
+ anchorPoint: CGPoint
321
+
322
+ size: CGSize
323
+
324
+ scaleToSize(size: CGSize): void
325
+
326
+ shader: SKShader
327
+
328
+ get attributeValues(): NSDictionary
329
+ set attributeValues(
330
+ value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
331
+ )
332
+
333
+ valueForAttributeNamed(key: string): SKAttributeValue
334
+
335
+ setValueForAttributeNamed(value: SKAttributeValue, key: string): void
336
+
337
+ warpGeometry: SKWarpGeometry
338
+
339
+ subdivisionLevels: number
340
+
341
+ isEqual(object: interop.Object): boolean
342
+
343
+ readonly hash: number
344
+
345
+ readonly superclass: interop.Pointer
346
+
347
+ class(): interop.Pointer
348
+
349
+ self(): this
350
+
351
+ performSelector(aSelector: string): interop.Object
352
+
353
+ performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
354
+
355
+ performSelectorWithObjectWithObject(
356
+ aSelector: string,
357
+ object1: interop.Object,
358
+ object2: interop.Object,
359
+ ): interop.Object
360
+
361
+ readonly isProxy: boolean
362
+
363
+ isKindOfClass(aClass: interop.PointerConvertible): boolean
364
+
365
+ isMemberOfClass(aClass: interop.PointerConvertible): boolean
366
+
367
+ conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
368
+
369
+ respondsToSelector(aSelector: string): boolean
370
+
371
+ retain(): this
372
+
373
+ release(): void
374
+
375
+ autorelease(): this
376
+
377
+ retainCount(): number
378
+
379
+ readonly zone: interop.Pointer
380
+
381
+ readonly description: string
382
+
383
+ readonly debugDescription: string
384
+ }
385
+
386
+ declare class SKTileDefinition extends NSObject implements NSCopying, NSSecureCoding {
387
+ static tileDefinitionWithTexture<This extends abstract new (...args: any) => any>(
388
+ this: This,
389
+ texture: SKTexture,
390
+ ): InstanceType<This>
391
+
392
+ static tileDefinitionWithTextureSize<This extends abstract new (...args: any) => any>(
393
+ this: This,
394
+ texture: SKTexture,
395
+ size: CGSize,
396
+ ): InstanceType<This>
397
+
398
+ static tileDefinitionWithTextureNormalTextureSize<
399
+ This extends abstract new (...args: any) => any,
400
+ >(this: This, texture: SKTexture, normalTexture: SKTexture, size: CGSize): InstanceType<This>
401
+
402
+ static tileDefinitionWithTexturesSizeTimePerFrame<
403
+ This extends abstract new (...args: any) => any,
404
+ >(
405
+ this: This,
406
+ textures: NSArray<interop.Object> | Array<interop.Object>,
407
+ size: CGSize,
408
+ timePerFrame: number,
409
+ ): InstanceType<This>
410
+
411
+ static tileDefinitionWithTexturesNormalTexturesSizeTimePerFrame<
412
+ This extends abstract new (...args: any) => any,
413
+ >(
414
+ this: This,
415
+ textures: NSArray<interop.Object> | Array<interop.Object>,
416
+ normalTextures: NSArray<interop.Object> | Array<interop.Object>,
417
+ size: CGSize,
418
+ timePerFrame: number,
419
+ ): InstanceType<This>
420
+
421
+ initWithTexture(texture: SKTexture): this
422
+
423
+ initWithTextureSize(texture: SKTexture, size: CGSize): this
424
+
425
+ initWithTextureNormalTextureSize(texture: SKTexture, normalTexture: SKTexture, size: CGSize): this
426
+
427
+ initWithTexturesSizeTimePerFrame(
428
+ textures: NSArray<interop.Object> | Array<interop.Object>,
429
+ size: CGSize,
430
+ timePerFrame: number,
431
+ ): this
432
+
433
+ initWithTexturesNormalTexturesSizeTimePerFrame(
434
+ textures: NSArray<interop.Object> | Array<interop.Object>,
435
+ normalTextures: NSArray<interop.Object> | Array<interop.Object>,
436
+ size: CGSize,
437
+ timePerFrame: number,
438
+ ): this
439
+
440
+ get textures(): NSArray
441
+ set textures(value: NSArray<interop.Object> | Array<interop.Object>)
442
+
443
+ get normalTextures(): NSArray
444
+ set normalTextures(value: NSArray<interop.Object> | Array<interop.Object>)
445
+
446
+ userData: NSMutableDictionary
447
+
448
+ name: string
449
+
450
+ size: CGSize
451
+
452
+ timePerFrame: number
453
+
454
+ placementWeight: number
455
+
456
+ rotation: interop.Enum<typeof SKTileDefinitionRotation>
457
+
458
+ flipVertically: boolean
459
+
460
+ flipHorizontally: boolean
461
+
462
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
463
+
464
+ static readonly supportsSecureCoding: boolean
465
+
466
+ encodeWithCoder(coder: NSCoder): void
467
+
468
+ initWithCoder(coder: NSCoder): this
469
+ }
470
+
471
+ declare class SKAttributeValue extends NSObject implements NSSecureCoding {
472
+ static valueWithFloat<This extends abstract new (...args: any) => any>(
473
+ this: This,
474
+ value: number,
475
+ ): InstanceType<This>
476
+
477
+ static valueWithVectorFloat2<This extends abstract new (...args: any) => any>(
478
+ this: This,
479
+ value: unknown /* ext vector */,
480
+ ): InstanceType<This>
481
+
482
+ static valueWithVectorFloat3<This extends abstract new (...args: any) => any>(
483
+ this: This,
484
+ value: unknown /* ext vector */,
485
+ ): InstanceType<This>
486
+
487
+ static valueWithVectorFloat4<This extends abstract new (...args: any) => any>(
488
+ this: This,
489
+ value: unknown /* ext vector */,
490
+ ): InstanceType<This>
491
+
492
+ init(): this
493
+
494
+ floatValue: number
495
+
496
+ vectorFloat2Value: unknown /* ext vector */
497
+
498
+ vectorFloat3Value: unknown /* ext vector */
499
+
500
+ vectorFloat4Value: unknown /* ext vector */
501
+
502
+ static readonly supportsSecureCoding: boolean
503
+
504
+ encodeWithCoder(coder: NSCoder): void
505
+
506
+ initWithCoder(coder: NSCoder): this
507
+ }
508
+
509
+ declare class SKEmitterNode extends SKNode {
510
+ advanceSimulationTime(sec: number): void
511
+
512
+ resetSimulation(): void
513
+
514
+ particleTexture: SKTexture
515
+
516
+ particleBlendMode: interop.Enum<typeof SKBlendMode>
517
+
518
+ particleColor: NSColor
519
+
520
+ particleColorRedRange: number
521
+
522
+ particleColorGreenRange: number
523
+
524
+ particleColorBlueRange: number
525
+
526
+ particleColorAlphaRange: number
527
+
528
+ particleColorRedSpeed: number
529
+
530
+ particleColorGreenSpeed: number
531
+
532
+ particleColorBlueSpeed: number
533
+
534
+ particleColorAlphaSpeed: number
535
+
536
+ particleColorSequence: SKKeyframeSequence
537
+
538
+ particleColorBlendFactor: number
539
+
540
+ particleColorBlendFactorRange: number
541
+
542
+ particleColorBlendFactorSpeed: number
543
+
544
+ particleColorBlendFactorSequence: SKKeyframeSequence
545
+
546
+ particlePosition: CGPoint
547
+
548
+ particlePositionRange: CGVector
549
+
550
+ particleSpeed: number
551
+
552
+ particleSpeedRange: number
553
+
554
+ emissionAngle: number
555
+
556
+ emissionAngleRange: number
557
+
558
+ xAcceleration: number
559
+
560
+ yAcceleration: number
561
+
562
+ particleBirthRate: number
563
+
564
+ numParticlesToEmit: number
565
+
566
+ particleLifetime: number
567
+
568
+ particleLifetimeRange: number
569
+
570
+ particleRotation: number
571
+
572
+ particleRotationRange: number
573
+
574
+ particleRotationSpeed: number
575
+
576
+ particleSize: CGSize
577
+
578
+ particleScale: number
579
+
580
+ particleScaleRange: number
581
+
582
+ particleScaleSpeed: number
583
+
584
+ particleScaleSequence: SKKeyframeSequence
585
+
586
+ particleAlpha: number
587
+
588
+ particleAlphaRange: number
589
+
590
+ particleAlphaSpeed: number
591
+
592
+ particleAlphaSequence: SKKeyframeSequence
593
+
594
+ particleAction: SKAction
595
+
596
+ fieldBitMask: number
597
+
598
+ targetNode: SKNode
599
+
600
+ shader: SKShader
601
+
602
+ get attributeValues(): NSDictionary
603
+ set attributeValues(
604
+ value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
605
+ )
606
+
607
+ valueForAttributeNamed(key: string): SKAttributeValue
608
+
609
+ setValueForAttributeNamed(value: SKAttributeValue, key: string): void
610
+
611
+ particleZPosition: number
612
+
613
+ particleRenderOrder: interop.Enum<typeof SKParticleRenderOrder>
614
+
615
+ particleZPositionRange: number
616
+
617
+ particleZPositionSpeed: number
618
+ }
619
+
620
+ declare class SKKeyframeSequence extends NSObject implements NSSecureCoding, NSCopying {
621
+ initWithKeyframeValuesTimes(
622
+ values: NSArray<interop.Object> | Array<interop.Object>,
623
+ times: NSArray<interop.Object> | Array<interop.Object>,
624
+ ): this
625
+
626
+ initWithCapacity(numItems: number): this
627
+
628
+ initWithCoder(aDecoder: NSCoder): this
629
+
630
+ count(): number
631
+
632
+ addKeyframeValueTime(value: interop.Object, time: number): void
633
+
634
+ removeLastKeyframe(): void
635
+
636
+ removeKeyframeAtIndex(index: number): void
637
+
638
+ setKeyframeValueForIndex(value: interop.Object, index: number): void
639
+
640
+ setKeyframeTimeForIndex(time: number, index: number): void
641
+
642
+ setKeyframeValueTimeForIndex(value: interop.Object, time: number, index: number): void
643
+
644
+ getKeyframeValueForIndex(index: number): interop.Object
645
+
646
+ getKeyframeTimeForIndex(index: number): number
647
+
648
+ sampleAtTime(time: number): interop.Object
649
+
650
+ interpolationMode: interop.Enum<typeof SKInterpolationMode>
651
+
652
+ repeatMode: interop.Enum<typeof SKRepeatMode>
653
+
654
+ static readonly supportsSecureCoding: boolean
655
+
656
+ encodeWithCoder(coder: NSCoder): void
657
+
658
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
659
+ }
660
+
661
+ declare class SKTexture extends NSObject implements NSCopying, NSSecureCoding {
662
+ static textureWithImageNamed<This extends abstract new (...args: any) => any>(
663
+ this: This,
664
+ name: string,
665
+ ): InstanceType<This>
666
+
667
+ static textureWithRectInTexture<This extends abstract new (...args: any) => any>(
668
+ this: This,
669
+ rect: CGRect,
670
+ texture: SKTexture,
671
+ ): InstanceType<This>
672
+
673
+ static textureVectorNoiseWithSmoothnessSize<This extends abstract new (...args: any) => any>(
674
+ this: This,
675
+ smoothness: number,
676
+ size: CGSize,
677
+ ): InstanceType<This>
678
+
679
+ static textureNoiseWithSmoothnessSizeGrayscale<This extends abstract new (...args: any) => any>(
680
+ this: This,
681
+ smoothness: number,
682
+ size: CGSize,
683
+ grayscale: boolean,
684
+ ): InstanceType<This>
685
+
686
+ static textureWithCGImage<This extends abstract new (...args: any) => any>(
687
+ this: This,
688
+ image: interop.Object,
689
+ ): InstanceType<This>
690
+
691
+ static textureWithImage<This extends abstract new (...args: any) => any>(
692
+ this: This,
693
+ image: NSImage,
694
+ ): InstanceType<This>
695
+
696
+ static textureWithDataSize<This extends abstract new (...args: any) => any>(
697
+ this: This,
698
+ pixelData: NSData,
699
+ size: CGSize,
700
+ ): InstanceType<This>
701
+
702
+ static textureWithDataSizeFlipped<This extends abstract new (...args: any) => any>(
703
+ this: This,
704
+ pixelData: NSData,
705
+ size: CGSize,
706
+ flipped: boolean,
707
+ ): InstanceType<This>
708
+
709
+ static textureWithDataSizeRowLengthAlignment<This extends abstract new (...args: any) => any>(
710
+ this: This,
711
+ pixelData: NSData,
712
+ size: CGSize,
713
+ rowLength: number,
714
+ alignment: number,
715
+ ): InstanceType<This>
716
+
717
+ textureByApplyingCIFilter(filter: CIFilter): this
718
+
719
+ textureByGeneratingNormalMap(): this
720
+
721
+ textureByGeneratingNormalMapWithSmoothnessContrast(smoothness: number, contrast: number): this
722
+
723
+ textureRect(): CGRect
724
+
725
+ size(): CGSize
726
+
727
+ filteringMode: interop.Enum<typeof SKTextureFilteringMode>
728
+
729
+ usesMipmaps: boolean
730
+
731
+ CGImage(): interop.Object
732
+
733
+ static preloadTexturesWithCompletionHandler(
734
+ textures: NSArray<interop.Object> | Array<interop.Object>,
735
+ completionHandler: () => void,
736
+ ): void
737
+
738
+ preloadWithCompletionHandler(completionHandler: () => void): void
739
+
740
+ static textureWithNoiseMap<This extends abstract new (...args: any) => any>(
741
+ this: This,
742
+ noiseMap: GKNoiseMap,
743
+ ): InstanceType<This>
744
+
745
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
746
+
747
+ static readonly supportsSecureCoding: boolean
748
+
749
+ encodeWithCoder(coder: NSCoder): void
750
+
751
+ initWithCoder(coder: NSCoder): this
752
+ }
753
+
754
+ declare class SKPhysicsBody extends NSObject implements NSCopying, NSSecureCoding {
755
+ static bodyWithCircleOfRadius(r: number): SKPhysicsBody
756
+
757
+ static bodyWithCircleOfRadiusCenter(r: number, center: CGPoint): SKPhysicsBody
758
+
759
+ static bodyWithRectangleOfSize(s: CGSize): SKPhysicsBody
760
+
761
+ static bodyWithRectangleOfSizeCenter(s: CGSize, center: CGPoint): SKPhysicsBody
762
+
763
+ static bodyWithPolygonFromPath(path: interop.Object): SKPhysicsBody
764
+
765
+ static bodyWithEdgeFromPointToPoint(p1: CGPoint, p2: CGPoint): SKPhysicsBody
766
+
767
+ static bodyWithEdgeChainFromPath(path: interop.Object): SKPhysicsBody
768
+
769
+ static bodyWithEdgeLoopFromPath(path: interop.Object): SKPhysicsBody
770
+
771
+ static bodyWithEdgeLoopFromRect(rect: CGRect): SKPhysicsBody
772
+
773
+ static bodyWithTextureSize(texture: SKTexture, size: CGSize): SKPhysicsBody
774
+
775
+ static bodyWithTextureAlphaThresholdSize(
776
+ texture: SKTexture,
777
+ alphaThreshold: number,
778
+ size: CGSize,
779
+ ): SKPhysicsBody
780
+
781
+ static bodyWithBodies(bodies: NSArray<interop.Object> | Array<interop.Object>): SKPhysicsBody
782
+
783
+ dynamic: boolean
784
+
785
+ usesPreciseCollisionDetection: boolean
786
+
787
+ allowsRotation: boolean
788
+
789
+ pinned: boolean
790
+
791
+ resting: boolean
792
+
793
+ friction: number
794
+
795
+ charge: number
796
+
797
+ restitution: number
798
+
799
+ linearDamping: number
800
+
801
+ angularDamping: number
802
+
803
+ density: number
804
+
805
+ mass: number
806
+
807
+ readonly area: number
808
+
809
+ affectedByGravity: boolean
810
+
811
+ fieldBitMask: number
812
+
813
+ categoryBitMask: number
814
+
815
+ collisionBitMask: number
816
+
817
+ contactTestBitMask: number
818
+
819
+ readonly joints: NSArray
820
+
821
+ readonly node: SKNode
822
+
823
+ velocity: CGVector
824
+
825
+ angularVelocity: number
826
+
827
+ applyForce(force: CGVector): void
828
+
829
+ applyForceAtPoint(force: CGVector, point: CGPoint): void
830
+
831
+ applyTorque(torque: number): void
832
+
833
+ applyImpulse(impulse: CGVector): void
834
+
835
+ applyImpulseAtPoint(impulse: CGVector, point: CGPoint): void
836
+
837
+ applyAngularImpulse(impulse: number): void
838
+
839
+ allContactedBodies(): NSArray
840
+
841
+ isDynamic(): boolean
842
+
843
+ isResting(): boolean
844
+
845
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
846
+
847
+ static readonly supportsSecureCoding: boolean
848
+
849
+ encodeWithCoder(coder: NSCoder): void
850
+
851
+ initWithCoder(coder: NSCoder): this
852
+ }
853
+
854
+ declare class SKPhysicsJointLimit extends SKPhysicsJoint {
855
+ maxLength: number
856
+
857
+ static jointWithBodyABodyBAnchorAAnchorB(
858
+ bodyA: SKPhysicsBody,
859
+ bodyB: SKPhysicsBody,
860
+ anchorA: CGPoint,
861
+ anchorB: CGPoint,
862
+ ): SKPhysicsJointLimit
863
+ }
864
+
865
+ declare class SKPhysicsContact extends NSObject {
866
+ readonly bodyA: SKPhysicsBody
867
+
868
+ readonly bodyB: SKPhysicsBody
869
+
870
+ readonly contactPoint: CGPoint
871
+
872
+ readonly contactNormal: CGVector
873
+
874
+ readonly collisionImpulse: number
875
+ }
876
+
877
+ declare class SKPhysicsJointSliding extends SKPhysicsJoint {
878
+ static jointWithBodyABodyBAnchorAxis(
879
+ bodyA: SKPhysicsBody,
880
+ bodyB: SKPhysicsBody,
881
+ anchor: CGPoint,
882
+ axis: CGVector,
883
+ ): SKPhysicsJointSliding
884
+
885
+ shouldEnableLimits: boolean
886
+
887
+ lowerDistanceLimit: number
888
+
889
+ upperDistanceLimit: number
890
+ }
891
+
892
+ declare class SKPhysicsJointPin extends SKPhysicsJoint {
893
+ static jointWithBodyABodyBAnchor(
894
+ bodyA: SKPhysicsBody,
895
+ bodyB: SKPhysicsBody,
896
+ anchor: CGPoint,
897
+ ): SKPhysicsJointPin
898
+
899
+ shouldEnableLimits: boolean
900
+
901
+ lowerAngleLimit: number
902
+
903
+ upperAngleLimit: number
904
+
905
+ frictionTorque: number
906
+
907
+ rotationSpeed: number
908
+ }
909
+
910
+ declare class SKConstraint extends NSObject implements NSSecureCoding, NSCopying {
911
+ enabled: boolean
912
+
913
+ referenceNode: SKNode
914
+
915
+ static positionX<This extends abstract new (...args: any) => any>(
916
+ this: This,
917
+ range: SKRange,
918
+ ): InstanceType<This>
919
+
920
+ static positionY<This extends abstract new (...args: any) => any>(
921
+ this: This,
922
+ range: SKRange,
923
+ ): InstanceType<This>
924
+
925
+ static positionXY<This extends abstract new (...args: any) => any>(
926
+ this: This,
927
+ xRange: SKRange,
928
+ yRange: SKRange,
929
+ ): InstanceType<This>
930
+
931
+ static distanceToNode<This extends abstract new (...args: any) => any>(
932
+ this: This,
933
+ range: SKRange,
934
+ node: SKNode,
935
+ ): InstanceType<This>
936
+
937
+ static distanceToPoint<This extends abstract new (...args: any) => any>(
938
+ this: This,
939
+ range: SKRange,
940
+ point: CGPoint,
941
+ ): InstanceType<This>
942
+
943
+ static distanceToPointInNode<This extends abstract new (...args: any) => any>(
944
+ this: This,
945
+ range: SKRange,
946
+ point: CGPoint,
947
+ node: SKNode,
948
+ ): InstanceType<This>
949
+
950
+ static zRotation<This extends abstract new (...args: any) => any>(
951
+ this: This,
952
+ zRange: SKRange,
953
+ ): InstanceType<This>
954
+
955
+ static orientToNodeOffset<This extends abstract new (...args: any) => any>(
956
+ this: This,
957
+ node: SKNode,
958
+ radians: SKRange,
959
+ ): InstanceType<This>
960
+
961
+ static orientToPointOffset<This extends abstract new (...args: any) => any>(
962
+ this: This,
963
+ point: CGPoint,
964
+ radians: SKRange,
965
+ ): InstanceType<This>
966
+
967
+ static orientToPointInNodeOffset<This extends abstract new (...args: any) => any>(
968
+ this: This,
969
+ point: CGPoint,
970
+ node: SKNode,
971
+ radians: SKRange,
972
+ ): InstanceType<This>
973
+
974
+ static readonly supportsSecureCoding: boolean
975
+
976
+ encodeWithCoder(coder: NSCoder): void
977
+
978
+ initWithCoder(coder: NSCoder): this
979
+
980
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
981
+ }
982
+
983
+ declare class SKMutableTexture extends SKTexture {
984
+ initWithSize(size: CGSize): this
985
+
986
+ static mutableTextureWithSize<This extends abstract new (...args: any) => any>(
987
+ this: This,
988
+ size: CGSize,
989
+ ): InstanceType<This>
990
+
991
+ initWithSizePixelFormat(size: CGSize, format: number): this
992
+
993
+ modifyPixelDataWithBlock(block: (p1: interop.PointerConvertible, p2: number) => void): void
994
+ }
995
+
996
+ declare class SKTileGroup extends NSObject implements NSCopying, NSSecureCoding {
997
+ static tileGroupWithTileDefinition<This extends abstract new (...args: any) => any>(
998
+ this: This,
999
+ tileDefinition: SKTileDefinition,
1000
+ ): InstanceType<This>
1001
+
1002
+ static tileGroupWithRules<This extends abstract new (...args: any) => any>(
1003
+ this: This,
1004
+ rules: NSArray<interop.Object> | Array<interop.Object>,
1005
+ ): InstanceType<This>
1006
+
1007
+ static emptyTileGroup<This extends abstract new (...args: any) => any>(
1008
+ this: This,
1009
+ ): InstanceType<This>
1010
+
1011
+ initWithTileDefinition(tileDefinition: SKTileDefinition): this
1012
+
1013
+ initWithRules(rules: NSArray<interop.Object> | Array<interop.Object>): this
1014
+
1015
+ get rules(): NSArray
1016
+ set rules(value: NSArray<interop.Object> | Array<interop.Object>)
1017
+
1018
+ name: string
1019
+
1020
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
1021
+
1022
+ static readonly supportsSecureCoding: boolean
1023
+
1024
+ encodeWithCoder(coder: NSCoder): void
1025
+
1026
+ initWithCoder(coder: NSCoder): this
1027
+ }
1028
+
1029
+ declare class SKTileSet extends NSObject implements NSCopying, NSSecureCoding {
1030
+ static tileSetWithTileGroups<This extends abstract new (...args: any) => any>(
1031
+ this: This,
1032
+ tileGroups: NSArray<interop.Object> | Array<interop.Object>,
1033
+ ): InstanceType<This>
1034
+
1035
+ static tileSetWithTileGroupsTileSetType<This extends abstract new (...args: any) => any>(
1036
+ this: This,
1037
+ tileGroups: NSArray<interop.Object> | Array<interop.Object>,
1038
+ tileSetType: interop.Enum<typeof SKTileSetType>,
1039
+ ): InstanceType<This>
1040
+
1041
+ initWithTileGroups(tileGroups: NSArray<interop.Object> | Array<interop.Object>): this
1042
+
1043
+ initWithTileGroupsTileSetType(
1044
+ tileGroups: NSArray<interop.Object> | Array<interop.Object>,
1045
+ tileSetType: interop.Enum<typeof SKTileSetType>,
1046
+ ): this
1047
+
1048
+ static tileSetNamed<This extends abstract new (...args: any) => any>(
1049
+ this: This,
1050
+ name: string,
1051
+ ): InstanceType<This>
1052
+
1053
+ static tileSetFromURL<This extends abstract new (...args: any) => any>(
1054
+ this: This,
1055
+ url: NSURL,
1056
+ ): InstanceType<This>
1057
+
1058
+ get tileGroups(): NSArray
1059
+ set tileGroups(value: NSArray<interop.Object> | Array<interop.Object>)
1060
+
1061
+ name: string
1062
+
1063
+ type: interop.Enum<typeof SKTileSetType>
1064
+
1065
+ defaultTileGroup: SKTileGroup
1066
+
1067
+ defaultTileSize: CGSize
1068
+
1069
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
1070
+
1071
+ static readonly supportsSecureCoding: boolean
1072
+
1073
+ encodeWithCoder(coder: NSCoder): void
1074
+
1075
+ initWithCoder(coder: NSCoder): this
1076
+ }
1077
+
1078
+ declare class SKAttribute extends NSObject implements NSSecureCoding {
1079
+ static attributeWithNameType<This extends abstract new (...args: any) => any>(
1080
+ this: This,
1081
+ name: string,
1082
+ type: interop.Enum<typeof SKAttributeType>,
1083
+ ): InstanceType<This>
1084
+
1085
+ initWithNameType(name: string, type: interop.Enum<typeof SKAttributeType>): this
1086
+
1087
+ readonly name: string
1088
+
1089
+ readonly type: interop.Enum<typeof SKAttributeType>
1090
+
1091
+ static readonly supportsSecureCoding: boolean
1092
+
1093
+ encodeWithCoder(coder: NSCoder): void
1094
+
1095
+ initWithCoder(coder: NSCoder): this
1096
+ }
1097
+
1098
+ declare class SKView extends NSView implements NSSecureCoding {
1099
+ paused: boolean
1100
+
1101
+ showsFPS: boolean
1102
+
1103
+ showsDrawCount: boolean
1104
+
1105
+ showsNodeCount: boolean
1106
+
1107
+ showsQuadCount: boolean
1108
+
1109
+ showsPhysics: boolean
1110
+
1111
+ showsFields: boolean
1112
+
1113
+ asynchronous: boolean
1114
+
1115
+ allowsTransparency: boolean
1116
+
1117
+ ignoresSiblingOrder: boolean
1118
+
1119
+ shouldCullNonVisibleNodes: boolean
1120
+
1121
+ preferredFramesPerSecond: number
1122
+
1123
+ disableDepthStencilBuffer: boolean
1124
+
1125
+ delegate: NSObject
1126
+
1127
+ frameInterval: number
1128
+
1129
+ preferredFrameRate: number
1130
+
1131
+ presentScene(scene: SKScene | null): void
1132
+
1133
+ presentSceneTransition(scene: SKScene, transition: SKTransition): void
1134
+
1135
+ readonly scene: SKScene
1136
+
1137
+ textureFromNode(node: SKNode): SKTexture
1138
+
1139
+ textureFromNodeCrop(node: SKNode, crop: CGRect): SKTexture
1140
+
1141
+ convertPointToScene(point: CGPoint, scene: SKScene): CGPoint
1142
+
1143
+ convertPointFromScene(point: CGPoint, scene: SKScene): CGPoint
1144
+
1145
+ isPaused(): boolean
1146
+
1147
+ isAsynchronous(): boolean
1148
+
1149
+ static readonly supportsSecureCoding: boolean
1150
+
1151
+ encodeWithCoder(coder: NSCoder): void
1152
+
1153
+ initWithCoder(coder: NSCoder): this
1154
+ }
1155
+
1156
+ declare class SKRegion extends NSObject implements NSCopying, NSSecureCoding {
1157
+ readonly path: interop.Object
1158
+
1159
+ static infiniteRegion<This extends abstract new (...args: any) => any>(
1160
+ this: This,
1161
+ ): InstanceType<This>
1162
+
1163
+ initWithRadius(radius: number): this
1164
+
1165
+ initWithSize(size: CGSize): this
1166
+
1167
+ initWithPath(path: interop.Object): this
1168
+
1169
+ inverseRegion(): this
1170
+
1171
+ regionByUnionWithRegion(region: SKRegion): this
1172
+
1173
+ regionByDifferenceFromRegion(region: SKRegion): this
1174
+
1175
+ regionByIntersectionWithRegion(region: SKRegion): this
1176
+
1177
+ containsPoint(point: CGPoint): boolean
1178
+
1179
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
1180
+
1181
+ static readonly supportsSecureCoding: boolean
1182
+
1183
+ encodeWithCoder(coder: NSCoder): void
1184
+
1185
+ initWithCoder(coder: NSCoder): this
1186
+ }
1187
+
1188
+ declare class SKTransformNode extends SKNode {
1189
+ xRotation: number
1190
+
1191
+ yRotation: number
1192
+
1193
+ setEulerAngles(euler: unknown /* ext vector */): void
1194
+
1195
+ eulerAngles(): unknown /* ext vector */
1196
+
1197
+ setRotationMatrix(rotationMatrix: simd_float3x3): void
1198
+
1199
+ rotationMatrix(): simd_float3x3
1200
+
1201
+ setQuaternion(quaternion: simd_quatf): void
1202
+
1203
+ quaternion(): simd_quatf
1204
+ }
1205
+
1206
+ declare class SK3DNode extends SKNode {
1207
+ initWithViewportSize(viewportSize: CGSize): this
1208
+
1209
+ initWithCoder(coder: NSCoder): this
1210
+ initWithCoder(aDecoder: NSCoder): this
1211
+
1212
+ static nodeWithViewportSize<This extends abstract new (...args: any) => any>(
1213
+ this: This,
1214
+ viewportSize: CGSize,
1215
+ ): InstanceType<This>
1216
+
1217
+ viewportSize: CGSize
1218
+
1219
+ scnScene: SCNScene
1220
+
1221
+ sceneTime: number
1222
+
1223
+ hitTestOptions(
1224
+ point: CGPoint,
1225
+ options:
1226
+ | NSDictionary<interop.Object, interop.Object>
1227
+ | Record<interop.Object, interop.Object>
1228
+ | null,
1229
+ ): NSArray
1230
+
1231
+ projectPoint(point: unknown /* ext vector */): unknown /* ext vector */
1232
+
1233
+ unprojectPoint(point: unknown /* ext vector */): unknown /* ext vector */
1234
+
1235
+ playing: boolean
1236
+
1237
+ loops: boolean
1238
+
1239
+ pointOfView: SCNNode
1240
+
1241
+ autoenablesDefaultLighting: boolean
1242
+
1243
+ isPlaying(): boolean
1244
+ }
1245
+
1246
+ declare class SKReferenceNode extends SKNode {
1247
+ initWithURL(url: NSURL | null): this
1248
+
1249
+ initWithFileNamed(fileName: string | null): this
1250
+
1251
+ initWithCoder(coder: NSCoder): this
1252
+ initWithCoder(aDecoder: NSCoder): this
1253
+
1254
+ static referenceNodeWithFileNamed<This extends abstract new (...args: any) => any>(
1255
+ this: This,
1256
+ fileName: string,
1257
+ ): InstanceType<This>
1258
+
1259
+ static referenceNodeWithURL<This extends abstract new (...args: any) => any>(
1260
+ this: This,
1261
+ referenceURL: NSURL,
1262
+ ): InstanceType<This>
1263
+
1264
+ didLoadReferenceNode(node: SKNode | null): void
1265
+
1266
+ resolveReferenceNode(): void
1267
+ }
1268
+
1269
+ declare class SKCropNode extends SKNode {
1270
+ maskNode: SKNode
1271
+ }
1272
+
1273
+ declare class SKAudioNode extends SKNode implements NSSecureCoding {
1274
+ initWithAVAudioNode(node: AVAudioNode | null): this
1275
+
1276
+ initWithCoder(coder: NSCoder): this
1277
+ initWithCoder(aDecoder: NSCoder): this
1278
+
1279
+ initWithFileNamed(name: string): this
1280
+
1281
+ initWithURL(url: NSURL): this
1282
+
1283
+ avAudioNode: AVAudioNode
1284
+
1285
+ autoplayLooped: boolean
1286
+
1287
+ positional: boolean
1288
+
1289
+ isPositional(): boolean
1290
+
1291
+ static readonly supportsSecureCoding: boolean
1292
+
1293
+ encodeWithCoder(coder: NSCoder): void
1294
+ }
1295
+
1296
+ declare class SKVideoNode extends SKNode {
1297
+ static videoNodeWithAVPlayer(player: AVPlayer): SKVideoNode
1298
+
1299
+ static videoNodeWithVideoFileNamed(videoFile: string): SKVideoNode
1300
+
1301
+ static videoNodeWithFileNamed(videoFile: string): SKVideoNode
1302
+
1303
+ static videoNodeWithVideoURL(videoURL: NSURL): SKVideoNode
1304
+
1305
+ static videoNodeWithURL(videoURL: NSURL): SKVideoNode
1306
+
1307
+ initWithAVPlayer(player: AVPlayer): this
1308
+
1309
+ initWithVideoFileNamed(videoFile: string): this
1310
+
1311
+ initWithFileNamed(videoFile: string): this
1312
+
1313
+ initWithVideoURL(url: NSURL): this
1314
+
1315
+ initWithURL(url: NSURL): this
1316
+
1317
+ initWithCoder(coder: NSCoder): this
1318
+ initWithCoder(aDecoder: NSCoder): this
1319
+
1320
+ play(): void
1321
+
1322
+ pause(): void
1323
+
1324
+ size: CGSize
1325
+
1326
+ anchorPoint: CGPoint
1327
+ }
1328
+
1329
+ declare class SKShapeNode extends SKNode {
1330
+ static shapeNodeWithPath<This extends abstract new (...args: any) => any>(
1331
+ this: This,
1332
+ path: interop.Object,
1333
+ ): InstanceType<This>
1334
+
1335
+ static shapeNodeWithPathCentered<This extends abstract new (...args: any) => any>(
1336
+ this: This,
1337
+ path: interop.Object,
1338
+ centered: boolean,
1339
+ ): InstanceType<This>
1340
+
1341
+ static shapeNodeWithRect<This extends abstract new (...args: any) => any>(
1342
+ this: This,
1343
+ rect: CGRect,
1344
+ ): InstanceType<This>
1345
+
1346
+ static shapeNodeWithRectOfSize<This extends abstract new (...args: any) => any>(
1347
+ this: This,
1348
+ size: CGSize,
1349
+ ): InstanceType<This>
1350
+
1351
+ static shapeNodeWithRectCornerRadius<This extends abstract new (...args: any) => any>(
1352
+ this: This,
1353
+ rect: CGRect,
1354
+ cornerRadius: number,
1355
+ ): InstanceType<This>
1356
+
1357
+ static shapeNodeWithRectOfSizeCornerRadius<This extends abstract new (...args: any) => any>(
1358
+ this: This,
1359
+ size: CGSize,
1360
+ cornerRadius: number,
1361
+ ): InstanceType<This>
1362
+
1363
+ static shapeNodeWithCircleOfRadius<This extends abstract new (...args: any) => any>(
1364
+ this: This,
1365
+ radius: number,
1366
+ ): InstanceType<This>
1367
+
1368
+ static shapeNodeWithEllipseInRect<This extends abstract new (...args: any) => any>(
1369
+ this: This,
1370
+ rect: CGRect,
1371
+ ): InstanceType<This>
1372
+
1373
+ static shapeNodeWithEllipseOfSize<This extends abstract new (...args: any) => any>(
1374
+ this: This,
1375
+ size: CGSize,
1376
+ ): InstanceType<This>
1377
+
1378
+ static shapeNodeWithPointsCount<This extends abstract new (...args: any) => any>(
1379
+ this: This,
1380
+ points: interop.PointerConvertible,
1381
+ numPoints: number,
1382
+ ): InstanceType<This>
1383
+
1384
+ static shapeNodeWithSplinePointsCount<This extends abstract new (...args: any) => any>(
1385
+ this: This,
1386
+ points: interop.PointerConvertible,
1387
+ numPoints: number,
1388
+ ): InstanceType<This>
1389
+
1390
+ path: interop.Object
1391
+
1392
+ strokeColor: NSColor
1393
+
1394
+ fillColor: NSColor
1395
+
1396
+ blendMode: interop.Enum<typeof SKBlendMode>
1397
+
1398
+ antialiased: boolean
1399
+
1400
+ lineWidth: number
1401
+
1402
+ glowWidth: number
1403
+
1404
+ lineCap: interop.Enum<typeof CGLineCap>
1405
+
1406
+ lineJoin: interop.Enum<typeof CGLineJoin>
1407
+
1408
+ miterLimit: number
1409
+
1410
+ readonly lineLength: number
1411
+
1412
+ fillTexture: SKTexture
1413
+
1414
+ fillShader: SKShader
1415
+
1416
+ strokeTexture: SKTexture
1417
+
1418
+ strokeShader: SKShader
1419
+
1420
+ get attributeValues(): NSDictionary
1421
+ set attributeValues(
1422
+ value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
1423
+ )
1424
+
1425
+ valueForAttributeNamed(key: string): SKAttributeValue
1426
+
1427
+ setValueForAttributeNamed(value: SKAttributeValue, key: string): void
1428
+
1429
+ isAntialiased(): boolean
1430
+ }
1431
+
1432
+ declare class SKScene extends SKEffectNode implements GKSceneRootNodeType {
1433
+ initWithSize(size: CGSize): this
1434
+
1435
+ static sceneWithSize<This extends abstract new (...args: any) => any>(
1436
+ this: This,
1437
+ size: CGSize,
1438
+ ): InstanceType<This>
1439
+
1440
+ sceneDidLoad(): void
1441
+
1442
+ size: CGSize
1443
+
1444
+ scaleMode: interop.Enum<typeof SKSceneScaleMode>
1445
+
1446
+ camera: SKCameraNode
1447
+
1448
+ listener: SKNode
1449
+
1450
+ readonly audioEngine: AVAudioEngine
1451
+
1452
+ backgroundColor: NSColor
1453
+
1454
+ delegate: SKSceneDelegate
1455
+
1456
+ anchorPoint: CGPoint
1457
+
1458
+ readonly physicsWorld: SKPhysicsWorld
1459
+
1460
+ readonly view: SKView
1461
+
1462
+ convertPointFromView(point: CGPoint): CGPoint
1463
+
1464
+ convertPointToView(point: CGPoint): CGPoint
1465
+
1466
+ update(currentTime: number): void
1467
+
1468
+ didEvaluateActions(): void
1469
+
1470
+ didSimulatePhysics(): void
1471
+
1472
+ didApplyConstraints(): void
1473
+
1474
+ didFinishUpdate(): void
1475
+
1476
+ didMoveToView(view: SKView): void
1477
+
1478
+ willMoveFromView(view: SKView): void
1479
+
1480
+ didChangeSize(oldSize: CGSize): void
1481
+
1482
+ isEqual(object: interop.Object): boolean
1483
+
1484
+ readonly hash: number
1485
+
1486
+ readonly superclass: interop.Pointer
1487
+
1488
+ class(): interop.Pointer
1489
+
1490
+ self(): this
1491
+
1492
+ performSelector(aSelector: string): interop.Object
1493
+
1494
+ performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
1495
+
1496
+ performSelectorWithObjectWithObject(
1497
+ aSelector: string,
1498
+ object1: interop.Object,
1499
+ object2: interop.Object,
1500
+ ): interop.Object
1501
+
1502
+ readonly isProxy: boolean
1503
+
1504
+ isKindOfClass(aClass: interop.PointerConvertible): boolean
1505
+
1506
+ isMemberOfClass(aClass: interop.PointerConvertible): boolean
1507
+
1508
+ conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
1509
+
1510
+ respondsToSelector(aSelector: string): boolean
1511
+
1512
+ retain(): this
1513
+
1514
+ release(): void
1515
+
1516
+ autorelease(): this
1517
+
1518
+ retainCount(): number
1519
+
1520
+ readonly zone: interop.Pointer
1521
+
1522
+ readonly description: string
1523
+
1524
+ readonly debugDescription: string
1525
+ }
1526
+
1527
+ declare class SKWarpGeometryGrid extends SKWarpGeometry implements NSSecureCoding {
1528
+ initWithCoder(coder: NSCoder): this
1529
+ initWithCoder(aDecoder: NSCoder): this
1530
+
1531
+ static grid<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
1532
+
1533
+ static gridWithColumnsRows<This extends abstract new (...args: any) => any>(
1534
+ this: This,
1535
+ cols: number,
1536
+ rows: number,
1537
+ ): InstanceType<This>
1538
+
1539
+ static gridWithColumnsRowsSourcePositionsDestPositions<
1540
+ This extends abstract new (...args: any) => any,
1541
+ >(
1542
+ this: This,
1543
+ cols: number,
1544
+ rows: number,
1545
+ sourcePositions: interop.PointerConvertible,
1546
+ destPositions: interop.PointerConvertible,
1547
+ ): InstanceType<This>
1548
+
1549
+ initWithColumnsRowsSourcePositionsDestPositions(
1550
+ cols: number,
1551
+ rows: number,
1552
+ sourcePositions: interop.PointerConvertible,
1553
+ destPositions: interop.PointerConvertible,
1554
+ ): this
1555
+
1556
+ readonly numberOfColumns: number
1557
+
1558
+ readonly numberOfRows: number
1559
+
1560
+ readonly vertexCount: number
1561
+
1562
+ sourcePositionAtIndex(index: number): unknown /* ext vector */
1563
+
1564
+ destPositionAtIndex(index: number): unknown /* ext vector */
1565
+
1566
+ gridByReplacingSourcePositions(sourcePositions: interop.PointerConvertible): this
1567
+
1568
+ gridByReplacingDestPositions(destPositions: interop.PointerConvertible): this
1569
+
1570
+ static readonly supportsSecureCoding: boolean
1571
+
1572
+ encodeWithCoder(coder: NSCoder): void
1573
+ }
1574
+
1575
+ declare class SKWarpGeometry extends NSObject implements NSCopying, NSSecureCoding {
1576
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
1577
+
1578
+ static readonly supportsSecureCoding: boolean
1579
+
1580
+ encodeWithCoder(coder: NSCoder): void
1581
+
1582
+ initWithCoder(coder: NSCoder): this
1583
+ }
1584
+
1585
+ declare class SKNode extends NSResponder implements NSCopying, NSSecureCoding {
1586
+ init(): this
1587
+
1588
+ initWithCoder(coder: NSCoder): this
1589
+ initWithCoder(aDecoder: NSCoder): this
1590
+
1591
+ static node<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
1592
+
1593
+ static nodeWithFileNamed<This extends abstract new (...args: any) => any>(
1594
+ this: This,
1595
+ filename: string,
1596
+ ): InstanceType<This>
1597
+
1598
+ static nodeWithFileNamedSecurelyWithClassesAndError<
1599
+ This extends abstract new (...args: any) => any,
1600
+ >(
1601
+ this: This,
1602
+ filename: string,
1603
+ classes: NSSet,
1604
+ error: interop.PointerConvertible,
1605
+ ): InstanceType<This>
1606
+
1607
+ readonly frame: CGRect
1608
+
1609
+ calculateAccumulatedFrame(): CGRect
1610
+
1611
+ position: CGPoint
1612
+
1613
+ zPosition: number
1614
+
1615
+ zRotation: number
1616
+
1617
+ xScale: number
1618
+
1619
+ yScale: number
1620
+
1621
+ speed: number
1622
+
1623
+ alpha: number
1624
+
1625
+ paused: boolean
1626
+
1627
+ hidden: boolean
1628
+
1629
+ userInteractionEnabled: boolean
1630
+
1631
+ readonly parent: SKNode
1632
+
1633
+ readonly children: NSArray
1634
+
1635
+ name: string
1636
+
1637
+ readonly scene: SKScene
1638
+
1639
+ physicsBody: SKPhysicsBody
1640
+
1641
+ userData: NSMutableDictionary
1642
+
1643
+ reachConstraints: SKReachConstraints
1644
+
1645
+ get constraints(): NSArray
1646
+ set constraints(value: NSArray<interop.Object> | Array<interop.Object>)
1647
+
1648
+ get attributeValues(): NSDictionary
1649
+ set attributeValues(
1650
+ value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
1651
+ )
1652
+
1653
+ valueForAttributeNamed(key: string): SKAttributeValue
1654
+
1655
+ setValueForAttributeNamed(value: SKAttributeValue, key: string): void
1656
+
1657
+ setScale(scale: number): void
1658
+
1659
+ addChild(node: SKNode): void
1660
+
1661
+ insertChildAtIndex(node: SKNode, index: number): void
1662
+
1663
+ removeChildrenInArray(nodes: NSArray<interop.Object> | Array<interop.Object>): void
1664
+
1665
+ removeAllChildren(): void
1666
+
1667
+ removeFromParent(): void
1668
+
1669
+ moveToParent(parent: SKNode): void
1670
+
1671
+ childNodeWithName(name: string): SKNode
1672
+
1673
+ enumerateChildNodesWithNameUsingBlock(
1674
+ name: string,
1675
+ block: (p1: SKNode, p2: interop.PointerConvertible) => void,
1676
+ ): void
1677
+
1678
+ objectForKeyedSubscript(name: string): NSArray
1679
+
1680
+ inParentHierarchy(parent: SKNode): boolean
1681
+
1682
+ runAction(action: SKAction): void
1683
+
1684
+ runActionCompletion(action: SKAction, block: () => void): void
1685
+
1686
+ runActionWithKey(action: SKAction, key: string): void
1687
+
1688
+ hasActions(): boolean
1689
+
1690
+ actionForKey(key: string): SKAction
1691
+
1692
+ removeActionForKey(key: string): void
1693
+
1694
+ removeAllActions(): void
1695
+
1696
+ containsPoint(p: CGPoint): boolean
1697
+
1698
+ nodeAtPoint(p: CGPoint): SKNode
1699
+
1700
+ nodesAtPoint(p: CGPoint): NSArray
1701
+
1702
+ convertPointFromNode(point: CGPoint, node: SKNode): CGPoint
1703
+
1704
+ convertPointToNode(point: CGPoint, node: SKNode): CGPoint
1705
+
1706
+ intersectsNode(node: SKNode): boolean
1707
+
1708
+ isEqualToNode(node: SKNode): boolean
1709
+
1710
+ isPaused(): boolean
1711
+
1712
+ isHidden(): boolean
1713
+
1714
+ isUserInteractionEnabled(): boolean
1715
+
1716
+ accessibilityElement: boolean
1717
+
1718
+ accessibilityRole: string
1719
+
1720
+ accessibilityRoleDescription: string
1721
+
1722
+ accessibilitySubrole: string
1723
+
1724
+ accessibilityFrame: CGRect
1725
+
1726
+ accessibilityParent: interop.Object
1727
+
1728
+ get accessibilityChildren(): NSArray
1729
+ set accessibilityChildren(value: NSArray<interop.Object> | Array<interop.Object>)
1730
+
1731
+ accessibilityHelp: string
1732
+
1733
+ accessibilityLabel: string
1734
+
1735
+ accessibilityEnabled: boolean
1736
+
1737
+ accessibilityHitTest(point: CGPoint): interop.Object
1738
+
1739
+ isAccessibilityElement(): boolean
1740
+
1741
+ isAccessibilityEnabled(): boolean
1742
+
1743
+ static obstaclesFromSpriteTexturesAccuracy(
1744
+ sprites: NSArray<interop.Object> | Array<interop.Object>,
1745
+ accuracy: number,
1746
+ ): NSArray
1747
+
1748
+ static obstaclesFromNodeBounds(nodes: NSArray<interop.Object> | Array<interop.Object>): NSArray
1749
+
1750
+ static obstaclesFromNodePhysicsBodies(
1751
+ nodes: NSArray<interop.Object> | Array<interop.Object>,
1752
+ ): NSArray
1753
+
1754
+ entity: GKEntity
1755
+
1756
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
1757
+
1758
+ static readonly supportsSecureCoding: boolean
1759
+
1760
+ encodeWithCoder(coder: NSCoder): void
1761
+ }
1762
+
1763
+ declare class SKTileMapNode extends SKNode implements NSCopying, NSSecureCoding {
1764
+ static tileMapNodeWithTileSetColumnsRowsTileSize<This extends abstract new (...args: any) => any>(
1765
+ this: This,
1766
+ tileSet: SKTileSet,
1767
+ columns: number,
1768
+ rows: number,
1769
+ tileSize: CGSize,
1770
+ ): InstanceType<This>
1771
+
1772
+ static tileMapNodeWithTileSetColumnsRowsTileSizeFillWithTileGroup<
1773
+ This extends abstract new (...args: any) => any,
1774
+ >(
1775
+ this: This,
1776
+ tileSet: SKTileSet,
1777
+ columns: number,
1778
+ rows: number,
1779
+ tileSize: CGSize,
1780
+ tileGroup: SKTileGroup,
1781
+ ): InstanceType<This>
1782
+
1783
+ static tileMapNodeWithTileSetColumnsRowsTileSizeTileGroupLayout<
1784
+ This extends abstract new (...args: any) => any,
1785
+ >(
1786
+ this: This,
1787
+ tileSet: SKTileSet,
1788
+ columns: number,
1789
+ rows: number,
1790
+ tileSize: CGSize,
1791
+ tileGroupLayout: NSArray<interop.Object> | Array<interop.Object>,
1792
+ ): InstanceType<This>
1793
+
1794
+ initWithTileSetColumnsRowsTileSize(
1795
+ tileSet: SKTileSet,
1796
+ columns: number,
1797
+ rows: number,
1798
+ tileSize: CGSize,
1799
+ ): this
1800
+
1801
+ initWithTileSetColumnsRowsTileSizeFillWithTileGroup(
1802
+ tileSet: SKTileSet,
1803
+ columns: number,
1804
+ rows: number,
1805
+ tileSize: CGSize,
1806
+ tileGroup: SKTileGroup,
1807
+ ): this
1808
+
1809
+ initWithTileSetColumnsRowsTileSizeTileGroupLayout(
1810
+ tileSet: SKTileSet,
1811
+ columns: number,
1812
+ rows: number,
1813
+ tileSize: CGSize,
1814
+ tileGroupLayout: NSArray<interop.Object> | Array<interop.Object>,
1815
+ ): this
1816
+
1817
+ numberOfColumns: number
1818
+
1819
+ numberOfRows: number
1820
+
1821
+ tileSize: CGSize
1822
+
1823
+ readonly mapSize: CGSize
1824
+
1825
+ tileSet: SKTileSet
1826
+
1827
+ colorBlendFactor: number
1828
+
1829
+ color: NSColor
1830
+
1831
+ blendMode: interop.Enum<typeof SKBlendMode>
1832
+
1833
+ anchorPoint: CGPoint
1834
+
1835
+ shader: SKShader
1836
+
1837
+ get attributeValues(): NSDictionary
1838
+ set attributeValues(
1839
+ value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
1840
+ )
1841
+
1842
+ valueForAttributeNamed(key: string): SKAttributeValue
1843
+
1844
+ setValueForAttributeNamed(value: SKAttributeValue, key: string): void
1845
+
1846
+ lightingBitMask: number
1847
+
1848
+ enableAutomapping: boolean
1849
+
1850
+ fillWithTileGroup(tileGroup: SKTileGroup | null): void
1851
+
1852
+ tileDefinitionAtColumnRow(column: number, row: number): SKTileDefinition
1853
+
1854
+ tileGroupAtColumnRow(column: number, row: number): SKTileGroup
1855
+
1856
+ setTileGroupForColumnRow(tileGroup: SKTileGroup | null, column: number, row: number): void
1857
+
1858
+ setTileGroupAndTileDefinitionForColumnRow(
1859
+ tileGroup: SKTileGroup,
1860
+ tileDefinition: SKTileDefinition,
1861
+ column: number,
1862
+ row: number,
1863
+ ): void
1864
+
1865
+ tileColumnIndexFromPosition(position: CGPoint): number
1866
+
1867
+ tileRowIndexFromPosition(position: CGPoint): number
1868
+
1869
+ centerOfTileAtColumnRow(column: number, row: number): CGPoint
1870
+
1871
+ static tileMapNodesWithTileSetColumnsRowsTileSizeFromNoiseMapTileTypeNoiseMapThresholds(
1872
+ tileSet: SKTileSet,
1873
+ columns: number,
1874
+ rows: number,
1875
+ tileSize: CGSize,
1876
+ noiseMap: GKNoiseMap,
1877
+ thresholds: NSArray<interop.Object> | Array<interop.Object>,
1878
+ ): NSArray
1879
+
1880
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
1881
+
1882
+ static readonly supportsSecureCoding: boolean
1883
+
1884
+ encodeWithCoder(coder: NSCoder): void
1885
+
1886
+ initWithCoder(aDecoder: NSCoder): this
1887
+ initWithCoder(coder: NSCoder): this
1888
+ initWithCoder(coder: NSCoder): this
1889
+ }
1890
+
1891
+ declare class SKCameraNode extends SKNode {
1892
+ containsNode(node: SKNode): boolean
1893
+
1894
+ containedNodeSet(): NSSet
1895
+ }
1896
+
1897
+ declare class SKPhysicsJointFixed extends SKPhysicsJoint {
1898
+ static jointWithBodyABodyBAnchor(
1899
+ bodyA: SKPhysicsBody,
1900
+ bodyB: SKPhysicsBody,
1901
+ anchor: CGPoint,
1902
+ ): SKPhysicsJointFixed
1903
+ }
1904
+
1905
+ declare class SKPhysicsJoint extends NSObject implements NSSecureCoding {
1906
+ bodyA: SKPhysicsBody
1907
+
1908
+ bodyB: SKPhysicsBody
1909
+
1910
+ readonly reactionForce: CGVector
1911
+
1912
+ readonly reactionTorque: number
1913
+
1914
+ static readonly supportsSecureCoding: boolean
1915
+
1916
+ encodeWithCoder(coder: NSCoder): void
1917
+
1918
+ initWithCoder(coder: NSCoder): this
1919
+ }
1920
+
1921
+ declare class SKRenderer extends NSObject {
1922
+ static rendererWithDevice(device: MTLDevice): SKRenderer
1923
+
1924
+ renderWithViewportCommandBufferRenderPassDescriptor(
1925
+ viewport: CGRect,
1926
+ commandBuffer: MTLCommandBuffer,
1927
+ renderPassDescriptor: MTLRenderPassDescriptor,
1928
+ ): void
1929
+
1930
+ renderWithViewportRenderCommandEncoderRenderPassDescriptorCommandQueue(
1931
+ viewport: CGRect,
1932
+ renderCommandEncoder: MTLRenderCommandEncoder,
1933
+ renderPassDescriptor: MTLRenderPassDescriptor,
1934
+ commandQueue: MTLCommandQueue,
1935
+ ): void
1936
+
1937
+ updateAtTime(currentTime: number): void
1938
+
1939
+ scene: SKScene
1940
+
1941
+ ignoresSiblingOrder: boolean
1942
+
1943
+ shouldCullNonVisibleNodes: boolean
1944
+
1945
+ showsDrawCount: boolean
1946
+
1947
+ showsNodeCount: boolean
1948
+
1949
+ showsQuadCount: boolean
1950
+
1951
+ showsPhysics: boolean
1952
+
1953
+ showsFields: boolean
1954
+ }
1955
+
1956
+ declare class SKAction extends NSObject implements NSCopying, NSSecureCoding {
1957
+ duration: number
1958
+
1959
+ timingMode: interop.Enum<typeof SKActionTimingMode>
1960
+
1961
+ timingFunction: (p1: number) => number
1962
+
1963
+ speed: number
1964
+
1965
+ reversedAction(): SKAction
1966
+
1967
+ static moveByDuration(delta: CGVector, duration: number): SKAction
1968
+
1969
+ static moveByXYDuration(deltaX: number, deltaY: number, duration: number): SKAction
1970
+
1971
+ static moveToDuration(location: CGPoint, duration: number): SKAction
1972
+
1973
+ static moveToXDuration(x: number, duration: number): SKAction
1974
+
1975
+ static moveToYDuration(y: number, duration: number): SKAction
1976
+
1977
+ static rotateByAngleDuration(radians: number, duration: number): SKAction
1978
+
1979
+ static rotateToAngleDuration(radians: number, duration: number): SKAction
1980
+
1981
+ static rotateToAngleDurationShortestUnitArc(
1982
+ radians: number,
1983
+ duration: number,
1984
+ shortestUnitArc: boolean,
1985
+ ): SKAction
1986
+
1987
+ static resizeByWidthHeightDuration(width: number, height: number, duration: number): SKAction
1988
+
1989
+ static resizeToWidthHeightDuration(width: number, height: number, duration: number): SKAction
1990
+
1991
+ static resizeToWidthDuration(width: number, duration: number): SKAction
1992
+
1993
+ static resizeToHeightDuration(height: number, duration: number): SKAction
1994
+
1995
+ static scaleByDuration(scale: number, duration: number): SKAction
1996
+
1997
+ static scaleXByYDuration(xScale: number, yScale: number, duration: number): SKAction
1998
+
1999
+ static scaleToDuration(scale: number, duration: number): SKAction
2000
+
2001
+ static scaleXToYDuration(xScale: number, yScale: number, duration: number): SKAction
2002
+
2003
+ static scaleXToDuration(scale: number, duration: number): SKAction
2004
+
2005
+ static scaleYToDuration(scale: number, duration: number): SKAction
2006
+
2007
+ static scaleToSizeDuration(size: CGSize, duration: number): SKAction
2008
+
2009
+ static sequence(actions: NSArray<interop.Object> | Array<interop.Object>): SKAction
2010
+
2011
+ static group(actions: NSArray<interop.Object> | Array<interop.Object>): SKAction
2012
+
2013
+ static repeatActionCount(action: SKAction, count: number): SKAction
2014
+
2015
+ static repeatActionForever(action: SKAction): SKAction
2016
+
2017
+ static fadeInWithDuration(duration: number): SKAction
2018
+
2019
+ static fadeOutWithDuration(duration: number): SKAction
2020
+
2021
+ static fadeAlphaByDuration(factor: number, duration: number): SKAction
2022
+
2023
+ static fadeAlphaToDuration(alpha: number, duration: number): SKAction
2024
+
2025
+ static hide(): SKAction
2026
+
2027
+ static unhide(): SKAction
2028
+
2029
+ static setTexture(texture: SKTexture): SKAction
2030
+
2031
+ static setNormalTexture(texture: SKTexture): SKAction
2032
+
2033
+ static setTextureResize(texture: SKTexture, resize: boolean): SKAction
2034
+
2035
+ static setNormalTextureResize(texture: SKTexture, resize: boolean): SKAction
2036
+
2037
+ static animateWithTexturesTimePerFrame(
2038
+ textures: NSArray<interop.Object> | Array<interop.Object>,
2039
+ sec: number,
2040
+ ): SKAction
2041
+
2042
+ static animateWithNormalTexturesTimePerFrame(
2043
+ textures: NSArray<interop.Object> | Array<interop.Object>,
2044
+ sec: number,
2045
+ ): SKAction
2046
+
2047
+ static animateWithTexturesTimePerFrameResizeRestore(
2048
+ textures: NSArray<interop.Object> | Array<interop.Object>,
2049
+ sec: number,
2050
+ resize: boolean,
2051
+ restore: boolean,
2052
+ ): SKAction
2053
+
2054
+ static animateWithNormalTexturesTimePerFrameResizeRestore(
2055
+ textures: NSArray<interop.Object> | Array<interop.Object>,
2056
+ sec: number,
2057
+ resize: boolean,
2058
+ restore: boolean,
2059
+ ): SKAction
2060
+
2061
+ static playSoundFileNamedWaitForCompletion(soundFile: string, wait: boolean): SKAction
2062
+
2063
+ static colorizeWithColorColorBlendFactorDuration(
2064
+ color: NSColor,
2065
+ colorBlendFactor: number,
2066
+ duration: number,
2067
+ ): SKAction
2068
+
2069
+ static colorizeWithColorBlendFactorDuration(colorBlendFactor: number, sec: number): SKAction
2070
+
2071
+ static falloffToDuration(falloff: number, duration: number): SKAction
2072
+
2073
+ static falloffByDuration(falloff: number, duration: number): SKAction
2074
+
2075
+ static followPathDuration(path: interop.Object, duration: number): SKAction
2076
+
2077
+ static followPathAsOffsetOrientToPathDuration(
2078
+ path: interop.Object,
2079
+ offset: boolean,
2080
+ orient: boolean,
2081
+ duration: number,
2082
+ ): SKAction
2083
+
2084
+ static followPathSpeed(path: interop.Object, speed: number): SKAction
2085
+
2086
+ static followPathAsOffsetOrientToPathSpeed(
2087
+ path: interop.Object,
2088
+ offset: boolean,
2089
+ orient: boolean,
2090
+ speed: number,
2091
+ ): SKAction
2092
+
2093
+ static speedByDuration(speed: number, duration: number): SKAction
2094
+
2095
+ static speedToDuration(speed: number, duration: number): SKAction
2096
+
2097
+ static reachToRootNodeDuration(position: CGPoint, root: SKNode, duration: number): SKAction
2098
+
2099
+ static reachToRootNodeVelocity(position: CGPoint, root: SKNode, velocity: number): SKAction
2100
+
2101
+ static reachToNodeRootNodeDuration(node: SKNode, root: SKNode, sec: number): SKAction
2102
+
2103
+ static reachToNodeRootNodeVelocity(node: SKNode, root: SKNode, velocity: number): SKAction
2104
+
2105
+ static strengthToDuration(strength: number, duration: number): SKAction
2106
+
2107
+ static strengthByDuration(strength: number, duration: number): SKAction
2108
+
2109
+ static waitForDuration(duration: number): SKAction
2110
+
2111
+ static waitForDurationWithRange(duration: number, durationRange: number): SKAction
2112
+
2113
+ static removeFromParent(): SKAction
2114
+
2115
+ static performSelectorOnTarget(selector: string, target: interop.Object): SKAction
2116
+
2117
+ static runBlock(block: () => void): SKAction
2118
+
2119
+ static runBlockQueue(block: () => void, queue: NSObject): SKAction
2120
+
2121
+ static runActionOnChildWithName(action: SKAction, name: string): SKAction
2122
+
2123
+ static customActionWithDurationActionBlock(
2124
+ duration: number,
2125
+ block: (p1: SKNode, p2: number) => void,
2126
+ ): SKAction
2127
+
2128
+ static actionNamed(name: string): SKAction
2129
+
2130
+ static actionNamedDuration(name: string, duration: number): SKAction
2131
+
2132
+ static actionNamedFromURL(name: string, url: NSURL): SKAction
2133
+
2134
+ static actionNamedFromURLDuration(name: string, url: NSURL, duration: number): SKAction
2135
+
2136
+ static changeChargeToDuration(v: number, duration: number): SKAction
2137
+
2138
+ static changeChargeByDuration(v: number, duration: number): SKAction
2139
+
2140
+ static changeMassToDuration(v: number, duration: number): SKAction
2141
+
2142
+ static changeMassByDuration(v: number, duration: number): SKAction
2143
+
2144
+ static applyForceDuration(force: CGVector, duration: number): SKAction
2145
+
2146
+ static applyForceAtPointDuration(force: CGVector, point: CGPoint, duration: number): SKAction
2147
+
2148
+ static applyTorqueDuration(torque: number, duration: number): SKAction
2149
+
2150
+ static applyImpulseDuration(impulse: CGVector, duration: number): SKAction
2151
+
2152
+ static applyImpulseAtPointDuration(impulse: CGVector, point: CGPoint, duration: number): SKAction
2153
+
2154
+ static applyAngularImpulseDuration(impulse: number, duration: number): SKAction
2155
+
2156
+ static play(): SKAction
2157
+
2158
+ static pause(): SKAction
2159
+
2160
+ static stop(): SKAction
2161
+
2162
+ static changePlaybackRateToDuration(v: number, duration: number): SKAction
2163
+
2164
+ static changePlaybackRateByDuration(v: number, duration: number): SKAction
2165
+
2166
+ static changeVolumeToDuration(v: number, duration: number): SKAction
2167
+
2168
+ static changeVolumeByDuration(v: number, duration: number): SKAction
2169
+
2170
+ static warpToDuration(warp: SKWarpGeometry, duration: number): SKAction
2171
+
2172
+ static animateWithWarpsTimes(
2173
+ warps: NSArray<interop.Object> | Array<interop.Object>,
2174
+ times: NSArray<interop.Object> | Array<interop.Object>,
2175
+ ): SKAction
2176
+
2177
+ static animateWithWarpsTimesRestore(
2178
+ warps: NSArray<interop.Object> | Array<interop.Object>,
2179
+ times: NSArray<interop.Object> | Array<interop.Object>,
2180
+ restore: boolean,
2181
+ ): SKAction
2182
+
2183
+ static stereoPanToDuration(v: number, duration: number): SKAction
2184
+
2185
+ static stereoPanByDuration(v: number, duration: number): SKAction
2186
+
2187
+ static changeReverbToDuration(v: number, duration: number): SKAction
2188
+
2189
+ static changeReverbByDuration(v: number, duration: number): SKAction
2190
+
2191
+ static changeObstructionToDuration(v: number, duration: number): SKAction
2192
+
2193
+ static changeObstructionByDuration(v: number, duration: number): SKAction
2194
+
2195
+ static changeOcclusionToDuration(v: number, duration: number): SKAction
2196
+
2197
+ static changeOcclusionByDuration(v: number, duration: number): SKAction
2198
+
2199
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
2200
+
2201
+ static readonly supportsSecureCoding: boolean
2202
+
2203
+ encodeWithCoder(coder: NSCoder): void
2204
+
2205
+ initWithCoder(coder: NSCoder): this
2206
+ }
2207
+
2208
+ declare class SKLightNode extends SKNode {
2209
+ enabled: boolean
2210
+
2211
+ lightColor: NSColor
2212
+
2213
+ ambientColor: NSColor
2214
+
2215
+ shadowColor: NSColor
2216
+
2217
+ falloff: number
2218
+
2219
+ categoryBitMask: number
2220
+
2221
+ isEnabled(): boolean
2222
+ }
2223
+
2224
+ declare class SKShader extends NSObject implements NSCopying, NSSecureCoding {
2225
+ initWithSource(source: string): this
2226
+
2227
+ initWithSourceUniforms(
2228
+ source: string,
2229
+ uniforms: NSArray<interop.Object> | Array<interop.Object>,
2230
+ ): this
2231
+
2232
+ static shader<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
2233
+
2234
+ static shaderWithSource<This extends abstract new (...args: any) => any>(
2235
+ this: This,
2236
+ source: string,
2237
+ ): InstanceType<This>
2238
+
2239
+ static shaderWithSourceUniforms<This extends abstract new (...args: any) => any>(
2240
+ this: This,
2241
+ source: string,
2242
+ uniforms: NSArray<interop.Object> | Array<interop.Object>,
2243
+ ): InstanceType<This>
2244
+
2245
+ static shaderWithFileNamed<This extends abstract new (...args: any) => any>(
2246
+ this: This,
2247
+ name: string,
2248
+ ): InstanceType<This>
2249
+
2250
+ source: string
2251
+
2252
+ get uniforms(): NSArray
2253
+ set uniforms(value: NSArray<interop.Object> | Array<interop.Object>)
2254
+
2255
+ addUniform(uniform: SKUniform): void
2256
+
2257
+ uniformNamed(name: string): SKUniform
2258
+
2259
+ removeUniformNamed(name: string): void
2260
+
2261
+ get attributes(): NSArray
2262
+ set attributes(value: NSArray<interop.Object> | Array<interop.Object>)
2263
+
2264
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
2265
+
2266
+ static readonly supportsSecureCoding: boolean
2267
+
2268
+ encodeWithCoder(coder: NSCoder): void
2269
+
2270
+ initWithCoder(coder: NSCoder): this
2271
+ }
2272
+
2273
+ declare class SKRange extends NSObject implements NSSecureCoding, NSCopying {
2274
+ initWithLowerLimitUpperLimit(lower: number, upper: number): this
2275
+
2276
+ static rangeWithLowerLimitUpperLimit<This extends abstract new (...args: any) => any>(
2277
+ this: This,
2278
+ lower: number,
2279
+ upper: number,
2280
+ ): InstanceType<This>
2281
+
2282
+ static rangeWithLowerLimit<This extends abstract new (...args: any) => any>(
2283
+ this: This,
2284
+ lower: number,
2285
+ ): InstanceType<This>
2286
+
2287
+ static rangeWithUpperLimit<This extends abstract new (...args: any) => any>(
2288
+ this: This,
2289
+ upper: number,
2290
+ ): InstanceType<This>
2291
+
2292
+ static rangeWithConstantValue<This extends abstract new (...args: any) => any>(
2293
+ this: This,
2294
+ value: number,
2295
+ ): InstanceType<This>
2296
+
2297
+ static rangeWithValueVariance<This extends abstract new (...args: any) => any>(
2298
+ this: This,
2299
+ value: number,
2300
+ variance: number,
2301
+ ): InstanceType<This>
2302
+
2303
+ static rangeWithNoLimits<This extends abstract new (...args: any) => any>(
2304
+ this: This,
2305
+ ): InstanceType<This>
2306
+
2307
+ lowerLimit: number
2308
+
2309
+ upperLimit: number
2310
+
2311
+ static readonly supportsSecureCoding: boolean
2312
+
2313
+ encodeWithCoder(coder: NSCoder): void
2314
+
2315
+ initWithCoder(coder: NSCoder): this
2316
+
2317
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
2318
+ }
2319
+
2320
+ declare class SKEffectNode extends SKNode implements SKWarpable {
2321
+ filter: CIFilter
2322
+
2323
+ shouldCenterFilter: boolean
2324
+
2325
+ shouldEnableEffects: boolean
2326
+
2327
+ shouldRasterize: boolean
2328
+
2329
+ blendMode: interop.Enum<typeof SKBlendMode>
2330
+
2331
+ shader: SKShader
2332
+
2333
+ get attributeValues(): NSDictionary
2334
+ set attributeValues(
2335
+ value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
2336
+ )
2337
+
2338
+ valueForAttributeNamed(key: string): SKAttributeValue
2339
+
2340
+ setValueForAttributeNamed(value: SKAttributeValue, key: string): void
2341
+
2342
+ warpGeometry: SKWarpGeometry
2343
+
2344
+ subdivisionLevels: number
2345
+
2346
+ isEqual(object: interop.Object): boolean
2347
+
2348
+ readonly hash: number
2349
+
2350
+ readonly superclass: interop.Pointer
2351
+
2352
+ class(): interop.Pointer
2353
+
2354
+ self(): this
2355
+
2356
+ performSelector(aSelector: string): interop.Object
2357
+
2358
+ performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
2359
+
2360
+ performSelectorWithObjectWithObject(
2361
+ aSelector: string,
2362
+ object1: interop.Object,
2363
+ object2: interop.Object,
2364
+ ): interop.Object
2365
+
2366
+ readonly isProxy: boolean
2367
+
2368
+ isKindOfClass(aClass: interop.PointerConvertible): boolean
2369
+
2370
+ isMemberOfClass(aClass: interop.PointerConvertible): boolean
2371
+
2372
+ conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
2373
+
2374
+ respondsToSelector(aSelector: string): boolean
2375
+
2376
+ retain(): this
2377
+
2378
+ release(): void
2379
+
2380
+ autorelease(): this
2381
+
2382
+ retainCount(): number
2383
+
2384
+ readonly zone: interop.Pointer
2385
+
2386
+ readonly description: string
2387
+
2388
+ readonly debugDescription: string
2389
+ }
2390
+
2391
+ declare class SKUniform extends NSObject implements NSCopying, NSSecureCoding {
2392
+ static uniformWithName<This extends abstract new (...args: any) => any>(
2393
+ this: This,
2394
+ name: string,
2395
+ ): InstanceType<This>
2396
+
2397
+ static uniformWithNameTexture<This extends abstract new (...args: any) => any>(
2398
+ this: This,
2399
+ name: string,
2400
+ texture: SKTexture | null,
2401
+ ): InstanceType<This>
2402
+
2403
+ static uniformWithNameFloat<This extends abstract new (...args: any) => any>(
2404
+ this: This,
2405
+ name: string,
2406
+ value: number,
2407
+ ): InstanceType<This>
2408
+
2409
+ static uniformWithNameVectorFloat2<This extends abstract new (...args: any) => any>(
2410
+ this: This,
2411
+ name: string,
2412
+ value: unknown /* ext vector */,
2413
+ ): InstanceType<This>
2414
+
2415
+ static uniformWithNameVectorFloat3<This extends abstract new (...args: any) => any>(
2416
+ this: This,
2417
+ name: string,
2418
+ value: unknown /* ext vector */,
2419
+ ): InstanceType<This>
2420
+
2421
+ static uniformWithNameVectorFloat4<This extends abstract new (...args: any) => any>(
2422
+ this: This,
2423
+ name: string,
2424
+ value: unknown /* ext vector */,
2425
+ ): InstanceType<This>
2426
+
2427
+ static uniformWithNameMatrixFloat2x2<This extends abstract new (...args: any) => any>(
2428
+ this: This,
2429
+ name: string,
2430
+ value: simd_float2x2,
2431
+ ): InstanceType<This>
2432
+
2433
+ static uniformWithNameMatrixFloat3x3<This extends abstract new (...args: any) => any>(
2434
+ this: This,
2435
+ name: string,
2436
+ value: simd_float3x3,
2437
+ ): InstanceType<This>
2438
+
2439
+ static uniformWithNameMatrixFloat4x4<This extends abstract new (...args: any) => any>(
2440
+ this: This,
2441
+ name: string,
2442
+ value: simd_float4x4,
2443
+ ): InstanceType<This>
2444
+
2445
+ readonly name: string
2446
+
2447
+ readonly uniformType: interop.Enum<typeof SKUniformType>
2448
+
2449
+ textureValue: SKTexture
2450
+
2451
+ floatValue: number
2452
+
2453
+ vectorFloat2Value: unknown /* ext vector */
2454
+
2455
+ vectorFloat3Value: unknown /* ext vector */
2456
+
2457
+ vectorFloat4Value: unknown /* ext vector */
2458
+
2459
+ matrixFloat2x2Value: simd_float2x2
2460
+
2461
+ matrixFloat3x3Value: simd_float3x3
2462
+
2463
+ matrixFloat4x4Value: simd_float4x4
2464
+
2465
+ initWithName(name: string): this
2466
+
2467
+ initWithNameTexture(name: string, texture: SKTexture | null): this
2468
+
2469
+ initWithNameFloat(name: string, value: number): this
2470
+
2471
+ initWithNameVectorFloat2(name: string, value: unknown /* ext vector */): this
2472
+
2473
+ initWithNameVectorFloat3(name: string, value: unknown /* ext vector */): this
2474
+
2475
+ initWithNameVectorFloat4(name: string, value: unknown /* ext vector */): this
2476
+
2477
+ initWithNameMatrixFloat2x2(name: string, value: simd_float2x2): this
2478
+
2479
+ initWithNameMatrixFloat3x3(name: string, value: simd_float3x3): this
2480
+
2481
+ initWithNameMatrixFloat4x4(name: string, value: simd_float4x4): this
2482
+
2483
+ floatVector2Value: _GLKVector2
2484
+
2485
+ floatVector3Value: _GLKVector3
2486
+
2487
+ floatVector4Value: _GLKVector4
2488
+
2489
+ floatMatrix2Value: _GLKMatrix2
2490
+
2491
+ floatMatrix3Value: _GLKMatrix3
2492
+
2493
+ floatMatrix4Value: _GLKMatrix4
2494
+
2495
+ static uniformWithNameFloatVector2<This extends abstract new (...args: any) => any>(
2496
+ this: This,
2497
+ name: string,
2498
+ value: _GLKVector2,
2499
+ ): InstanceType<This>
2500
+
2501
+ static uniformWithNameFloatVector3<This extends abstract new (...args: any) => any>(
2502
+ this: This,
2503
+ name: string,
2504
+ value: _GLKVector3,
2505
+ ): InstanceType<This>
2506
+
2507
+ static uniformWithNameFloatVector4<This extends abstract new (...args: any) => any>(
2508
+ this: This,
2509
+ name: string,
2510
+ value: _GLKVector4,
2511
+ ): InstanceType<This>
2512
+
2513
+ static uniformWithNameFloatMatrix2<This extends abstract new (...args: any) => any>(
2514
+ this: This,
2515
+ name: string,
2516
+ value: _GLKMatrix2,
2517
+ ): InstanceType<This>
2518
+
2519
+ static uniformWithNameFloatMatrix3<This extends abstract new (...args: any) => any>(
2520
+ this: This,
2521
+ name: string,
2522
+ value: _GLKMatrix3,
2523
+ ): InstanceType<This>
2524
+
2525
+ static uniformWithNameFloatMatrix4<This extends abstract new (...args: any) => any>(
2526
+ this: This,
2527
+ name: string,
2528
+ value: _GLKMatrix4,
2529
+ ): InstanceType<This>
2530
+
2531
+ initWithNameFloatVector2(name: string, value: _GLKVector2): this
2532
+
2533
+ initWithNameFloatVector3(name: string, value: _GLKVector3): this
2534
+
2535
+ initWithNameFloatVector4(name: string, value: _GLKVector4): this
2536
+
2537
+ initWithNameFloatMatrix2(name: string, value: _GLKMatrix2): this
2538
+
2539
+ initWithNameFloatMatrix3(name: string, value: _GLKMatrix3): this
2540
+
2541
+ initWithNameFloatMatrix4(name: string, value: _GLKMatrix4): this
2542
+
2543
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
2544
+
2545
+ static readonly supportsSecureCoding: boolean
2546
+
2547
+ encodeWithCoder(coder: NSCoder): void
2548
+
2549
+ initWithCoder(coder: NSCoder): this
2550
+ }
2551
+
2552
+ declare class SKTileGroupRule extends NSObject implements NSCopying, NSSecureCoding {
2553
+ static tileGroupRuleWithAdjacencyTileDefinitions<This extends abstract new (...args: any) => any>(
2554
+ this: This,
2555
+ adjacency: interop.Enum<typeof SKTileAdjacencyMask>,
2556
+ tileDefinitions: NSArray<interop.Object> | Array<interop.Object>,
2557
+ ): InstanceType<This>
2558
+
2559
+ initWithAdjacencyTileDefinitions(
2560
+ adjacency: interop.Enum<typeof SKTileAdjacencyMask>,
2561
+ tileDefinitions: NSArray<interop.Object> | Array<interop.Object>,
2562
+ ): this
2563
+
2564
+ adjacency: interop.Enum<typeof SKTileAdjacencyMask>
2565
+
2566
+ get tileDefinitions(): NSArray
2567
+ set tileDefinitions(value: NSArray<interop.Object> | Array<interop.Object>)
2568
+
2569
+ name: string
2570
+
2571
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
2572
+
2573
+ static readonly supportsSecureCoding: boolean
2574
+
2575
+ encodeWithCoder(coder: NSCoder): void
2576
+
2577
+ initWithCoder(coder: NSCoder): this
2578
+ }
2579
+
2580
+ declare class SKTextureAtlas extends NSObject implements NSSecureCoding {
2581
+ static atlasNamed<This extends abstract new (...args: any) => any>(
2582
+ this: This,
2583
+ name: string,
2584
+ ): InstanceType<This>
2585
+
2586
+ static atlasWithDictionary<This extends abstract new (...args: any) => any>(
2587
+ this: This,
2588
+ properties:
2589
+ | NSDictionary<interop.Object, interop.Object>
2590
+ | Record<interop.Object, interop.Object>,
2591
+ ): InstanceType<This>
2592
+
2593
+ textureNamed(name: string): SKTexture
2594
+
2595
+ static preloadTextureAtlasesWithCompletionHandler(
2596
+ textureAtlases: NSArray<interop.Object> | Array<interop.Object>,
2597
+ completionHandler: () => void,
2598
+ ): void
2599
+
2600
+ static preloadTextureAtlasesNamedWithCompletionHandler(
2601
+ atlasNames: NSArray<interop.Object> | Array<interop.Object>,
2602
+ completionHandler: (
2603
+ p1: NSError,
2604
+ p2: NSArray<interop.Object> | Array<interop.Object>,
2605
+ ) => void | null,
2606
+ ): void
2607
+
2608
+ preloadWithCompletionHandler(completionHandler: () => void): void
2609
+
2610
+ readonly textureNames: NSArray
2611
+
2612
+ static readonly supportsSecureCoding: boolean
2613
+
2614
+ encodeWithCoder(coder: NSCoder): void
2615
+
2616
+ initWithCoder(coder: NSCoder): this
2617
+ }
2618
+
2619
+ declare class SKPhysicsWorld extends NSObject implements NSSecureCoding {
2620
+ gravity: CGVector
2621
+
2622
+ speed: number
2623
+
2624
+ contactDelegate: SKPhysicsContactDelegate
2625
+
2626
+ addJoint(joint: SKPhysicsJoint): void
2627
+
2628
+ removeJoint(joint: SKPhysicsJoint): void
2629
+
2630
+ removeAllJoints(): void
2631
+
2632
+ sampleFieldsAt(position: unknown /* ext vector */): unknown /* ext vector */
2633
+
2634
+ bodyAtPoint(point: CGPoint): SKPhysicsBody
2635
+
2636
+ bodyInRect(rect: CGRect): SKPhysicsBody
2637
+
2638
+ bodyAlongRayStartEnd(start: CGPoint, end: CGPoint): SKPhysicsBody
2639
+
2640
+ enumerateBodiesAtPointUsingBlock(
2641
+ point: CGPoint,
2642
+ block: (p1: SKPhysicsBody, p2: interop.PointerConvertible) => void,
2643
+ ): void
2644
+
2645
+ enumerateBodiesInRectUsingBlock(
2646
+ rect: CGRect,
2647
+ block: (p1: SKPhysicsBody, p2: interop.PointerConvertible) => void,
2648
+ ): void
2649
+
2650
+ enumerateBodiesAlongRayStartEndUsingBlock(
2651
+ start: CGPoint,
2652
+ end: CGPoint,
2653
+ block: (p1: SKPhysicsBody, p2: CGPoint, p3: CGVector, p4: interop.PointerConvertible) => void,
2654
+ ): void
2655
+
2656
+ static readonly supportsSecureCoding: boolean
2657
+
2658
+ encodeWithCoder(coder: NSCoder): void
2659
+
2660
+ initWithCoder(coder: NSCoder): this
2661
+ }
2662
+
2663
+ declare class SKTransition extends NSObject implements NSCopying {
2664
+ static crossFadeWithDuration(sec: number): SKTransition
2665
+
2666
+ static fadeWithDuration(sec: number): SKTransition
2667
+
2668
+ static fadeWithColorDuration(color: NSColor, sec: number): SKTransition
2669
+
2670
+ static flipHorizontalWithDuration(sec: number): SKTransition
2671
+
2672
+ static flipVerticalWithDuration(sec: number): SKTransition
2673
+
2674
+ static revealWithDirectionDuration(
2675
+ direction: interop.Enum<typeof SKTransitionDirection>,
2676
+ sec: number,
2677
+ ): SKTransition
2678
+
2679
+ static moveInWithDirectionDuration(
2680
+ direction: interop.Enum<typeof SKTransitionDirection>,
2681
+ sec: number,
2682
+ ): SKTransition
2683
+
2684
+ static pushWithDirectionDuration(
2685
+ direction: interop.Enum<typeof SKTransitionDirection>,
2686
+ sec: number,
2687
+ ): SKTransition
2688
+
2689
+ static doorsOpenHorizontalWithDuration(sec: number): SKTransition
2690
+
2691
+ static doorsOpenVerticalWithDuration(sec: number): SKTransition
2692
+
2693
+ static doorsCloseHorizontalWithDuration(sec: number): SKTransition
2694
+
2695
+ static doorsCloseVerticalWithDuration(sec: number): SKTransition
2696
+
2697
+ static doorwayWithDuration(sec: number): SKTransition
2698
+
2699
+ static transitionWithCIFilterDuration(filter: CIFilter, sec: number): SKTransition
2700
+
2701
+ pausesIncomingScene: boolean
2702
+
2703
+ pausesOutgoingScene: boolean
2704
+
2705
+ copyWithZone(zone: interop.PointerConvertible): interop.Object
2706
+ }
2707
+
2708
+ declare class SKFieldNode extends SKNode {
2709
+ region: SKRegion
2710
+
2711
+ strength: number
2712
+
2713
+ falloff: number
2714
+
2715
+ minimumRadius: number
2716
+
2717
+ enabled: boolean
2718
+
2719
+ exclusive: boolean
2720
+
2721
+ categoryBitMask: number
2722
+
2723
+ direction: unknown /* ext vector */
2724
+
2725
+ smoothness: number
2726
+
2727
+ animationSpeed: number
2728
+
2729
+ texture: SKTexture
2730
+
2731
+ static dragField(): SKFieldNode
2732
+
2733
+ static vortexField(): SKFieldNode
2734
+
2735
+ static radialGravityField(): SKFieldNode
2736
+
2737
+ static linearGravityFieldWithVector(direction: unknown /* ext vector */): SKFieldNode
2738
+
2739
+ static velocityFieldWithVector(direction: unknown /* ext vector */): SKFieldNode
2740
+
2741
+ static velocityFieldWithTexture(velocityTexture: SKTexture): SKFieldNode
2742
+
2743
+ static noiseFieldWithSmoothnessAnimationSpeed(smoothness: number, speed: number): SKFieldNode
2744
+
2745
+ static turbulenceFieldWithSmoothnessAnimationSpeed(smoothness: number, speed: number): SKFieldNode
2746
+
2747
+ static springField(): SKFieldNode
2748
+
2749
+ static electricField(): SKFieldNode
2750
+
2751
+ static magneticField(): SKFieldNode
2752
+
2753
+ static customFieldWithEvaluationBlock(
2754
+ block: (
2755
+ p1: unknown /* ext vector */,
2756
+ p2: unknown /* ext vector */,
2757
+ p3: number,
2758
+ p4: number,
2759
+ p5: number,
2760
+ ) => unknown /* ext vector */,
2761
+ ): SKFieldNode
2762
+
2763
+ isEnabled(): boolean
2764
+
2765
+ isExclusive(): boolean
2766
+ }