typescript-to-gdscript 0.1.1 → 0.1.3

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 (380) hide show
  1. package/README.md +4 -2
  2. package/dist/cli/convert.d.ts.map +1 -1
  3. package/dist/cli/convert.js +15 -5
  4. package/dist/cli/convert.js.map +1 -1
  5. package/dist/converter/gd-to-ts/class-scope.d.ts.map +1 -1
  6. package/dist/converter/gd-to-ts/class-scope.js +4 -4
  7. package/dist/converter/gd-to-ts/class-scope.js.map +1 -1
  8. package/dist/converter/gd-to-ts/expressions.d.ts.map +1 -1
  9. package/dist/converter/gd-to-ts/expressions.js +59 -8
  10. package/dist/converter/gd-to-ts/expressions.js.map +1 -1
  11. package/dist/converter/gd-to-ts/functions.d.ts.map +1 -1
  12. package/dist/converter/gd-to-ts/functions.js +29 -24
  13. package/dist/converter/gd-to-ts/functions.js.map +1 -1
  14. package/dist/converter/gd-to-ts/identifiers.d.ts +27 -0
  15. package/dist/converter/gd-to-ts/identifiers.d.ts.map +1 -0
  16. package/dist/converter/gd-to-ts/identifiers.js +76 -0
  17. package/dist/converter/gd-to-ts/identifiers.js.map +1 -0
  18. package/dist/converter/gd-to-ts/members.d.ts.map +1 -1
  19. package/dist/converter/gd-to-ts/members.js +15 -6
  20. package/dist/converter/gd-to-ts/members.js.map +1 -1
  21. package/dist/converter/gd-to-ts/statements.d.ts.map +1 -1
  22. package/dist/converter/gd-to-ts/statements.js +12 -1
  23. package/dist/converter/gd-to-ts/statements.js.map +1 -1
  24. package/dist/converter/gd-to-ts/type-inference.d.ts +33 -0
  25. package/dist/converter/gd-to-ts/type-inference.d.ts.map +1 -1
  26. package/dist/converter/gd-to-ts/type-inference.js +79 -0
  27. package/dist/converter/gd-to-ts/type-inference.js.map +1 -1
  28. package/dist/converter/ts-to-gd/access-rewrite.d.ts +40 -0
  29. package/dist/converter/ts-to-gd/access-rewrite.d.ts.map +1 -0
  30. package/dist/converter/ts-to-gd/access-rewrite.js +124 -0
  31. package/dist/converter/ts-to-gd/access-rewrite.js.map +1 -0
  32. package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
  33. package/dist/converter/ts-to-gd/expressions.js +31 -7
  34. package/dist/converter/ts-to-gd/expressions.js.map +1 -1
  35. package/dist/typings/content-generators.d.ts +2 -2
  36. package/dist/typings/content-generators.d.ts.map +1 -1
  37. package/dist/typings/content-generators.js +8 -2
  38. package/dist/typings/content-generators.js.map +1 -1
  39. package/dist/typings/godot-docs.d.ts.map +1 -1
  40. package/dist/typings/godot-docs.js +45 -16
  41. package/dist/typings/godot-docs.js.map +1 -1
  42. package/dist/typings/override-system.d.ts.map +1 -1
  43. package/dist/typings/override-system.js +8 -0
  44. package/dist/typings/override-system.js.map +1 -1
  45. package/dist/typings/scene-utils.d.ts +8 -0
  46. package/dist/typings/scene-utils.d.ts.map +1 -1
  47. package/dist/typings/scene-utils.js +49 -8
  48. package/dist/typings/scene-utils.js.map +1 -1
  49. package/dist/typings/scenes.d.ts.map +1 -1
  50. package/dist/typings/scenes.js +17 -10
  51. package/dist/typings/scenes.js.map +1 -1
  52. package/dist/watcher/check.d.ts +87 -0
  53. package/dist/watcher/check.d.ts.map +1 -0
  54. package/dist/watcher/check.js +209 -0
  55. package/dist/watcher/check.js.map +1 -0
  56. package/dist/watcher/heal.d.ts +66 -0
  57. package/dist/watcher/heal.d.ts.map +1 -0
  58. package/dist/watcher/heal.js +132 -0
  59. package/dist/watcher/heal.js.map +1 -0
  60. package/dist/watcher/index.d.ts +1 -0
  61. package/dist/watcher/index.d.ts.map +1 -1
  62. package/dist/watcher/index.js +48 -52
  63. package/dist/watcher/index.js.map +1 -1
  64. package/package.json +1 -1
  65. package/typings/classes/AccessibilityServer.d.ts +405 -0
  66. package/typings/classes/AnimationLibrary.d.ts +4 -4
  67. package/typings/classes/AnimationNodeBlendSpace1D.d.ts +45 -4
  68. package/typings/classes/AnimationNodeBlendSpace2D.d.ts +45 -4
  69. package/typings/classes/Area3D.d.ts +14 -7
  70. package/typings/classes/AreaLight3D.d.ts +37 -0
  71. package/typings/classes/ArrayMesh.d.ts +15 -0
  72. package/typings/classes/AudioEffectAmplify.d.ts +2 -2
  73. package/typings/classes/AudioEffectBandLimitFilter.d.ts +1 -1
  74. package/typings/classes/AudioEffectBandPassFilter.d.ts +1 -1
  75. package/typings/classes/AudioEffectCapture.d.ts +10 -9
  76. package/typings/classes/AudioEffectChorus.d.ts +57 -28
  77. package/typings/classes/AudioEffectCompressor.d.ts +11 -9
  78. package/typings/classes/AudioEffectDelay.d.ts +21 -15
  79. package/typings/classes/AudioEffectDistortion.d.ts +19 -10
  80. package/typings/classes/AudioEffectEQ.d.ts +2 -2
  81. package/typings/classes/AudioEffectEQ10.d.ts +2 -2
  82. package/typings/classes/AudioEffectEQ21.d.ts +2 -2
  83. package/typings/classes/AudioEffectEQ6.d.ts +2 -2
  84. package/typings/classes/AudioEffectFilter.d.ts +25 -9
  85. package/typings/classes/AudioEffectHardLimiter.d.ts +8 -5
  86. package/typings/classes/AudioEffectHighPassFilter.d.ts +1 -1
  87. package/typings/classes/AudioEffectHighShelfFilter.d.ts +1 -1
  88. package/typings/classes/AudioEffectInstance.d.ts +1 -1
  89. package/typings/classes/AudioEffectLimiter.d.ts +9 -4
  90. package/typings/classes/AudioEffectLowPassFilter.d.ts +1 -1
  91. package/typings/classes/AudioEffectLowShelfFilter.d.ts +1 -1
  92. package/typings/classes/AudioEffectNotchFilter.d.ts +1 -1
  93. package/typings/classes/AudioEffectPanner.d.ts +7 -2
  94. package/typings/classes/AudioEffectPhaser.d.ts +9 -7
  95. package/typings/classes/AudioEffectPitchShift.d.ts +3 -3
  96. package/typings/classes/AudioEffectReverb.d.ts +17 -8
  97. package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +4 -5
  98. package/typings/classes/AudioEffectStereoEnhance.d.ts +7 -4
  99. package/typings/classes/AudioServer.d.ts +2 -2
  100. package/typings/classes/AudioStreamPlaybackResampled.d.ts +8 -0
  101. package/typings/classes/AudioStreamRandomizer.d.ts +10 -0
  102. package/typings/classes/AwaitTweener.d.ts +10 -0
  103. package/typings/classes/BaseButton.d.ts +1 -1
  104. package/typings/classes/Basis.d.ts +6 -2
  105. package/typings/classes/BlitMaterial.d.ts +22 -0
  106. package/typings/classes/CPUParticles2D.d.ts +2 -2
  107. package/typings/classes/CPUParticles3D.d.ts +2 -2
  108. package/typings/classes/Camera3D.d.ts +1 -1
  109. package/typings/classes/CameraAttributes.d.ts +1 -0
  110. package/typings/classes/CameraFeed.d.ts +4 -0
  111. package/typings/classes/CanvasItem.d.ts +16 -1
  112. package/typings/classes/CodeEdit.d.ts +6 -0
  113. package/typings/classes/CollisionObject2D.d.ts +6 -0
  114. package/typings/classes/CollisionPolygon2D.d.ts +5 -0
  115. package/typings/classes/CollisionShape2D.d.ts +5 -0
  116. package/typings/classes/Container.d.ts +7 -0
  117. package/typings/classes/Control.d.ts +127 -9
  118. package/typings/classes/Curve.d.ts +26 -1
  119. package/typings/classes/Curve2D.d.ts +15 -0
  120. package/typings/classes/Curve3D.d.ts +20 -0
  121. package/typings/classes/DPITexture.d.ts +14 -0
  122. package/typings/classes/Decal.d.ts +1 -0
  123. package/typings/classes/Dictionary.d.ts +74 -28
  124. package/typings/classes/DirAccess.d.ts +6 -1
  125. package/typings/classes/DisplayServer.d.ts +161 -9
  126. package/typings/classes/DrawableTexture2D.d.ts +43 -0
  127. package/typings/classes/EditorCommandPalette.d.ts +0 -2
  128. package/typings/classes/EditorContextMenuPlugin.d.ts +4 -0
  129. package/typings/classes/EditorDock.d.ts +10 -5
  130. package/typings/classes/EditorExportPlatform.d.ts +4 -2
  131. package/typings/classes/EditorExportPlugin.d.ts +7 -0
  132. package/typings/classes/EditorFeatureProfile.d.ts +1 -1
  133. package/typings/classes/EditorFileSystem.d.ts +2 -0
  134. package/typings/classes/EditorInspector.d.ts +10 -0
  135. package/typings/classes/EditorInterface.d.ts +6 -4
  136. package/typings/classes/EditorNode3DGizmoPlugin.d.ts +4 -0
  137. package/typings/classes/EditorPlugin.d.ts +4 -4
  138. package/typings/classes/EditorResourcePicker.d.ts +2 -1
  139. package/typings/classes/EditorSceneFormatImporter.d.ts +23 -0
  140. package/typings/classes/EditorSettings.d.ts +241 -140
  141. package/typings/classes/EditorSpinSlider.d.ts +6 -0
  142. package/typings/classes/EditorTranslationParserPlugin.d.ts +4 -0
  143. package/typings/classes/EditorVCSInterface.d.ts +6 -2
  144. package/typings/classes/Environment.d.ts +7 -2
  145. package/typings/classes/FileAccess.d.ts +1 -1
  146. package/typings/classes/FileDialog.d.ts +16 -1
  147. package/typings/classes/FoldableContainer.d.ts +1 -1
  148. package/typings/classes/Font.d.ts +15 -3
  149. package/typings/classes/FontVariation.d.ts +10 -0
  150. package/typings/classes/GDScript.d.ts +8 -0
  151. package/typings/classes/GDScriptLanguageProtocol.d.ts +25 -0
  152. package/typings/classes/GDScriptSyntaxHighlighter.d.ts +6 -0
  153. package/typings/classes/GDScriptTextDocument.d.ts +27 -0
  154. package/typings/classes/GDScriptWorkspace.d.ts +17 -0
  155. package/typings/classes/GPUParticles2D.d.ts +2 -2
  156. package/typings/classes/GPUParticles3D.d.ts +19 -2
  157. package/typings/classes/Geometry2D.d.ts +2 -2
  158. package/typings/classes/GeometryInstance3D.d.ts +1 -1
  159. package/typings/classes/GradientTexture2D.d.ts +2 -0
  160. package/typings/classes/Image.d.ts +7 -4
  161. package/typings/classes/ImageFormatLoader.d.ts +5 -0
  162. package/typings/classes/ImageTexture.d.ts +0 -2
  163. package/typings/classes/ImporterMesh.d.ts +6 -0
  164. package/typings/classes/Input.d.ts +159 -15
  165. package/typings/classes/InputEvent.d.ts +8 -0
  166. package/typings/classes/InputEventGesture.d.ts +2 -3
  167. package/typings/classes/InputEventMouse.d.ts +2 -3
  168. package/typings/classes/InputEventMouseMotion.d.ts +2 -2
  169. package/typings/classes/InputEventWithModifiers.d.ts +2 -3
  170. package/typings/classes/InputMap.d.ts +3 -0
  171. package/typings/classes/ItemList.d.ts +29 -2
  172. package/typings/classes/IterateIK3D.d.ts +6 -3
  173. package/typings/classes/JavaClassWrapper.d.ts +13 -0
  174. package/typings/classes/JavaScriptBridge.d.ts +1 -1
  175. package/typings/classes/Joint3D.d.ts +1 -0
  176. package/typings/classes/Label.d.ts +1 -0
  177. package/typings/classes/LabelSettings.d.ts +25 -0
  178. package/typings/classes/Light3D.d.ts +1 -1
  179. package/typings/classes/Logger.d.ts +1 -1
  180. package/typings/classes/LookAtModifier3D.d.ts +2 -1
  181. package/typings/classes/MainLoop.d.ts +4 -0
  182. package/typings/classes/MenuButton.d.ts +35 -0
  183. package/typings/classes/MeshLibrary.d.ts +2 -0
  184. package/typings/classes/MovieWriter.d.ts +2 -0
  185. package/typings/classes/MultiplayerPeerExtension.d.ts +9 -9
  186. package/typings/classes/NativeMenu.d.ts +10 -3
  187. package/typings/classes/Node.d.ts +15 -5
  188. package/typings/classes/Node3D.d.ts +6 -4
  189. package/typings/classes/OS.d.ts +3 -3
  190. package/typings/classes/Object.d.ts +9 -3
  191. package/typings/classes/OptimizedTranslation.d.ts +2 -2
  192. package/typings/classes/OptionButton.d.ts +51 -1
  193. package/typings/classes/PCKPacker.d.ts +4 -0
  194. package/typings/classes/PacketPeerExtension.d.ts +1 -1
  195. package/typings/classes/ParticleProcessMaterial.d.ts +63 -0
  196. package/typings/classes/PhysicsDirectBodyState2D.d.ts +2 -1
  197. package/typings/classes/PhysicsDirectBodyState3D.d.ts +2 -1
  198. package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +6 -6
  199. package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +6 -6
  200. package/typings/classes/PhysicsServer2D.d.ts +2 -2
  201. package/typings/classes/PhysicsServer2DExtension.d.ts +6 -6
  202. package/typings/classes/PhysicsServer3D.d.ts +145 -42
  203. package/typings/classes/PhysicsServer3DExtension.d.ts +1 -1
  204. package/typings/classes/PopupMenu.d.ts +74 -8
  205. package/typings/classes/PopupPanel.d.ts +2 -0
  206. package/typings/classes/PortableCompressedTexture2D.d.ts +0 -2
  207. package/typings/classes/ProjectSettings.d.ts +62 -10
  208. package/typings/classes/Quaternion.d.ts +2 -2
  209. package/typings/classes/RDAccelerationStructureGeometry.d.ts +42 -0
  210. package/typings/classes/RDAccelerationStructureInstance.d.ts +34 -0
  211. package/typings/classes/RDHitGroup.d.ts +20 -0
  212. package/typings/classes/RDPipelineShader.d.ts +14 -0
  213. package/typings/classes/RDShaderSPIRV.d.ts +30 -0
  214. package/typings/classes/RDShaderSource.d.ts +10 -0
  215. package/typings/classes/RandomNumberGenerator.d.ts +4 -2
  216. package/typings/classes/RenderSceneBuffersConfiguration.d.ts +4 -1
  217. package/typings/classes/RenderingDevice.d.ts +175 -1
  218. package/typings/classes/RenderingServer.d.ts +264 -14
  219. package/typings/classes/Resource.d.ts +4 -2
  220. package/typings/classes/ResourceImporterDynamicFont.d.ts +3 -1
  221. package/typings/classes/ResourceImporterOBJ.d.ts +1 -1
  222. package/typings/classes/ResourceImporterSVG.d.ts +10 -0
  223. package/typings/classes/ResourceImporterScene.d.ts +11 -3
  224. package/typings/classes/ResourceImporterTexture.d.ts +2 -2
  225. package/typings/classes/RichTextLabel.d.ts +14 -6
  226. package/typings/classes/Script.d.ts +2 -0
  227. package/typings/classes/ScriptEditor.d.ts +13 -0
  228. package/typings/classes/ScriptLanguageExtension.d.ts +7 -0
  229. package/typings/classes/ScrollContainer.d.ts +17 -5
  230. package/typings/classes/Shader.d.ts +2 -0
  231. package/typings/classes/Shape3D.d.ts +1 -0
  232. package/typings/classes/SkeletonModification2DJiggle.d.ts +4 -0
  233. package/typings/classes/SplitContainer.d.ts +6 -0
  234. package/typings/classes/SpringBoneSimulator3D.d.ts +4 -2
  235. package/typings/classes/SpriteFrames.d.ts +20 -4
  236. package/typings/classes/StreamPeerExtension.d.ts +2 -2
  237. package/typings/classes/String.d.ts +1 -1
  238. package/typings/classes/SubViewport.d.ts +4 -0
  239. package/typings/classes/TabBar.d.ts +20 -0
  240. package/typings/classes/TabContainer.d.ts +21 -3
  241. package/typings/classes/TextEdit.d.ts +5 -2
  242. package/typings/classes/TextServer.d.ts +25 -1
  243. package/typings/classes/TextServerExtension.d.ts +25 -1
  244. package/typings/classes/Texture2D.d.ts +14 -0
  245. package/typings/classes/TextureRect.d.ts +4 -1
  246. package/typings/classes/TileSet.d.ts +3 -1
  247. package/typings/classes/Tree.d.ts +25 -9
  248. package/typings/classes/TreeItem.d.ts +17 -2
  249. package/typings/classes/Tween.d.ts +13 -0
  250. package/typings/classes/UndoRedo.d.ts +2 -2
  251. package/typings/classes/Vector2.d.ts +4 -2
  252. package/typings/classes/Vector2i.d.ts +4 -2
  253. package/typings/classes/Vector3.d.ts +4 -2
  254. package/typings/classes/Vector3i.d.ts +4 -2
  255. package/typings/classes/Vector4.d.ts +4 -2
  256. package/typings/classes/Vector4i.d.ts +4 -2
  257. package/typings/classes/Viewport.d.ts +27 -1
  258. package/typings/classes/VirtualJoystick.d.ts +94 -0
  259. package/typings/classes/VoxelGIData.d.ts +10 -0
  260. package/typings/classes/Window.d.ts +41 -4
  261. package/typings/classes/XRCamera3D.d.ts +1 -1
  262. package/typings/classes/XRServer.d.ts +2 -0
  263. package/typings/classes/_globals.d.ts +55 -18
  264. package/typings/classes/index.d.ts +15 -112
  265. package/typings/globals/globals.d.ts +20 -0
  266. package/typings/godot-class-registry.json +2120 -3693
  267. package/typings-overrides/dictionary.d.ts +35 -15
  268. package/typings-overrides/object-dict.d.ts +43 -0
  269. package/typings/classes/VisualShader.d.ts +0 -110
  270. package/typings/classes/VisualShaderNode.d.ts +0 -63
  271. package/typings/classes/VisualShaderNodeBillboard.d.ts +0 -28
  272. package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +0 -10
  273. package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +0 -14
  274. package/typings/classes/VisualShaderNodeClamp.d.ts +0 -26
  275. package/typings/classes/VisualShaderNodeColorConstant.d.ts +0 -10
  276. package/typings/classes/VisualShaderNodeColorFunc.d.ts +0 -32
  277. package/typings/classes/VisualShaderNodeColorOp.d.ts +0 -32
  278. package/typings/classes/VisualShaderNodeColorParameter.d.ts +0 -14
  279. package/typings/classes/VisualShaderNodeComment.d.ts +0 -12
  280. package/typings/classes/VisualShaderNodeCompare.d.ts +0 -68
  281. package/typings/classes/VisualShaderNodeConstant.d.ts +0 -6
  282. package/typings/classes/VisualShaderNodeCubemap.d.ts +0 -43
  283. package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +0 -6
  284. package/typings/classes/VisualShaderNodeCurveTexture.d.ts +0 -10
  285. package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +0 -10
  286. package/typings/classes/VisualShaderNodeCustom.d.ts +0 -122
  287. package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +0 -56
  288. package/typings/classes/VisualShaderNodeDeterminant.d.ts +0 -6
  289. package/typings/classes/VisualShaderNodeDistanceFade.d.ts +0 -6
  290. package/typings/classes/VisualShaderNodeDotProduct.d.ts +0 -6
  291. package/typings/classes/VisualShaderNodeExpression.d.ts +0 -12
  292. package/typings/classes/VisualShaderNodeFaceForward.d.ts +0 -8
  293. package/typings/classes/VisualShaderNodeFloatConstant.d.ts +0 -10
  294. package/typings/classes/VisualShaderNodeFloatFunc.d.ts +0 -108
  295. package/typings/classes/VisualShaderNodeFloatOp.d.ts +0 -36
  296. package/typings/classes/VisualShaderNodeFloatParameter.d.ts +0 -52
  297. package/typings/classes/VisualShaderNodeFrame.d.ts +0 -35
  298. package/typings/classes/VisualShaderNodeFresnel.d.ts +0 -6
  299. package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +0 -6
  300. package/typings/classes/VisualShaderNodeGroupBase.d.ts +0 -60
  301. package/typings/classes/VisualShaderNodeIf.d.ts +0 -8
  302. package/typings/classes/VisualShaderNodeInput.d.ts +0 -20
  303. package/typings/classes/VisualShaderNodeIntConstant.d.ts +0 -10
  304. package/typings/classes/VisualShaderNodeIntFunc.d.ts +0 -24
  305. package/typings/classes/VisualShaderNodeIntOp.d.ts +0 -48
  306. package/typings/classes/VisualShaderNodeIntParameter.d.ts +0 -58
  307. package/typings/classes/VisualShaderNodeIs.d.ts +0 -18
  308. package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +0 -6
  309. package/typings/classes/VisualShaderNodeMix.d.ts +0 -28
  310. package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +0 -22
  311. package/typings/classes/VisualShaderNodeOuterProduct.d.ts +0 -6
  312. package/typings/classes/VisualShaderNodeOutput.d.ts +0 -6
  313. package/typings/classes/VisualShaderNodeParameter.d.ts +0 -32
  314. package/typings/classes/VisualShaderNodeParameterRef.d.ts +0 -10
  315. package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +0 -20
  316. package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +0 -6
  317. package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +0 -6
  318. package/typings/classes/VisualShaderNodeParticleEmit.d.ts +0 -22
  319. package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +0 -12
  320. package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +0 -20
  321. package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +0 -10
  322. package/typings/classes/VisualShaderNodeParticleOutput.d.ts +0 -6
  323. package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +0 -22
  324. package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +0 -6
  325. package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +0 -6
  326. package/typings/classes/VisualShaderNodeProximityFade.d.ts +0 -6
  327. package/typings/classes/VisualShaderNodeRandomRange.d.ts +0 -6
  328. package/typings/classes/VisualShaderNodeRemap.d.ts +0 -33
  329. package/typings/classes/VisualShaderNodeReroute.d.ts +0 -8
  330. package/typings/classes/VisualShaderNodeResizableBase.d.ts +0 -10
  331. package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +0 -6
  332. package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +0 -6
  333. package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +0 -8
  334. package/typings/classes/VisualShaderNodeSample3D.d.ts +0 -18
  335. package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +0 -6
  336. package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +0 -8
  337. package/typings/classes/VisualShaderNodeSmoothStep.d.ts +0 -28
  338. package/typings/classes/VisualShaderNodeStep.d.ts +0 -28
  339. package/typings/classes/VisualShaderNodeSwitch.d.ts +0 -30
  340. package/typings/classes/VisualShaderNodeTexture.d.ts +0 -57
  341. package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +0 -12
  342. package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +0 -6
  343. package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +0 -6
  344. package/typings/classes/VisualShaderNodeTexture3D.d.ts +0 -12
  345. package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +0 -6
  346. package/typings/classes/VisualShaderNodeTextureParameter.d.ts +0 -104
  347. package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +0 -6
  348. package/typings/classes/VisualShaderNodeTextureSDF.d.ts +0 -6
  349. package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +0 -6
  350. package/typings/classes/VisualShaderNodeTransformCompose.d.ts +0 -6
  351. package/typings/classes/VisualShaderNodeTransformConstant.d.ts +0 -10
  352. package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +0 -6
  353. package/typings/classes/VisualShaderNodeTransformFunc.d.ts +0 -18
  354. package/typings/classes/VisualShaderNodeTransformOp.d.ts +0 -32
  355. package/typings/classes/VisualShaderNodeTransformParameter.d.ts +0 -14
  356. package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +0 -22
  357. package/typings/classes/VisualShaderNodeUIntConstant.d.ts +0 -10
  358. package/typings/classes/VisualShaderNodeUIntFunc.d.ts +0 -20
  359. package/typings/classes/VisualShaderNodeUIntOp.d.ts +0 -48
  360. package/typings/classes/VisualShaderNodeUIntParameter.d.ts +0 -16
  361. package/typings/classes/VisualShaderNodeUVFunc.d.ts +0 -22
  362. package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +0 -6
  363. package/typings/classes/VisualShaderNodeVarying.d.ts +0 -14
  364. package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +0 -6
  365. package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +0 -6
  366. package/typings/classes/VisualShaderNodeVec2Constant.d.ts +0 -10
  367. package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +0 -14
  368. package/typings/classes/VisualShaderNodeVec3Constant.d.ts +0 -10
  369. package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +0 -14
  370. package/typings/classes/VisualShaderNodeVec4Constant.d.ts +0 -10
  371. package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +0 -14
  372. package/typings/classes/VisualShaderNodeVectorBase.d.ts +0 -20
  373. package/typings/classes/VisualShaderNodeVectorCompose.d.ts +0 -8
  374. package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +0 -8
  375. package/typings/classes/VisualShaderNodeVectorDistance.d.ts +0 -6
  376. package/typings/classes/VisualShaderNodeVectorFunc.d.ts +0 -84
  377. package/typings/classes/VisualShaderNodeVectorLen.d.ts +0 -6
  378. package/typings/classes/VisualShaderNodeVectorOp.d.ts +0 -42
  379. package/typings/classes/VisualShaderNodeVectorRefract.d.ts +0 -8
  380. package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +0 -8
@@ -39,6 +39,8 @@ declare class ResourceImporterDynamicFont extends ResourceImporter {
39
39
  * **None:** Smoothest appearance, which can make the font look blurry at small sizes.
40
40
  * **Light:** Sharp result by snapping glyph edges to pixels on the Y axis only.
41
41
  * **Normal:** Sharpest by snapping glyph edges to pixels on both X and Y axes.
42
+ * **Light (Except Pixel Fonts):** **Disabled** for pixel style fonts (each glyph's contours contain only straight horizontal and vertical lines), **Light** for other fonts.
43
+ * **Normal (Except Pixel Fonts):** **Disabled** for pixel style fonts (each glyph's contours contain only straight horizontal and vertical lines), **Normal** for other fonts.
42
44
  */
43
45
  hinting: int;
44
46
  /**
@@ -88,7 +90,7 @@ declare class ResourceImporterDynamicFont extends ResourceImporter {
88
90
  * **Auto:** Use subpixel positioning at small font sizes (the chosen quality varies depending on font size). Large fonts will not use subpixel positioning. This is a good tradeoff between performance and quality.
89
91
  * **One Half of a Pixel:** Always perform intermediate subpixel positioning regardless of font size. High quality, slow rendering.
90
92
  * **One Quarter of a Pixel:** Always perform precise subpixel positioning regardless of font size. Highest quality, slowest rendering.
91
- * **Auto (Except Pixel Fonts):** **Disabled** for the pixel style fonts (each glyph contours contain only straight horizontal and vertical lines), **Auto** for the other fonts.
93
+ * **Auto (Except Pixel Fonts):** **Disabled** for pixel style fonts (each glyph's contours contain only straight horizontal and vertical lines), **Auto** for other fonts.
92
94
  */
93
95
  subpixel_positioning: int;
94
96
  }
@@ -23,7 +23,7 @@ declare class ResourceImporterOBJ extends ResourceImporter {
23
23
  */
24
24
  generate_shadow_mesh: boolean;
25
25
  /**
26
- * If `true`, generate vertex tangents using Mikktspace (http://www.mikktspace.com/) if the source mesh doesn't have tangent data. When possible, it's recommended to let the 3D modeling software generate tangents on export instead on relying on this option. Tangents are required for correct display of normal and height maps, along with any material/shader features that require tangents.
26
+ * If `true`, generate vertex tangents using Mikktspace (http://www.mikktspace.com/) if the source mesh doesn't have tangent data. When possible, it's recommended to let the 3D modeling software generate tangents on export instead of relying on this option. Tangents are required for correct display of normal and height maps, along with any material/shader features that require tangents.
27
27
  * If you don't need material features that require tangents, disabling this can reduce output file size and speed up importing if the source 3D file doesn't contain tangents.
28
28
  */
29
29
  generate_tangents: boolean;
@@ -9,6 +9,16 @@ declare class ResourceImporterSVG extends ResourceImporter {
9
9
  color_map: Dictionary;
10
10
  /** If `true`, uses lossless compression for the SVG source. */
11
11
  compress: boolean;
12
+ /**
13
+ * If `true`, puts pixels of the same surrounding color in transition from transparent to opaque areas. For textures displayed with bilinear filtering, this helps to reduce the outline effect when exporting images from an image editor.
14
+ */
15
+ fix_alpha_border: boolean;
16
+ /**
17
+ * An alternative to fixing darkened borders with {@link fix_alpha_border} is to use premultiplied alpha. By enabling this option, the texture will be converted to this format. A premultiplied alpha texture requires specific materials to be displayed correctly:
18
+ * - In 2D, a {@link CanvasItemMaterial} will need to be created and configured to use the {@link CanvasItemMaterial.BLEND_MODE_PREMULT_ALPHA} blend mode on {@link CanvasItem}s that use this texture. In custom `canvas_item` shaders, `render_mode blend_premul_alpha;` should be used.
19
+ * - In 3D, a {@link BaseMaterial3D} will need to be created and configured to use the {@link BaseMaterial3D.BLEND_MODE_PREMULT_ALPHA} blend mode on materials that use this texture. In custom `spatial` shaders, `render_mode blend_premul_alpha;` should be used.
20
+ */
21
+ premult_alpha: boolean;
12
22
  /** Overrides texture saturation. */
13
23
  saturation: float;
14
24
  }
@@ -25,6 +25,10 @@ declare class ResourceImporterScene extends ResourceImporter {
25
25
  * If `true`, trim the beginning and end of animations if there are no keyframe changes. This can reduce output file size and memory usage with certain 3D scenes, depending on the contents of their animation tracks.
26
26
  */
27
27
  'animation/trimming': boolean;
28
+ /**
29
+ * If the 3D model file contains only one mesh, this option has no effect. If `true` and the 3D model file contains multiple meshes with the same surface names and formats, the surfaces will be merged together when the meshes are merged. This is useful for reducing the number of surfaces in the resulting mesh, and avoids duplicating materials. If `false` and the 3D model file contains multiple meshes, the surfaces will always be kept separate.
30
+ */
31
+ 'array_mesh/deduplicate_surfaces': boolean;
28
32
  /**
29
33
  * Path to an import script, which can run code after the import process has completed for custom processing. See Using import scripts for automation ($DOCS_URL/tutorials/assets_pipeline/importing_3d_scenes/import_configuration.html#using-import-scripts-for-automation) for more information.
30
34
  */
@@ -45,12 +49,16 @@ declare class ResourceImporterScene extends ResourceImporter {
45
49
  'materials/extract_format': int;
46
50
  /** Path extracted materials are saved to. If empty, source scene path is used. */
47
51
  'materials/extract_path': string;
52
+ /**
53
+ * If `true`, the mesh names will be set to the names of the nodes in the 3D model file. If `false`, the mesh names will be set to the names of the meshes in the 3D model file. Enabling this is a common work-around when the author of the 3D model file did not properly set the mesh names in Blender or other 3D modeling apps. For example, a file may have a node named "Turret" with a mesh named "Cube.002", so enabling this option will set the mesh name to "Turret" instead of "Cube_002".
54
+ */
55
+ 'mesh_library/use_node_names_as_mesh_names': boolean;
48
56
  /**
49
57
  * If `true`, enables the generation of shadow meshes on import. This optimizes shadow rendering without reducing quality by welding vertices together when possible. This in turn reduces the memory bandwidth required to render shadows. Shadow mesh generation currently doesn't support using a lower detail level than the source mesh (but shadow rendering will make use of LODs when relevant).
50
58
  */
51
59
  'meshes/create_shadow_meshes': boolean;
52
60
  /**
53
- * If `true`, generate vertex tangents using Mikktspace (http://www.mikktspace.com/) if the input meshes don't have tangent data. When possible, it's recommended to let the 3D modeling software generate tangents on export instead on relying on this option. Tangents are required for correct display of normal and height maps, along with any material/shader features that require tangents.
61
+ * If `true`, generate vertex tangents using Mikktspace (http://www.mikktspace.com/) if the input meshes don't have tangent data. When possible, it's recommended to let the 3D modeling software generate tangents on export instead of relying on this option. Tangents are required for correct display of normal and height maps, along with any material/shader features that require tangents.
54
62
  * If you don't need material features that require tangents, disabling this can reduce output file size and speed up importing if the source 3D file doesn't contain tangents.
55
63
  */
56
64
  'meshes/ensure_tangents': boolean;
@@ -105,9 +113,9 @@ declare class ResourceImporterScene extends ResourceImporter {
105
113
  'nodes/use_node_type_suffixes': boolean;
106
114
  /**
107
115
  * If checked, use named {@link Skin}s for animation. The {@link MeshInstance3D} node contains 3 properties of relevance here: a skeleton {@link NodePath} pointing to the {@link Skeleton3D} node (usually `..`), a mesh, and a skin:
108
- * - The {@link Skeleton3D} node contains a list of bones with names, their pose and rest, a name and a parent bone.
116
+ * - The {@link Skeleton3D} node contains a list of bones with names, their pose and rest, a name, and a parent bone.
109
117
  * - The mesh is all of the raw vertex data needed to display a mesh. In terms of the mesh, it knows how vertices are weight-painted and uses some internal numbering often imported from 3D modeling software.
110
- * - The skin contains the information necessary to bind this mesh onto this Skeleton3D. For every one of the internal bone IDs chosen by the 3D modeling software, it contains two things. Firstly, a matrix known as the Bind Pose Matrix, Inverse Bind Matrix, or IBM for short. Secondly, the {@link Skin} contains each bone's name (if {@link skins/use_named_skins} is `true`), or the bone's index within the {@link Skeleton3D} list (if {@link skins/use_named_skins} is `false`).
118
+ * - The skin contains the information necessary to bind this mesh onto this Skeleton3D. For each of the internal bone IDs chosen by the 3D modeling software, it contains two things. Firstly, a matrix known as the Bind Pose Matrix, Inverse Bind Matrix, or IBM for short. Secondly, the {@link Skin} contains each bone's name (if {@link skins/use_named_skins} is `true`), or the bone's index within the {@link Skeleton3D} list (if {@link skins/use_named_skins} is `false`).
111
119
  * Together, this information is enough to tell Godot how to use the bone poses in the {@link Skeleton3D} node to render the mesh from each {@link MeshInstance3D}. Note that each {@link MeshInstance3D} may share binds, as is common in models exported from Blender, or each {@link MeshInstance3D} may use a separate {@link Skin} object, as is common in models exported from other tools such as Maya.
112
120
  */
113
121
  'skins/use_named_skins': boolean;
@@ -61,7 +61,7 @@ declare class ResourceImporterTexture extends ResourceImporter {
61
61
  */
62
62
  'editor/convert_colors_with_editor_theme': boolean;
63
63
  /**
64
- * If `true`, scales the imported image to match {@link EditorSettings.interface/editor/custom_display_scale}. This should be enabled for editor plugin icons and custom class icons, but should be left disabled otherwise.
64
+ * If `true`, scales the imported image to match {@link EditorSettings.interface/editor/appearance/custom_display_scale}. This should be enabled for editor plugin icons and custom class icons, but should be left disabled otherwise.
65
65
  * **Note:** Only available for SVG images.
66
66
  */
67
67
  'editor/scale_with_editor_scale': boolean;
@@ -158,7 +158,7 @@ declare class ResourceImporterTexture extends ResourceImporter {
158
158
  'process/normal_map_invert_y': boolean;
159
159
  /**
160
160
  * An alternative to fixing darkened borders with {@link process/fix_alpha_border} is to use premultiplied alpha. By enabling this option, the texture will be converted to this format. A premultiplied alpha texture requires specific materials to be displayed correctly:
161
- * - In 2D, a {@link CanvasItemMaterial} will need to be created and configured to use the {@link CanvasItemMaterial.BLEND_MODE_PREMULT_ALPHA} blend mode on {@link CanvasItem}s that use this texture. In custom `@canvas_item` shaders, `render_mode blend_premul_alpha;` should be used.
161
+ * - In 2D, a {@link CanvasItemMaterial} will need to be created and configured to use the {@link CanvasItemMaterial.BLEND_MODE_PREMULT_ALPHA} blend mode on {@link CanvasItem}s that use this texture. In custom `canvas_item` shaders, `render_mode blend_premul_alpha;` should be used.
162
162
  * - In 3D, a {@link BaseMaterial3D} will need to be created and configured to use the {@link BaseMaterial3D.BLEND_MODE_PREMULT_ALPHA} blend mode on materials that use this texture. In custom `spatial` shaders, `render_mode blend_premul_alpha;` should be used.
163
163
  */
164
164
  'process/premult_alpha': boolean;
@@ -5,6 +5,7 @@
5
5
  declare class RichTextLabel extends Control {
6
6
  /**
7
7
  * If set to something other than {@link TextServer.AUTOWRAP_OFF}, the text gets wrapped inside the node's bounding rectangle.
8
+ * **Note:** RichTextLabels with autowrapping and {@link fit_content} enabled must have a custom maximum width configured to work correctly, either through the RichTextLabel's own {@link Control.custom_maximum_size} or as a result of a propagated maximum size from a parent Control with {@link Control.propagate_maximum_size} enabled.
8
9
  */
9
10
  autowrap_mode: int;
10
11
  /**
@@ -32,6 +33,7 @@ declare class RichTextLabel extends Control {
32
33
  drag_and_drop_selection_enabled: boolean;
33
34
  /**
34
35
  * If `true`, the label's minimum size will be automatically updated to fit its content, matching the behavior of {@link Label}.
36
+ * **Note:** RichTextLabels with autowrapping and {@link fit_content} enabled must have a custom maximum width configured to work correctly, either through the RichTextLabel's own {@link Control.custom_maximum_size} or as a result of a propagated maximum size from a parent Control with {@link Control.propagate_maximum_size} enabled.
35
37
  */
36
38
  fit_content: boolean;
37
39
  /**
@@ -175,11 +177,10 @@ declare class RichTextLabel extends Control {
175
177
  * If `width` and `height` are not set, but `region` is, the region's rect will be used.
176
178
  * `key` is an optional identifier, that can be used to modify the image via {@link update_image}.
177
179
  * If `pad` is set, and the image is smaller than the size specified by `width` and `height`, the image padding is added to match the size instead of upscaling.
178
- * If `width_in_percent` is set, `width` values are percentages of the control width instead of pixels.
179
- * If `height_in_percent` is set, `height` values are percentages of the control width instead of pixels.
180
+ * Parameters `width_unit` and `height_unit` determine the units used to calculate the image width and height, respectively.
180
181
  * `alt_text` is used as the image description for assistive apps.
181
182
  */
182
- add_image(image: Texture2D, width?: int, height?: int, color?: Color, inline_align?: int, region?: Rect2 | Rect2i, key?: unknown, pad?: boolean, tooltip?: string | NodePath, width_in_percent?: boolean, height_in_percent?: boolean, alt_text?: string | NodePath): void;
183
+ add_image(image: Texture2D, width?: float, height?: float, color?: Color, inline_align?: int, region?: Rect2 | Rect2i, key?: unknown, pad?: boolean, tooltip?: string | NodePath, width_unit?: int, height_unit?: int, alt_text?: string | NodePath): void;
183
184
  /** Adds raw non-BBCode-parsed text to the tag stack. */
184
185
  add_text(text: string | NodePath): void;
185
186
  /**
@@ -462,7 +463,7 @@ declare class RichTextLabel extends Control {
462
463
  /**
463
464
  * Updates the existing images with the key `key`. Only properties specified by `mask` bits are updated. See {@link add_image}.
464
465
  */
465
- update_image(key: unknown, mask: int, image: Texture2D, width?: int, height?: int, color?: Color, inline_align?: int, region?: Rect2 | Rect2i, pad?: boolean, tooltip?: string | NodePath, width_in_percent?: boolean, height_in_percent?: boolean): void;
466
+ update_image(key: unknown, mask: int, image: Texture2D, width?: float, height?: float, color?: Color, inline_align?: int, region?: Rect2 | Rect2i, pad?: boolean, tooltip?: string | NodePath, width_unit?: int, height_unit?: int): void;
466
467
 
467
468
  /**
468
469
  * Triggered when the document is fully loaded.
@@ -519,6 +520,13 @@ declare class RichTextLabel extends Control {
519
520
  static readonly UPDATE_PAD: int;
520
521
  /** If this bit is set, {@link update_image} changes image tooltip. */
521
522
  static readonly UPDATE_TOOLTIP: int;
522
- /** If this bit is set, {@link update_image} changes image width from/to percents. */
523
- static readonly UPDATE_WIDTH_IN_PERCENT: int;
523
+ /** If this bit is set, {@link update_image} changes the units used to calculate image size. */
524
+ static readonly UPDATE_WIDTH_UNIT: int;
525
+ // enum ImageUnit
526
+ /** Images drawn with this unit will be in pixels. */
527
+ static readonly IMAGE_UNIT_PIXEL: int;
528
+ /** Images drawn with this unit will be in percentages of the control width. */
529
+ static readonly IMAGE_UNIT_PERCENT: int;
530
+ /** Images drawn with this unit will be in percentages of the surrounding font size. */
531
+ static readonly IMAGE_UNIT_EM: int;
524
532
  }
@@ -44,6 +44,8 @@ declare class Script extends Resource {
44
44
  * **Note:** The dictionaries returned by this method are formatted identically to those returned by {@link Object.get_signal_list}.
45
45
  */
46
46
  get_script_signal_list(): Array<Dictionary>;
47
+ /** Returns `true` if the script, or a base class, defines a method with the given name. */
48
+ has_script_method(method_name: string): boolean;
47
49
  /** Returns `true` if the script, or a base class, defines a signal with the given name. */
48
50
  has_script_signal(signal_name: string): boolean;
49
51
  /**
@@ -8,6 +8,11 @@ declare class ScriptEditor extends PanelContainer {
8
8
  * **Note:** This should be called whenever the script is changed to keep the open documentation state up to date.
9
9
  */
10
10
  clear_docs_from_script(script: Script): void;
11
+ /**
12
+ * Closes the file at the given `path`, discarding any unsaved changes.
13
+ * Returns {@link OK} on success or {@link ERR_FILE_NOT_FOUND} if the file is not found.
14
+ */
15
+ close_file(path: string | NodePath): int;
11
16
  /** Returns array of breakpoints. */
12
17
  get_breakpoints(): PackedStringArray;
13
18
  /** Returns the {@link ScriptEditorBase} object that the user is currently editing. */
@@ -18,6 +23,8 @@ declare class ScriptEditor extends PanelContainer {
18
23
  get_open_script_editors(): Array<ScriptEditorBase>;
19
24
  /** Returns an array with all {@link Script} objects which are currently open in editor. */
20
25
  get_open_scripts(): Array<Script>;
26
+ /** Returns an array of file paths of scripts with unsaved changes open in the editor. */
27
+ get_unsaved_files(): PackedStringArray;
21
28
  /**
22
29
  * Opens help for the given topic. The `topic` is an encoded string that controls which class, method, constant, signal, annotation, property, or theme item should be focused.
23
30
  * The supported `topic` formats include `class_name:class`, `class_method:class:method`, `class_constant:class:constant`, `class_signal:class:signal`, `class_annotation:class:@annotation`, `class_property:class:property`, and `class_theme_item:class:item`, where `class` is the class name, `method` is the method name, `constant` is the constant name, `signal` is the signal name, `annotation` is the annotation name, `property` is the property name, and `item` is the theme item.
@@ -34,6 +41,12 @@ declare class ScriptEditor extends PanelContainer {
34
41
  * **Note:** Does not apply to scripts that are already opened.
35
42
  */
36
43
  register_syntax_highlighter(syntax_highlighter: EditorSyntaxHighlighter): void;
44
+ /**
45
+ * Reloads all currently opened files. This should be used when opened files are changed outside of the script editor. The user may be prompted to resolve file conflicts, see {@link EditorSettings.text_editor/behavior/files/auto_reload_scripts_on_external_change}.
46
+ */
47
+ reload_open_files(): void;
48
+ /** Saves all open scripts. */
49
+ save_all_scripts(): void;
37
50
  /**
38
51
  * Unregisters the {@link EditorSyntaxHighlighter} from the editor.
39
52
  * **Note:** The {@link EditorSyntaxHighlighter} will still be applied to scripts that are already opened.
@@ -55,7 +55,13 @@ declare class ScriptLanguageExtension extends ScriptLanguage {
55
55
  _profiling_start(): void;
56
56
  _profiling_stop(): void;
57
57
  _reload_all_scripts(): void;
58
+ /**
59
+ * Reloads all `scripts` from disk and the specifics of how that happens is {@link ScriptLanguageExtension} specific.
60
+ */
58
61
  _reload_scripts(scripts: Array<unknown> | PackedByteArray | PackedColorArray | PackedFloat32Array | PackedFloat64Array | PackedInt32Array | PackedInt64Array | PackedStringArray | PackedVector2Array | PackedVector3Array | PackedVector4Array, soft_reload: boolean): void;
62
+ /**
63
+ * Reloads the given `script` from disk and the specifics of how that happens is {@link ScriptLanguageExtension} specific.
64
+ */
59
65
  _reload_tool_script(script: Script, soft_reload: boolean): void;
60
66
  _remove_named_global_constant(name: string): void;
61
67
  _supports_builtin_mode(): boolean;
@@ -106,5 +112,6 @@ declare class ScriptLanguageExtension extends ScriptLanguage {
106
112
  static readonly CODE_COMPLETION_KIND_NODE_PATH: int;
107
113
  static readonly CODE_COMPLETION_KIND_FILE_PATH: int;
108
114
  static readonly CODE_COMPLETION_KIND_PLAIN_TEXT: int;
115
+ static readonly CODE_COMPLETION_KIND_KEYWORD: int;
109
116
  static readonly CODE_COMPLETION_KIND_MAX: int;
110
117
  }
@@ -14,8 +14,11 @@ declare class ScrollContainer extends Container {
14
14
  follow_focus: boolean;
15
15
  /** Controls whether horizontal scrollbar can be used and when it should be visible. */
16
16
  horizontal_scroll_mode: int;
17
- /** Deadzone for touch scrolling. Lower deadzone makes the scrolling more sensitive. */
18
- scroll_deadzone: int;
17
+ /**
18
+ * <member name="scroll_deadzone" type="int" setter="set_deadzone" getter="get_deadzone" default="0">
19
+ * Deadzone for touch scrolling. Lower deadzone makes the scrolling more sensitive.
20
+ */
21
+ propagate_maximum_size: boolean;
19
22
  /**
20
23
  * The way which scroll hints (indicators that show that the content can still be scrolled in a certain direction) will be shown.
21
24
  * **Note:** Hints won't be shown if the content can be scrolled both vertically and horizontally.
@@ -26,6 +29,11 @@ declare class ScrollContainer extends Container {
26
29
  * **Note:** If you are setting this value in the {@link Node._ready} function or earlier, it needs to be wrapped with {@link Object.set_deferred}, since scroll bar's {@link Range.max_value} is not initialized yet.
27
30
  */
28
31
  scroll_horizontal: int;
32
+ /**
33
+ * If `true`, the mouse wheel scrolls the view horizontally, and holding `Shift` scrolls vertically.
34
+ * If `false` (default), the mouse wheel scrolls the view vertically, and holding `Shift` scrolls horizontally.
35
+ */
36
+ scroll_horizontal_by_default: boolean;
29
37
  /**
30
38
  * Overrides the {@link ScrollBar.custom_step} used when clicking the internal scroll bar's horizontal increment and decrement buttons or when using arrow keys when the {@link ScrollBar} is focused.
31
39
  */
@@ -49,12 +57,12 @@ declare class ScrollContainer extends Container {
49
57
  is_following_focus(): boolean;
50
58
  set_horizontal_scroll_mode(value: int): void;
51
59
  get_horizontal_scroll_mode(): int;
52
- set_deadzone(value: int): void;
53
- get_deadzone(): int;
54
60
  set_scroll_hint_mode(value: int): void;
55
61
  get_scroll_hint_mode(): int;
56
62
  set_h_scroll(value: int): void;
57
63
  get_h_scroll(): int;
64
+ set_scroll_horizontal_by_default(value: boolean): void;
65
+ is_scroll_horizontal_by_default(): boolean;
58
66
  set_horizontal_custom_step(value: float): void;
59
67
  get_horizontal_custom_step(): float;
60
68
  set_v_scroll(value: int): void;
@@ -88,7 +96,7 @@ declare class ScrollContainer extends Container {
88
96
  */
89
97
  scroll_ended: Signal<[]>;
90
98
  /**
91
- * Emitted when scrolling starts when dragging the scrollable area w*ith a touch event*. This signal is *not* emitted when scrolling by dragging the scrollbar, scrolling with the mouse wheel or scrolling with keyboard/gamepad events.
99
+ * Emitted when scrolling starts when dragging the scrollable area *with a touch event*. This signal is *not* emitted when scrolling by dragging the scrollbar, scrolling with the mouse wheel or scrolling with keyboard/gamepad events.
92
100
  * **Note:** This signal is only emitted on Android or iOS, or on desktop/web platforms when {@link ProjectSettings.input_devices/pointing/emulate_touch_from_mouse} is enabled.
93
101
  */
94
102
  scroll_started: Signal<[]>;
@@ -108,6 +116,10 @@ declare class ScrollContainer extends Container {
108
116
  * Combines {@link SCROLL_MODE_AUTO} and {@link SCROLL_MODE_SHOW_ALWAYS}. The scrollbar is only visible if necessary, but the content size is adjusted as if it was always visible. It's useful for ensuring that content size stays the same regardless if the scrollbar is visible.
109
117
  */
110
118
  static readonly SCROLL_MODE_RESERVE: int;
119
+ /**
120
+ * Behaves like {@link SCROLL_MODE_AUTO}, but makes the {@link ScrollContainer} report a minimum size based on its content (limited by {@link Control.custom_maximum_size} when set on the corresponding axis). This allows it to grow first and only start scrolling once constrained.
121
+ */
122
+ static readonly SCROLL_MODE_MAXIMIZE_FIRST: int;
111
123
  // enum ScrollHintMode
112
124
  /** Scroll hints will never be shown. */
113
125
  static readonly SCROLL_HINT_MODE_DISABLED: int;
@@ -43,4 +43,6 @@ declare class Shader extends Resource {
43
43
  static readonly MODE_SKY: int;
44
44
  /** Mode used for setting the color and density of volumetric fog effect. */
45
45
  static readonly MODE_FOG: int;
46
+ /** Mode used for drawing to DrawableTexture resources via blit calls. */
47
+ static readonly MODE_TEXTURE_BLIT: int;
46
48
  }
@@ -6,6 +6,7 @@ declare class Shape3D extends Resource {
6
6
  /**
7
7
  * The shape's custom solver bias. Defines how much bodies react to enforce contact separation when this shape is involved.
8
8
  * When set to `0`, the default value from {@link ProjectSettings.physics/3d/solver/default_contact_bias} is used.
9
+ * **Note:** {@link custom_solver_bias} is only effective when using GodotPhysics3D. It has no effect when using Jolt Physics.
9
10
  */
10
11
  custom_solver_bias: float;
11
12
  /**
@@ -66,6 +66,10 @@ declare class SkeletonModification2DJiggle extends SkeletonModification2D {
66
66
  get_jiggle_joint_use_gravity(joint_idx: int): boolean;
67
67
  /** Returns whether the jiggle modifier is taking physics colliders into account when solving. */
68
68
  get_use_colliders(): boolean;
69
+ /**
70
+ * Resets the internal jiggle simulation state to the current bone positions, clearing velocity, acceleration, and accumulated forces.
71
+ */
72
+ reset(): void;
69
73
  /**
70
74
  * Sets the collision mask that the Jiggle modifier will use when reacting to colliders, if the Jiggle modifier is set to take colliders into account.
71
75
  */
@@ -21,6 +21,10 @@ declare class SplitContainer extends Container {
21
21
  * Shifts the drag area in the axis of the container to prevent the drag area from overlapping the {@link ScrollBar} or other selectable {@link Control} of a child node.
22
22
  */
23
23
  drag_area_offset: int;
24
+ /**
25
+ * Adds extra draggers at the intersection of the draggers of two SplitContainers to allow dragging both at once. This must be set to `true` for both SplitContainers, and one needs to be a descendant of the other. They also must be orthogonal (their {@link vertical} are different) and the descendant must be next to at least one of the ancestor's draggers (within ).
26
+ */
27
+ drag_nested_intersections: boolean;
24
28
  /**
25
29
  * Determines the dragger's visibility. This property does not determine whether dragging is enabled or not. Use {@link dragging_enabled} for that.
26
30
  */
@@ -54,6 +58,8 @@ declare class SplitContainer extends Container {
54
58
  get_drag_area_margin_end(): int;
55
59
  set_drag_area_offset(value: int): void;
56
60
  get_drag_area_offset(): int;
61
+ set_drag_nested_intersections(value: boolean): void;
62
+ is_dragging_nested_intersections(): boolean;
57
63
  set_dragger_visibility(value: int): void;
58
64
  get_dragger_visibility(): int;
59
65
  set_dragging_enabled(value: boolean): void;
@@ -221,7 +221,8 @@ declare class SpringBoneSimulator3D extends SkeletonModifier3D {
221
221
  set_joint_radius(index: int, joint: int, radius: float): void;
222
222
  /**
223
223
  * Sets the rotation axis at `joint` in the bone chain's joint list when {@link is_config_individual} is `true`.
224
- * The axes are based on the {@link Skeleton3D.get_bone_rest}'s space, if `axis` is {@link SkeletonModifier3D.ROTATION_AXIS_CUSTOM}, you can specify any axis.
224
+ * The axes are based on the reference pose's space, if `axis` is {@link SkeletonModifier3D.ROTATION_AXIS_CUSTOM}, you can specify any axis.
225
+ * In here, the reference pose is the bone pose immediately before the simulation.
225
226
  * **Note:** The rotation axis and the forward vector shouldn't be colinear to avoid unintended rotation since {@link SpringBoneSimulator3D} does not factor in twisting forces.
226
227
  */
227
228
  set_joint_rotation_axis(index: int, joint: int, axis: int): void;
@@ -248,7 +249,8 @@ declare class SpringBoneSimulator3D extends SkeletonModifier3D {
248
249
  set_root_bone_name(index: int, bone_name: string | NodePath): void;
249
250
  /**
250
251
  * Sets the rotation axis of the bone chain. If set to a specific axis, it acts like a hinge joint. The value is cached in each joint setting in the joint list.
251
- * The axes are based on the {@link Skeleton3D.get_bone_rest}'s space, if `axis` is {@link SkeletonModifier3D.ROTATION_AXIS_CUSTOM}, you can specify any axis.
252
+ * The axes are based on the reference pose's space, if `axis` is {@link SkeletonModifier3D.ROTATION_AXIS_CUSTOM}, you can specify any axis.
253
+ * In here, the reference pose is the bone pose immediately before the simulation.
252
254
  * **Note:** The rotation axis vector and the forward vector shouldn't be colinear to avoid unintended rotation since {@link SpringBoneSimulator3D} does not factor in twisting forces.
253
255
  */
254
256
  set_rotation_axis(index: int, axis: int): void;
@@ -17,10 +17,10 @@ declare class SpriteFrames extends Resource {
17
17
  * Duplicates the animation `anim_from` to a new animation named `anim_to`. Fails if `anim_to` already exists, or if `anim_from` does not exist.
18
18
  */
19
19
  duplicate_animation(anim_from: string, anim_to: string): void;
20
- /**
21
- * Returns `true` if the given animation is configured to loop when it finishes playing. Otherwise, returns `false`.
22
- */
20
+ /** Returns `true` if `get_animation_loop_mode(anim) == LOOP_LINEAR`. Otherwise, returns `false`. */
23
21
  get_animation_loop(anim: string): boolean;
22
+ /** Returns the loop mode for the `anim` animation. */
23
+ get_animation_loop_mode(anim: string): int;
24
24
  /**
25
25
  * Returns an array containing the names associated to each animation. Values are placed in alphabetical order.
26
26
  */
@@ -45,13 +45,29 @@ declare class SpriteFrames extends Resource {
45
45
  /** Changes the `anim` animation's name to `newname`. */
46
46
  rename_animation(anim: string, newname: string): void;
47
47
  /**
48
- * If `loop` is `true`, the `anim` animation will loop when it reaches the end, or the start if it is played in reverse.
48
+ * If `loop` is `false` equivalent to `set_animation_loop_mode(LOOP_NONE)`.
49
+ * If `loop` is `true` equivalent to `set_animation_loop_mode(LOOP_LINEAR)`.
49
50
  */
50
51
  set_animation_loop(anim: string, loop: boolean): void;
52
+ /** Sets the `loop_mode` for the `anim` animation. */
53
+ set_animation_loop_mode(anim: string, loop_mode: int): void;
51
54
  /** Sets the speed for the `anim` animation in frames per second. */
52
55
  set_animation_speed(anim: string, fps: float): void;
53
56
  /**
54
57
  * Sets the `texture` and the `duration` of the frame `idx` in the `anim` animation. `duration` specifies the relative duration, see {@link get_frame_duration} for details.
55
58
  */
56
59
  set_frame(anim: string, idx: int, texture: Texture2D, duration?: float): void;
60
+
61
+ // enum LoopMode
62
+ /** The animation plays once and stops when it reaches the end, or the start if played in reverse. */
63
+ static readonly LOOP_NONE: int;
64
+ /**
65
+ * The animation restarts from the beginning when it reaches the end, or from the end if played in reverse, repeating continuously.
66
+ */
67
+ static readonly LOOP_LINEAR: int;
68
+ /**
69
+ * The animation alternates direction each time it reaches the end or start, playing forward and then in reverse repeatedly.
70
+ * **Note:** Both {@link AnimatedSprite2D} and {@link AnimatedSprite3D} play the first/last frame for its duration only once at each end of the animation loop (instead of twice, once per forward/backward animation direction).
71
+ */
72
+ static readonly LOOP_PINGPONG: int;
57
73
  }
@@ -5,6 +5,6 @@ declare class StreamPeerExtension extends StreamPeer {
5
5
  _get_available_bytes(): int;
6
6
  _get_data(r_buffer: int, r_bytes: int, r_received: int): int;
7
7
  _get_partial_data(r_buffer: int, r_bytes: int, r_received: int): int;
8
- _put_data(p_data: int, p_bytes: int, r_sent: int): int;
9
- _put_partial_data(p_data: int, p_bytes: int, r_sent: int): int;
8
+ _put_data(data: int, bytes: int, r_sent: int): int;
9
+ _put_partial_data(data: int, bytes: int, r_sent: int): int;
10
10
  }
@@ -19,7 +19,7 @@ declare interface String {
19
19
  */
20
20
  c_unescape(): string;
21
21
  /**
22
- * Changes the appearance of the string: replaces underscores (`_`) with spaces, adds spaces before uppercase letters in the middle of a word, converts all letters to lowercase, then converts the first one and each one following a space to uppercase.
22
+ * Returns a copy of the string with changed appearance. Replaces underscores (`_`) and hyphens (`-`) with spaces, adds spaces before uppercase letters in the middle of a word, converts all letters to lowercase, then converts the first one and each one following a space to uppercase.
23
23
  */
24
24
  capitalize(): string;
25
25
  /**
@@ -21,6 +21,8 @@ declare class SubViewport extends Viewport {
21
21
  size_2d_override: Vector2i;
22
22
  /** If `true`, the 2D size override affects stretch as well. */
23
23
  size_2d_override_stretch: boolean;
24
+ /** The number of view layers we are rendering to. Set this to `2` to enable stereo rendering. */
25
+ view_count: int;
24
26
  set_clear_mode(value: int): void;
25
27
  get_clear_mode(): int;
26
28
  set_update_mode(value: int): void;
@@ -31,6 +33,8 @@ declare class SubViewport extends Viewport {
31
33
  get_size_2d_override(): Vector2i;
32
34
  set_size_2d_override_stretch(value: boolean): void;
33
35
  is_size_2d_override_stretch_enabled(): boolean;
36
+ set_view_count(value: int): void;
37
+ get_view_count(): int;
34
38
 
35
39
  // enum ClearMode
36
40
  /** Always clear the render target before drawing. */
@@ -40,6 +40,26 @@ declare class TabBar extends Control {
40
40
  tab_close_display_policy: int;
41
41
  /** The number of tabs currently in the bar. */
42
42
  tab_count: int;
43
+ /**
44
+ * If `true`, the tab at `index` is disabled.
45
+ * **Note:** `index` is a value in the `0 .. tab_count - 1` range.
46
+ */
47
+ 'tab_{index}/disabled': boolean;
48
+ /**
49
+ * If `true`, the tab at `index` is hidden.
50
+ * **Note:** `index` is a value in the `0 .. tab_count - 1` range.
51
+ */
52
+ 'tab_{index}/icon': Texture2D | null;
53
+ /**
54
+ * The title text of the tab at `index`.
55
+ * **Note:** `index` is a value in the `0 .. tab_count - 1` range.
56
+ */
57
+ 'tab_{index}/title': string;
58
+ /**
59
+ * The tooltip text of the tab at `index`.
60
+ * **Note:** `index` is a value in the `0 .. tab_count - 1` range.
61
+ */
62
+ 'tab_{index}/tooltip': string;
43
63
  /**
44
64
  * {@link TabBar}s with the same rearrange group ID will allow dragging the tabs between them. Enable drag with {@link drag_to_rearrange_enabled}.
45
65
  * Setting this to `-1` will disable rearranging between {@link TabBar}s.
@@ -3,9 +3,7 @@
3
3
 
4
4
  /** A container that creates a tab for each child control, displaying only the active tab's control. */
5
5
  declare class TabContainer extends Container {
6
- /**
7
- * If `true`, all tabs are drawn in front of the panel. If `false`, inactive tabs are drawn behind the panel.
8
- */
6
+ /** This doesn't do anything. */
9
7
  all_tabs_in_front: boolean;
10
8
  /**
11
9
  * If `true`, tabs overflowing this node's width will be hidden, displaying two navigation buttons instead. Otherwise, this node's minimum size is updated so that all tabs are visible.
@@ -31,6 +29,26 @@ declare class TabContainer extends Container {
31
29
  tab_alignment: int;
32
30
  /** The focus access mode for the internal {@link TabBar} node. */
33
31
  tab_focus_mode: int;
32
+ /**
33
+ * If `true`, the tab at `index` is disabled.
34
+ * **Note:** `index` is a value in the `0 .. get_tab_count() - 1` range.
35
+ */
36
+ 'tab_{index}/disabled': boolean;
37
+ /**
38
+ * If `true`, the tab at `index` is hidden.
39
+ * **Note:** `index` is a value in the `0 .. get_tab_count() - 1` range.
40
+ */
41
+ 'tab_{index}/hidden': boolean;
42
+ /**
43
+ * The title text of the tab at `index`.
44
+ * **Note:** `index` is a value in the `0 .. get_tab_count() - 1` range.
45
+ */
46
+ 'tab_{index}/icon': Texture2D | null;
47
+ /**
48
+ * The tooltip text of the tab at `index`.
49
+ * **Note:** `index` is a value in the `0 .. get_tab_count() - 1` range.
50
+ */
51
+ 'tab_{index}/title': string;
34
52
  /** The horizontal alignment of the tabs. */
35
53
  tabs_position: int;
36
54
  /**
@@ -85,11 +85,11 @@ declare class TextEdit extends Control {
85
85
  */
86
86
  mouse_default_cursor_shape: int;
87
87
  /**
88
- * If `true`, {@link TextEdit} will disable vertical scroll and fit minimum height to the number of visible lines. When both this property and {@link scroll_fit_content_width} are `true`, no scrollbars will be displayed.
88
+ * If `true`, {@link TextEdit} fits its minimum height to the number of visible lines instead of scrolling vertically. If a maximum height is set (for example via {@link Control.custom_maximum_size}) and content exceeds it, a vertical scrollbar is shown.
89
89
  */
90
90
  scroll_fit_content_height: boolean;
91
91
  /**
92
- * If `true`, {@link TextEdit} will disable horizontal scroll and fit minimum width to the widest line in the text. When both this property and {@link scroll_fit_content_height} are `true`, no scrollbars will be displayed.
92
+ * If `true`, {@link TextEdit} fits its minimum width to the widest line instead of scrolling horizontally. If a maximum width is set (for example via {@link Control.custom_maximum_size}) and content exceeds it, a horizontal scrollbar is shown.
93
93
  */
94
94
  scroll_fit_content_width: boolean;
95
95
  /** If there is a horizontal scrollbar, this determines the current horizontal scroll value in pixels. */
@@ -538,6 +538,7 @@ declare class TextEdit extends Control {
538
538
  /**
539
539
  * Returns `true` if the caret is visible, `false` otherwise. A caret will be considered hidden if it is outside the scrollable area when scrolling is enabled.
540
540
  * **Note:** {@link is_caret_visible} does not account for a caret being off-screen if it is still within the scrollable area. It will return `true` even if the caret is off-screen as long as it meets {@link TextEdit}'s own conditions for being visible. This includes uses of {@link scroll_fit_content_width} and {@link scroll_fit_content_height} that cause the {@link TextEdit} to expand beyond the viewport's bounds.
541
+ * **Note:** This method does *not* guarantee an accurate visibility check immediately after setting the caret position. The correct value may only be available in the next frame after the {@link TextEdit} has finished drawing. This also applies to any operation that causes the {@link TextEdit} to change in size.
541
542
  */
542
543
  is_caret_visible(caret_index?: int): boolean;
543
544
  /** Returns `true` if the user is dragging their mouse for scrolling, selecting, or text dragging. */
@@ -558,6 +559,8 @@ declare class TextEdit extends Control {
558
559
  * Returns `true` if the gutter at the given index on the given line is clickable. See {@link set_line_gutter_clickable}.
559
560
  */
560
561
  is_line_gutter_clickable(line: int, gutter: int): boolean;
562
+ /** Returns `true` if the given line is within the scope of the scrollable area of the viewport. */
563
+ is_line_in_viewport(line: int): boolean;
561
564
  /** Returns if the given line is wrapped. */
562
565
  is_line_wrapped(line: int): boolean;
563
566
  /**
@@ -148,6 +148,20 @@ declare class TextServer extends RefCounted {
148
148
  * Returns oversampling factor override. If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See {@link Viewport.oversampling}. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
149
149
  */
150
150
  font_get_oversampling(font_rid: RID): float;
151
+ /**
152
+ * Returns the array in the predefined color palette at `index`. Palette contains all colors used to render font glyphs. Each palette has the same number of colors. Colors can be overridden using {@link font_set_palette_custom_colors}.
153
+ */
154
+ font_get_palette_colors(font_rid: RID, index: int): PackedColorArray;
155
+ /**
156
+ * Returns the number of predefined color palettes. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.
157
+ */
158
+ font_get_palette_count(font_rid: RID): int;
159
+ /** Returns array of custom colors to override predefined palette. */
160
+ font_get_palette_custom_colors(font_rid: RID): PackedColorArray;
161
+ /**
162
+ * Returns the name of the predefined color palette at `index`. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.
163
+ */
164
+ font_get_palette_name(font_rid: RID, index: int): string;
151
165
  /** Returns scaling factor of the color bitmap font. */
152
166
  font_get_scale(font_rid: RID, size: int): float;
153
167
  /** Returns `true` if support override is enabled for the `script`. */
@@ -190,6 +204,8 @@ declare class TextServer extends RefCounted {
190
204
  font_get_underline_position(font_rid: RID, size: int): float;
191
205
  /** Returns thickness of the underline in pixels. */
192
206
  font_get_underline_thickness(font_rid: RID, size: int): float;
207
+ /** Returns used palette index. */
208
+ font_get_used_palette(font_rid: RID): int;
193
209
  /**
194
210
  * Returns variation coordinates for the specified font cache entry. See {@link font_supported_variation_list} for more info.
195
211
  */
@@ -302,7 +318,7 @@ declare class TextServer extends RefCounted {
302
318
  /**
303
319
  * If set to `true`, color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
304
320
  */
305
- font_set_modulate_color_glyphs(font_rid: RID, force_autohinter: boolean): void;
321
+ font_set_modulate_color_glyphs(font_rid: RID, modulate: boolean): void;
306
322
  /**
307
323
  * Sets the width of the range around the shape between the minimum and maximum representable signed distance.
308
324
  */
@@ -322,6 +338,10 @@ declare class TextServer extends RefCounted {
322
338
  * If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See {@link Viewport.oversampling}. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
323
339
  */
324
340
  font_set_oversampling(font_rid: RID, oversampling: float): void;
341
+ /**
342
+ * Sets array of custom colors to override predefined palette. Set to empty array to reset overrides. Use `Color(0, 0, 0, 0)`, to keep predefined palette color at specific position.
343
+ */
344
+ font_set_palette_custom_colors(font_rid: RID, colors: PackedColorArray | Array<unknown>): void;
325
345
  /** Sets scaling factor of the color bitmap font. */
326
346
  font_set_scale(font_rid: RID, size: int, scale: float): void;
327
347
  /** Adds override for {@link font_is_script_supported}. */
@@ -355,6 +375,8 @@ declare class TextServer extends RefCounted {
355
375
  font_set_underline_position(font_rid: RID, size: int, underline_position: float): void;
356
376
  /** Sets thickness of the underline in pixels. */
357
377
  font_set_underline_thickness(font_rid: RID, size: int, underline_thickness: float): void;
378
+ /** Sets used palette index. */
379
+ font_set_used_palette(font_rid: RID, index: int): void;
358
380
  /**
359
381
  * Sets variation coordinates for the specified font cache entry. See {@link font_supported_variation_list} for more info.
360
382
  */
@@ -451,6 +473,8 @@ declare class TextServer extends RefCounted {
451
473
  shaped_get_run_font_rid(shaped: RID, index: int): RID;
452
474
  /** Returns the font size of the `index` text run (in visual order). */
453
475
  shaped_get_run_font_size(shaped: RID, index: int): int;
476
+ /** Returns the glyph range of the `index` text run (in visual order). */
477
+ shaped_get_run_glyph_range(shaped: RID, index: int): Vector2i;
454
478
  /** Returns the language of the `index` text run (in visual order). */
455
479
  shaped_get_run_language(shaped: RID, index: int): string;
456
480
  /** Returns the embedded object of the `index` text run (in visual order). */