typescript-to-gdscript 0.1.0 → 0.1.2

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 (280) hide show
  1. package/README.md +232 -104
  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/common/index.d.ts +17 -1
  6. package/dist/converter/common/index.d.ts.map +1 -1
  7. package/dist/converter/common/index.js +69 -19
  8. package/dist/converter/common/index.js.map +1 -1
  9. package/dist/converter/ts-to-gd/access-rewrite.d.ts +40 -0
  10. package/dist/converter/ts-to-gd/access-rewrite.d.ts.map +1 -0
  11. package/dist/converter/ts-to-gd/access-rewrite.js +124 -0
  12. package/dist/converter/ts-to-gd/access-rewrite.js.map +1 -0
  13. package/dist/converter/ts-to-gd/class-members.d.ts.map +1 -1
  14. package/dist/converter/ts-to-gd/class-members.js +5 -5
  15. package/dist/converter/ts-to-gd/class-members.js.map +1 -1
  16. package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
  17. package/dist/converter/ts-to-gd/expressions.js +32 -8
  18. package/dist/converter/ts-to-gd/expressions.js.map +1 -1
  19. package/dist/converter/ts-to-gd/file-scope.d.ts.map +1 -1
  20. package/dist/converter/ts-to-gd/file-scope.js +1 -1
  21. package/dist/converter/ts-to-gd/file-scope.js.map +1 -1
  22. package/dist/converter/ts-to-gd/gd-getset.js +2 -2
  23. package/dist/converter/ts-to-gd/gd-getset.js.map +1 -1
  24. package/dist/converter/ts-to-gd/index.d.ts.map +1 -1
  25. package/dist/converter/ts-to-gd/index.js +1 -0
  26. package/dist/converter/ts-to-gd/index.js.map +1 -1
  27. package/dist/converter/ts-to-gd/parameters.d.ts.map +1 -1
  28. package/dist/converter/ts-to-gd/parameters.js +2 -2
  29. package/dist/converter/ts-to-gd/parameters.js.map +1 -1
  30. package/dist/converter/ts-to-gd/statements.d.ts.map +1 -1
  31. package/dist/converter/ts-to-gd/statements.js +1 -1
  32. package/dist/converter/ts-to-gd/statements.js.map +1 -1
  33. package/dist/typings/override-system.d.ts.map +1 -1
  34. package/dist/typings/override-system.js +6 -0
  35. package/dist/typings/override-system.js.map +1 -1
  36. package/dist/watcher/check.d.ts +87 -0
  37. package/dist/watcher/check.d.ts.map +1 -0
  38. package/dist/watcher/check.js +209 -0
  39. package/dist/watcher/check.js.map +1 -0
  40. package/dist/watcher/heal.d.ts +66 -0
  41. package/dist/watcher/heal.d.ts.map +1 -0
  42. package/dist/watcher/heal.js +132 -0
  43. package/dist/watcher/heal.js.map +1 -0
  44. package/dist/watcher/index.d.ts +1 -0
  45. package/dist/watcher/index.d.ts.map +1 -1
  46. package/dist/watcher/index.js +48 -52
  47. package/dist/watcher/index.js.map +1 -1
  48. package/package.json +6 -1
  49. package/typings/classes/AccessibilityServer.d.ts +1 -1
  50. package/typings/classes/AnimationLibrary.d.ts +4 -4
  51. package/typings/classes/AnimationNodeBlendSpace1D.d.ts +28 -2
  52. package/typings/classes/AnimationNodeBlendSpace2D.d.ts +28 -2
  53. package/typings/classes/AreaLight3D.d.ts +37 -0
  54. package/typings/classes/AudioEffectInstance.d.ts +1 -1
  55. package/typings/classes/AudioStreamRandomizer.d.ts +10 -0
  56. package/typings/classes/Basis.d.ts +2 -2
  57. package/typings/classes/CPUParticles2D.d.ts +2 -2
  58. package/typings/classes/CPUParticles3D.d.ts +2 -2
  59. package/typings/classes/CanvasItem.d.ts +15 -0
  60. package/typings/classes/CodeEdit.d.ts +2 -0
  61. package/typings/classes/CollisionObject2D.d.ts +2 -2
  62. package/typings/classes/Container.d.ts +1 -0
  63. package/typings/classes/Control.d.ts +68 -9
  64. package/typings/classes/Curve.d.ts +26 -1
  65. package/typings/classes/Curve2D.d.ts +15 -0
  66. package/typings/classes/Curve3D.d.ts +20 -0
  67. package/typings/classes/DirAccess.d.ts +6 -1
  68. package/typings/classes/DisplayServer.d.ts +35 -10
  69. package/typings/classes/DrawableTexture2D.d.ts +0 -4
  70. package/typings/classes/EditorCommandPalette.d.ts +0 -2
  71. package/typings/classes/EditorContextMenuPlugin.d.ts +4 -0
  72. package/typings/classes/EditorDock.d.ts +2 -3
  73. package/typings/classes/EditorExportPlatform.d.ts +4 -2
  74. package/typings/classes/EditorExportPlugin.d.ts +2 -0
  75. package/typings/classes/EditorFeatureProfile.d.ts +1 -1
  76. package/typings/classes/EditorInspector.d.ts +10 -0
  77. package/typings/classes/EditorInterface.d.ts +2 -2
  78. package/typings/classes/EditorNode3DGizmoPlugin.d.ts +4 -0
  79. package/typings/classes/EditorPlugin.d.ts +4 -4
  80. package/typings/classes/EditorResourcePicker.d.ts +2 -1
  81. package/typings/classes/EditorSceneFormatImporter.d.ts +23 -0
  82. package/typings/classes/EditorSettings.d.ts +44 -7
  83. package/typings/classes/EditorTranslationParserPlugin.d.ts +4 -0
  84. package/typings/classes/EditorVCSInterface.d.ts +6 -2
  85. package/typings/classes/FileDialog.d.ts +15 -0
  86. package/typings/classes/Font.d.ts +13 -1
  87. package/typings/classes/FontVariation.d.ts +10 -0
  88. package/typings/classes/GDScript.d.ts +8 -0
  89. package/typings/classes/GDScriptLanguageProtocol.d.ts +25 -0
  90. package/typings/classes/GDScriptSyntaxHighlighter.d.ts +6 -0
  91. package/typings/classes/GDScriptTextDocument.d.ts +27 -0
  92. package/typings/classes/GDScriptWorkspace.d.ts +17 -0
  93. package/typings/classes/GPUParticles2D.d.ts +2 -2
  94. package/typings/classes/GPUParticles3D.d.ts +15 -2
  95. package/typings/classes/Geometry2D.d.ts +2 -2
  96. package/typings/classes/Image.d.ts +6 -4
  97. package/typings/classes/ImageFormatLoader.d.ts +5 -0
  98. package/typings/classes/Input.d.ts +11 -2
  99. package/typings/classes/InputEventMouseMotion.d.ts +2 -2
  100. package/typings/classes/ItemList.d.ts +20 -0
  101. package/typings/classes/IterateIK3D.d.ts +6 -3
  102. package/typings/classes/JavaClassWrapper.d.ts +13 -0
  103. package/typings/classes/JavaScriptBridge.d.ts +1 -1
  104. package/typings/classes/Label.d.ts +1 -0
  105. package/typings/classes/LabelSettings.d.ts +25 -0
  106. package/typings/classes/Light3D.d.ts +1 -1
  107. package/typings/classes/Logger.d.ts +1 -1
  108. package/typings/classes/LookAtModifier3D.d.ts +1 -1
  109. package/typings/classes/MenuButton.d.ts +35 -0
  110. package/typings/classes/MeshLibrary.d.ts +2 -0
  111. package/typings/classes/MovieWriter.d.ts +2 -0
  112. package/typings/classes/MultiplayerPeerExtension.d.ts +9 -9
  113. package/typings/classes/Node.d.ts +6 -0
  114. package/typings/classes/Node3D.d.ts +6 -4
  115. package/typings/classes/OS.d.ts +1 -1
  116. package/typings/classes/Object.d.ts +11 -8
  117. package/typings/classes/OptimizedTranslation.d.ts +2 -2
  118. package/typings/classes/OptionButton.d.ts +51 -7
  119. package/typings/classes/PacketPeerExtension.d.ts +1 -1
  120. package/typings/classes/ParticleProcessMaterial.d.ts +58 -0
  121. package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +6 -6
  122. package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +6 -6
  123. package/typings/classes/PhysicsServer2DExtension.d.ts +5 -5
  124. package/typings/classes/PhysicsServer3DExtension.d.ts +1 -1
  125. package/typings/classes/PopupMenu.d.ts +58 -6
  126. package/typings/classes/ProjectSettings.d.ts +89 -21
  127. package/typings/classes/Quaternion.d.ts +2 -2
  128. package/typings/classes/RDAccelerationStructureGeometry.d.ts +42 -0
  129. package/typings/classes/RDAccelerationStructureInstance.d.ts +34 -0
  130. package/typings/classes/RDHitGroup.d.ts +20 -0
  131. package/typings/classes/RDPipelineShader.d.ts +14 -0
  132. package/typings/classes/RandomNumberGenerator.d.ts +4 -2
  133. package/typings/classes/RenderSceneBuffersConfiguration.d.ts +4 -1
  134. package/typings/classes/RenderingDevice.d.ts +93 -23
  135. package/typings/classes/RenderingServer.d.ts +51 -3
  136. package/typings/classes/Resource.d.ts +2 -0
  137. package/typings/classes/ResourceImporterOBJ.d.ts +1 -1
  138. package/typings/classes/ResourceImporterScene.d.ts +11 -3
  139. package/typings/classes/RichTextLabel.d.ts +14 -6
  140. package/typings/classes/SceneTree.d.ts +29 -5
  141. package/typings/classes/Script.d.ts +2 -0
  142. package/typings/classes/ScriptEditor.d.ts +7 -0
  143. package/typings/classes/ScriptLanguageExtension.d.ts +7 -0
  144. package/typings/classes/ScrollContainer.d.ts +17 -5
  145. package/typings/classes/SkeletonModification2DJiggle.d.ts +4 -0
  146. package/typings/classes/SpringBoneSimulator3D.d.ts +4 -2
  147. package/typings/classes/SpriteFrames.d.ts +20 -4
  148. package/typings/classes/StreamPeerExtension.d.ts +2 -2
  149. package/typings/classes/TabBar.d.ts +20 -0
  150. package/typings/classes/TabContainer.d.ts +21 -3
  151. package/typings/classes/TextEdit.d.ts +2 -2
  152. package/typings/classes/TextServer.d.ts +23 -1
  153. package/typings/classes/TextServerExtension.d.ts +23 -1
  154. package/typings/classes/TileSet.d.ts +3 -1
  155. package/typings/classes/Tree.d.ts +16 -7
  156. package/typings/classes/TreeItem.d.ts +9 -2
  157. package/typings/classes/UndoRedo.d.ts +2 -2
  158. package/typings/classes/Vector2.d.ts +4 -2
  159. package/typings/classes/Vector2i.d.ts +4 -2
  160. package/typings/classes/Vector3.d.ts +4 -2
  161. package/typings/classes/Vector3i.d.ts +4 -2
  162. package/typings/classes/Vector4.d.ts +4 -2
  163. package/typings/classes/Vector4i.d.ts +4 -2
  164. package/typings/classes/Viewport.d.ts +17 -1
  165. package/typings/classes/Window.d.ts +20 -6
  166. package/typings/classes/_globals.d.ts +104 -26
  167. package/typings/classes/index.d.ts +10 -112
  168. package/typings/godot-class-registry.json +885 -3604
  169. package/typings/classes/VisualShader.d.ts +0 -112
  170. package/typings/classes/VisualShaderNode.d.ts +0 -63
  171. package/typings/classes/VisualShaderNodeBillboard.d.ts +0 -28
  172. package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +0 -10
  173. package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +0 -14
  174. package/typings/classes/VisualShaderNodeClamp.d.ts +0 -26
  175. package/typings/classes/VisualShaderNodeColorConstant.d.ts +0 -10
  176. package/typings/classes/VisualShaderNodeColorFunc.d.ts +0 -32
  177. package/typings/classes/VisualShaderNodeColorOp.d.ts +0 -32
  178. package/typings/classes/VisualShaderNodeColorParameter.d.ts +0 -14
  179. package/typings/classes/VisualShaderNodeComment.d.ts +0 -12
  180. package/typings/classes/VisualShaderNodeCompare.d.ts +0 -68
  181. package/typings/classes/VisualShaderNodeConstant.d.ts +0 -6
  182. package/typings/classes/VisualShaderNodeCubemap.d.ts +0 -43
  183. package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +0 -6
  184. package/typings/classes/VisualShaderNodeCurveTexture.d.ts +0 -10
  185. package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +0 -10
  186. package/typings/classes/VisualShaderNodeCustom.d.ts +0 -122
  187. package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +0 -56
  188. package/typings/classes/VisualShaderNodeDeterminant.d.ts +0 -6
  189. package/typings/classes/VisualShaderNodeDistanceFade.d.ts +0 -6
  190. package/typings/classes/VisualShaderNodeDotProduct.d.ts +0 -6
  191. package/typings/classes/VisualShaderNodeExpression.d.ts +0 -12
  192. package/typings/classes/VisualShaderNodeFaceForward.d.ts +0 -8
  193. package/typings/classes/VisualShaderNodeFloatConstant.d.ts +0 -10
  194. package/typings/classes/VisualShaderNodeFloatFunc.d.ts +0 -108
  195. package/typings/classes/VisualShaderNodeFloatOp.d.ts +0 -36
  196. package/typings/classes/VisualShaderNodeFloatParameter.d.ts +0 -52
  197. package/typings/classes/VisualShaderNodeFrame.d.ts +0 -35
  198. package/typings/classes/VisualShaderNodeFresnel.d.ts +0 -6
  199. package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +0 -6
  200. package/typings/classes/VisualShaderNodeGroupBase.d.ts +0 -60
  201. package/typings/classes/VisualShaderNodeIf.d.ts +0 -8
  202. package/typings/classes/VisualShaderNodeInput.d.ts +0 -20
  203. package/typings/classes/VisualShaderNodeIntConstant.d.ts +0 -10
  204. package/typings/classes/VisualShaderNodeIntFunc.d.ts +0 -24
  205. package/typings/classes/VisualShaderNodeIntOp.d.ts +0 -48
  206. package/typings/classes/VisualShaderNodeIntParameter.d.ts +0 -58
  207. package/typings/classes/VisualShaderNodeIs.d.ts +0 -18
  208. package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +0 -6
  209. package/typings/classes/VisualShaderNodeMix.d.ts +0 -28
  210. package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +0 -22
  211. package/typings/classes/VisualShaderNodeOuterProduct.d.ts +0 -6
  212. package/typings/classes/VisualShaderNodeOutput.d.ts +0 -6
  213. package/typings/classes/VisualShaderNodeParameter.d.ts +0 -32
  214. package/typings/classes/VisualShaderNodeParameterRef.d.ts +0 -10
  215. package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +0 -20
  216. package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +0 -6
  217. package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +0 -6
  218. package/typings/classes/VisualShaderNodeParticleEmit.d.ts +0 -22
  219. package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +0 -12
  220. package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +0 -20
  221. package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +0 -10
  222. package/typings/classes/VisualShaderNodeParticleOutput.d.ts +0 -6
  223. package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +0 -22
  224. package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +0 -6
  225. package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +0 -6
  226. package/typings/classes/VisualShaderNodeProximityFade.d.ts +0 -6
  227. package/typings/classes/VisualShaderNodeRandomRange.d.ts +0 -6
  228. package/typings/classes/VisualShaderNodeRemap.d.ts +0 -33
  229. package/typings/classes/VisualShaderNodeReroute.d.ts +0 -8
  230. package/typings/classes/VisualShaderNodeResizableBase.d.ts +0 -10
  231. package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +0 -6
  232. package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +0 -6
  233. package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +0 -8
  234. package/typings/classes/VisualShaderNodeSample3D.d.ts +0 -18
  235. package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +0 -6
  236. package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +0 -8
  237. package/typings/classes/VisualShaderNodeSmoothStep.d.ts +0 -28
  238. package/typings/classes/VisualShaderNodeStep.d.ts +0 -28
  239. package/typings/classes/VisualShaderNodeSwitch.d.ts +0 -30
  240. package/typings/classes/VisualShaderNodeTexture.d.ts +0 -57
  241. package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +0 -12
  242. package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +0 -6
  243. package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +0 -6
  244. package/typings/classes/VisualShaderNodeTexture3D.d.ts +0 -12
  245. package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +0 -6
  246. package/typings/classes/VisualShaderNodeTextureParameter.d.ts +0 -104
  247. package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +0 -6
  248. package/typings/classes/VisualShaderNodeTextureSDF.d.ts +0 -6
  249. package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +0 -6
  250. package/typings/classes/VisualShaderNodeTransformCompose.d.ts +0 -6
  251. package/typings/classes/VisualShaderNodeTransformConstant.d.ts +0 -10
  252. package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +0 -6
  253. package/typings/classes/VisualShaderNodeTransformFunc.d.ts +0 -18
  254. package/typings/classes/VisualShaderNodeTransformOp.d.ts +0 -32
  255. package/typings/classes/VisualShaderNodeTransformParameter.d.ts +0 -14
  256. package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +0 -22
  257. package/typings/classes/VisualShaderNodeUIntConstant.d.ts +0 -10
  258. package/typings/classes/VisualShaderNodeUIntFunc.d.ts +0 -20
  259. package/typings/classes/VisualShaderNodeUIntOp.d.ts +0 -48
  260. package/typings/classes/VisualShaderNodeUIntParameter.d.ts +0 -16
  261. package/typings/classes/VisualShaderNodeUVFunc.d.ts +0 -22
  262. package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +0 -6
  263. package/typings/classes/VisualShaderNodeVarying.d.ts +0 -14
  264. package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +0 -6
  265. package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +0 -6
  266. package/typings/classes/VisualShaderNodeVec2Constant.d.ts +0 -10
  267. package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +0 -14
  268. package/typings/classes/VisualShaderNodeVec3Constant.d.ts +0 -10
  269. package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +0 -14
  270. package/typings/classes/VisualShaderNodeVec4Constant.d.ts +0 -10
  271. package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +0 -14
  272. package/typings/classes/VisualShaderNodeVectorBase.d.ts +0 -20
  273. package/typings/classes/VisualShaderNodeVectorCompose.d.ts +0 -8
  274. package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +0 -8
  275. package/typings/classes/VisualShaderNodeVectorDistance.d.ts +0 -6
  276. package/typings/classes/VisualShaderNodeVectorFunc.d.ts +0 -84
  277. package/typings/classes/VisualShaderNodeVectorLen.d.ts +0 -6
  278. package/typings/classes/VisualShaderNodeVectorOp.d.ts +0 -42
  279. package/typings/classes/VisualShaderNodeVectorRefract.d.ts +0 -8
  280. package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +0 -8
@@ -1,56 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Calculates a derivative within the visual shader graph. */
5
- declare class VisualShaderNodeDerivativeFunc extends VisualShaderNode {
6
- /** A derivative function type. */
7
- function: int;
8
- /** A type of operands and returned value. */
9
- op_type: int;
10
- /**
11
- * Sets the level of precision to use for the derivative function. When using the Compatibility renderer, this setting has no effect.
12
- */
13
- precision: int;
14
- set_function(value: int): void;
15
- get_function(): int;
16
- set_op_type(value: int): void;
17
- get_op_type(): int;
18
- set_precision(value: int): void;
19
- get_precision(): int;
20
-
21
- // enum OpType
22
- /** A floating-point scalar. */
23
- static readonly OP_TYPE_SCALAR: int;
24
- /** A 2D vector type. */
25
- static readonly OP_TYPE_VECTOR_2D: int;
26
- /** A 3D vector type. */
27
- static readonly OP_TYPE_VECTOR_3D: int;
28
- /** A 4D vector type. */
29
- static readonly OP_TYPE_VECTOR_4D: int;
30
- /** Represents the size of the {@link OpType} enum. */
31
- static readonly OP_TYPE_MAX: int;
32
- // enum Function
33
- /** Sum of absolute derivative in `x` and `y`. */
34
- static readonly FUNC_SUM: int;
35
- /** Derivative in `x` using local differencing. */
36
- static readonly FUNC_X: int;
37
- /** Derivative in `y` using local differencing. */
38
- static readonly FUNC_Y: int;
39
- /** Represents the size of the {@link Function} enum. */
40
- static readonly FUNC_MAX: int;
41
- // enum Precision
42
- /**
43
- * No precision is specified, the GPU driver is allowed to use whatever level of precision it chooses. This is the default option and is equivalent to using `dFdx()` or `dFdy()` in text shaders.
44
- */
45
- static readonly PRECISION_NONE: int;
46
- /**
47
- * The derivative will be calculated using the current fragment's neighbors (which may not include the current fragment). This tends to be faster than using {@link PRECISION_FINE}, but may not be suitable when more precision is needed. This is equivalent to using `dFdxCoarse()` or `dFdyCoarse()` in text shaders.
48
- */
49
- static readonly PRECISION_COARSE: int;
50
- /**
51
- * The derivative will be calculated using the current fragment and its immediate neighbors. This tends to be slower than using {@link PRECISION_COARSE}, but may be necessary when more precision is needed. This is equivalent to using `dFdxFine()` or `dFdyFine()` in text shaders.
52
- */
53
- static readonly PRECISION_FINE: int;
54
- /** Represents the size of the {@link Precision} enum. */
55
- static readonly PRECISION_MAX: int;
56
- }
@@ -1,6 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Calculates the determinant of a {@link Transform3D} within the visual shader graph. */
5
- declare class VisualShaderNodeDeterminant extends VisualShaderNode {
6
- }
@@ -1,6 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A visual shader node representing distance fade effect. */
5
- declare class VisualShaderNodeDistanceFade extends VisualShaderNode {
6
- }
@@ -1,6 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Calculates a dot product of two vectors within the visual shader graph. */
5
- declare class VisualShaderNodeDotProduct extends VisualShaderNode {
6
- }
@@ -1,12 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A custom visual shader graph expression written in Godot Shading Language. */
5
- declare class VisualShaderNodeExpression extends VisualShaderNodeGroupBase {
6
- /**
7
- * An expression in Godot Shading Language, which will be injected at the start of the graph's matching shader function (`vertex`, `fragment`, or `light`), and thus cannot be used to declare functions, varyings, uniforms, or global constants.
8
- */
9
- expression: string;
10
- set_expression(value: string | NodePath): void;
11
- get_expression(): string;
12
- }
@@ -1,8 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /**
5
- * Returns the vector that points in the same direction as a reference vector within the visual shader graph.
6
- */
7
- declare class VisualShaderNodeFaceForward extends VisualShaderNodeVectorBase {
8
- }
@@ -1,10 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A scalar floating-point constant to be used within the visual shader graph. */
5
- declare class VisualShaderNodeFloatConstant extends VisualShaderNodeConstant {
6
- /** A floating-point constant which represents a state of this node. */
7
- constant: float;
8
- set_constant(value: float): void;
9
- get_constant(): float;
10
- }
@@ -1,108 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A scalar floating-point function to be used within the visual shader graph. */
5
- declare class VisualShaderNodeFloatFunc extends VisualShaderNode {
6
- /** A function to be applied to the scalar. */
7
- function: int;
8
- set_function(value: int): void;
9
- get_function(): int;
10
-
11
- // enum Function
12
- /** Returns the sine of the parameter. Translates to `sin(x)` in the Godot Shader Language. */
13
- static readonly FUNC_SIN: int;
14
- /** Returns the cosine of the parameter. Translates to `cos(x)` in the Godot Shader Language. */
15
- static readonly FUNC_COS: int;
16
- /** Returns the tangent of the parameter. Translates to `tan(x)` in the Godot Shader Language. */
17
- static readonly FUNC_TAN: int;
18
- /** Returns the arc-sine of the parameter. Translates to `asin(x)` in the Godot Shader Language. */
19
- static readonly FUNC_ASIN: int;
20
- /** Returns the arc-cosine of the parameter. Translates to `acos(x)` in the Godot Shader Language. */
21
- static readonly FUNC_ACOS: int;
22
- /** Returns the arc-tangent of the parameter. Translates to `atan(x)` in the Godot Shader Language. */
23
- static readonly FUNC_ATAN: int;
24
- /** Returns the hyperbolic sine of the parameter. Translates to `sinh(x)` in the Godot Shader Language. */
25
- static readonly FUNC_SINH: int;
26
- /**
27
- * Returns the hyperbolic cosine of the parameter. Translates to `cosh(x)` in the Godot Shader Language.
28
- */
29
- static readonly FUNC_COSH: int;
30
- /**
31
- * Returns the hyperbolic tangent of the parameter. Translates to `tanh(x)` in the Godot Shader Language.
32
- */
33
- static readonly FUNC_TANH: int;
34
- /**
35
- * Returns the natural logarithm of the parameter. Translates to `log(x)` in the Godot Shader Language.
36
- */
37
- static readonly FUNC_LOG: int;
38
- /**
39
- * Returns the natural exponentiation of the parameter. Translates to `exp(x)` in the Godot Shader Language.
40
- */
41
- static readonly FUNC_EXP: int;
42
- /** Returns the square root of the parameter. Translates to `sqrt(x)` in the Godot Shader Language. */
43
- static readonly FUNC_SQRT: int;
44
- /** Returns the absolute value of the parameter. Translates to `abs(x)` in the Godot Shader Language. */
45
- static readonly FUNC_ABS: int;
46
- /** Extracts the sign of the parameter. Translates to `sign(x)` in the Godot Shader Language. */
47
- static readonly FUNC_SIGN: int;
48
- /**
49
- * Finds the nearest integer less than or equal to the parameter. Translates to `floor(x)` in the Godot Shader Language.
50
- */
51
- static readonly FUNC_FLOOR: int;
52
- /** Finds the nearest integer to the parameter. Translates to `round(x)` in the Godot Shader Language. */
53
- static readonly FUNC_ROUND: int;
54
- /**
55
- * Finds the nearest integer that is greater than or equal to the parameter. Translates to `ceil(x)` in the Godot Shader Language.
56
- */
57
- static readonly FUNC_CEIL: int;
58
- /**
59
- * Computes the fractional part of the argument. Translates to `fract(x)` in the Godot Shader Language.
60
- */
61
- static readonly FUNC_FRACT: int;
62
- /** Clamps the value between `0.0` and `1.0` using `min(max(x, 0.0), 1.0)`. */
63
- static readonly FUNC_SATURATE: int;
64
- /** Negates the `x` using `-(x)`. */
65
- static readonly FUNC_NEGATE: int;
66
- /**
67
- * Returns the arc-hyperbolic-cosine of the parameter. Translates to `acosh(x)` in the Godot Shader Language.
68
- */
69
- static readonly FUNC_ACOSH: int;
70
- /**
71
- * Returns the arc-hyperbolic-sine of the parameter. Translates to `asinh(x)` in the Godot Shader Language.
72
- */
73
- static readonly FUNC_ASINH: int;
74
- /**
75
- * Returns the arc-hyperbolic-tangent of the parameter. Translates to `atanh(x)` in the Godot Shader Language.
76
- */
77
- static readonly FUNC_ATANH: int;
78
- /** Convert a quantity in radians to degrees. Translates to `degrees(x)` in the Godot Shader Language. */
79
- static readonly FUNC_DEGREES: int;
80
- /**
81
- * Returns 2 raised by the power of the parameter. Translates to `exp2(x)` in the Godot Shader Language.
82
- */
83
- static readonly FUNC_EXP2: int;
84
- /**
85
- * Returns the inverse of the square root of the parameter. Translates to `inversesqrt(x)` in the Godot Shader Language.
86
- */
87
- static readonly FUNC_INVERSE_SQRT: int;
88
- /**
89
- * Returns the base 2 logarithm of the parameter. Translates to `log2(x)` in the Godot Shader Language.
90
- */
91
- static readonly FUNC_LOG2: int;
92
- /** Convert a quantity in degrees to radians. Translates to `radians(x)` in the Godot Shader Language. */
93
- static readonly FUNC_RADIANS: int;
94
- /** Finds reciprocal value of dividing 1 by `x` (i.e. `1 / x`). */
95
- static readonly FUNC_RECIPROCAL: int;
96
- /**
97
- * Finds the nearest even integer to the parameter. Translates to `roundEven(x)` in the Godot Shader Language.
98
- */
99
- static readonly FUNC_ROUNDEVEN: int;
100
- /**
101
- * Returns a value equal to the nearest integer to `x` whose absolute value is not larger than the absolute value of `x`. Translates to `trunc(x)` in the Godot Shader Language.
102
- */
103
- static readonly FUNC_TRUNC: int;
104
- /** Subtracts scalar `x` from 1 (i.e. `1 - x`). */
105
- static readonly FUNC_ONEMINUS: int;
106
- /** Represents the size of the {@link Function} enum. */
107
- static readonly FUNC_MAX: int;
108
- }
@@ -1,36 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A floating-point scalar operator to be used within the visual shader graph. */
5
- declare class VisualShaderNodeFloatOp extends VisualShaderNode {
6
- /** An operator to be applied to the inputs. */
7
- operator: int;
8
- set_operator(value: int): void;
9
- get_operator(): int;
10
-
11
- // enum Operator
12
- /** Sums two numbers using `a + b`. */
13
- static readonly OP_ADD: int;
14
- /** Subtracts two numbers using `a - b`. */
15
- static readonly OP_SUB: int;
16
- /** Multiplies two numbers using `a * b`. */
17
- static readonly OP_MUL: int;
18
- /** Divides two numbers using `a / b`. */
19
- static readonly OP_DIV: int;
20
- /** Calculates the remainder of two numbers. Translates to `mod(a, b)` in the Godot Shader Language. */
21
- static readonly OP_MOD: int;
22
- /** Raises the `a` to the power of `b`. Translates to `pow(a, b)` in the Godot Shader Language. */
23
- static readonly OP_POW: int;
24
- /** Returns the greater of two numbers. Translates to `max(a, b)` in the Godot Shader Language. */
25
- static readonly OP_MAX: int;
26
- /** Returns the lesser of two numbers. Translates to `min(a, b)` in the Godot Shader Language. */
27
- static readonly OP_MIN: int;
28
- /** Returns the arc-tangent of the parameters. Translates to `atan(a, b)` in the Godot Shader Language. */
29
- static readonly OP_ATAN2: int;
30
- /**
31
- * Generates a step function by comparing `b`(x) to `a`(edge). Returns 0.0 if `x` is smaller than `edge` and otherwise 1.0. Translates to `step(a, b)` in the Godot Shader Language.
32
- */
33
- static readonly OP_STEP: int;
34
- /** Represents the size of the {@link Operator} enum. */
35
- static readonly OP_ENUM_SIZE: int;
36
- }
@@ -1,52 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A scalar float parameter to be used within the visual shader graph. */
5
- declare class VisualShaderNodeFloatParameter extends VisualShaderNodeParameter {
6
- /** A default value to be assigned within the shader. */
7
- default_value: float;
8
- /** Enables usage of the {@link default_value}. */
9
- default_value_enabled: boolean;
10
- /**
11
- * A hint applied to the uniform, which controls the values it can take when set through the Inspector.
12
- */
13
- hint: int;
14
- /**
15
- * Minimum value for range hints. Used if {@link hint} is set to {@link HINT_RANGE} or {@link HINT_RANGE_STEP}.
16
- */
17
- max: float;
18
- /**
19
- * Maximum value for range hints. Used if {@link hint} is set to {@link HINT_RANGE} or {@link HINT_RANGE_STEP}.
20
- */
21
- min: float;
22
- /**
23
- * Step (increment) value for the range hint with step. Used if {@link hint} is set to {@link HINT_RANGE_STEP}.
24
- */
25
- step: float;
26
- set_default_value(value: float): void;
27
- get_default_value(): float;
28
- set_default_value_enabled(value: boolean): void;
29
- is_default_value_enabled(): boolean;
30
- set_hint(value: int): void;
31
- get_hint(): int;
32
- set_max(value: float): void;
33
- get_max(): float;
34
- set_min(value: float): void;
35
- get_min(): float;
36
- set_step(value: float): void;
37
- get_step(): float;
38
-
39
- // enum Hint
40
- /** No hint used. */
41
- static readonly HINT_NONE: int;
42
- /**
43
- * A range hint for scalar value, which limits possible input values between {@link min} and {@link max}. Translated to `hint_range(min, max)` in shader code.
44
- */
45
- static readonly HINT_RANGE: int;
46
- /**
47
- * A range hint for scalar value with step, which limits possible input values between {@link min} and {@link max}, with a step (increment) of {@link step}). Translated to `hint_range(min, max, step)` in shader code.
48
- */
49
- static readonly HINT_RANGE_STEP: int;
50
- /** Represents the size of the {@link Hint} enum. */
51
- static readonly HINT_MAX: int;
52
- }
@@ -1,35 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A frame other visual shader nodes can be attached to for better organization. */
5
- declare class VisualShaderNodeFrame extends VisualShaderNodeResizableBase {
6
- /** The list of nodes attached to the frame. */
7
- attached_nodes: PackedInt32Array;
8
- /** If `true`, the frame will automatically resize to enclose all attached nodes. */
9
- autoshrink: boolean;
10
- /** The color of the frame when {@link tint_color_enabled} is `true`. */
11
- tint_color: Color;
12
- /** If `true`, the frame will be tinted with the color specified in {@link tint_color}. */
13
- tint_color_enabled: boolean;
14
- /** The title of the node. */
15
- title: string;
16
- set_attached_nodes(value: PackedInt32Array | Array<unknown>): void;
17
- get_attached_nodes(): PackedInt32Array;
18
- set_autoshrink_enabled(value: boolean): void;
19
- is_autoshrink_enabled(): boolean;
20
- set_tint_color(value: Color): void;
21
- get_tint_color(): Color;
22
- set_tint_color_enabled(value: boolean): void;
23
- is_tint_color_enabled(): boolean;
24
- set_title(value: string | NodePath): void;
25
- get_title(): string;
26
-
27
- /**
28
- * Adds a node to the list of nodes attached to the frame. Should not be called directly, use the {@link VisualShader.attach_node_to_frame} method instead.
29
- */
30
- add_attached_node(node: int): void;
31
- /**
32
- * Removes a node from the list of nodes attached to the frame. Should not be called directly, use the {@link VisualShader.detach_node_from_frame} method instead.
33
- */
34
- remove_attached_node(node: int): void;
35
- }
@@ -1,6 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A Fresnel effect to be used within the visual shader graph. */
5
- declare class VisualShaderNodeFresnel extends VisualShaderNode {
6
- }
@@ -1,6 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A custom global visual shader graph expression written in Godot Shading Language. */
5
- declare class VisualShaderNodeGlobalExpression extends VisualShaderNodeExpression {
6
- }
@@ -1,60 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /**
5
- * Base class for a family of nodes with variable number of input and output ports within the visual shader graph.
6
- */
7
- declare class VisualShaderNodeGroupBase extends VisualShaderNodeResizableBase {
8
- /** Adds an input port with the specified `type` (see {@link VisualShaderNode.PortType}) and `name`. */
9
- add_input_port(id: int, type_: int, name: string | NodePath): void;
10
- /** Adds an output port with the specified `type` (see {@link VisualShaderNode.PortType}) and `name`. */
11
- add_output_port(id: int, type_: int, name: string | NodePath): void;
12
- /** Removes all previously specified input ports. */
13
- clear_input_ports(): void;
14
- /** Removes all previously specified output ports. */
15
- clear_output_ports(): void;
16
- /** Returns a free input port ID which can be used in {@link add_input_port}. */
17
- get_free_input_port_id(): int;
18
- /** Returns a free output port ID which can be used in {@link add_output_port}. */
19
- get_free_output_port_id(): int;
20
- /** Returns the number of input ports in use. Alternative for {@link get_free_input_port_id}. */
21
- get_input_port_count(): int;
22
- /**
23
- * Returns a {@link String} description of the input ports as a colon-separated list using the format `id,type,name;` (see {@link add_input_port}).
24
- */
25
- get_inputs(): string;
26
- /** Returns the number of output ports in use. Alternative for {@link get_free_output_port_id}. */
27
- get_output_port_count(): int;
28
- /**
29
- * Returns a {@link String} description of the output ports as a colon-separated list using the format `id,type,name;` (see {@link add_output_port}).
30
- */
31
- get_outputs(): string;
32
- /** Returns `true` if the specified input port exists. */
33
- has_input_port(id: int): boolean;
34
- /** Returns `true` if the specified output port exists. */
35
- has_output_port(id: int): boolean;
36
- /**
37
- * Returns `true` if the specified port name does not override an existed port name and is valid within the shader.
38
- */
39
- is_valid_port_name(name: string | NodePath): boolean;
40
- /** Removes the specified input port. */
41
- remove_input_port(id: int): void;
42
- /** Removes the specified output port. */
43
- remove_output_port(id: int): void;
44
- /** Renames the specified input port. */
45
- set_input_port_name(id: int, name: string | NodePath): void;
46
- /** Sets the specified input port's type (see {@link VisualShaderNode.PortType}). */
47
- set_input_port_type(id: int, type_: int): void;
48
- /**
49
- * Defines all input ports using a {@link String} formatted as a colon-separated list: `id,type,name;` (see {@link add_input_port}).
50
- */
51
- set_inputs(inputs: string | NodePath): void;
52
- /** Renames the specified output port. */
53
- set_output_port_name(id: int, name: string | NodePath): void;
54
- /** Sets the specified output port's type (see {@link VisualShaderNode.PortType}). */
55
- set_output_port_type(id: int, type_: int): void;
56
- /**
57
- * Defines all output ports using a {@link String} formatted as a colon-separated list: `id,type,name;` (see {@link add_output_port}).
58
- */
59
- set_outputs(outputs: string | NodePath): void;
60
- }
@@ -1,8 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /**
5
- * Outputs a 3D vector based on the result of a floating-point comparison within the visual shader graph.
6
- */
7
- declare class VisualShaderNodeIf extends VisualShaderNode {
8
- }
@@ -1,20 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Represents the input shader parameter within the visual shader graph. */
5
- declare class VisualShaderNodeInput extends VisualShaderNode {
6
- /**
7
- * One of the several input constants in lower-case style like: "vertex" (`VERTEX`) or "point_size" (`POINT_SIZE`).
8
- */
9
- input_name: string;
10
- set_input_name(value: string | NodePath): void;
11
- get_input_name(): string;
12
-
13
- /**
14
- * Returns a translated name of the current constant in the Godot Shader Language. E.g. `"ALBEDO"` if the {@link input_name} equal to `"albedo"`.
15
- */
16
- get_input_real_name(): string;
17
-
18
- /** Emitted when input is changed via {@link input_name}. */
19
- input_type_changed: Signal<[]>;
20
- }
@@ -1,10 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A scalar integer constant to be used within the visual shader graph. */
5
- declare class VisualShaderNodeIntConstant extends VisualShaderNodeConstant {
6
- /** An integer constant which represents a state of this node. */
7
- constant: int;
8
- set_constant(value: int): void;
9
- get_constant(): int;
10
- }
@@ -1,24 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A scalar integer function to be used within the visual shader graph. */
5
- declare class VisualShaderNodeIntFunc extends VisualShaderNode {
6
- /** A function to be applied to the scalar. */
7
- function: int;
8
- set_function(value: int): void;
9
- get_function(): int;
10
-
11
- // enum Function
12
- /** Returns the absolute value of the parameter. Translates to `abs(x)` in the Godot Shader Language. */
13
- static readonly FUNC_ABS: int;
14
- /** Negates the `x` using `-(x)`. */
15
- static readonly FUNC_NEGATE: int;
16
- /** Extracts the sign of the parameter. Translates to `sign(x)` in the Godot Shader Language. */
17
- static readonly FUNC_SIGN: int;
18
- /**
19
- * Returns the result of bitwise `NOT` operation on the integer. Translates to `~a` in the Godot Shader Language.
20
- */
21
- static readonly FUNC_BITWISE_NOT: int;
22
- /** Represents the size of the {@link Function} enum. */
23
- static readonly FUNC_MAX: int;
24
- }
@@ -1,48 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** An integer scalar operator to be used within the visual shader graph. */
5
- declare class VisualShaderNodeIntOp extends VisualShaderNode {
6
- /** An operator to be applied to the inputs. */
7
- operator: int;
8
- set_operator(value: int): void;
9
- get_operator(): int;
10
-
11
- // enum Operator
12
- /** Sums two numbers using `a + b`. */
13
- static readonly OP_ADD: int;
14
- /** Subtracts two numbers using `a - b`. */
15
- static readonly OP_SUB: int;
16
- /** Multiplies two numbers using `a * b`. */
17
- static readonly OP_MUL: int;
18
- /** Divides two numbers using `a / b`. */
19
- static readonly OP_DIV: int;
20
- /** Calculates the remainder of two numbers using `a % b`. */
21
- static readonly OP_MOD: int;
22
- /** Returns the greater of two numbers. Translates to `max(a, b)` in the Godot Shader Language. */
23
- static readonly OP_MAX: int;
24
- /** Returns the lesser of two numbers. Translates to `max(a, b)` in the Godot Shader Language. */
25
- static readonly OP_MIN: int;
26
- /**
27
- * Returns the result of bitwise `AND` operation on the integer. Translates to `a & b` in the Godot Shader Language.
28
- */
29
- static readonly OP_BITWISE_AND: int;
30
- /**
31
- * Returns the result of bitwise `OR` operation for two integers. Translates to `a | b` in the Godot Shader Language.
32
- */
33
- static readonly OP_BITWISE_OR: int;
34
- /**
35
- * Returns the result of bitwise `XOR` operation for two integers. Translates to `a ^ b` in the Godot Shader Language.
36
- */
37
- static readonly OP_BITWISE_XOR: int;
38
- /**
39
- * Returns the result of bitwise left shift operation on the integer. Translates to `a << b` in the Godot Shader Language.
40
- */
41
- static readonly OP_BITWISE_LEFT_SHIFT: int;
42
- /**
43
- * Returns the result of bitwise right shift operation on the integer. Translates to `a >> b` in the Godot Shader Language.
44
- */
45
- static readonly OP_BITWISE_RIGHT_SHIFT: int;
46
- /** Represents the size of the {@link Operator} enum. */
47
- static readonly OP_ENUM_SIZE: int;
48
- }
@@ -1,58 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A visual shader node for shader parameter (uniform) of type [int]. */
5
- declare class VisualShaderNodeIntParameter extends VisualShaderNodeParameter {
6
- /**
7
- * Default value of this parameter, which will be used if not set externally. {@link default_value_enabled} must be enabled; defaults to `0` otherwise.
8
- */
9
- default_value: int;
10
- /** If `true`, the node will have a custom default value. */
11
- default_value_enabled: boolean;
12
- /**
13
- * The names used for the enum select in the editor. {@link hint} must be {@link HINT_ENUM} for this to take effect.
14
- */
15
- enum_names: PackedStringArray;
16
- /** Range hint of this node. Use it to customize valid parameter range. */
17
- hint: int;
18
- /**
19
- * The maximum value this parameter can take. {@link hint} must be either {@link HINT_RANGE} or {@link HINT_RANGE_STEP} for this to take effect.
20
- */
21
- max: int;
22
- /**
23
- * The minimum value this parameter can take. {@link hint} must be either {@link HINT_RANGE} or {@link HINT_RANGE_STEP} for this to take effect.
24
- */
25
- min: int;
26
- /**
27
- * The step between parameter's values. Forces the parameter to be a multiple of the given value. {@link hint} must be {@link HINT_RANGE_STEP} for this to take effect.
28
- */
29
- step: int;
30
- set_default_value(value: int): void;
31
- get_default_value(): int;
32
- set_default_value_enabled(value: boolean): void;
33
- is_default_value_enabled(): boolean;
34
- set_enum_names(value: PackedStringArray | Array<unknown>): void;
35
- get_enum_names(): PackedStringArray;
36
- set_hint(value: int): void;
37
- get_hint(): int;
38
- set_max(value: int): void;
39
- get_max(): int;
40
- set_min(value: int): void;
41
- get_min(): int;
42
- set_step(value: int): void;
43
- get_step(): int;
44
-
45
- // enum Hint
46
- /** The parameter will not constrain its value. */
47
- static readonly HINT_NONE: int;
48
- /** The parameter's value must be within the specified {@link min}/{@link max} range. */
49
- static readonly HINT_RANGE: int;
50
- /**
51
- * The parameter's value must be within the specified range, with the given {@link step} between values.
52
- */
53
- static readonly HINT_RANGE_STEP: int;
54
- /** The parameter uses an enum to associate preset values to names in the editor. */
55
- static readonly HINT_ENUM: int;
56
- /** Represents the size of the {@link Hint} enum. */
57
- static readonly HINT_MAX: int;
58
- }
@@ -1,18 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A boolean comparison operator to be used within the visual shader graph. */
5
- declare class VisualShaderNodeIs extends VisualShaderNode {
6
- /** The comparison function. */
7
- function: int;
8
- set_function(value: int): void;
9
- get_function(): int;
10
-
11
- // enum Function
12
- /** Comparison with `INF` (Infinity). */
13
- static readonly FUNC_IS_INF: int;
14
- /** Comparison with `NaN` (Not a Number; indicates invalid numeric results, such as division by zero). */
15
- static readonly FUNC_IS_NAN: int;
16
- /** Represents the size of the {@link Function} enum. */
17
- static readonly FUNC_MAX: int;
18
- }
@@ -1,6 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A visual shader node that returns the depth value of the DEPTH_TEXTURE node in a linear space. */
5
- declare class VisualShaderNodeLinearSceneDepth extends VisualShaderNode {
6
- }
@@ -1,28 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Linearly interpolates between two values within the visual shader graph. */
5
- declare class VisualShaderNodeMix extends VisualShaderNode {
6
- /** A type of operands and returned value. */
7
- op_type: int;
8
- set_op_type(value: int): void;
9
- get_op_type(): int;
10
-
11
- // enum OpType
12
- /** A floating-point scalar. */
13
- static readonly OP_TYPE_SCALAR: int;
14
- /** A 2D vector type. */
15
- static readonly OP_TYPE_VECTOR_2D: int;
16
- /** The `a` and `b` ports use a 2D vector type. The `weight` port uses a scalar type. */
17
- static readonly OP_TYPE_VECTOR_2D_SCALAR: int;
18
- /** A 3D vector type. */
19
- static readonly OP_TYPE_VECTOR_3D: int;
20
- /** The `a` and `b` ports use a 3D vector type. The `weight` port uses a scalar type. */
21
- static readonly OP_TYPE_VECTOR_3D_SCALAR: int;
22
- /** A 4D vector type. */
23
- static readonly OP_TYPE_VECTOR_4D: int;
24
- /** The `a` and `b` ports use a 4D vector type. The `weight` port uses a scalar type. */
25
- static readonly OP_TYPE_VECTOR_4D_SCALAR: int;
26
- /** Represents the size of the {@link OpType} enum. */
27
- static readonly OP_TYPE_MAX: int;
28
- }