typescript-to-gdscript 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +324 -0
- package/dist/cache/index.d.ts +203 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +609 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/checker/godot-project.d.ts +15 -0
- package/dist/checker/godot-project.d.ts.map +1 -0
- package/dist/checker/godot-project.js +14 -0
- package/dist/checker/godot-project.js.map +1 -0
- package/dist/checker/index.d.ts +61 -0
- package/dist/checker/index.d.ts.map +1 -0
- package/dist/checker/index.js +229 -0
- package/dist/checker/index.js.map +1 -0
- package/dist/checker/ts-diagnostics.d.ts +11 -0
- package/dist/checker/ts-diagnostics.d.ts.map +1 -0
- package/dist/checker/ts-diagnostics.js +67 -0
- package/dist/checker/ts-diagnostics.js.map +1 -0
- package/dist/cli/clear-cache.d.ts +3 -0
- package/dist/cli/clear-cache.d.ts.map +1 -0
- package/dist/cli/clear-cache.js +42 -0
- package/dist/cli/clear-cache.js.map +1 -0
- package/dist/cli/convert-gd.d.ts +3 -0
- package/dist/cli/convert-gd.d.ts.map +1 -0
- package/dist/cli/convert-gd.js +148 -0
- package/dist/cli/convert-gd.js.map +1 -0
- package/dist/cli/convert.d.ts +3 -0
- package/dist/cli/convert.d.ts.map +1 -0
- package/dist/cli/convert.js +165 -0
- package/dist/cli/convert.js.map +1 -0
- package/dist/cli/generate-addon-typings.d.ts +3 -0
- package/dist/cli/generate-addon-typings.d.ts.map +1 -0
- package/dist/cli/generate-addon-typings.js +31 -0
- package/dist/cli/generate-addon-typings.js.map +1 -0
- package/dist/cli/generate-gdscript-global-typings.d.ts +3 -0
- package/dist/cli/generate-gdscript-global-typings.d.ts.map +1 -0
- package/dist/cli/generate-gdscript-global-typings.js +172 -0
- package/dist/cli/generate-gdscript-global-typings.js.map +1 -0
- package/dist/cli/generate-typings.d.ts +3 -0
- package/dist/cli/generate-typings.d.ts.map +1 -0
- package/dist/cli/generate-typings.js +48 -0
- package/dist/cli/generate-typings.js.map +1 -0
- package/dist/cli/helpers.d.ts +47 -0
- package/dist/cli/helpers.d.ts.map +1 -0
- package/dist/cli/helpers.js +180 -0
- package/dist/cli/helpers.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +35 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/init.d.ts +8 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +222 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/initial-convert-gd-to-ts.d.ts +3 -0
- package/dist/cli/initial-convert-gd-to-ts.d.ts.map +1 -0
- package/dist/cli/initial-convert-gd-to-ts.js +149 -0
- package/dist/cli/initial-convert-gd-to-ts.js.map +1 -0
- package/dist/cli/lint.d.ts +3 -0
- package/dist/cli/lint.d.ts.map +1 -0
- package/dist/cli/lint.js +191 -0
- package/dist/cli/lint.js.map +1 -0
- package/dist/cli/open-editor.d.ts +21 -0
- package/dist/cli/open-editor.d.ts.map +1 -0
- package/dist/cli/open-editor.js +148 -0
- package/dist/cli/open-editor.js.map +1 -0
- package/dist/cli/set-latest.d.ts +3 -0
- package/dist/cli/set-latest.d.ts.map +1 -0
- package/dist/cli/set-latest.js +23 -0
- package/dist/cli/set-latest.js.map +1 -0
- package/dist/cli/validate-gd.d.ts +3 -0
- package/dist/cli/validate-gd.d.ts.map +1 -0
- package/dist/cli/validate-gd.js +37 -0
- package/dist/cli/validate-gd.js.map +1 -0
- package/dist/cli/watch.d.ts +3 -0
- package/dist/cli/watch.d.ts.map +1 -0
- package/dist/cli/watch.js +58 -0
- package/dist/cli/watch.js.map +1 -0
- package/dist/config/index.d.ts +142 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +161 -0
- package/dist/config/index.js.map +1 -0
- package/dist/converter/common/index.d.ts +169 -0
- package/dist/converter/common/index.d.ts.map +1 -0
- package/dist/converter/common/index.js +298 -0
- package/dist/converter/common/index.js.map +1 -0
- package/dist/converter/gd-to-ts/class-scope.d.ts +80 -0
- package/dist/converter/gd-to-ts/class-scope.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/class-scope.js +208 -0
- package/dist/converter/gd-to-ts/class-scope.js.map +1 -0
- package/dist/converter/gd-to-ts/context.d.ts +94 -0
- package/dist/converter/gd-to-ts/context.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/context.js +71 -0
- package/dist/converter/gd-to-ts/context.js.map +1 -0
- package/dist/converter/gd-to-ts/expressions.d.ts +18 -0
- package/dist/converter/gd-to-ts/expressions.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/expressions.js +535 -0
- package/dist/converter/gd-to-ts/expressions.js.map +1 -0
- package/dist/converter/gd-to-ts/file-scope-emitter.d.ts +34 -0
- package/dist/converter/gd-to-ts/file-scope-emitter.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/file-scope-emitter.js +191 -0
- package/dist/converter/gd-to-ts/file-scope-emitter.js.map +1 -0
- package/dist/converter/gd-to-ts/functions.d.ts +20 -0
- package/dist/converter/gd-to-ts/functions.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/functions.js +313 -0
- package/dist/converter/gd-to-ts/functions.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/explicit-convert.d.ts +42 -0
- package/dist/converter/gd-to-ts/helpers/explicit-convert.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/explicit-convert.js +173 -0
- package/dist/converter/gd-to-ts/helpers/explicit-convert.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/nullable-return.d.ts +19 -0
- package/dist/converter/gd-to-ts/helpers/nullable-return.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/nullable-return.js +116 -0
- package/dist/converter/gd-to-ts/helpers/nullable-return.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/nullable.d.ts +41 -0
- package/dist/converter/gd-to-ts/helpers/nullable.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/nullable.js +526 -0
- package/dist/converter/gd-to-ts/helpers/nullable.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/operator-fix.d.ts +20 -0
- package/dist/converter/gd-to-ts/helpers/operator-fix.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/operator-fix.js +114 -0
- package/dist/converter/gd-to-ts/helpers/operator-fix.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/ready-field-types.d.ts +48 -0
- package/dist/converter/gd-to-ts/helpers/ready-field-types.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/ready-field-types.js +217 -0
- package/dist/converter/gd-to-ts/helpers/ready-field-types.js.map +1 -0
- package/dist/converter/gd-to-ts/helpers/unsafe-helpers.d.ts +64 -0
- package/dist/converter/gd-to-ts/helpers/unsafe-helpers.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/helpers/unsafe-helpers.js +336 -0
- package/dist/converter/gd-to-ts/helpers/unsafe-helpers.js.map +1 -0
- package/dist/converter/gd-to-ts/imports.d.ts +47 -0
- package/dist/converter/gd-to-ts/imports.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/imports.js +98 -0
- package/dist/converter/gd-to-ts/imports.js.map +1 -0
- package/dist/converter/gd-to-ts/index.d.ts +59 -0
- package/dist/converter/gd-to-ts/index.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/index.js +189 -0
- package/dist/converter/gd-to-ts/index.js.map +1 -0
- package/dist/converter/gd-to-ts/inject-imports.d.ts +55 -0
- package/dist/converter/gd-to-ts/inject-imports.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/inject-imports.js +161 -0
- package/dist/converter/gd-to-ts/inject-imports.js.map +1 -0
- package/dist/converter/gd-to-ts/members.d.ts +15 -0
- package/dist/converter/gd-to-ts/members.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/members.js +397 -0
- package/dist/converter/gd-to-ts/members.js.map +1 -0
- package/dist/converter/gd-to-ts/source-emitter.d.ts +27 -0
- package/dist/converter/gd-to-ts/source-emitter.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/source-emitter.js +420 -0
- package/dist/converter/gd-to-ts/source-emitter.js.map +1 -0
- package/dist/converter/gd-to-ts/statements.d.ts +6 -0
- package/dist/converter/gd-to-ts/statements.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/statements.js +385 -0
- package/dist/converter/gd-to-ts/statements.js.map +1 -0
- package/dist/converter/gd-to-ts/ts-helpers.d.ts +49 -0
- package/dist/converter/gd-to-ts/ts-helpers.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/ts-helpers.js +161 -0
- package/dist/converter/gd-to-ts/ts-helpers.js.map +1 -0
- package/dist/converter/gd-to-ts/type-inference.d.ts +41 -0
- package/dist/converter/gd-to-ts/type-inference.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/type-inference.js +168 -0
- package/dist/converter/gd-to-ts/type-inference.js.map +1 -0
- package/dist/converter/ts-to-gd/class-body.d.ts +62 -0
- package/dist/converter/ts-to-gd/class-body.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/class-body.js +290 -0
- package/dist/converter/ts-to-gd/class-body.js.map +1 -0
- package/dist/converter/ts-to-gd/class-members.d.ts +18 -0
- package/dist/converter/ts-to-gd/class-members.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/class-members.js +246 -0
- package/dist/converter/ts-to-gd/class-members.js.map +1 -0
- package/dist/converter/ts-to-gd/diagnostics.d.ts +27 -0
- package/dist/converter/ts-to-gd/diagnostics.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/diagnostics.js +95 -0
- package/dist/converter/ts-to-gd/diagnostics.js.map +1 -0
- package/dist/converter/ts-to-gd/emitter.d.ts +40 -0
- package/dist/converter/ts-to-gd/emitter.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/emitter.js +88 -0
- package/dist/converter/ts-to-gd/emitter.js.map +1 -0
- package/dist/converter/ts-to-gd/expressions.d.ts +46 -0
- package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/expressions.js +793 -0
- package/dist/converter/ts-to-gd/expressions.js.map +1 -0
- package/dist/converter/ts-to-gd/file-scope.d.ts +42 -0
- package/dist/converter/ts-to-gd/file-scope.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/file-scope.js +463 -0
- package/dist/converter/ts-to-gd/file-scope.js.map +1 -0
- package/dist/converter/ts-to-gd/gd-getset.d.ts +31 -0
- package/dist/converter/ts-to-gd/gd-getset.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/gd-getset.js +219 -0
- package/dist/converter/ts-to-gd/gd-getset.js.map +1 -0
- package/dist/converter/ts-to-gd/gd-helpers.d.ts +44 -0
- package/dist/converter/ts-to-gd/gd-helpers.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/gd-helpers.js +458 -0
- package/dist/converter/ts-to-gd/gd-helpers.js.map +1 -0
- package/dist/converter/ts-to-gd/imports.d.ts +67 -0
- package/dist/converter/ts-to-gd/imports.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/imports.js +150 -0
- package/dist/converter/ts-to-gd/imports.js.map +1 -0
- package/dist/converter/ts-to-gd/index.d.ts +34 -0
- package/dist/converter/ts-to-gd/index.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/index.js +52 -0
- package/dist/converter/ts-to-gd/index.js.map +1 -0
- package/dist/converter/ts-to-gd/parameters.d.ts +12 -0
- package/dist/converter/ts-to-gd/parameters.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/parameters.js +100 -0
- package/dist/converter/ts-to-gd/parameters.js.map +1 -0
- package/dist/converter/ts-to-gd/statements.d.ts +12 -0
- package/dist/converter/ts-to-gd/statements.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/statements.js +262 -0
- package/dist/converter/ts-to-gd/statements.js.map +1 -0
- package/dist/converter/ts-to-gd/transformer-types.d.ts +33 -0
- package/dist/converter/ts-to-gd/transformer-types.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/transformer-types.js +2 -0
- package/dist/converter/ts-to-gd/transformer-types.js.map +1 -0
- package/dist/converter/ts-to-gd/transformer.d.ts +83 -0
- package/dist/converter/ts-to-gd/transformer.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/transformer.js +344 -0
- package/dist/converter/ts-to-gd/transformer.js.map +1 -0
- package/dist/eslint/plugin.d.ts +11 -0
- package/dist/eslint/plugin.d.ts.map +1 -0
- package/dist/eslint/plugin.js +12 -0
- package/dist/eslint/plugin.js.map +1 -0
- package/dist/eslint/rules/convert.d.ts +4 -0
- package/dist/eslint/rules/convert.d.ts.map +1 -0
- package/dist/eslint/rules/convert.js +286 -0
- package/dist/eslint/rules/convert.js.map +1 -0
- package/dist/eslint/rules/no-in-variant.d.ts +10 -0
- package/dist/eslint/rules/no-in-variant.d.ts.map +1 -0
- package/dist/eslint/rules/no-in-variant.js +126 -0
- package/dist/eslint/rules/no-in-variant.js.map +1 -0
- package/dist/godot-validate/error-parser.d.ts +64 -0
- package/dist/godot-validate/error-parser.d.ts.map +1 -0
- package/dist/godot-validate/error-parser.js +170 -0
- package/dist/godot-validate/error-parser.js.map +1 -0
- package/dist/godot-validate/index.d.ts +76 -0
- package/dist/godot-validate/index.d.ts.map +1 -0
- package/dist/godot-validate/index.js +267 -0
- package/dist/godot-validate/index.js.map +1 -0
- package/dist/godot-validate/source-map-remap.d.ts +48 -0
- package/dist/godot-validate/source-map-remap.d.ts.map +1 -0
- package/dist/godot-validate/source-map-remap.js +195 -0
- package/dist/godot-validate/source-map-remap.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/parser/gdscript/generate-types.d.ts +7 -0
- package/dist/parser/gdscript/generate-types.d.ts.map +1 -0
- package/dist/parser/gdscript/generate-types.js +134 -0
- package/dist/parser/gdscript/generate-types.js.map +1 -0
- package/dist/parser/gdscript/index.d.ts +9 -0
- package/dist/parser/gdscript/index.d.ts.map +1 -0
- package/dist/parser/gdscript/index.js +17 -0
- package/dist/parser/gdscript/index.js.map +1 -0
- package/dist/parser/gdscript/types.d.ts +689 -0
- package/dist/parser/gdscript/types.d.ts.map +1 -0
- package/dist/parser/gdscript/types.js +89 -0
- package/dist/parser/gdscript/types.js.map +1 -0
- package/dist/parser/godot-resource/index.d.ts +7 -0
- package/dist/parser/godot-resource/index.d.ts.map +1 -0
- package/dist/parser/godot-resource/index.js +14 -0
- package/dist/parser/godot-resource/index.js.map +1 -0
- package/dist/parser/godot-resource/types.d.ts +330 -0
- package/dist/parser/godot-resource/types.d.ts.map +1 -0
- package/dist/parser/godot-resource/types.js +22 -0
- package/dist/parser/godot-resource/types.js.map +1 -0
- package/dist/parser/typescript/index.d.ts +12 -0
- package/dist/parser/typescript/index.d.ts.map +1 -0
- package/dist/parser/typescript/index.js +30 -0
- package/dist/parser/typescript/index.js.map +1 -0
- package/dist/sourcemap/index.d.ts +59 -0
- package/dist/sourcemap/index.d.ts.map +1 -0
- package/dist/sourcemap/index.js +85 -0
- package/dist/sourcemap/index.js.map +1 -0
- package/dist/ts-plugin/index.d.ts +47 -0
- package/dist/ts-plugin/index.d.ts.map +1 -0
- package/dist/ts-plugin/index.js +227 -0
- package/dist/ts-plugin/index.js.map +1 -0
- package/dist/ts-plugin/lint.d.ts +48 -0
- package/dist/ts-plugin/lint.d.ts.map +1 -0
- package/dist/ts-plugin/lint.js +424 -0
- package/dist/ts-plugin/lint.js.map +1 -0
- package/dist/ts-plugin/lru.d.ts +40 -0
- package/dist/ts-plugin/lru.d.ts.map +1 -0
- package/dist/ts-plugin/lru.js +82 -0
- package/dist/ts-plugin/lru.js.map +1 -0
- package/dist/ts-plugin/navigation.d.ts +58 -0
- package/dist/ts-plugin/navigation.d.ts.map +1 -0
- package/dist/ts-plugin/navigation.js +427 -0
- package/dist/ts-plugin/navigation.js.map +1 -0
- package/dist/ts-plugin/shadow-refs.d.ts +31 -0
- package/dist/ts-plugin/shadow-refs.d.ts.map +1 -0
- package/dist/ts-plugin/shadow-refs.js +76 -0
- package/dist/ts-plugin/shadow-refs.js.map +1 -0
- package/dist/ts-plugin/snapshot-transform.d.ts +61 -0
- package/dist/ts-plugin/snapshot-transform.d.ts.map +1 -0
- package/dist/ts-plugin/snapshot-transform.js +55 -0
- package/dist/ts-plugin/snapshot-transform.js.map +1 -0
- package/dist/typings/class-generator.d.ts +54 -0
- package/dist/typings/class-generator.d.ts.map +1 -0
- package/dist/typings/class-generator.js +524 -0
- package/dist/typings/class-generator.js.map +1 -0
- package/dist/typings/classes.d.ts +24 -0
- package/dist/typings/classes.d.ts.map +1 -0
- package/dist/typings/classes.js +139 -0
- package/dist/typings/classes.js.map +1 -0
- package/dist/typings/content-generators.d.ts +62 -0
- package/dist/typings/content-generators.d.ts.map +1 -0
- package/dist/typings/content-generators.js +536 -0
- package/dist/typings/content-generators.js.map +1 -0
- package/dist/typings/global-generator.d.ts +32 -0
- package/dist/typings/global-generator.d.ts.map +1 -0
- package/dist/typings/global-generator.js +242 -0
- package/dist/typings/global-generator.js.map +1 -0
- package/dist/typings/godot-docs.d.ts +27 -0
- package/dist/typings/godot-docs.d.ts.map +1 -0
- package/dist/typings/godot-docs.js +310 -0
- package/dist/typings/godot-docs.js.map +1 -0
- package/dist/typings/godot-registry.d.ts +123 -0
- package/dist/typings/godot-registry.d.ts.map +1 -0
- package/dist/typings/godot-registry.js +157 -0
- package/dist/typings/godot-registry.js.map +1 -0
- package/dist/typings/index.d.ts +4 -0
- package/dist/typings/index.d.ts.map +1 -0
- package/dist/typings/index.js +4 -0
- package/dist/typings/index.js.map +1 -0
- package/dist/typings/override-system.d.ts +36 -0
- package/dist/typings/override-system.d.ts.map +1 -0
- package/dist/typings/override-system.js +341 -0
- package/dist/typings/override-system.js.map +1 -0
- package/dist/typings/registry-generator.d.ts +44 -0
- package/dist/typings/registry-generator.d.ts.map +1 -0
- package/dist/typings/registry-generator.js +170 -0
- package/dist/typings/registry-generator.js.map +1 -0
- package/dist/typings/scene-parser.d.ts +113 -0
- package/dist/typings/scene-parser.d.ts.map +1 -0
- package/dist/typings/scene-parser.js +436 -0
- package/dist/typings/scene-parser.js.map +1 -0
- package/dist/typings/scene-tree.d.ts +33 -0
- package/dist/typings/scene-tree.d.ts.map +1 -0
- package/dist/typings/scene-tree.js +118 -0
- package/dist/typings/scene-tree.js.map +1 -0
- package/dist/typings/scene-utils.d.ts +131 -0
- package/dist/typings/scene-utils.d.ts.map +1 -0
- package/dist/typings/scene-utils.js +604 -0
- package/dist/typings/scene-utils.js.map +1 -0
- package/dist/typings/scenes.d.ts +96 -0
- package/dist/typings/scenes.d.ts.map +1 -0
- package/dist/typings/scenes.js +368 -0
- package/dist/typings/scenes.js.map +1 -0
- package/dist/typings/type-mapping.d.ts +76 -0
- package/dist/typings/type-mapping.d.ts.map +1 -0
- package/dist/typings/type-mapping.js +239 -0
- package/dist/typings/type-mapping.js.map +1 -0
- package/dist/typings/xml-parser.d.ts +91 -0
- package/dist/typings/xml-parser.d.ts.map +1 -0
- package/dist/typings/xml-parser.js +275 -0
- package/dist/typings/xml-parser.js.map +1 -0
- package/dist/watcher/index.d.ts +74 -0
- package/dist/watcher/index.d.ts.map +1 -0
- package/dist/watcher/index.js +410 -0
- package/dist/watcher/index.js.map +1 -0
- package/package.json +115 -0
- package/ts-plugin/index.js +9 -0
- package/ts-plugin/package.json +7 -0
- package/typings/classes/AABB.d.ts +177 -0
- package/typings/classes/AESContext.d.ts +34 -0
- package/typings/classes/AStar2D.d.ts +108 -0
- package/typings/classes/AStar3D.d.ts +108 -0
- package/typings/classes/AStarGrid2D.d.ts +184 -0
- package/typings/classes/AcceptDialog.d.ts +77 -0
- package/typings/classes/AccessibilityServer.d.ts +405 -0
- package/typings/classes/AimModifier3D.d.ts +40 -0
- package/typings/classes/AnimatableBody2D.d.ts +14 -0
- package/typings/classes/AnimatableBody3D.d.ts +14 -0
- package/typings/classes/AnimatedSprite2D.d.ts +108 -0
- package/typings/classes/AnimatedSprite3D.d.ts +89 -0
- package/typings/classes/AnimatedTexture.d.ts +54 -0
- package/typings/classes/Animation.d.ts +340 -0
- package/typings/classes/AnimationLibrary.d.ts +34 -0
- package/typings/classes/AnimationMixer.d.ts +226 -0
- package/typings/classes/AnimationNode.d.ts +116 -0
- package/typings/classes/AnimationNodeAdd2.d.ts +6 -0
- package/typings/classes/AnimationNodeAdd3.d.ts +6 -0
- package/typings/classes/AnimationNodeAnimation.d.ts +64 -0
- package/typings/classes/AnimationNodeBlend2.d.ts +6 -0
- package/typings/classes/AnimationNodeBlend3.d.ts +6 -0
- package/typings/classes/AnimationNodeBlendSpace1D.d.ts +79 -0
- package/typings/classes/AnimationNodeBlendSpace2D.d.ts +104 -0
- package/typings/classes/AnimationNodeBlendTree.d.ts +53 -0
- package/typings/classes/AnimationNodeExtension.d.ts +18 -0
- package/typings/classes/AnimationNodeOneShot.d.ts +78 -0
- package/typings/classes/AnimationNodeOutput.d.ts +6 -0
- package/typings/classes/AnimationNodeStateMachine.d.ts +80 -0
- package/typings/classes/AnimationNodeStateMachinePlayback.d.ts +67 -0
- package/typings/classes/AnimationNodeStateMachineTransition.d.ts +83 -0
- package/typings/classes/AnimationNodeSub2.d.ts +6 -0
- package/typings/classes/AnimationNodeSync.d.ts +13 -0
- package/typings/classes/AnimationNodeTimeScale.d.ts +6 -0
- package/typings/classes/AnimationNodeTimeSeek.d.ts +12 -0
- package/typings/classes/AnimationNodeTransition.d.ts +45 -0
- package/typings/classes/AnimationPlayer.d.ts +203 -0
- package/typings/classes/AnimationRootNode.d.ts +8 -0
- package/typings/classes/AnimationTree.d.ts +35 -0
- package/typings/classes/Area2D.d.ts +166 -0
- package/typings/classes/Area3D.d.ts +214 -0
- package/typings/classes/Array.d.ts +301 -0
- package/typings/classes/ArrayMesh.d.ts +94 -0
- package/typings/classes/ArrayOccluder3D.d.ts +23 -0
- package/typings/classes/AspectRatioContainer.d.ts +46 -0
- package/typings/classes/AtlasTexture.d.ts +32 -0
- package/typings/classes/AudioBusLayout.d.ts +6 -0
- package/typings/classes/AudioEffect.d.ts +11 -0
- package/typings/classes/AudioEffectAmplify.d.ts +19 -0
- package/typings/classes/AudioEffectBandLimitFilter.d.ts +6 -0
- package/typings/classes/AudioEffectBandPassFilter.d.ts +6 -0
- package/typings/classes/AudioEffectCapture.d.ts +35 -0
- package/typings/classes/AudioEffectChorus.d.ts +108 -0
- package/typings/classes/AudioEffectCompressor.d.ts +47 -0
- package/typings/classes/AudioEffectDelay.d.ts +71 -0
- package/typings/classes/AudioEffectDistortion.d.ts +55 -0
- package/typings/classes/AudioEffectEQ.d.ts +15 -0
- package/typings/classes/AudioEffectEQ10.d.ts +9 -0
- package/typings/classes/AudioEffectEQ21.d.ts +9 -0
- package/typings/classes/AudioEffectEQ6.d.ts +9 -0
- package/typings/classes/AudioEffectFilter.d.ts +50 -0
- package/typings/classes/AudioEffectHardLimiter.d.ts +24 -0
- package/typings/classes/AudioEffectHighPassFilter.d.ts +6 -0
- package/typings/classes/AudioEffectHighShelfFilter.d.ts +6 -0
- package/typings/classes/AudioEffectInstance.d.ts +16 -0
- package/typings/classes/AudioEffectLimiter.d.ts +26 -0
- package/typings/classes/AudioEffectLowPassFilter.d.ts +6 -0
- package/typings/classes/AudioEffectLowShelfFilter.d.ts +6 -0
- package/typings/classes/AudioEffectNotchFilter.d.ts +6 -0
- package/typings/classes/AudioEffectPanner.d.ts +15 -0
- package/typings/classes/AudioEffectPhaser.d.ts +37 -0
- package/typings/classes/AudioEffectPitchShift.d.ts +47 -0
- package/typings/classes/AudioEffectRecord.d.ts +19 -0
- package/typings/classes/AudioEffectReverb.d.ts +55 -0
- package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +40 -0
- package/typings/classes/AudioEffectSpectrumAnalyzerInstance.d.ts +17 -0
- package/typings/classes/AudioEffectStereoEnhance.d.ts +27 -0
- package/typings/classes/AudioListener2D.d.ts +15 -0
- package/typings/classes/AudioListener3D.d.ts +37 -0
- package/typings/classes/AudioSample.d.ts +6 -0
- package/typings/classes/AudioSamplePlayback.d.ts +6 -0
- package/typings/classes/AudioServer.d.ts +199 -0
- package/typings/classes/AudioStream.d.ts +66 -0
- package/typings/classes/AudioStreamGenerator.d.ts +38 -0
- package/typings/classes/AudioStreamGeneratorPlayback.d.ts +28 -0
- package/typings/classes/AudioStreamMicrophone.d.ts +6 -0
- package/typings/classes/AudioStreamPlayback.d.ts +69 -0
- package/typings/classes/AudioStreamPlaybackPolyphonic.d.ts +32 -0
- package/typings/classes/AudioStreamPlaybackResampled.d.ts +16 -0
- package/typings/classes/AudioStreamPlayer.d.ts +110 -0
- package/typings/classes/AudioStreamPlayer2D.d.ts +96 -0
- package/typings/classes/AudioStreamPlayer3D.d.ts +162 -0
- package/typings/classes/AudioStreamPolyphonic.d.ts +12 -0
- package/typings/classes/AudioStreamRandomizer.d.ts +67 -0
- package/typings/classes/AudioStreamWAV.d.ts +87 -0
- package/typings/classes/AwaitTweener.d.ts +10 -0
- package/typings/classes/BackBufferCopy.d.ts +26 -0
- package/typings/classes/BaseButton.d.ts +116 -0
- package/typings/classes/BaseMaterial3D.d.ts +1021 -0
- package/typings/classes/Basis.d.ts +225 -0
- package/typings/classes/BitMap.d.ts +42 -0
- package/typings/classes/BlitMaterial.d.ts +22 -0
- package/typings/classes/Bone2D.d.ts +45 -0
- package/typings/classes/BoneAttachment3D.d.ts +39 -0
- package/typings/classes/BoneConstraint3D.d.ts +67 -0
- package/typings/classes/BoneMap.d.ts +39 -0
- package/typings/classes/BoneTwistDisperser3D.d.ts +126 -0
- package/typings/classes/BoxContainer.d.ts +36 -0
- package/typings/classes/BoxMesh.d.ts +22 -0
- package/typings/classes/BoxOccluder3D.d.ts +10 -0
- package/typings/classes/BoxShape3D.d.ts +10 -0
- package/typings/classes/Button.d.ts +75 -0
- package/typings/classes/ButtonGroup.d.ts +21 -0
- package/typings/classes/CCDIK3D.d.ts +6 -0
- package/typings/classes/CPUParticles2D.d.ts +397 -0
- package/typings/classes/CPUParticles3D.d.ts +421 -0
- package/typings/classes/Callable.d.ts +203 -0
- package/typings/classes/CallbackTweener.d.ts +11 -0
- package/typings/classes/Camera2D.d.ts +214 -0
- package/typings/classes/Camera3D.d.ts +207 -0
- package/typings/classes/CameraAttributes.d.ts +35 -0
- package/typings/classes/CameraAttributesPhysical.d.ts +61 -0
- package/typings/classes/CameraAttributesPractical.d.ts +64 -0
- package/typings/classes/CameraFeed.d.ts +81 -0
- package/typings/classes/CameraServer.d.ts +44 -0
- package/typings/classes/CameraTexture.d.ts +19 -0
- package/typings/classes/CanvasGroup.d.ts +24 -0
- package/typings/classes/CanvasItem.d.ts +503 -0
- package/typings/classes/CanvasItemMaterial.d.ts +61 -0
- package/typings/classes/CanvasLayer.d.ts +74 -0
- package/typings/classes/CanvasModulate.d.ts +10 -0
- package/typings/classes/CanvasTexture.d.ts +42 -0
- package/typings/classes/CapsuleMesh.d.ts +28 -0
- package/typings/classes/CapsuleShape2D.d.ts +26 -0
- package/typings/classes/CapsuleShape3D.d.ts +26 -0
- package/typings/classes/CenterContainer.d.ts +10 -0
- package/typings/classes/ChainIK3D.d.ts +50 -0
- package/typings/classes/CharFXTransform.d.ts +88 -0
- package/typings/classes/CharacterBody2D.d.ts +199 -0
- package/typings/classes/CharacterBody3D.d.ts +201 -0
- package/typings/classes/CheckBox.d.ts +8 -0
- package/typings/classes/CheckButton.d.ts +8 -0
- package/typings/classes/CircleShape2D.d.ts +10 -0
- package/typings/classes/ClassDB.d.ts +110 -0
- package/typings/classes/CodeEdit.d.ts +402 -0
- package/typings/classes/CodeHighlighter.d.ts +81 -0
- package/typings/classes/CollisionObject2D.d.ts +171 -0
- package/typings/classes/CollisionObject3D.d.ts +141 -0
- package/typings/classes/CollisionPolygon2D.d.ts +51 -0
- package/typings/classes/CollisionPolygon3D.d.ts +39 -0
- package/typings/classes/CollisionShape2D.d.ts +41 -0
- package/typings/classes/CollisionShape3D.d.ts +36 -0
- package/typings/classes/Color.d.ts +517 -0
- package/typings/classes/ColorPalette.d.ts +12 -0
- package/typings/classes/ColorPicker.d.ts +118 -0
- package/typings/classes/ColorPickerButton.d.ts +37 -0
- package/typings/classes/ColorRect.d.ts +10 -0
- package/typings/classes/Compositor.d.ts +12 -0
- package/typings/classes/CompositorEffect.d.ts +76 -0
- package/typings/classes/CompressedCubemap.d.ts +6 -0
- package/typings/classes/CompressedCubemapArray.d.ts +6 -0
- package/typings/classes/CompressedTexture2D.d.ts +13 -0
- package/typings/classes/CompressedTexture2DArray.d.ts +6 -0
- package/typings/classes/CompressedTexture3D.d.ts +12 -0
- package/typings/classes/CompressedTextureLayered.d.ts +12 -0
- package/typings/classes/ConcavePolygonShape2D.d.ts +12 -0
- package/typings/classes/ConcavePolygonShape3D.d.ts +21 -0
- package/typings/classes/ConeTwistJoint3D.d.ts +63 -0
- package/typings/classes/ConfigFile.d.ts +71 -0
- package/typings/classes/ConfirmationDialog.d.ts +19 -0
- package/typings/classes/Container.d.ts +42 -0
- package/typings/classes/Control.d.ts +1125 -0
- package/typings/classes/ConvertTransformModifier3D.d.ts +65 -0
- package/typings/classes/ConvexPolygonShape2D.d.ts +18 -0
- package/typings/classes/ConvexPolygonShape3D.d.ts +10 -0
- package/typings/classes/CopyTransformModifier3D.d.ts +117 -0
- package/typings/classes/Crypto.d.ts +41 -0
- package/typings/classes/CryptoKey.d.ts +26 -0
- package/typings/classes/Cubemap.d.ts +8 -0
- package/typings/classes/CubemapArray.d.ts +8 -0
- package/typings/classes/Curve.d.ts +96 -0
- package/typings/classes/Curve2D.d.ts +97 -0
- package/typings/classes/Curve3D.d.ts +129 -0
- package/typings/classes/CurveTexture.d.ts +30 -0
- package/typings/classes/CurveXYZTexture.d.ts +25 -0
- package/typings/classes/CylinderMesh.d.ts +48 -0
- package/typings/classes/CylinderShape3D.d.ts +14 -0
- package/typings/classes/DPITexture.d.ts +48 -0
- package/typings/classes/DTLSServer.d.ts +13 -0
- package/typings/classes/DampedSpringJoint2D.d.ts +28 -0
- package/typings/classes/Decal.d.ts +120 -0
- package/typings/classes/Dictionary.d.ts +181 -0
- package/typings/classes/DirAccess.d.ts +199 -0
- package/typings/classes/DirectionalLight2D.d.ts +16 -0
- package/typings/classes/DirectionalLight3D.d.ts +71 -0
- package/typings/classes/DisplayServer.d.ts +2153 -0
- package/typings/classes/DrawableTexture2D.d.ts +47 -0
- package/typings/classes/EditorCommandPalette.d.ts +21 -0
- package/typings/classes/EditorContextMenuPlugin.d.ts +59 -0
- package/typings/classes/EditorDebuggerPlugin.d.ts +33 -0
- package/typings/classes/EditorDebuggerSession.d.ts +41 -0
- package/typings/classes/EditorDock.d.ts +141 -0
- package/typings/classes/EditorExportPlatform.d.ts +125 -0
- package/typings/classes/EditorExportPlatformAppleEmbedded.d.ts +6 -0
- package/typings/classes/EditorExportPlatformExtension.d.ts +131 -0
- package/typings/classes/EditorExportPlatformPC.d.ts +6 -0
- package/typings/classes/EditorExportPlugin.d.ts +207 -0
- package/typings/classes/EditorExportPreset.d.ts +83 -0
- package/typings/classes/EditorFeatureProfile.d.ts +90 -0
- package/typings/classes/EditorFileDialog.d.ts +15 -0
- package/typings/classes/EditorFileSystem.d.ts +48 -0
- package/typings/classes/EditorFileSystemDirectory.d.ts +42 -0
- package/typings/classes/EditorFileSystemImportFormatSupportQuery.d.ts +12 -0
- package/typings/classes/EditorImportPlugin.d.ts +67 -0
- package/typings/classes/EditorInspector.d.ts +54 -0
- package/typings/classes/EditorInspectorPlugin.d.ts +34 -0
- package/typings/classes/EditorInterface.d.ts +254 -0
- package/typings/classes/EditorNode3DGizmo.d.ts +104 -0
- package/typings/classes/EditorNode3DGizmoPlugin.d.ts +103 -0
- package/typings/classes/EditorPaths.d.ts +52 -0
- package/typings/classes/EditorPlugin.d.ts +384 -0
- package/typings/classes/EditorProperty.d.ts +133 -0
- package/typings/classes/EditorResourceConversionPlugin.d.ts +20 -0
- package/typings/classes/EditorResourcePicker.d.ts +47 -0
- package/typings/classes/EditorResourcePreview.d.ts +25 -0
- package/typings/classes/EditorResourcePreviewGenerator.d.ts +34 -0
- package/typings/classes/EditorResourceTooltipPlugin.d.ts +20 -0
- package/typings/classes/EditorSceneFormatImporter.d.ts +36 -0
- package/typings/classes/EditorScenePostImport.d.ts +10 -0
- package/typings/classes/EditorScenePostImportPlugin.d.ts +57 -0
- package/typings/classes/EditorScript.d.ts +18 -0
- package/typings/classes/EditorScriptPicker.d.ts +10 -0
- package/typings/classes/EditorSelection.d.ts +29 -0
- package/typings/classes/EditorSettings.d.ts +1821 -0
- package/typings/classes/EditorSpinSlider.d.ts +65 -0
- package/typings/classes/EditorSyntaxHighlighter.d.ts +12 -0
- package/typings/classes/EditorToaster.d.ts +16 -0
- package/typings/classes/EditorTranslationParserPlugin.d.ts +12 -0
- package/typings/classes/EditorUndoRedoManager.d.ts +86 -0
- package/typings/classes/EditorVCSInterface.d.ts +121 -0
- package/typings/classes/EncodedObjectAsID.d.ts +12 -0
- package/typings/classes/Engine.d.ts +202 -0
- package/typings/classes/EngineDebugger.d.ts +66 -0
- package/typings/classes/EngineProfiler.d.ts +14 -0
- package/typings/classes/Environment.d.ts +720 -0
- package/typings/classes/Expression.d.ts +20 -0
- package/typings/classes/ExternalTexture.d.ts +22 -0
- package/typings/classes/FABRIK3D.d.ts +6 -0
- package/typings/classes/FileAccess.d.ts +411 -0
- package/typings/classes/FileDialog.d.ts +277 -0
- package/typings/classes/FileSystemDock.d.ts +35 -0
- package/typings/classes/FlowContainer.d.ts +64 -0
- package/typings/classes/FogMaterial.d.ts +43 -0
- package/typings/classes/FogVolume.d.ts +26 -0
- package/typings/classes/FoldableContainer.d.ts +65 -0
- package/typings/classes/FoldableGroup.d.ts +21 -0
- package/typings/classes/Font.d.ts +144 -0
- package/typings/classes/FontFile.d.ts +286 -0
- package/typings/classes/FontVariation.d.ts +56 -0
- package/typings/classes/FramebufferCacheRD.d.ts +10 -0
- package/typings/classes/GDExtension.d.ts +26 -0
- package/typings/classes/GDExtensionManager.d.ts +60 -0
- package/typings/classes/GPUParticles2D.d.ts +220 -0
- package/typings/classes/GPUParticles3D.d.ts +239 -0
- package/typings/classes/GPUParticlesAttractor3D.d.ts +33 -0
- package/typings/classes/GPUParticlesAttractorBox3D.d.ts +10 -0
- package/typings/classes/GPUParticlesAttractorSphere3D.d.ts +13 -0
- package/typings/classes/GPUParticlesAttractorVectorField3D.d.ts +19 -0
- package/typings/classes/GPUParticlesCollision3D.d.ts +14 -0
- package/typings/classes/GPUParticlesCollisionBox3D.d.ts +10 -0
- package/typings/classes/GPUParticlesCollisionHeightField3D.d.ts +75 -0
- package/typings/classes/GPUParticlesCollisionSDF3D.d.ts +59 -0
- package/typings/classes/GPUParticlesCollisionSphere3D.d.ts +10 -0
- package/typings/classes/Generic6DOFJoint3D.d.ts +241 -0
- package/typings/classes/Geometry2D.d.ts +147 -0
- package/typings/classes/Geometry3D.d.ts +67 -0
- package/typings/classes/GeometryInstance3D.d.ts +183 -0
- package/typings/classes/GodotInstance.d.ts +20 -0
- package/typings/classes/Gradient.d.ts +74 -0
- package/typings/classes/GradientTexture1D.d.ts +18 -0
- package/typings/classes/GradientTexture2D.d.ts +64 -0
- package/typings/classes/GraphEdit.d.ts +306 -0
- package/typings/classes/GraphElement.d.ts +56 -0
- package/typings/classes/GraphFrame.d.ts +46 -0
- package/typings/classes/GraphNode.d.ts +132 -0
- package/typings/classes/GridContainer.d.ts +12 -0
- package/typings/classes/GrooveJoint2D.d.ts +18 -0
- package/typings/classes/HBoxContainer.d.ts +6 -0
- package/typings/classes/HFlowContainer.d.ts +6 -0
- package/typings/classes/HMACContext.d.ts +16 -0
- package/typings/classes/HScrollBar.d.ts +6 -0
- package/typings/classes/HSeparator.d.ts +6 -0
- package/typings/classes/HSlider.d.ts +6 -0
- package/typings/classes/HSplitContainer.d.ts +8 -0
- package/typings/classes/HTTPClient.d.ts +384 -0
- package/typings/classes/HTTPRequest.d.ts +124 -0
- package/typings/classes/HashingContext.d.ts +22 -0
- package/typings/classes/HeightMapShape3D.d.ts +36 -0
- package/typings/classes/HingeJoint3D.d.ts +66 -0
- package/typings/classes/IKModifier3D.d.ts +22 -0
- package/typings/classes/IP.d.ts +71 -0
- package/typings/classes/Image.d.ts +567 -0
- package/typings/classes/ImageFormatLoader.d.ts +11 -0
- package/typings/classes/ImageFormatLoaderExtension.d.ts +20 -0
- package/typings/classes/ImageTexture.d.ts +25 -0
- package/typings/classes/ImageTexture3D.d.ts +14 -0
- package/typings/classes/ImageTextureLayered.d.ts +20 -0
- package/typings/classes/ImmediateMesh.d.ts +31 -0
- package/typings/classes/ImporterMesh.d.ts +84 -0
- package/typings/classes/ImporterMeshInstance3D.d.ts +35 -0
- package/typings/classes/Input.d.ts +504 -0
- package/typings/classes/InputEvent.d.ts +85 -0
- package/typings/classes/InputEventAction.d.ts +27 -0
- package/typings/classes/InputEventFromWindow.d.ts +10 -0
- package/typings/classes/InputEventGesture.d.ts +11 -0
- package/typings/classes/InputEventJoypadButton.d.ts +16 -0
- package/typings/classes/InputEventJoypadMotion.d.ts +16 -0
- package/typings/classes/InputEventKey.d.ts +86 -0
- package/typings/classes/InputEventMIDI.d.ts +59 -0
- package/typings/classes/InputEventMagnifyGesture.d.ts +12 -0
- package/typings/classes/InputEventMouse.d.ts +25 -0
- package/typings/classes/InputEventMouseButton.d.ts +26 -0
- package/typings/classes/InputEventMouseMotion.d.ts +54 -0
- package/typings/classes/InputEventPanGesture.d.ts +10 -0
- package/typings/classes/InputEventScreenDrag.d.ts +54 -0
- package/typings/classes/InputEventScreenTouch.d.ts +24 -0
- package/typings/classes/InputEventShortcut.d.ts +12 -0
- package/typings/classes/InputEventWithModifiers.d.ts +37 -0
- package/typings/classes/InputMap.d.ts +50 -0
- package/typings/classes/InstancePlaceholder.d.ts +20 -0
- package/typings/classes/IntervalTweener.d.ts +6 -0
- package/typings/classes/ItemList.d.ts +277 -0
- package/typings/classes/IterateIK3D.d.ts +85 -0
- package/typings/classes/JNISingleton.d.ts +8 -0
- package/typings/classes/JSON.d.ts +53 -0
- package/typings/classes/JSONRPC.d.ts +59 -0
- package/typings/classes/JacobianIK3D.d.ts +6 -0
- package/typings/classes/JavaClass.d.ts +16 -0
- package/typings/classes/JavaClassWrapper.d.ts +20 -0
- package/typings/classes/JavaObject.d.ts +10 -0
- package/typings/classes/JavaScriptBridge.d.ts +62 -0
- package/typings/classes/JavaScriptObject.d.ts +6 -0
- package/typings/classes/Joint2D.d.ts +28 -0
- package/typings/classes/Joint3D.d.ts +34 -0
- package/typings/classes/JointLimitation3D.d.ts +6 -0
- package/typings/classes/JointLimitationCone3D.d.ts +13 -0
- package/typings/classes/KinematicCollision2D.d.ts +36 -0
- package/typings/classes/KinematicCollision3D.d.ts +50 -0
- package/typings/classes/Label.d.ts +134 -0
- package/typings/classes/Label3D.d.ts +202 -0
- package/typings/classes/LabelSettings.d.ts +93 -0
- package/typings/classes/Light2D.d.ts +109 -0
- package/typings/classes/Light3D.d.ts +227 -0
- package/typings/classes/LightOccluder2D.d.ts +22 -0
- package/typings/classes/LightmapGI.d.ts +225 -0
- package/typings/classes/LightmapGIData.d.ts +50 -0
- package/typings/classes/LightmapProbe.d.ts +6 -0
- package/typings/classes/Lightmapper.d.ts +6 -0
- package/typings/classes/LightmapperRD.d.ts +6 -0
- package/typings/classes/LimitAngularVelocityModifier3D.d.ts +50 -0
- package/typings/classes/Line2D.d.ts +127 -0
- package/typings/classes/LineEdit.d.ts +370 -0
- package/typings/classes/LinkButton.d.ts +54 -0
- package/typings/classes/Logger.d.ts +31 -0
- package/typings/classes/LookAtModifier3D.d.ts +196 -0
- package/typings/classes/MainLoop.d.ts +80 -0
- package/typings/classes/MarginContainer.d.ts +6 -0
- package/typings/classes/Marker2D.d.ts +10 -0
- package/typings/classes/Marker3D.d.ts +10 -0
- package/typings/classes/Marshalls.d.ts +27 -0
- package/typings/classes/Material.d.ts +50 -0
- package/typings/classes/MenuBar.d.ts +64 -0
- package/typings/classes/MenuButton.d.ts +35 -0
- package/typings/classes/Mesh.d.ts +255 -0
- package/typings/classes/MeshConvexDecompositionSettings.d.ts +68 -0
- package/typings/classes/MeshDataTool.d.ts +99 -0
- package/typings/classes/MeshInstance2D.d.ts +19 -0
- package/typings/classes/MeshInstance3D.d.ts +87 -0
- package/typings/classes/MeshLibrary.d.ts +68 -0
- package/typings/classes/MeshTexture.d.ts +19 -0
- package/typings/classes/MethodTweener.d.ts +18 -0
- package/typings/classes/MissingNode.d.ts +26 -0
- package/typings/classes/MissingResource.d.ts +16 -0
- package/typings/classes/ModifierBoneTarget3D.d.ts +14 -0
- package/typings/classes/MovieWriter.d.ts +36 -0
- package/typings/classes/MultiMesh.d.ts +138 -0
- package/typings/classes/MultiMeshInstance2D.d.ts +19 -0
- package/typings/classes/MultiMeshInstance3D.d.ts +12 -0
- package/typings/classes/MultiplayerAPI.d.ts +93 -0
- package/typings/classes/MultiplayerAPIExtension.d.ts +24 -0
- package/typings/classes/MultiplayerPeer.d.ts +90 -0
- package/typings/classes/MultiplayerPeerExtension.d.ts +90 -0
- package/typings/classes/Mutex.d.ts +22 -0
- package/typings/classes/NativeMenu.d.ts +428 -0
- package/typings/classes/NavigationAgent2D.d.ts +292 -0
- package/typings/classes/NavigationAgent3D.d.ts +311 -0
- package/typings/classes/NavigationLink2D.d.ts +77 -0
- package/typings/classes/NavigationLink3D.d.ts +77 -0
- package/typings/classes/NavigationMesh.d.ts +207 -0
- package/typings/classes/NavigationMeshGenerator.d.ts +22 -0
- package/typings/classes/NavigationMeshSourceGeometryData2D.d.ts +52 -0
- package/typings/classes/NavigationMeshSourceGeometryData3D.d.ts +64 -0
- package/typings/classes/NavigationObstacle2D.d.ts +67 -0
- package/typings/classes/NavigationObstacle3D.d.ts +80 -0
- package/typings/classes/NavigationPathQueryParameters2D.d.ts +114 -0
- package/typings/classes/NavigationPathQueryParameters3D.d.ts +114 -0
- package/typings/classes/NavigationPathQueryResult2D.d.ts +41 -0
- package/typings/classes/NavigationPathQueryResult3D.d.ts +41 -0
- package/typings/classes/NavigationPolygon.d.ts +150 -0
- package/typings/classes/NavigationRegion2D.d.ts +74 -0
- package/typings/classes/NavigationRegion3D.d.ts +72 -0
- package/typings/classes/NavigationServer2D.d.ts +443 -0
- package/typings/classes/NavigationServer2DManager.d.ts +16 -0
- package/typings/classes/NavigationServer3D.d.ts +499 -0
- package/typings/classes/NavigationServer3DManager.d.ts +16 -0
- package/typings/classes/NinePatchRect.d.ts +65 -0
- package/typings/classes/Node.d.ts +1021 -0
- package/typings/classes/Node2D.d.ts +107 -0
- package/typings/classes/Node3D.d.ts +331 -0
- package/typings/classes/Node3DGizmo.d.ts +6 -0
- package/typings/classes/NodePath.d.ts +107 -0
- package/typings/classes/ORMMaterial3D.d.ts +6 -0
- package/typings/classes/OS.d.ts +556 -0
- package/typings/classes/Object.d.ts +434 -0
- package/typings/classes/Occluder3D.d.ts +10 -0
- package/typings/classes/OccluderInstance3D.d.ts +39 -0
- package/typings/classes/OccluderPolygon2D.d.ts +28 -0
- package/typings/classes/OmniLight3D.d.ts +31 -0
- package/typings/classes/OptimizedTranslation.d.ts +12 -0
- package/typings/classes/OptionButton.d.ts +136 -0
- package/typings/classes/PCKPacker.d.ts +27 -0
- package/typings/classes/PackedByteArray.d.ts +327 -0
- package/typings/classes/PackedColorArray.d.ts +125 -0
- package/typings/classes/PackedDataContainer.d.ts +13 -0
- package/typings/classes/PackedDataContainerRef.d.ts +8 -0
- package/typings/classes/PackedFloat32Array.d.ts +140 -0
- package/typings/classes/PackedFloat64Array.d.ts +140 -0
- package/typings/classes/PackedInt32Array.d.ts +127 -0
- package/typings/classes/PackedInt64Array.d.ts +127 -0
- package/typings/classes/PackedScene.d.ts +40 -0
- package/typings/classes/PackedStringArray.d.ts +124 -0
- package/typings/classes/PackedVector2Array.d.ts +139 -0
- package/typings/classes/PackedVector3Array.d.ts +139 -0
- package/typings/classes/PackedVector4Array.d.ts +138 -0
- package/typings/classes/PacketPeer.d.ts +33 -0
- package/typings/classes/PacketPeerDTLS.d.ts +34 -0
- package/typings/classes/PacketPeerExtension.d.ts +9 -0
- package/typings/classes/PacketPeerStream.d.ts +16 -0
- package/typings/classes/PacketPeerUDP.d.ts +61 -0
- package/typings/classes/Panel.d.ts +6 -0
- package/typings/classes/PanelContainer.d.ts +7 -0
- package/typings/classes/PanoramaSkyMaterial.d.ts +18 -0
- package/typings/classes/Parallax2D.d.ts +63 -0
- package/typings/classes/ParallaxBackground.d.ts +37 -0
- package/typings/classes/ParallaxLayer.d.ts +26 -0
- package/typings/classes/ParticleProcessMaterial.d.ts +595 -0
- package/typings/classes/Path2D.d.ts +10 -0
- package/typings/classes/Path3D.d.ts +21 -0
- package/typings/classes/PathFollow2D.d.ts +45 -0
- package/typings/classes/PathFollow3D.d.ts +76 -0
- package/typings/classes/Performance.d.ts +229 -0
- package/typings/classes/PhysicalBone2D.d.ts +44 -0
- package/typings/classes/PhysicalBone3D.d.ts +130 -0
- package/typings/classes/PhysicalBoneSimulator3D.d.ts +29 -0
- package/typings/classes/PhysicalSkyMaterial.d.ts +66 -0
- package/typings/classes/PhysicsBody2D.d.ts +34 -0
- package/typings/classes/PhysicsBody3D.d.ts +51 -0
- package/typings/classes/PhysicsDirectBodyState2D.d.ts +162 -0
- package/typings/classes/PhysicsDirectBodyState2DExtension.d.ts +132 -0
- package/typings/classes/PhysicsDirectBodyState3D.d.ts +165 -0
- package/typings/classes/PhysicsDirectBodyState3DExtension.d.ts +58 -0
- package/typings/classes/PhysicsDirectSpaceState2D.d.ts +58 -0
- package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +15 -0
- package/typings/classes/PhysicsDirectSpaceState3D.d.ts +62 -0
- package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +16 -0
- package/typings/classes/PhysicsMaterial.d.ts +27 -0
- package/typings/classes/PhysicsPointQueryParameters2D.d.ts +38 -0
- package/typings/classes/PhysicsPointQueryParameters3D.d.ts +31 -0
- package/typings/classes/PhysicsRayQueryParameters2D.d.ts +46 -0
- package/typings/classes/PhysicsRayQueryParameters3D.d.ts +52 -0
- package/typings/classes/PhysicsServer2D.d.ts +739 -0
- package/typings/classes/PhysicsServer2DExtension.d.ts +354 -0
- package/typings/classes/PhysicsServer2DManager.d.ts +16 -0
- package/typings/classes/PhysicsServer3D.d.ts +1028 -0
- package/typings/classes/PhysicsServer3DExtension.d.ts +204 -0
- package/typings/classes/PhysicsServer3DManager.d.ts +16 -0
- package/typings/classes/PhysicsServer3DRenderingServerHandler.d.ts +26 -0
- package/typings/classes/PhysicsShapeQueryParameters2D.d.ts +51 -0
- package/typings/classes/PhysicsShapeQueryParameters3D.d.ts +51 -0
- package/typings/classes/PhysicsTestMotionParameters2D.d.ts +46 -0
- package/typings/classes/PhysicsTestMotionParameters3D.d.ts +52 -0
- package/typings/classes/PhysicsTestMotionResult2D.d.ts +38 -0
- package/typings/classes/PhysicsTestMotionResult3D.d.ts +54 -0
- package/typings/classes/PinJoint2D.d.ts +34 -0
- package/typings/classes/PinJoint3D.d.ts +35 -0
- package/typings/classes/PlaceholderCubemap.d.ts +6 -0
- package/typings/classes/PlaceholderCubemapArray.d.ts +6 -0
- package/typings/classes/PlaceholderMaterial.d.ts +6 -0
- package/typings/classes/PlaceholderMesh.d.ts +9 -0
- package/typings/classes/PlaceholderTexture2D.d.ts +11 -0
- package/typings/classes/PlaceholderTexture2DArray.d.ts +6 -0
- package/typings/classes/PlaceholderTexture3D.d.ts +10 -0
- package/typings/classes/PlaceholderTextureLayered.d.ts +13 -0
- package/typings/classes/Plane.d.ts +143 -0
- package/typings/classes/PlaneMesh.d.ts +38 -0
- package/typings/classes/PointLight2D.d.ts +22 -0
- package/typings/classes/PointMesh.d.ts +6 -0
- package/typings/classes/Polygon2D.d.ts +101 -0
- package/typings/classes/PolygonOccluder3D.d.ts +13 -0
- package/typings/classes/PolygonPathFinder.d.ts +18 -0
- package/typings/classes/Popup.d.ts +18 -0
- package/typings/classes/PopupMenu.d.ts +349 -0
- package/typings/classes/PopupPanel.d.ts +10 -0
- package/typings/classes/PortableCompressedTexture2D.d.ts +47 -0
- package/typings/classes/PrimitiveMesh.d.ts +48 -0
- package/typings/classes/PrismMesh.d.ts +28 -0
- package/typings/classes/ProceduralSkyMaterial.d.ts +68 -0
- package/typings/classes/ProgressBar.d.ts +38 -0
- package/typings/classes/ProjectSettings.d.ts +3818 -0
- package/typings/classes/Projection.d.ts +193 -0
- package/typings/classes/PropertyTweener.d.ts +38 -0
- package/typings/classes/QuadMesh.d.ts +8 -0
- package/typings/classes/QuadOccluder3D.d.ts +10 -0
- package/typings/classes/Quaternion.d.ts +188 -0
- package/typings/classes/RDAttachmentFormat.d.ts +18 -0
- package/typings/classes/RDFramebufferPass.d.ts +33 -0
- package/typings/classes/RDPipelineColorBlendState.d.ts +22 -0
- package/typings/classes/RDPipelineColorBlendStateAttachment.d.ts +61 -0
- package/typings/classes/RDPipelineDepthStencilState.d.ts +102 -0
- package/typings/classes/RDPipelineMultisampleState.d.ts +42 -0
- package/typings/classes/RDPipelineRasterizationState.d.ts +64 -0
- package/typings/classes/RDPipelineSpecializationConstant.d.ts +18 -0
- package/typings/classes/RDSamplerState.d.ts +91 -0
- package/typings/classes/RDShaderFile.d.ts +21 -0
- package/typings/classes/RDShaderSPIRV.d.ts +85 -0
- package/typings/classes/RDShaderSource.d.ts +40 -0
- package/typings/classes/RDTextureFormat.d.ts +62 -0
- package/typings/classes/RDTextureView.d.ts +28 -0
- package/typings/classes/RDUniform.d.ts +23 -0
- package/typings/classes/RDVertexAttribute.d.ts +35 -0
- package/typings/classes/RID.d.ts +65 -0
- package/typings/classes/RandomNumberGenerator.d.ts +45 -0
- package/typings/classes/Range.d.ts +76 -0
- package/typings/classes/RayCast2D.d.ts +90 -0
- package/typings/classes/RayCast3D.d.ts +113 -0
- package/typings/classes/Rect2.d.ts +135 -0
- package/typings/classes/Rect2i.d.ts +127 -0
- package/typings/classes/RectangleShape2D.d.ts +10 -0
- package/typings/classes/RefCounted.d.ts +23 -0
- package/typings/classes/ReferenceRect.d.ts +22 -0
- package/typings/classes/ReflectionProbe.d.ts +118 -0
- package/typings/classes/RemoteTransform2D.d.ts +33 -0
- package/typings/classes/RemoteTransform3D.d.ts +33 -0
- package/typings/classes/RenderData.d.ts +20 -0
- package/typings/classes/RenderDataExtension.d.ts +18 -0
- package/typings/classes/RenderDataRD.d.ts +6 -0
- package/typings/classes/RenderSceneBuffers.d.ts +10 -0
- package/typings/classes/RenderSceneBuffersConfiguration.d.ts +48 -0
- package/typings/classes/RenderSceneBuffersExtension.d.ts +16 -0
- package/typings/classes/RenderSceneBuffersRD.d.ts +85 -0
- package/typings/classes/RenderSceneData.d.ts +29 -0
- package/typings/classes/RenderSceneDataExtension.d.ts +20 -0
- package/typings/classes/RenderSceneDataRD.d.ts +6 -0
- package/typings/classes/RenderingDevice.d.ts +2373 -0
- package/typings/classes/RenderingServer.d.ts +3501 -0
- package/typings/classes/Resource.d.ts +130 -0
- package/typings/classes/ResourceFormatLoader.d.ts +73 -0
- package/typings/classes/ResourceFormatSaver.d.ts +26 -0
- package/typings/classes/ResourceImporter.d.ts +18 -0
- package/typings/classes/ResourceImporterBMFont.d.ts +14 -0
- package/typings/classes/ResourceImporterBitMap.d.ts +16 -0
- package/typings/classes/ResourceImporterCSVTranslation.d.ts +23 -0
- package/typings/classes/ResourceImporterDynamicFont.d.ts +96 -0
- package/typings/classes/ResourceImporterImage.d.ts +6 -0
- package/typings/classes/ResourceImporterImageFont.d.ts +46 -0
- package/typings/classes/ResourceImporterLayeredTexture.d.ts +65 -0
- package/typings/classes/ResourceImporterOBJ.d.ts +38 -0
- package/typings/classes/ResourceImporterSVG.d.ts +24 -0
- package/typings/classes/ResourceImporterScene.d.ts +114 -0
- package/typings/classes/ResourceImporterShaderFile.d.ts +6 -0
- package/typings/classes/ResourceImporterTexture.d.ts +188 -0
- package/typings/classes/ResourceImporterTextureAtlas.d.ts +27 -0
- package/typings/classes/ResourceImporterWAV.d.ts +57 -0
- package/typings/classes/ResourceLoader.d.ts +106 -0
- package/typings/classes/ResourcePreloader.d.ts +20 -0
- package/typings/classes/ResourceSaver.d.ts +53 -0
- package/typings/classes/ResourceUID.d.ts +59 -0
- package/typings/classes/RetargetModifier3D.d.ts +51 -0
- package/typings/classes/RibbonTrailMesh.d.ts +42 -0
- package/typings/classes/RichTextEffect.d.ts +10 -0
- package/typings/classes/RichTextLabel.d.ts +524 -0
- package/typings/classes/RigidBody2D.d.ts +280 -0
- package/typings/classes/RigidBody3D.d.ts +271 -0
- package/typings/classes/RootMotionView.d.ts +30 -0
- package/typings/classes/SceneState.d.ts +93 -0
- package/typings/classes/SceneTree.d.ts +257 -0
- package/typings/classes/SceneTreeTimer.d.ts +13 -0
- package/typings/classes/Script.d.ts +64 -0
- package/typings/classes/ScriptBacktrace.d.ts +63 -0
- package/typings/classes/ScriptCreateDialog.d.ts +17 -0
- package/typings/classes/ScriptEditor.d.ts +60 -0
- package/typings/classes/ScriptEditorBase.d.ts +39 -0
- package/typings/classes/ScriptExtension.d.ts +48 -0
- package/typings/classes/ScriptLanguage.d.ts +12 -0
- package/typings/classes/ScriptLanguageExtension.d.ts +110 -0
- package/typings/classes/ScrollBar.d.ts +19 -0
- package/typings/classes/ScrollContainer.d.ts +120 -0
- package/typings/classes/SegmentShape2D.d.ts +14 -0
- package/typings/classes/Semaphore.d.ts +14 -0
- package/typings/classes/SeparationRayShape2D.d.ts +17 -0
- package/typings/classes/SeparationRayShape3D.d.ts +17 -0
- package/typings/classes/Separator.d.ts +6 -0
- package/typings/classes/Shader.d.ts +48 -0
- package/typings/classes/ShaderGlobalsOverride.d.ts +6 -0
- package/typings/classes/ShaderInclude.d.ts +12 -0
- package/typings/classes/ShaderIncludeDB.d.ts +14 -0
- package/typings/classes/ShaderMaterial.d.ts +19 -0
- package/typings/classes/Shape2D.d.ts +44 -0
- package/typings/classes/Shape3D.d.ts +24 -0
- package/typings/classes/ShapeCast2D.d.ts +107 -0
- package/typings/classes/ShapeCast3D.d.ts +116 -0
- package/typings/classes/Shortcut.d.ts +22 -0
- package/typings/classes/Signal.d.ts +86 -0
- package/typings/classes/Skeleton2D.d.ts +35 -0
- package/typings/classes/Skeleton3D.d.ts +225 -0
- package/typings/classes/SkeletonIK3D.d.ts +83 -0
- package/typings/classes/SkeletonModification2D.d.ts +52 -0
- package/typings/classes/SkeletonModification2DCCDIK.d.ts +64 -0
- package/typings/classes/SkeletonModification2DFABRIK.d.ts +40 -0
- package/typings/classes/SkeletonModification2DJiggle.d.ts +97 -0
- package/typings/classes/SkeletonModification2DLookAt.d.ts +48 -0
- package/typings/classes/SkeletonModification2DPhysicalBones.d.ts +32 -0
- package/typings/classes/SkeletonModification2DStackHolder.d.ts +12 -0
- package/typings/classes/SkeletonModification2DTwoBoneIK.d.ts +57 -0
- package/typings/classes/SkeletonModificationStack2D.d.ts +46 -0
- package/typings/classes/SkeletonModifier3D.d.ts +101 -0
- package/typings/classes/SkeletonProfile.d.ts +119 -0
- package/typings/classes/SkeletonProfileHumanoid.d.ts +10 -0
- package/typings/classes/Skin.d.ts +16 -0
- package/typings/classes/SkinReference.d.ts +15 -0
- package/typings/classes/Sky.d.ts +61 -0
- package/typings/classes/Slider.d.ts +49 -0
- package/typings/classes/SliderJoint3D.d.ts +166 -0
- package/typings/classes/SocketServer.d.ts +14 -0
- package/typings/classes/SoftBody3D.d.ts +136 -0
- package/typings/classes/SphereMesh.d.ts +29 -0
- package/typings/classes/SphereOccluder3D.d.ts +10 -0
- package/typings/classes/SphereShape3D.d.ts +10 -0
- package/typings/classes/SpinBox.d.ts +60 -0
- package/typings/classes/SplineIK3D.d.ts +37 -0
- package/typings/classes/SplitContainer.d.ts +114 -0
- package/typings/classes/SpotLight3D.d.ts +28 -0
- package/typings/classes/SpringArm3D.d.ts +47 -0
- package/typings/classes/SpringBoneCollision3D.d.ts +25 -0
- package/typings/classes/SpringBoneCollisionCapsule3D.d.ts +30 -0
- package/typings/classes/SpringBoneCollisionPlane3D.d.ts +6 -0
- package/typings/classes/SpringBoneCollisionSphere3D.d.ts +14 -0
- package/typings/classes/SpringBoneSimulator3D.d.ts +283 -0
- package/typings/classes/Sprite2D.d.ts +88 -0
- package/typings/classes/Sprite3D.d.ts +51 -0
- package/typings/classes/SpriteBase3D.d.ts +147 -0
- package/typings/classes/SpriteFrames.d.ts +57 -0
- package/typings/classes/StandardMaterial3D.d.ts +6 -0
- package/typings/classes/StaticBody2D.d.ts +27 -0
- package/typings/classes/StaticBody3D.d.ts +27 -0
- package/typings/classes/StatusIndicator.d.ts +36 -0
- package/typings/classes/StreamPeer.d.ts +102 -0
- package/typings/classes/StreamPeerBuffer.d.ts +23 -0
- package/typings/classes/StreamPeerExtension.d.ts +10 -0
- package/typings/classes/StreamPeerGZIP.d.ts +21 -0
- package/typings/classes/StreamPeerSocket.d.ts +22 -0
- package/typings/classes/StreamPeerTCP.d.ts +26 -0
- package/typings/classes/StreamPeerTLS.d.ts +40 -0
- package/typings/classes/StreamPeerUDS.d.ts +15 -0
- package/typings/classes/String.d.ts +475 -0
- package/typings/classes/StringName.d.ts +4 -0
- package/typings/classes/StyleBox.d.ts +64 -0
- package/typings/classes/StyleBoxEmpty.d.ts +6 -0
- package/typings/classes/StyleBoxFlat.d.ts +120 -0
- package/typings/classes/StyleBoxLine.d.ts +30 -0
- package/typings/classes/StyleBoxTexture.d.ts +99 -0
- package/typings/classes/SubViewport.d.ts +57 -0
- package/typings/classes/SubViewportContainer.d.ts +33 -0
- package/typings/classes/SubtweenTweener.d.ts +10 -0
- package/typings/classes/SurfaceTool.d.ts +178 -0
- package/typings/classes/SyntaxHighlighter.d.ts +33 -0
- package/typings/classes/SystemFont.d.ts +94 -0
- package/typings/classes/TCPServer.d.ts +17 -0
- package/typings/classes/TLSOptions.d.ts +38 -0
- package/typings/classes/TabBar.d.ts +203 -0
- package/typings/classes/TabContainer.d.ts +184 -0
- package/typings/classes/TextEdit.d.ts +877 -0
- package/typings/classes/TextLine.d.ts +100 -0
- package/typings/classes/TextMesh.d.ts +103 -0
- package/typings/classes/TextParagraph.d.ts +160 -0
- package/typings/classes/TextServer.d.ts +1006 -0
- package/typings/classes/TextServerDummy.d.ts +6 -0
- package/typings/classes/TextServerExtension.d.ts +586 -0
- package/typings/classes/TextServerManager.d.ts +31 -0
- package/typings/classes/Texture.d.ts +6 -0
- package/typings/classes/Texture2D.d.ts +69 -0
- package/typings/classes/Texture2DArray.d.ts +10 -0
- package/typings/classes/Texture2DArrayRD.d.ts +6 -0
- package/typings/classes/Texture2DRD.d.ts +11 -0
- package/typings/classes/Texture3D.d.ts +36 -0
- package/typings/classes/Texture3DRD.d.ts +10 -0
- package/typings/classes/TextureButton.d.ts +80 -0
- package/typings/classes/TextureCubemapArrayRD.d.ts +6 -0
- package/typings/classes/TextureCubemapRD.d.ts +6 -0
- package/typings/classes/TextureLayered.d.ts +46 -0
- package/typings/classes/TextureLayeredRD.d.ts +10 -0
- package/typings/classes/TextureProgressBar.d.ts +120 -0
- package/typings/classes/TextureRect.d.ts +69 -0
- package/typings/classes/Theme.d.ts +335 -0
- package/typings/classes/ThemeDB.d.ts +58 -0
- package/typings/classes/Thread.d.ts +55 -0
- package/typings/classes/TileData.d.ts +155 -0
- package/typings/classes/TileMap.d.ts +303 -0
- package/typings/classes/TileMapLayer.d.ts +244 -0
- package/typings/classes/TileMapPattern.d.ts +26 -0
- package/typings/classes/TileSet.d.ts +348 -0
- package/typings/classes/TileSetAtlasSource.d.ts +160 -0
- package/typings/classes/TileSetScenesCollectionSource.d.ts +37 -0
- package/typings/classes/TileSetSource.d.ts +24 -0
- package/typings/classes/Time.d.ts +149 -0
- package/typings/classes/Timer.d.ts +71 -0
- package/typings/classes/TorusMesh.d.ts +22 -0
- package/typings/classes/TouchScreenButton.d.ts +61 -0
- package/typings/classes/Transform2D.d.ts +207 -0
- package/typings/classes/Transform3D.d.ts +173 -0
- package/typings/classes/Translation.d.ts +51 -0
- package/typings/classes/TranslationDomain.d.ts +115 -0
- package/typings/classes/TranslationServer.d.ts +117 -0
- package/typings/classes/Tree.d.ts +298 -0
- package/typings/classes/TreeItem.d.ts +374 -0
- package/typings/classes/TriangleMesh.d.ts +33 -0
- package/typings/classes/TubeTrailMesh.d.ts +50 -0
- package/typings/classes/Tween.d.ts +218 -0
- package/typings/classes/Tweener.d.ts +11 -0
- package/typings/classes/TwoBoneIK3D.d.ts +87 -0
- package/typings/classes/UDPServer.d.ts +35 -0
- package/typings/classes/UDSServer.d.ts +13 -0
- package/typings/classes/UndoRedo.d.ts +92 -0
- package/typings/classes/UniformSetCacheRD.d.ts +8 -0
- package/typings/classes/VBoxContainer.d.ts +6 -0
- package/typings/classes/VFlowContainer.d.ts +6 -0
- package/typings/classes/VScrollBar.d.ts +8 -0
- package/typings/classes/VSeparator.d.ts +6 -0
- package/typings/classes/VSlider.d.ts +8 -0
- package/typings/classes/VSplitContainer.d.ts +8 -0
- package/typings/classes/Variant.d.ts +6 -0
- package/typings/classes/Vector2.d.ts +298 -0
- package/typings/classes/Vector2i.d.ts +166 -0
- package/typings/classes/Vector3.d.ts +309 -0
- package/typings/classes/Vector3i.d.ts +172 -0
- package/typings/classes/Vector4.d.ts +216 -0
- package/typings/classes/Vector4i.d.ts +164 -0
- package/typings/classes/VehicleBody3D.d.ts +26 -0
- package/typings/classes/VehicleWheel3D.d.ts +112 -0
- package/typings/classes/VideoStream.d.ts +18 -0
- package/typings/classes/VideoStreamPlayback.d.ts +52 -0
- package/typings/classes/VideoStreamPlayer.d.ts +82 -0
- package/typings/classes/Viewport.d.ts +815 -0
- package/typings/classes/ViewportTexture.d.ts +13 -0
- package/typings/classes/VirtualJoystick.d.ts +94 -0
- package/typings/classes/VisibleOnScreenEnabler2D.d.ts +26 -0
- package/typings/classes/VisibleOnScreenEnabler3D.d.ts +26 -0
- package/typings/classes/VisibleOnScreenNotifier2D.d.ts +27 -0
- package/typings/classes/VisibleOnScreenNotifier3D.d.ts +20 -0
- package/typings/classes/VisualInstance3D.d.ts +53 -0
- package/typings/classes/VisualShader.d.ts +112 -0
- package/typings/classes/VisualShaderNode.d.ts +63 -0
- package/typings/classes/VisualShaderNodeBillboard.d.ts +28 -0
- package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeClamp.d.ts +26 -0
- package/typings/classes/VisualShaderNodeColorConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeColorFunc.d.ts +32 -0
- package/typings/classes/VisualShaderNodeColorOp.d.ts +32 -0
- package/typings/classes/VisualShaderNodeColorParameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeComment.d.ts +12 -0
- package/typings/classes/VisualShaderNodeCompare.d.ts +68 -0
- package/typings/classes/VisualShaderNodeConstant.d.ts +6 -0
- package/typings/classes/VisualShaderNodeCubemap.d.ts +43 -0
- package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeCurveTexture.d.ts +10 -0
- package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +10 -0
- package/typings/classes/VisualShaderNodeCustom.d.ts +122 -0
- package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +56 -0
- package/typings/classes/VisualShaderNodeDeterminant.d.ts +6 -0
- package/typings/classes/VisualShaderNodeDistanceFade.d.ts +6 -0
- package/typings/classes/VisualShaderNodeDotProduct.d.ts +6 -0
- package/typings/classes/VisualShaderNodeExpression.d.ts +12 -0
- package/typings/classes/VisualShaderNodeFaceForward.d.ts +8 -0
- package/typings/classes/VisualShaderNodeFloatConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeFloatFunc.d.ts +108 -0
- package/typings/classes/VisualShaderNodeFloatOp.d.ts +36 -0
- package/typings/classes/VisualShaderNodeFloatParameter.d.ts +52 -0
- package/typings/classes/VisualShaderNodeFrame.d.ts +35 -0
- package/typings/classes/VisualShaderNodeFresnel.d.ts +6 -0
- package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +6 -0
- package/typings/classes/VisualShaderNodeGroupBase.d.ts +60 -0
- package/typings/classes/VisualShaderNodeIf.d.ts +8 -0
- package/typings/classes/VisualShaderNodeInput.d.ts +20 -0
- package/typings/classes/VisualShaderNodeIntConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeIntFunc.d.ts +24 -0
- package/typings/classes/VisualShaderNodeIntOp.d.ts +48 -0
- package/typings/classes/VisualShaderNodeIntParameter.d.ts +58 -0
- package/typings/classes/VisualShaderNodeIs.d.ts +18 -0
- package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +6 -0
- package/typings/classes/VisualShaderNodeMix.d.ts +28 -0
- package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +22 -0
- package/typings/classes/VisualShaderNodeOuterProduct.d.ts +6 -0
- package/typings/classes/VisualShaderNodeOutput.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParameter.d.ts +32 -0
- package/typings/classes/VisualShaderNodeParameterRef.d.ts +10 -0
- package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +20 -0
- package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParticleEmit.d.ts +22 -0
- package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +12 -0
- package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +20 -0
- package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +10 -0
- package/typings/classes/VisualShaderNodeParticleOutput.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +22 -0
- package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeProximityFade.d.ts +6 -0
- package/typings/classes/VisualShaderNodeRandomRange.d.ts +6 -0
- package/typings/classes/VisualShaderNodeRemap.d.ts +33 -0
- package/typings/classes/VisualShaderNodeReroute.d.ts +8 -0
- package/typings/classes/VisualShaderNodeResizableBase.d.ts +10 -0
- package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +6 -0
- package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +6 -0
- package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +8 -0
- package/typings/classes/VisualShaderNodeSample3D.d.ts +18 -0
- package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +6 -0
- package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +8 -0
- package/typings/classes/VisualShaderNodeSmoothStep.d.ts +28 -0
- package/typings/classes/VisualShaderNodeStep.d.ts +28 -0
- package/typings/classes/VisualShaderNodeSwitch.d.ts +30 -0
- package/typings/classes/VisualShaderNodeTexture.d.ts +57 -0
- package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +12 -0
- package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTexture3D.d.ts +12 -0
- package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTextureParameter.d.ts +104 -0
- package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTextureSDF.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTransformCompose.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTransformConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +6 -0
- package/typings/classes/VisualShaderNodeTransformFunc.d.ts +18 -0
- package/typings/classes/VisualShaderNodeTransformOp.d.ts +32 -0
- package/typings/classes/VisualShaderNodeTransformParameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +22 -0
- package/typings/classes/VisualShaderNodeUIntConstant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeUIntFunc.d.ts +20 -0
- package/typings/classes/VisualShaderNodeUIntOp.d.ts +48 -0
- package/typings/classes/VisualShaderNodeUIntParameter.d.ts +16 -0
- package/typings/classes/VisualShaderNodeUVFunc.d.ts +22 -0
- package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVarying.d.ts +14 -0
- package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVec2Constant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeVec3Constant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeVec4Constant.d.ts +10 -0
- package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +14 -0
- package/typings/classes/VisualShaderNodeVectorBase.d.ts +20 -0
- package/typings/classes/VisualShaderNodeVectorCompose.d.ts +8 -0
- package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +8 -0
- package/typings/classes/VisualShaderNodeVectorDistance.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVectorFunc.d.ts +84 -0
- package/typings/classes/VisualShaderNodeVectorLen.d.ts +6 -0
- package/typings/classes/VisualShaderNodeVectorOp.d.ts +42 -0
- package/typings/classes/VisualShaderNodeVectorRefract.d.ts +8 -0
- package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +8 -0
- package/typings/classes/VoxelGI.d.ts +54 -0
- package/typings/classes/VoxelGIData.d.ts +70 -0
- package/typings/classes/WeakRef.d.ts +12 -0
- package/typings/classes/Window.d.ts +790 -0
- package/typings/classes/WorkerThreadPool.d.ts +55 -0
- package/typings/classes/World2D.d.ts +24 -0
- package/typings/classes/World3D.d.ts +32 -0
- package/typings/classes/WorldBoundaryShape2D.d.ts +19 -0
- package/typings/classes/WorldBoundaryShape3D.d.ts +10 -0
- package/typings/classes/WorldEnvironment.d.ts +22 -0
- package/typings/classes/X509Certificate.d.ts +16 -0
- package/typings/classes/XMLParser.d.ts +74 -0
- package/typings/classes/XRAnchor3D.d.ts +12 -0
- package/typings/classes/XRBodyModifier3D.d.ts +35 -0
- package/typings/classes/XRBodyTracker.d.ts +218 -0
- package/typings/classes/XRCamera3D.d.ts +7 -0
- package/typings/classes/XRController3D.d.ts +39 -0
- package/typings/classes/XRControllerTracker.d.ts +7 -0
- package/typings/classes/XRFaceModifier3D.d.ts +14 -0
- package/typings/classes/XRFaceTracker.d.ts +308 -0
- package/typings/classes/XRHandModifier3D.d.ts +24 -0
- package/typings/classes/XRHandTracker.d.ts +127 -0
- package/typings/classes/XRInterface.d.ts +181 -0
- package/typings/classes/XRInterfaceExtension.d.ts +94 -0
- package/typings/classes/XRNode3D.d.ts +46 -0
- package/typings/classes/XROrigin3D.d.ts +18 -0
- package/typings/classes/XRPose.d.ts +55 -0
- package/typings/classes/XRPositionalTracker.d.ts +64 -0
- package/typings/classes/XRServer.d.ts +130 -0
- package/typings/classes/XRTracker.d.ts +27 -0
- package/typings/classes/XRVRS.d.ts +28 -0
- package/typings/classes/_globals.d.ts +2243 -0
- package/typings/classes/_number-ops.d.ts +19 -0
- package/typings/classes/index.d.ts +915 -0
- package/typings/globals/gd-helpers.d.ts +354 -0
- package/typings/globals/globals.d.ts +511 -0
- package/typings/godot-class-registry.json +61322 -0
- package/typings/index.d.ts +3 -0
- package/typings-overrides/_globals.d.ts +114 -0
- package/typings-overrides/array.d.ts +54 -0
- package/typings-overrides/callable-function.d.ts +92 -0
- package/typings-overrides/class-db.d.ts +19 -0
- package/typings-overrides/dictionary.d.ts +26 -0
- package/typings-overrides/function.d.ts +29 -0
- package/typings-overrides/godot-object.d.ts +32 -0
- package/typings-overrides/node.d.ts +9 -0
- package/typings-overrides/non-nullable.json +117 -0
- package/typings-overrides/packed-scene.d.ts +7 -0
- package/typings-overrides/project-settings.d.ts +73 -0
- package/typings-overrides/property-tweener.d.ts +8 -0
- package/typings-overrides/resource.d.ts +3 -0
- package/typings-overrides/scene-tree.d.ts +54 -0
- package/typings-overrides/signal.d.ts +10 -0
- package/typings-overrides/tween.d.ts +18 -0
|
@@ -0,0 +1,1006 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** A server interface for font management and text rendering. */
|
|
5
|
+
declare class TextServer extends RefCounted {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new, empty font cache entry resource. To free the resulting resource, use the {@link free_rid} method.
|
|
8
|
+
*/
|
|
9
|
+
create_font(): RID;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new variation existing font which is reusing the same glyph cache and font data. To free the resulting resource, use the {@link free_rid} method.
|
|
12
|
+
*/
|
|
13
|
+
create_font_linked_variation(font_rid: RID): RID;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new buffer for complex text layout, with the given `direction` and `orientation`. To free the resulting buffer, use {@link free_rid} method.
|
|
16
|
+
* **Note:** Direction is ignored if server does not support {@link FEATURE_BIDI_LAYOUT} feature (supported by {@link TextServerAdvanced}).
|
|
17
|
+
* **Note:** Orientation is ignored if server does not support {@link FEATURE_VERTICAL_LAYOUT} feature (supported by {@link TextServerAdvanced}).
|
|
18
|
+
*/
|
|
19
|
+
create_shaped_text(direction: int, orientation: int): RID;
|
|
20
|
+
/** Draws box displaying character hexadecimal code. Used for replacing missing characters. */
|
|
21
|
+
draw_hex_code_box(canvas: RID, size: int, pos: Vector2 | Vector2i, index: int, color: Color): void;
|
|
22
|
+
/**
|
|
23
|
+
* Removes all rendered glyph information from the cache entry.
|
|
24
|
+
* **Note:** This function will not remove textures associated with the glyphs, use {@link font_remove_texture} to remove them manually.
|
|
25
|
+
*/
|
|
26
|
+
font_clear_glyphs(font_rid: RID, size: Vector2i | Vector2): void;
|
|
27
|
+
/** Removes all kerning overrides. */
|
|
28
|
+
font_clear_kerning_map(font_rid: RID, size: int): void;
|
|
29
|
+
/** Removes all font sizes from the cache entry. */
|
|
30
|
+
font_clear_size_cache(font_rid: RID): void;
|
|
31
|
+
/** Frees all automatically loaded system fonts. */
|
|
32
|
+
font_clear_system_fallback_cache(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Removes all textures from font cache entry.
|
|
35
|
+
* **Note:** This function will not remove glyphs associated with the texture, use {@link font_remove_glyph} to remove them manually.
|
|
36
|
+
*/
|
|
37
|
+
font_clear_textures(font_rid: RID, size: Vector2i | Vector2): void;
|
|
38
|
+
/**
|
|
39
|
+
* Draws single glyph into a canvas item at the position, using `font_rid` at the size `size`. If `oversampling` is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
|
40
|
+
* **Note:** Glyph index is specific to the font, use glyphs indices returned by {@link shaped_text_get_glyphs} or {@link font_get_glyph_index}.
|
|
41
|
+
* **Note:** If there are pending glyphs to render, calling this function might trigger the texture cache update.
|
|
42
|
+
*/
|
|
43
|
+
font_draw_glyph(font_rid: RID, canvas: RID, size: int, pos: Vector2 | Vector2i, index: int, color?: Color, oversampling?: float): void;
|
|
44
|
+
/**
|
|
45
|
+
* Draws single glyph outline of size `outline_size` into a canvas item at the position, using `font_rid` at the size `size`. If `oversampling` is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
|
46
|
+
* **Note:** Glyph index is specific to the font, use glyphs indices returned by {@link shaped_text_get_glyphs} or {@link font_get_glyph_index}.
|
|
47
|
+
* **Note:** If there are pending glyphs to render, calling this function might trigger the texture cache update.
|
|
48
|
+
*/
|
|
49
|
+
font_draw_glyph_outline(font_rid: RID, canvas: RID, size: int, outline_size: int, pos: Vector2 | Vector2i, index: int, color?: Color, oversampling?: float): void;
|
|
50
|
+
/** Returns font anti-aliasing mode. */
|
|
51
|
+
font_get_antialiasing(font_rid: RID): int;
|
|
52
|
+
/** Returns the font ascent (number of pixels above the baseline). */
|
|
53
|
+
font_get_ascent(font_rid: RID, size: int): float;
|
|
54
|
+
/** Returns extra baseline offset (as a fraction of font height). */
|
|
55
|
+
font_get_baseline_offset(font_rid: RID): float;
|
|
56
|
+
/**
|
|
57
|
+
* Returns character code associated with `glyph_index`, or `0` if `glyph_index` is invalid. See {@link font_get_glyph_index}.
|
|
58
|
+
*/
|
|
59
|
+
font_get_char_from_glyph_index(font_rid: RID, size: int, glyph_index: int): int;
|
|
60
|
+
/** Returns the font descent (number of pixels below the baseline). */
|
|
61
|
+
font_get_descent(font_rid: RID, size: int): float;
|
|
62
|
+
/** Returns whether the font's embedded bitmap loading is disabled. */
|
|
63
|
+
font_get_disable_embedded_bitmaps(font_rid: RID): boolean;
|
|
64
|
+
/** Returns font embolden strength. */
|
|
65
|
+
font_get_embolden(font_rid: RID): float;
|
|
66
|
+
/** Returns number of faces in the TrueType / OpenType collection. */
|
|
67
|
+
font_get_face_count(font_rid: RID): int;
|
|
68
|
+
/** Returns an active face index in the TrueType / OpenType collection. */
|
|
69
|
+
font_get_face_index(font_rid: RID): int;
|
|
70
|
+
/** Returns bitmap font fixed size. */
|
|
71
|
+
font_get_fixed_size(font_rid: RID): int;
|
|
72
|
+
/** Returns bitmap font scaling mode. */
|
|
73
|
+
font_get_fixed_size_scale_mode(font_rid: RID): int;
|
|
74
|
+
/** Returns `true` if font texture mipmap generation is enabled. */
|
|
75
|
+
font_get_generate_mipmaps(font_rid: RID): boolean;
|
|
76
|
+
/** This method does nothing and always returns `1.0`. */
|
|
77
|
+
font_get_global_oversampling(): float;
|
|
78
|
+
/**
|
|
79
|
+
* Returns glyph advance (offset of the next glyph).
|
|
80
|
+
* **Note:** Advance for glyphs outlines is the same as the base glyph advance and is not saved.
|
|
81
|
+
*/
|
|
82
|
+
font_get_glyph_advance(font_rid: RID, size: int, glyph: int): Vector2;
|
|
83
|
+
/**
|
|
84
|
+
* Returns outline contours of the glyph as a {@link Dictionary} with the following contents:
|
|
85
|
+
* `points` - {@link PackedVector3Array}, containing outline points. `x` and `y` are point coordinates. `z` is the type of the point, using the {@link ContourPointTag} values.
|
|
86
|
+
* `contours` - {@link PackedInt32Array}, containing indices the end points of each contour.
|
|
87
|
+
* `orientation` - [bool], contour orientation. If `true`, clockwise contours must be filled.
|
|
88
|
+
* - Two successive {@link CONTOUR_CURVE_TAG_ON} points indicate a line segment.
|
|
89
|
+
* - One {@link CONTOUR_CURVE_TAG_OFF_CONIC} point between two {@link CONTOUR_CURVE_TAG_ON} points indicates a single conic (quadratic) Bézier arc.
|
|
90
|
+
* - Two {@link CONTOUR_CURVE_TAG_OFF_CUBIC} points between two {@link CONTOUR_CURVE_TAG_ON} points indicate a single cubic Bézier arc.
|
|
91
|
+
* - Two successive {@link CONTOUR_CURVE_TAG_OFF_CONIC} points indicate two successive conic (quadratic) Bézier arcs with a virtual {@link CONTOUR_CURVE_TAG_ON} point at their middle.
|
|
92
|
+
* - Each contour is closed. The last point of a contour uses the first point of a contour as its next point, and vice versa. The first point can be {@link CONTOUR_CURVE_TAG_OFF_CONIC} point.
|
|
93
|
+
*/
|
|
94
|
+
font_get_glyph_contours(font: RID, size: int, index: int): Dictionary;
|
|
95
|
+
/**
|
|
96
|
+
* Returns the glyph index of a `char`, optionally modified by the `variation_selector`. See {@link font_get_char_from_glyph_index}.
|
|
97
|
+
*/
|
|
98
|
+
font_get_glyph_index(font_rid: RID, size: int, char: int, variation_selector: int): int;
|
|
99
|
+
/** Returns list of rendered glyphs in the cache entry. */
|
|
100
|
+
font_get_glyph_list(font_rid: RID, size: Vector2i | Vector2): PackedInt32Array;
|
|
101
|
+
/** Returns glyph offset from the baseline. */
|
|
102
|
+
font_get_glyph_offset(font_rid: RID, size: Vector2i | Vector2, glyph: int): Vector2;
|
|
103
|
+
/** Returns size of the glyph. */
|
|
104
|
+
font_get_glyph_size(font_rid: RID, size: Vector2i | Vector2, glyph: int): Vector2;
|
|
105
|
+
/** Returns index of the cache texture containing the glyph. */
|
|
106
|
+
font_get_glyph_texture_idx(font_rid: RID, size: Vector2i | Vector2, glyph: int): int;
|
|
107
|
+
/**
|
|
108
|
+
* Returns resource ID of the cache texture containing the glyph.
|
|
109
|
+
* **Note:** If there are pending glyphs to render, calling this function might trigger the texture cache update.
|
|
110
|
+
*/
|
|
111
|
+
font_get_glyph_texture_rid(font_rid: RID, size: Vector2i | Vector2, glyph: int): RID;
|
|
112
|
+
/**
|
|
113
|
+
* Returns size of the cache texture containing the glyph.
|
|
114
|
+
* **Note:** If there are pending glyphs to render, calling this function might trigger the texture cache update.
|
|
115
|
+
*/
|
|
116
|
+
font_get_glyph_texture_size(font_rid: RID, size: Vector2i | Vector2, glyph: int): Vector2;
|
|
117
|
+
/** Returns rectangle in the cache texture containing the glyph. */
|
|
118
|
+
font_get_glyph_uv_rect(font_rid: RID, size: Vector2i | Vector2, glyph: int): Rect2;
|
|
119
|
+
/** Returns the font hinting mode. Used by dynamic fonts only. */
|
|
120
|
+
font_get_hinting(font_rid: RID): int;
|
|
121
|
+
/**
|
|
122
|
+
* Returns glyph position rounding behavior. If set to `true`, when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.
|
|
123
|
+
*/
|
|
124
|
+
font_get_keep_rounding_remainders(font_rid: RID): boolean;
|
|
125
|
+
/** Returns kerning for the pair of glyphs. */
|
|
126
|
+
font_get_kerning(font_rid: RID, size: int, glyph_pair: Vector2i | Vector2): Vector2;
|
|
127
|
+
/** Returns list of the kerning overrides. */
|
|
128
|
+
font_get_kerning_list(font_rid: RID, size: int): Array<Vector2i>;
|
|
129
|
+
/** Returns `true` if support override is enabled for the `language`. */
|
|
130
|
+
font_get_language_support_override(font_rid: RID, language: string | NodePath): boolean;
|
|
131
|
+
/** Returns list of language support overrides. */
|
|
132
|
+
font_get_language_support_overrides(font_rid: RID): PackedStringArray;
|
|
133
|
+
/**
|
|
134
|
+
* Returns the width of the range around the shape between the minimum and maximum representable signed distance.
|
|
135
|
+
*/
|
|
136
|
+
font_get_msdf_pixel_range(font_rid: RID): int;
|
|
137
|
+
/** Returns source font size used to generate MSDF textures. */
|
|
138
|
+
font_get_msdf_size(font_rid: RID): int;
|
|
139
|
+
/** Returns font family name. */
|
|
140
|
+
font_get_name(font_rid: RID): string;
|
|
141
|
+
/** Returns font OpenType feature set override. */
|
|
142
|
+
font_get_opentype_feature_overrides(font_rid: RID): Dictionary;
|
|
143
|
+
/**
|
|
144
|
+
* Returns {@link Dictionary} with OpenType font name strings (localized font names, version, description, license information, sample text, etc.).
|
|
145
|
+
*/
|
|
146
|
+
font_get_ot_name_strings(font_rid: RID): Dictionary;
|
|
147
|
+
/**
|
|
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
|
+
*/
|
|
150
|
+
font_get_oversampling(font_rid: RID): float;
|
|
151
|
+
/** Returns scaling factor of the color bitmap font. */
|
|
152
|
+
font_get_scale(font_rid: RID, size: int): float;
|
|
153
|
+
/** Returns `true` if support override is enabled for the `script`. */
|
|
154
|
+
font_get_script_support_override(font_rid: RID, script: string | NodePath): boolean;
|
|
155
|
+
/** Returns list of script support overrides. */
|
|
156
|
+
font_get_script_support_overrides(font_rid: RID): PackedStringArray;
|
|
157
|
+
/**
|
|
158
|
+
* Returns font cache information, each entry contains the following fields: `Vector2i size_px` - font size in pixels, `float viewport_oversampling` - viewport oversampling factor, `int glyphs` - number of rendered glyphs, `int textures` - number of used textures, `int textures_size` - size of texture data in bytes.
|
|
159
|
+
*/
|
|
160
|
+
font_get_size_cache_info(font_rid: RID): Array<Dictionary>;
|
|
161
|
+
/**
|
|
162
|
+
* Returns list of the font sizes in the cache. Each size is {@link Vector2i} with font size and outline size.
|
|
163
|
+
*/
|
|
164
|
+
font_get_size_cache_list(font_rid: RID): Array<Vector2i>;
|
|
165
|
+
/** Returns the spacing for `spacing` in pixels (not relative to the font size). */
|
|
166
|
+
font_get_spacing(font_rid: RID, spacing: int): int;
|
|
167
|
+
/**
|
|
168
|
+
* Returns font stretch amount, compared to a normal width. A percentage value between `50%` and `200%`.
|
|
169
|
+
*/
|
|
170
|
+
font_get_stretch(font_rid: RID): int;
|
|
171
|
+
/** Returns font style flags. */
|
|
172
|
+
font_get_style(font_rid: RID): int;
|
|
173
|
+
/** Returns font style name. */
|
|
174
|
+
font_get_style_name(font_rid: RID): string;
|
|
175
|
+
/** Returns font subpixel glyph positioning mode. */
|
|
176
|
+
font_get_subpixel_positioning(font_rid: RID): int;
|
|
177
|
+
/** Returns a string containing all the characters available in the font. */
|
|
178
|
+
font_get_supported_chars(font_rid: RID): string;
|
|
179
|
+
/** Returns an array containing all glyph indices in the font. */
|
|
180
|
+
font_get_supported_glyphs(font_rid: RID): PackedInt32Array;
|
|
181
|
+
/** Returns number of textures used by font cache entry. */
|
|
182
|
+
font_get_texture_count(font_rid: RID, size: Vector2i | Vector2): int;
|
|
183
|
+
/** Returns font cache texture image data. */
|
|
184
|
+
font_get_texture_image(font_rid: RID, size: Vector2i | Vector2, texture_index: int): Image | null;
|
|
185
|
+
/** Returns array containing glyph packing data. */
|
|
186
|
+
font_get_texture_offsets(font_rid: RID, size: Vector2i | Vector2, texture_index: int): PackedInt32Array;
|
|
187
|
+
/** Returns 2D transform applied to the font outlines. */
|
|
188
|
+
font_get_transform(font_rid: RID): Transform2D;
|
|
189
|
+
/** Returns pixel offset of the underline below the baseline. */
|
|
190
|
+
font_get_underline_position(font_rid: RID, size: int): float;
|
|
191
|
+
/** Returns thickness of the underline in pixels. */
|
|
192
|
+
font_get_underline_thickness(font_rid: RID, size: int): float;
|
|
193
|
+
/**
|
|
194
|
+
* Returns variation coordinates for the specified font cache entry. See {@link font_supported_variation_list} for more info.
|
|
195
|
+
*/
|
|
196
|
+
font_get_variation_coordinates(font_rid: RID): Dictionary;
|
|
197
|
+
/**
|
|
198
|
+
* Returns weight (boldness) of the font. A value in the `100...999` range, normal font weight is `400`, bold font weight is `700`.
|
|
199
|
+
*/
|
|
200
|
+
font_get_weight(font_rid: RID): int;
|
|
201
|
+
/** Returns `true` if a Unicode `char` is available in the font. */
|
|
202
|
+
font_has_char(font_rid: RID, char: int): boolean;
|
|
203
|
+
/** Returns `true` if system fonts can be automatically used as fallbacks. */
|
|
204
|
+
font_is_allow_system_fallback(font_rid: RID): boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Returns `true` if auto-hinting is supported and preferred over font built-in hinting. Used by dynamic fonts only.
|
|
207
|
+
*/
|
|
208
|
+
font_is_force_autohinter(font_rid: RID): boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Returns `true` if the font supports the given language (as a ISO 639 (https://en.wikipedia.org/wiki/ISO_639-1) code).
|
|
211
|
+
*/
|
|
212
|
+
font_is_language_supported(font_rid: RID, language: string | NodePath): boolean;
|
|
213
|
+
/** Returns `true` if color modulation is applied when drawing the font's colored glyphs. */
|
|
214
|
+
font_is_modulate_color_glyphs(font_rid: RID): boolean;
|
|
215
|
+
/**
|
|
216
|
+
* Returns `true` if glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data.
|
|
217
|
+
*/
|
|
218
|
+
font_is_multichannel_signed_distance_field(font_rid: RID): boolean;
|
|
219
|
+
/**
|
|
220
|
+
* Returns `true` if the font supports the given script (as a ISO 15924 (https://en.wikipedia.org/wiki/ISO_15924) code).
|
|
221
|
+
*/
|
|
222
|
+
font_is_script_supported(font_rid: RID, script: string | NodePath): boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Removes specified rendered glyph information from the cache entry.
|
|
225
|
+
* **Note:** This function will not remove textures associated with the glyphs, use {@link font_remove_texture} to remove them manually.
|
|
226
|
+
*/
|
|
227
|
+
font_remove_glyph(font_rid: RID, size: Vector2i | Vector2, glyph: int): void;
|
|
228
|
+
/** Removes kerning override for the pair of glyphs. */
|
|
229
|
+
font_remove_kerning(font_rid: RID, size: int, glyph_pair: Vector2i | Vector2): void;
|
|
230
|
+
/** Remove language support override. */
|
|
231
|
+
font_remove_language_support_override(font_rid: RID, language: string | NodePath): void;
|
|
232
|
+
/** Removes script support override. */
|
|
233
|
+
font_remove_script_support_override(font_rid: RID, script: string | NodePath): void;
|
|
234
|
+
/** Removes specified font size from the cache entry. */
|
|
235
|
+
font_remove_size_cache(font_rid: RID, size: Vector2i | Vector2): void;
|
|
236
|
+
/**
|
|
237
|
+
* Removes specified texture from the cache entry.
|
|
238
|
+
* **Note:** This function will not remove glyphs associated with the texture, remove them manually, using {@link font_remove_glyph}.
|
|
239
|
+
*/
|
|
240
|
+
font_remove_texture(font_rid: RID, size: Vector2i | Vector2, texture_index: int): void;
|
|
241
|
+
/** Renders specified glyph to the font cache texture. */
|
|
242
|
+
font_render_glyph(font_rid: RID, size: Vector2i | Vector2, index: int): void;
|
|
243
|
+
/** Renders the range of characters to the font cache texture. */
|
|
244
|
+
font_render_range(font_rid: RID, size: Vector2i | Vector2, start: int, end: int): void;
|
|
245
|
+
/** If set to `true`, system fonts can be automatically used as fallbacks. */
|
|
246
|
+
font_set_allow_system_fallback(font_rid: RID, allow_system_fallback: boolean): void;
|
|
247
|
+
/** Sets font anti-aliasing mode. */
|
|
248
|
+
font_set_antialiasing(font_rid: RID, antialiasing: int): void;
|
|
249
|
+
/** Sets the font ascent (number of pixels above the baseline). */
|
|
250
|
+
font_set_ascent(font_rid: RID, size: int, ascent: float): void;
|
|
251
|
+
/** Sets extra baseline offset (as a fraction of font height). */
|
|
252
|
+
font_set_baseline_offset(font_rid: RID, baseline_offset: float): void;
|
|
253
|
+
/** Sets font source data, e.g contents of the dynamic font source file. */
|
|
254
|
+
font_set_data(font_rid: RID, data: PackedByteArray | Array<unknown>): void;
|
|
255
|
+
/** Sets the font descent (number of pixels below the baseline). */
|
|
256
|
+
font_set_descent(font_rid: RID, size: int, descent: float): void;
|
|
257
|
+
/**
|
|
258
|
+
* If set to `true`, embedded font bitmap loading is disabled (bitmap-only and color fonts ignore this property).
|
|
259
|
+
*/
|
|
260
|
+
font_set_disable_embedded_bitmaps(font_rid: RID, disable_embedded_bitmaps: boolean): void;
|
|
261
|
+
/**
|
|
262
|
+
* Sets font embolden strength. If `strength` is not equal to zero, emboldens the font outlines. Negative values reduce the outline thickness.
|
|
263
|
+
*/
|
|
264
|
+
font_set_embolden(font_rid: RID, strength: float): void;
|
|
265
|
+
/** Sets an active face index in the TrueType / OpenType collection. */
|
|
266
|
+
font_set_face_index(font_rid: RID, face_index: int): void;
|
|
267
|
+
/**
|
|
268
|
+
* Sets bitmap font fixed size. If set to value greater than zero, same cache entry will be used for all font sizes.
|
|
269
|
+
*/
|
|
270
|
+
font_set_fixed_size(font_rid: RID, fixed_size: int): void;
|
|
271
|
+
/** Sets bitmap font scaling mode. This property is used only if `fixed_size` is greater than zero. */
|
|
272
|
+
font_set_fixed_size_scale_mode(font_rid: RID, fixed_size_scale_mode: int): void;
|
|
273
|
+
/** If set to `true` auto-hinting is preferred over font built-in hinting. */
|
|
274
|
+
font_set_force_autohinter(font_rid: RID, force_autohinter: boolean): void;
|
|
275
|
+
/** If set to `true` font texture mipmap generation is enabled. */
|
|
276
|
+
font_set_generate_mipmaps(font_rid: RID, generate_mipmaps: boolean): void;
|
|
277
|
+
/** This method does nothing. */
|
|
278
|
+
font_set_global_oversampling(oversampling: float): void;
|
|
279
|
+
/**
|
|
280
|
+
* Sets glyph advance (offset of the next glyph).
|
|
281
|
+
* **Note:** Advance for glyphs outlines is the same as the base glyph advance and is not saved.
|
|
282
|
+
*/
|
|
283
|
+
font_set_glyph_advance(font_rid: RID, size: int, glyph: int, advance: Vector2 | Vector2i): void;
|
|
284
|
+
/** Sets glyph offset from the baseline. */
|
|
285
|
+
font_set_glyph_offset(font_rid: RID, size: Vector2i | Vector2, glyph: int, offset: Vector2 | Vector2i): void;
|
|
286
|
+
/** Sets size of the glyph. */
|
|
287
|
+
font_set_glyph_size(font_rid: RID, size: Vector2i | Vector2, glyph: int, gl_size: Vector2 | Vector2i): void;
|
|
288
|
+
/** Sets index of the cache texture containing the glyph. */
|
|
289
|
+
font_set_glyph_texture_idx(font_rid: RID, size: Vector2i | Vector2, glyph: int, texture_idx: int): void;
|
|
290
|
+
/** Sets rectangle in the cache texture containing the glyph. */
|
|
291
|
+
font_set_glyph_uv_rect(font_rid: RID, size: Vector2i | Vector2, glyph: int, uv_rect: Rect2 | Rect2i): void;
|
|
292
|
+
/** Sets font hinting mode. Used by dynamic fonts only. */
|
|
293
|
+
font_set_hinting(font_rid: RID, hinting: int): void;
|
|
294
|
+
/**
|
|
295
|
+
* Sets glyph position rounding behavior. If set to `true`, when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.
|
|
296
|
+
*/
|
|
297
|
+
font_set_keep_rounding_remainders(font_rid: RID, keep_rounding_remainders: boolean): void;
|
|
298
|
+
/** Sets kerning for the pair of glyphs. */
|
|
299
|
+
font_set_kerning(font_rid: RID, size: int, glyph_pair: Vector2i | Vector2, kerning: Vector2 | Vector2i): void;
|
|
300
|
+
/** Adds override for {@link font_is_language_supported}. */
|
|
301
|
+
font_set_language_support_override(font_rid: RID, language: string | NodePath, supported: boolean): void;
|
|
302
|
+
/**
|
|
303
|
+
* If set to `true`, color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
|
|
304
|
+
*/
|
|
305
|
+
font_set_modulate_color_glyphs(font_rid: RID, force_autohinter: boolean): void;
|
|
306
|
+
/**
|
|
307
|
+
* Sets the width of the range around the shape between the minimum and maximum representable signed distance.
|
|
308
|
+
*/
|
|
309
|
+
font_set_msdf_pixel_range(font_rid: RID, msdf_pixel_range: int): void;
|
|
310
|
+
/** Sets source font size used to generate MSDF textures. */
|
|
311
|
+
font_set_msdf_size(font_rid: RID, msdf_size: int): void;
|
|
312
|
+
/**
|
|
313
|
+
* If set to `true`, glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data. MSDF rendering allows displaying the font at any scaling factor without blurriness, and without incurring a CPU cost when the font size changes (since the font no longer needs to be rasterized on the CPU). As a downside, font hinting is not available with MSDF. The lack of font hinting may result in less crisp and less readable fonts at small sizes.
|
|
314
|
+
* **Note:** MSDF font rendering does not render glyphs with overlapping shapes correctly. Overlapping shapes are not valid per the OpenType standard, but are still commonly found in many font files, especially those converted by Google Fonts. To avoid issues with overlapping glyphs, consider downloading the font file directly from the type foundry instead of relying on Google Fonts.
|
|
315
|
+
*/
|
|
316
|
+
font_set_multichannel_signed_distance_field(font_rid: RID, msdf: boolean): void;
|
|
317
|
+
/** Sets the font family name. */
|
|
318
|
+
font_set_name(font_rid: RID, name: string | NodePath): void;
|
|
319
|
+
/** Sets font OpenType feature set override. */
|
|
320
|
+
font_set_opentype_feature_overrides(font_rid: RID, overrides: Dictionary): void;
|
|
321
|
+
/**
|
|
322
|
+
* 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
|
+
*/
|
|
324
|
+
font_set_oversampling(font_rid: RID, oversampling: float): void;
|
|
325
|
+
/** Sets scaling factor of the color bitmap font. */
|
|
326
|
+
font_set_scale(font_rid: RID, size: int, scale: float): void;
|
|
327
|
+
/** Adds override for {@link font_is_script_supported}. */
|
|
328
|
+
font_set_script_support_override(font_rid: RID, script: string | NodePath, supported: boolean): void;
|
|
329
|
+
/** Sets the spacing for `spacing` to `value` in pixels (not relative to the font size). */
|
|
330
|
+
font_set_spacing(font_rid: RID, spacing: int, value: int): void;
|
|
331
|
+
/**
|
|
332
|
+
* Sets font stretch amount, compared to a normal width. A percentage value between `50%` and `200%`.
|
|
333
|
+
* **Note:** This value is used for font matching only and will not affect font rendering. Use {@link font_set_face_index}, {@link font_set_variation_coordinates}, or {@link font_set_transform} instead.
|
|
334
|
+
*/
|
|
335
|
+
font_set_stretch(font_rid: RID, weight: int): void;
|
|
336
|
+
/**
|
|
337
|
+
* Sets the font style flags.
|
|
338
|
+
* **Note:** This value is used for font matching only and will not affect font rendering. Use {@link font_set_face_index}, {@link font_set_variation_coordinates}, {@link font_set_embolden}, or {@link font_set_transform} instead.
|
|
339
|
+
*/
|
|
340
|
+
font_set_style(font_rid: RID, style: int): void;
|
|
341
|
+
/** Sets the font style name. */
|
|
342
|
+
font_set_style_name(font_rid: RID, name: string | NodePath): void;
|
|
343
|
+
/** Sets font subpixel glyph positioning mode. */
|
|
344
|
+
font_set_subpixel_positioning(font_rid: RID, subpixel_positioning: int): void;
|
|
345
|
+
/** Sets font cache texture image data. */
|
|
346
|
+
font_set_texture_image(font_rid: RID, size: Vector2i | Vector2, texture_index: int, image: Image): void;
|
|
347
|
+
/** Sets array containing glyph packing data. */
|
|
348
|
+
font_set_texture_offsets(font_rid: RID, size: Vector2i | Vector2, texture_index: int, offset: PackedInt32Array | Array<unknown>): void;
|
|
349
|
+
/**
|
|
350
|
+
* Sets 2D transform, applied to the font outlines, can be used for slanting, flipping, and rotating glyphs.
|
|
351
|
+
* For example, to simulate italic typeface by slanting, apply the following transform `Transform2D(1.0, slant, 0.0, 1.0, 0.0, 0.0)`.
|
|
352
|
+
*/
|
|
353
|
+
font_set_transform(font_rid: RID, transform: Transform2D): void;
|
|
354
|
+
/** Sets pixel offset of the underline below the baseline. */
|
|
355
|
+
font_set_underline_position(font_rid: RID, size: int, underline_position: float): void;
|
|
356
|
+
/** Sets thickness of the underline in pixels. */
|
|
357
|
+
font_set_underline_thickness(font_rid: RID, size: int, underline_thickness: float): void;
|
|
358
|
+
/**
|
|
359
|
+
* Sets variation coordinates for the specified font cache entry. See {@link font_supported_variation_list} for more info.
|
|
360
|
+
*/
|
|
361
|
+
font_set_variation_coordinates(font_rid: RID, variation_coordinates: Dictionary): void;
|
|
362
|
+
/**
|
|
363
|
+
* Sets weight (boldness) of the font. A value in the `100...999` range, normal font weight is `400`, bold font weight is `700`.
|
|
364
|
+
* **Note:** This value is used for font matching only and will not affect font rendering. Use {@link font_set_face_index}, {@link font_set_variation_coordinates}, or {@link font_set_embolden} instead.
|
|
365
|
+
*/
|
|
366
|
+
font_set_weight(font_rid: RID, weight: int): void;
|
|
367
|
+
/** Returns the dictionary of the supported OpenType features. */
|
|
368
|
+
font_supported_feature_list(font_rid: RID): Dictionary;
|
|
369
|
+
/** Returns the dictionary of the supported OpenType variation coordinates. */
|
|
370
|
+
font_supported_variation_list(font_rid: RID): Dictionary;
|
|
371
|
+
/**
|
|
372
|
+
* Converts a number from Western Arabic (0..9) to the numeral system used in the given `language`.
|
|
373
|
+
* If `language` is an empty string, the active locale will be used.
|
|
374
|
+
*/
|
|
375
|
+
format_number(number: string | NodePath, language?: string | NodePath): string;
|
|
376
|
+
/** Frees an object created by this {@link TextServer}. */
|
|
377
|
+
free_rid(rid: RID): void;
|
|
378
|
+
/** Returns text server features, see {@link Feature}. */
|
|
379
|
+
get_features(): int;
|
|
380
|
+
/**
|
|
381
|
+
* Returns size of the replacement character (box with character hexadecimal code that is drawn in place of invalid characters).
|
|
382
|
+
*/
|
|
383
|
+
get_hex_code_box_size(size: int, index: int): Vector2;
|
|
384
|
+
/** Returns the name of the server interface. */
|
|
385
|
+
get_name(): string;
|
|
386
|
+
/** Returns default TextServer database (e.g. ICU break iterators and dictionaries). */
|
|
387
|
+
get_support_data(): PackedByteArray;
|
|
388
|
+
/** Returns default TextServer database (e.g. ICU break iterators and dictionaries) filename. */
|
|
389
|
+
get_support_data_filename(): string;
|
|
390
|
+
/** Returns TextServer database (e.g. ICU break iterators and dictionaries) description. */
|
|
391
|
+
get_support_data_info(): string;
|
|
392
|
+
/** Returns `true` if `rid` is valid resource owned by this text server. */
|
|
393
|
+
has(rid: RID): boolean;
|
|
394
|
+
/** Returns `true` if the server supports a feature. */
|
|
395
|
+
has_feature(feature: int): boolean;
|
|
396
|
+
/**
|
|
397
|
+
* Returns index of the first string in `dict` which is visually confusable with the `string`, or `-1` if none is found.
|
|
398
|
+
* **Note:** This method doesn't detect invisible characters, for spoof detection use it in combination with {@link spoof_check}.
|
|
399
|
+
* **Note:** Always returns `-1` if the server does not support the {@link FEATURE_UNICODE_SECURITY} feature.
|
|
400
|
+
*/
|
|
401
|
+
is_confusable(string: string | NodePath, dict: PackedStringArray | Array<unknown>): int;
|
|
402
|
+
/** Returns `true` if locale is right-to-left. */
|
|
403
|
+
is_locale_right_to_left(locale: string | NodePath): boolean;
|
|
404
|
+
/** Returns `true` if the locale requires text server support data for line/word breaking. */
|
|
405
|
+
is_locale_using_support_data(locale: string | NodePath): boolean;
|
|
406
|
+
/**
|
|
407
|
+
* Returns `true` if `string` is a valid identifier.
|
|
408
|
+
* If the text server supports the {@link FEATURE_UNICODE_IDENTIFIERS} feature, a valid identifier must:
|
|
409
|
+
* - Conform to normalization form C.
|
|
410
|
+
* - Begin with a Unicode character of class XID_Start or `"_"`.
|
|
411
|
+
* - May contain Unicode characters of class XID_Continue in the other positions.
|
|
412
|
+
* - Use UAX #31 recommended scripts only (mixed scripts are allowed).
|
|
413
|
+
* If the {@link FEATURE_UNICODE_IDENTIFIERS} feature is not supported, a valid identifier must:
|
|
414
|
+
* - Begin with a Unicode character of class XID_Start or `"_"`.
|
|
415
|
+
* - May contain Unicode characters of class XID_Continue in the other positions.
|
|
416
|
+
*/
|
|
417
|
+
is_valid_identifier(string: string | NodePath): boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Returns `true` if the given code point is a valid letter, i.e. it belongs to the Unicode category "L".
|
|
420
|
+
*/
|
|
421
|
+
is_valid_letter(unicode: int): boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Loads optional TextServer database (e.g. ICU break iterators and dictionaries).
|
|
424
|
+
* **Note:** This function should be called before any other TextServer functions used, otherwise it won't have any effect.
|
|
425
|
+
*/
|
|
426
|
+
load_support_data(filename: string | NodePath): boolean;
|
|
427
|
+
/** Converts the given readable name of a feature, variation, script, or language to an OpenType tag. */
|
|
428
|
+
name_to_tag(name: string | NodePath): int;
|
|
429
|
+
/**
|
|
430
|
+
* Converts `number` from the numeral system used in the given `language` to Western Arabic (0..9).
|
|
431
|
+
* If `language` is an empty string, the active locale will be used.
|
|
432
|
+
*/
|
|
433
|
+
parse_number(number: string | NodePath, language?: string | NodePath): string;
|
|
434
|
+
/** Default implementation of the BiDi algorithm override function. */
|
|
435
|
+
parse_structured_text(parser_type: int, args: Array<unknown> | PackedByteArray | PackedColorArray | PackedFloat32Array | PackedFloat64Array | PackedInt32Array | PackedInt64Array | PackedStringArray | PackedVector2Array | PackedVector3Array | PackedVector4Array, text: string | NodePath): Array<Vector3i>;
|
|
436
|
+
/**
|
|
437
|
+
* Returns the percent sign used in the given `language`.
|
|
438
|
+
* If `language` is an empty string, the active locale will be used.
|
|
439
|
+
*/
|
|
440
|
+
percent_sign(language?: string | NodePath): string;
|
|
441
|
+
/**
|
|
442
|
+
* Saves optional TextServer database (e.g. ICU break iterators and dictionaries) to the file.
|
|
443
|
+
* **Note:** This function is used by during project export, to include TextServer database.
|
|
444
|
+
*/
|
|
445
|
+
save_support_data(filename: string | NodePath): boolean;
|
|
446
|
+
/** Returns the number of uniform text runs in the buffer. */
|
|
447
|
+
shaped_get_run_count(shaped: RID): int;
|
|
448
|
+
/** Returns the direction of the `index` text run (in visual order). */
|
|
449
|
+
shaped_get_run_direction(shaped: RID, index: int): int;
|
|
450
|
+
/** Returns the font RID of the `index` text run (in visual order). */
|
|
451
|
+
shaped_get_run_font_rid(shaped: RID, index: int): RID;
|
|
452
|
+
/** Returns the font size of the `index` text run (in visual order). */
|
|
453
|
+
shaped_get_run_font_size(shaped: RID, index: int): int;
|
|
454
|
+
/** Returns the glyph range of the `index` text run (in visual order). */
|
|
455
|
+
shaped_get_run_glyph_range(shaped: RID, index: int): Vector2i;
|
|
456
|
+
/** Returns the language of the `index` text run (in visual order). */
|
|
457
|
+
shaped_get_run_language(shaped: RID, index: int): string;
|
|
458
|
+
/** Returns the embedded object of the `index` text run (in visual order). */
|
|
459
|
+
shaped_get_run_object(shaped: RID, index: int): unknown;
|
|
460
|
+
/** Returns the source text range of the `index` text run (in visual order). */
|
|
461
|
+
shaped_get_run_range(shaped: RID, index: int): Vector2i;
|
|
462
|
+
/** Returns the source text of the `index` text run (in visual order). */
|
|
463
|
+
shaped_get_run_text(shaped: RID, index: int): string;
|
|
464
|
+
/**
|
|
465
|
+
* Returns number of text spans added using {@link shaped_text_add_string} or {@link shaped_text_add_object}.
|
|
466
|
+
*/
|
|
467
|
+
shaped_get_span_count(shaped: RID): int;
|
|
468
|
+
/** Returns text embedded object key. */
|
|
469
|
+
shaped_get_span_embedded_object(shaped: RID, index: int): unknown;
|
|
470
|
+
/** Returns text span metadata. */
|
|
471
|
+
shaped_get_span_meta(shaped: RID, index: int): unknown;
|
|
472
|
+
/** Returns the text span embedded object key. */
|
|
473
|
+
shaped_get_span_object(shaped: RID, index: int): unknown;
|
|
474
|
+
/** Returns the text span source text. */
|
|
475
|
+
shaped_get_span_text(shaped: RID, index: int): string;
|
|
476
|
+
/** Returns the text buffer source text, including object replacement characters. */
|
|
477
|
+
shaped_get_text(shaped: RID): string;
|
|
478
|
+
/** Changes text span font, font size, and OpenType features, without changing the text. */
|
|
479
|
+
shaped_set_span_update_font(shaped: RID, index: int, fonts: Array<RID>, size: int, opentype_features?: Dictionary): void;
|
|
480
|
+
/**
|
|
481
|
+
* Adds inline object to the text buffer, `key` must be unique. In the text, object is represented as `length` object replacement characters.
|
|
482
|
+
*/
|
|
483
|
+
shaped_text_add_object(shaped: RID, key: unknown, size: Vector2 | Vector2i, inline_align: int, length?: int, baseline?: float): boolean;
|
|
484
|
+
/** Adds text span and font to draw it to the text buffer. */
|
|
485
|
+
shaped_text_add_string(shaped: RID, text: string | NodePath, fonts: Array<RID>, size: int, opentype_features?: Dictionary, language?: string | NodePath, meta?: unknown): boolean;
|
|
486
|
+
/** Clears text buffer (removes text and inline objects). */
|
|
487
|
+
shaped_text_clear(rid: RID): void;
|
|
488
|
+
/** Returns composite character position closest to the `pos`. */
|
|
489
|
+
shaped_text_closest_character_pos(shaped: RID, pos: int): int;
|
|
490
|
+
/**
|
|
491
|
+
* Draw shaped text into a canvas item at a given position, with `color`. `pos` specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout). If `oversampling` is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
|
492
|
+
* `clip_l` and `clip_r` are offsets relative to `pos`, going to the right in horizontal layout and downward in vertical layout. If `clip_l` is not negative, glyphs starting before the offset are clipped. If `clip_r` is not negative, glyphs ending after the offset are clipped.
|
|
493
|
+
*/
|
|
494
|
+
shaped_text_draw(shaped: RID, canvas: RID, pos: Vector2 | Vector2i, clip_l?: float, clip_r?: float, color?: Color, oversampling?: float): void;
|
|
495
|
+
/**
|
|
496
|
+
* Draw the outline of the shaped text into a canvas item at a given position, with `color`. `pos` specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout). If `oversampling` is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
|
|
497
|
+
* `clip_l` and `clip_r` are offsets relative to `pos`, going to the right in horizontal layout and downward in vertical layout. If `clip_l` is not negative, glyphs starting before the offset are clipped. If `clip_r` is not negative, glyphs ending after the offset are clipped.
|
|
498
|
+
*/
|
|
499
|
+
shaped_text_draw_outline(shaped: RID, canvas: RID, pos: Vector2 | Vector2i, clip_l?: float, clip_r?: float, outline_size?: int, color?: Color, oversampling?: float): void;
|
|
500
|
+
/** Duplicates shaped text buffer. */
|
|
501
|
+
shaped_text_duplicate(rid: RID): RID;
|
|
502
|
+
/** Adjusts text width to fit to specified width, returns new text width. */
|
|
503
|
+
shaped_text_fit_to_width(shaped: RID, width: float, justification_flags: int): float;
|
|
504
|
+
/**
|
|
505
|
+
* Returns the text ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical).
|
|
506
|
+
* **Note:** Overall ascent can be higher than font ascent, if some glyphs are displaced from the baseline.
|
|
507
|
+
*/
|
|
508
|
+
shaped_text_get_ascent(shaped: RID): float;
|
|
509
|
+
/**
|
|
510
|
+
* Returns shapes of the carets corresponding to the character offset `position` in the text. Returned caret shape is 1 pixel wide rectangle.
|
|
511
|
+
*/
|
|
512
|
+
shaped_text_get_carets(shaped: RID, position: int): Dictionary;
|
|
513
|
+
/** Returns array of the composite character boundaries. */
|
|
514
|
+
shaped_text_get_character_breaks(shaped: RID): PackedInt32Array;
|
|
515
|
+
/** Returns ellipsis character used for text clipping. */
|
|
516
|
+
shaped_text_get_custom_ellipsis(shaped: RID): int;
|
|
517
|
+
/**
|
|
518
|
+
* Returns custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.
|
|
519
|
+
*/
|
|
520
|
+
shaped_text_get_custom_punctuation(shaped: RID): string;
|
|
521
|
+
/**
|
|
522
|
+
* Returns the text descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical).
|
|
523
|
+
* **Note:** Overall descent can be higher than font descent, if some glyphs are displaced from the baseline.
|
|
524
|
+
*/
|
|
525
|
+
shaped_text_get_descent(shaped: RID): float;
|
|
526
|
+
/** Returns direction of the text. */
|
|
527
|
+
shaped_text_get_direction(shaped: RID): int;
|
|
528
|
+
/** Returns dominant direction of in the range of text. */
|
|
529
|
+
shaped_text_get_dominant_direction_in_range(shaped: RID, start: int, end: int): int;
|
|
530
|
+
/** Returns number of glyphs in the ellipsis. */
|
|
531
|
+
shaped_text_get_ellipsis_glyph_count(shaped: RID): int;
|
|
532
|
+
/** Returns array of the glyphs in the ellipsis. */
|
|
533
|
+
shaped_text_get_ellipsis_glyphs(shaped: RID): Array<Dictionary>;
|
|
534
|
+
/** Returns position of the ellipsis. */
|
|
535
|
+
shaped_text_get_ellipsis_pos(shaped: RID): int;
|
|
536
|
+
/** Returns number of glyphs in the buffer. */
|
|
537
|
+
shaped_text_get_glyph_count(shaped: RID): int;
|
|
538
|
+
/** Returns an array of glyphs in the visual order. */
|
|
539
|
+
shaped_text_get_glyphs(shaped: RID): Array<Dictionary>;
|
|
540
|
+
/** Returns composite character's bounds as offsets from the start of the line. */
|
|
541
|
+
shaped_text_get_grapheme_bounds(shaped: RID, pos: int): Vector2;
|
|
542
|
+
/** Returns direction of the text, inferred by the BiDi algorithm. */
|
|
543
|
+
shaped_text_get_inferred_direction(shaped: RID): int;
|
|
544
|
+
/** Breaks text to the lines and returns character ranges for each line. */
|
|
545
|
+
shaped_text_get_line_breaks(shaped: RID, width: float, start?: int, break_flags?: int): PackedInt32Array;
|
|
546
|
+
/** Breaks text to the lines and columns. Returns character ranges for each segment. */
|
|
547
|
+
shaped_text_get_line_breaks_adv(shaped: RID, width: PackedFloat32Array | Array<unknown>, start?: int, once?: boolean, break_flags?: int): PackedInt32Array;
|
|
548
|
+
/** Returns the glyph index of the inline object. */
|
|
549
|
+
shaped_text_get_object_glyph(shaped: RID, key: unknown): int;
|
|
550
|
+
/** Returns the character range of the inline object. */
|
|
551
|
+
shaped_text_get_object_range(shaped: RID, key: unknown): Vector2i;
|
|
552
|
+
/** Returns bounding rectangle of the inline object. */
|
|
553
|
+
shaped_text_get_object_rect(shaped: RID, key: unknown): Rect2;
|
|
554
|
+
/** Returns array of inline objects. */
|
|
555
|
+
shaped_text_get_objects(shaped: RID): Array<unknown>;
|
|
556
|
+
/** Returns text orientation. */
|
|
557
|
+
shaped_text_get_orientation(shaped: RID): int;
|
|
558
|
+
/** Returns the parent buffer from which the substring originates. */
|
|
559
|
+
shaped_text_get_parent(shaped: RID): RID;
|
|
560
|
+
/** Returns `true` if text buffer is configured to display control characters. */
|
|
561
|
+
shaped_text_get_preserve_control(shaped: RID): boolean;
|
|
562
|
+
/**
|
|
563
|
+
* Returns `true` if text buffer is configured to display hexadecimal codes in place of invalid characters.
|
|
564
|
+
* **Note:** If set to `false`, nothing is displayed in place of invalid characters.
|
|
565
|
+
*/
|
|
566
|
+
shaped_text_get_preserve_invalid(shaped: RID): boolean;
|
|
567
|
+
/** Returns substring buffer character range in the parent buffer. */
|
|
568
|
+
shaped_text_get_range(shaped: RID): Vector2i;
|
|
569
|
+
/** Returns selection rectangles for the specified character range. */
|
|
570
|
+
shaped_text_get_selection(shaped: RID, start: int, end: int): PackedVector2Array;
|
|
571
|
+
/** Returns size of the text. */
|
|
572
|
+
shaped_text_get_size(shaped: RID): Vector2;
|
|
573
|
+
/** Returns extra spacing added between glyphs or lines in pixels. */
|
|
574
|
+
shaped_text_get_spacing(shaped: RID, spacing: int): int;
|
|
575
|
+
/** Returns the position of the overrun trim. */
|
|
576
|
+
shaped_text_get_trim_pos(shaped: RID): int;
|
|
577
|
+
/** Returns pixel offset of the underline below the baseline. */
|
|
578
|
+
shaped_text_get_underline_position(shaped: RID): float;
|
|
579
|
+
/** Returns thickness of the underline. */
|
|
580
|
+
shaped_text_get_underline_thickness(shaped: RID): float;
|
|
581
|
+
/** Returns width (for horizontal layout) or height (for vertical) of the text. */
|
|
582
|
+
shaped_text_get_width(shaped: RID): float;
|
|
583
|
+
/**
|
|
584
|
+
* Breaks text into words and returns array of character ranges. Use `grapheme_flags` to set what characters are used for breaking.
|
|
585
|
+
*/
|
|
586
|
+
shaped_text_get_word_breaks(shaped: RID, grapheme_flags: int, skip_grapheme_flags: int): PackedInt32Array;
|
|
587
|
+
/** Returns `true` if an object with `key` is embedded in this shaped text buffer. */
|
|
588
|
+
shaped_text_has_object(shaped: RID, key: unknown): boolean;
|
|
589
|
+
/** Returns `true` if text buffer contains any visible characters. */
|
|
590
|
+
shaped_text_has_visible_chars(shaped: RID): boolean;
|
|
591
|
+
/** Returns grapheme index at the specified pixel offset at the baseline, or `-1` if none is found. */
|
|
592
|
+
shaped_text_hit_test_grapheme(shaped: RID, coords: float): int;
|
|
593
|
+
/**
|
|
594
|
+
* Returns caret character offset at the specified pixel offset at the baseline. This function always returns a valid position.
|
|
595
|
+
*/
|
|
596
|
+
shaped_text_hit_test_position(shaped: RID, coords: float): int;
|
|
597
|
+
/** Returns `true` if buffer is successfully shaped. */
|
|
598
|
+
shaped_text_is_ready(shaped: RID): boolean;
|
|
599
|
+
/** Returns composite character end position closest to the `pos`. */
|
|
600
|
+
shaped_text_next_character_pos(shaped: RID, pos: int): int;
|
|
601
|
+
/** Returns grapheme end position closest to the `pos`. */
|
|
602
|
+
shaped_text_next_grapheme_pos(shaped: RID, pos: int): int;
|
|
603
|
+
/** Trims text if it exceeds the given width. */
|
|
604
|
+
shaped_text_overrun_trim_to_width(shaped: RID, width?: float, overrun_trim_flags?: int): void;
|
|
605
|
+
/** Returns composite character start position closest to the `pos`. */
|
|
606
|
+
shaped_text_prev_character_pos(shaped: RID, pos: int): int;
|
|
607
|
+
/** Returns grapheme start position closest to the `pos`. */
|
|
608
|
+
shaped_text_prev_grapheme_pos(shaped: RID, pos: int): int;
|
|
609
|
+
/** Sets new size and alignment of embedded object. */
|
|
610
|
+
shaped_text_resize_object(shaped: RID, key: unknown, size: Vector2 | Vector2i, inline_align: int, baseline?: float): boolean;
|
|
611
|
+
/**
|
|
612
|
+
* Overrides BiDi for the structured text.
|
|
613
|
+
* Override ranges should cover full source text without overlaps. BiDi algorithm will be used on each range separately.
|
|
614
|
+
*/
|
|
615
|
+
shaped_text_set_bidi_override(shaped: RID, override: Array<unknown> | PackedByteArray | PackedColorArray | PackedFloat32Array | PackedFloat64Array | PackedInt32Array | PackedInt64Array | PackedStringArray | PackedVector2Array | PackedVector3Array | PackedVector4Array): void;
|
|
616
|
+
/** Sets ellipsis character used for text clipping. */
|
|
617
|
+
shaped_text_set_custom_ellipsis(shaped: RID, char: int): void;
|
|
618
|
+
/**
|
|
619
|
+
* Sets custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.
|
|
620
|
+
*/
|
|
621
|
+
shaped_text_set_custom_punctuation(shaped: RID, punct: string | NodePath): void;
|
|
622
|
+
/**
|
|
623
|
+
* Sets desired text direction. If set to {@link DIRECTION_AUTO}, direction will be detected based on the buffer contents and current locale.
|
|
624
|
+
* **Note:** Direction is ignored if server does not support {@link FEATURE_BIDI_LAYOUT} feature (supported by {@link TextServerAdvanced}).
|
|
625
|
+
*/
|
|
626
|
+
shaped_text_set_direction(shaped: RID, direction: int): void;
|
|
627
|
+
/**
|
|
628
|
+
* Sets desired text orientation.
|
|
629
|
+
* **Note:** Orientation is ignored if server does not support {@link FEATURE_VERTICAL_LAYOUT} feature (supported by {@link TextServerAdvanced}).
|
|
630
|
+
*/
|
|
631
|
+
shaped_text_set_orientation(shaped: RID, orientation: int): void;
|
|
632
|
+
/** If set to `true` text buffer will display control characters. */
|
|
633
|
+
shaped_text_set_preserve_control(shaped: RID, enabled: boolean): void;
|
|
634
|
+
/**
|
|
635
|
+
* If set to `true` text buffer will display invalid characters as hexadecimal codes, otherwise nothing is displayed.
|
|
636
|
+
*/
|
|
637
|
+
shaped_text_set_preserve_invalid(shaped: RID, enabled: boolean): void;
|
|
638
|
+
/** Sets extra spacing added between glyphs or lines in pixels. */
|
|
639
|
+
shaped_text_set_spacing(shaped: RID, spacing: int, value: int): void;
|
|
640
|
+
/**
|
|
641
|
+
* Shapes buffer if it's not shaped. Returns `true` if the string is shaped successfully.
|
|
642
|
+
* **Note:** It is not necessary to call this function manually, buffer will be shaped automatically as soon as any of its output data is requested.
|
|
643
|
+
*/
|
|
644
|
+
shaped_text_shape(shaped: RID): boolean;
|
|
645
|
+
/** Returns text glyphs in the logical order. */
|
|
646
|
+
shaped_text_sort_logical(shaped: RID): Array<Dictionary>;
|
|
647
|
+
/**
|
|
648
|
+
* Returns text buffer for the substring of the text in the `shaped` text buffer (including inline objects).
|
|
649
|
+
*/
|
|
650
|
+
shaped_text_substr(shaped: RID, start: int, length: int): RID;
|
|
651
|
+
/** Aligns shaped text to the given tab-stops. */
|
|
652
|
+
shaped_text_tab_align(shaped: RID, tab_stops: PackedFloat32Array | Array<unknown>): float;
|
|
653
|
+
/**
|
|
654
|
+
* Returns `true` if `string` is likely to be an attempt at confusing the reader.
|
|
655
|
+
* **Note:** Always returns `false` if the server does not support the {@link FEATURE_UNICODE_SECURITY} feature.
|
|
656
|
+
*/
|
|
657
|
+
spoof_check(string: string | NodePath): boolean;
|
|
658
|
+
/** Returns array of the composite character boundaries. */
|
|
659
|
+
string_get_character_breaks(string: string | NodePath, language?: string | NodePath): PackedInt32Array;
|
|
660
|
+
/**
|
|
661
|
+
* Returns an array of the word break boundaries. Elements in the returned array are the offsets of the start and end of words. Therefore the length of the array is always even.
|
|
662
|
+
* When `chars_per_line` is greater than zero, line break boundaries are returned instead.
|
|
663
|
+
*/
|
|
664
|
+
string_get_word_breaks(string: string | NodePath, language?: string | NodePath, chars_per_line?: int): PackedInt32Array;
|
|
665
|
+
/**
|
|
666
|
+
* Returns the string converted to `lowercase`.
|
|
667
|
+
* **Note:** Casing is locale dependent and context sensitive if server support {@link FEATURE_CONTEXT_SENSITIVE_CASE_CONVERSION} feature (supported by {@link TextServerAdvanced}).
|
|
668
|
+
* **Note:** The result may be longer or shorter than the original.
|
|
669
|
+
*/
|
|
670
|
+
string_to_lower(string: string | NodePath, language?: string | NodePath): string;
|
|
671
|
+
/**
|
|
672
|
+
* Returns the string converted to `Title Case`.
|
|
673
|
+
* **Note:** Casing is locale dependent and context sensitive if server support {@link FEATURE_CONTEXT_SENSITIVE_CASE_CONVERSION} feature (supported by {@link TextServerAdvanced}).
|
|
674
|
+
* **Note:** The result may be longer or shorter than the original.
|
|
675
|
+
*/
|
|
676
|
+
string_to_title(string: string | NodePath, language?: string | NodePath): string;
|
|
677
|
+
/**
|
|
678
|
+
* Returns the string converted to `UPPERCASE`.
|
|
679
|
+
* **Note:** Casing is locale dependent and context sensitive if server support {@link FEATURE_CONTEXT_SENSITIVE_CASE_CONVERSION} feature (supported by {@link TextServerAdvanced}).
|
|
680
|
+
* **Note:** The result may be longer or shorter than the original.
|
|
681
|
+
*/
|
|
682
|
+
string_to_upper(string: string | NodePath, language?: string | NodePath): string;
|
|
683
|
+
/**
|
|
684
|
+
* Strips diacritics from the string.
|
|
685
|
+
* **Note:** The result may be longer or shorter than the original.
|
|
686
|
+
*/
|
|
687
|
+
strip_diacritics(string: string | NodePath): string;
|
|
688
|
+
/** Converts the given OpenType tag to the readable name of a feature, variation, script, or language. */
|
|
689
|
+
tag_to_name(tag: int): string;
|
|
690
|
+
|
|
691
|
+
// enum FontAntialiasing
|
|
692
|
+
/** Font glyphs are rasterized as 1-bit bitmaps. */
|
|
693
|
+
static readonly FONT_ANTIALIASING_NONE: int;
|
|
694
|
+
/** Font glyphs are rasterized as 8-bit grayscale anti-aliased bitmaps. */
|
|
695
|
+
static readonly FONT_ANTIALIASING_GRAY: int;
|
|
696
|
+
/**
|
|
697
|
+
* Font glyphs are rasterized for LCD screens.
|
|
698
|
+
* LCD subpixel layout is determined by the value of the {@link ProjectSettings.gui/theme/lcd_subpixel_layout} setting.
|
|
699
|
+
* LCD subpixel anti-aliasing mode is suitable only for rendering horizontal, unscaled text in 2D.
|
|
700
|
+
*/
|
|
701
|
+
static readonly FONT_ANTIALIASING_LCD: int;
|
|
702
|
+
// enum FontLCDSubpixelLayout
|
|
703
|
+
/** Unknown or unsupported subpixel layout, LCD subpixel antialiasing is disabled. */
|
|
704
|
+
static readonly FONT_LCD_SUBPIXEL_LAYOUT_NONE: int;
|
|
705
|
+
/** Horizontal RGB subpixel layout. */
|
|
706
|
+
static readonly FONT_LCD_SUBPIXEL_LAYOUT_HRGB: int;
|
|
707
|
+
/** Horizontal BGR subpixel layout. */
|
|
708
|
+
static readonly FONT_LCD_SUBPIXEL_LAYOUT_HBGR: int;
|
|
709
|
+
/** Vertical RGB subpixel layout. */
|
|
710
|
+
static readonly FONT_LCD_SUBPIXEL_LAYOUT_VRGB: int;
|
|
711
|
+
/** Vertical BGR subpixel layout. */
|
|
712
|
+
static readonly FONT_LCD_SUBPIXEL_LAYOUT_VBGR: int;
|
|
713
|
+
/** Represents the size of the {@link FontLCDSubpixelLayout} enum. */
|
|
714
|
+
static readonly FONT_LCD_SUBPIXEL_LAYOUT_MAX: int;
|
|
715
|
+
// enum Direction
|
|
716
|
+
/** Text direction is determined based on contents and current locale. */
|
|
717
|
+
static readonly DIRECTION_AUTO: int;
|
|
718
|
+
/** Text is written from left to right. */
|
|
719
|
+
static readonly DIRECTION_LTR: int;
|
|
720
|
+
/** Text is written from right to left. */
|
|
721
|
+
static readonly DIRECTION_RTL: int;
|
|
722
|
+
/** Text writing direction is the same as base string writing direction. Used for BiDi override only. */
|
|
723
|
+
static readonly DIRECTION_INHERITED: int;
|
|
724
|
+
// enum Orientation
|
|
725
|
+
/** Text is written horizontally. */
|
|
726
|
+
static readonly ORIENTATION_HORIZONTAL: int;
|
|
727
|
+
/**
|
|
728
|
+
* Left to right text is written vertically from top to bottom.
|
|
729
|
+
* Right to left text is written vertically from bottom to top.
|
|
730
|
+
*/
|
|
731
|
+
static readonly ORIENTATION_VERTICAL: int;
|
|
732
|
+
// enum JustificationFlag
|
|
733
|
+
/** Do not justify text. */
|
|
734
|
+
static readonly JUSTIFICATION_NONE: int;
|
|
735
|
+
/** Justify text by adding and removing kashidas. */
|
|
736
|
+
static readonly JUSTIFICATION_KASHIDA: int;
|
|
737
|
+
/** Justify text by changing width of the spaces between the words. */
|
|
738
|
+
static readonly JUSTIFICATION_WORD_BOUND: int;
|
|
739
|
+
/** Remove trailing and leading spaces from the justified text. */
|
|
740
|
+
static readonly JUSTIFICATION_TRIM_EDGE_SPACES: int;
|
|
741
|
+
/** Only apply justification to the part of the text after the last tab. */
|
|
742
|
+
static readonly JUSTIFICATION_AFTER_LAST_TAB: int;
|
|
743
|
+
/** Apply justification to the trimmed line with ellipsis. */
|
|
744
|
+
static readonly JUSTIFICATION_CONSTRAIN_ELLIPSIS: int;
|
|
745
|
+
/** Do not apply justification to the last line of the paragraph. */
|
|
746
|
+
static readonly JUSTIFICATION_SKIP_LAST_LINE: int;
|
|
747
|
+
/**
|
|
748
|
+
* Do not apply justification to the last line of the paragraph with visible characters (takes precedence over {@link JUSTIFICATION_SKIP_LAST_LINE}).
|
|
749
|
+
*/
|
|
750
|
+
static readonly JUSTIFICATION_SKIP_LAST_LINE_WITH_VISIBLE_CHARS: int;
|
|
751
|
+
/**
|
|
752
|
+
* Always apply justification to the paragraphs with a single line ({@link JUSTIFICATION_SKIP_LAST_LINE} and {@link JUSTIFICATION_SKIP_LAST_LINE_WITH_VISIBLE_CHARS} are ignored).
|
|
753
|
+
*/
|
|
754
|
+
static readonly JUSTIFICATION_DO_NOT_SKIP_SINGLE_LINE: int;
|
|
755
|
+
// enum AutowrapMode
|
|
756
|
+
/** Autowrap is disabled. */
|
|
757
|
+
static readonly AUTOWRAP_OFF: int;
|
|
758
|
+
/**
|
|
759
|
+
* Wraps the text inside the node's bounding rectangle by allowing to break lines at arbitrary positions, which is useful when very limited space is available.
|
|
760
|
+
*/
|
|
761
|
+
static readonly AUTOWRAP_ARBITRARY: int;
|
|
762
|
+
/** Wraps the text inside the node's bounding rectangle by soft-breaking between words. */
|
|
763
|
+
static readonly AUTOWRAP_WORD: int;
|
|
764
|
+
/**
|
|
765
|
+
* Behaves similarly to {@link AUTOWRAP_WORD}, but force-breaks a word if that single word does not fit in one line.
|
|
766
|
+
*/
|
|
767
|
+
static readonly AUTOWRAP_WORD_SMART: int;
|
|
768
|
+
// enum LineBreakFlag
|
|
769
|
+
/** Do not break the line. */
|
|
770
|
+
static readonly BREAK_NONE: int;
|
|
771
|
+
/** Break the line at the line mandatory break characters (e.g. `"\n"`). */
|
|
772
|
+
static readonly BREAK_MANDATORY: int;
|
|
773
|
+
/** Break the line between the words. */
|
|
774
|
+
static readonly BREAK_WORD_BOUND: int;
|
|
775
|
+
/** Break the line between any unconnected graphemes. */
|
|
776
|
+
static readonly BREAK_GRAPHEME_BOUND: int;
|
|
777
|
+
/**
|
|
778
|
+
* Should be used only in conjunction with {@link BREAK_WORD_BOUND}, break the line between any unconnected graphemes, if it's impossible to break it between the words.
|
|
779
|
+
*/
|
|
780
|
+
static readonly BREAK_ADAPTIVE: int;
|
|
781
|
+
/** Remove edge spaces from the broken line segments. */
|
|
782
|
+
static readonly BREAK_TRIM_EDGE_SPACES: int;
|
|
783
|
+
/** Subtract first line indentation width from all lines after the first one. */
|
|
784
|
+
static readonly BREAK_TRIM_INDENT: int;
|
|
785
|
+
/**
|
|
786
|
+
* Remove spaces and line break characters from the start of broken line segments.
|
|
787
|
+
* E.g, after line breaking, the second segment of the following text `test \n next`, is `next` if the flag is set, and ` next` if it is not.
|
|
788
|
+
*/
|
|
789
|
+
static readonly BREAK_TRIM_START_EDGE_SPACES: int;
|
|
790
|
+
/**
|
|
791
|
+
* Remove spaces and line break characters from the end of broken line segments.
|
|
792
|
+
* E.g, after line breaking, the first segment of the following text `test \n next`, is `test` if the flag is set, and `test \n` if it is not.
|
|
793
|
+
*/
|
|
794
|
+
static readonly BREAK_TRIM_END_EDGE_SPACES: int;
|
|
795
|
+
// enum VisibleCharactersBehavior
|
|
796
|
+
/**
|
|
797
|
+
* Trims text before the shaping. e.g, increasing {@link Label.visible_characters} or {@link RichTextLabel.visible_characters} value is visually identical to typing the text.
|
|
798
|
+
* **Note:** In this mode, trimmed text is not processed at all. It is not accounted for in line breaking and size calculations.
|
|
799
|
+
*/
|
|
800
|
+
static readonly VC_CHARS_BEFORE_SHAPING: int;
|
|
801
|
+
/**
|
|
802
|
+
* Displays glyphs that are mapped to the first {@link Label.visible_characters} or {@link RichTextLabel.visible_characters} characters from the beginning of the text.
|
|
803
|
+
*/
|
|
804
|
+
static readonly VC_CHARS_AFTER_SHAPING: int;
|
|
805
|
+
/**
|
|
806
|
+
* Displays {@link Label.visible_ratio} or {@link RichTextLabel.visible_ratio} glyphs, starting from the left or from the right, depending on {@link Control.layout_direction} value.
|
|
807
|
+
*/
|
|
808
|
+
static readonly VC_GLYPHS_AUTO: int;
|
|
809
|
+
/**
|
|
810
|
+
* Displays {@link Label.visible_ratio} or {@link RichTextLabel.visible_ratio} glyphs, starting from the left.
|
|
811
|
+
*/
|
|
812
|
+
static readonly VC_GLYPHS_LTR: int;
|
|
813
|
+
/**
|
|
814
|
+
* Displays {@link Label.visible_ratio} or {@link RichTextLabel.visible_ratio} glyphs, starting from the right.
|
|
815
|
+
*/
|
|
816
|
+
static readonly VC_GLYPHS_RTL: int;
|
|
817
|
+
// enum OverrunBehavior
|
|
818
|
+
/** No text trimming is performed. */
|
|
819
|
+
static readonly OVERRUN_NO_TRIMMING: int;
|
|
820
|
+
/** Trims the text per character. */
|
|
821
|
+
static readonly OVERRUN_TRIM_CHAR: int;
|
|
822
|
+
/** Trims the text per word. */
|
|
823
|
+
static readonly OVERRUN_TRIM_WORD: int;
|
|
824
|
+
/**
|
|
825
|
+
* Trims the text per character and adds an ellipsis to indicate that parts are hidden if trimmed text is 6 characters or longer.
|
|
826
|
+
*/
|
|
827
|
+
static readonly OVERRUN_TRIM_ELLIPSIS: int;
|
|
828
|
+
/**
|
|
829
|
+
* Trims the text per word and adds an ellipsis to indicate that parts are hidden if trimmed text is 6 characters or longer.
|
|
830
|
+
*/
|
|
831
|
+
static readonly OVERRUN_TRIM_WORD_ELLIPSIS: int;
|
|
832
|
+
/**
|
|
833
|
+
* Trims the text per character and adds an ellipsis to indicate that parts are hidden regardless of trimmed text length.
|
|
834
|
+
*/
|
|
835
|
+
static readonly OVERRUN_TRIM_ELLIPSIS_FORCE: int;
|
|
836
|
+
/**
|
|
837
|
+
* Trims the text per word and adds an ellipsis to indicate that parts are hidden regardless of trimmed text length.
|
|
838
|
+
*/
|
|
839
|
+
static readonly OVERRUN_TRIM_WORD_ELLIPSIS_FORCE: int;
|
|
840
|
+
// enum TextOverrunFlag
|
|
841
|
+
/** No trimming is performed. */
|
|
842
|
+
static readonly OVERRUN_NO_TRIM: int;
|
|
843
|
+
/** Trims the text when it exceeds the given width. */
|
|
844
|
+
static readonly OVERRUN_TRIM: int;
|
|
845
|
+
/** Trims the text per word instead of per grapheme. */
|
|
846
|
+
static readonly OVERRUN_TRIM_WORD_ONLY: int;
|
|
847
|
+
/** Determines whether an ellipsis should be added at the end of the text. */
|
|
848
|
+
static readonly OVERRUN_ADD_ELLIPSIS: int;
|
|
849
|
+
/** Determines whether the ellipsis at the end of the text is enforced and may not be hidden. */
|
|
850
|
+
static readonly OVERRUN_ENFORCE_ELLIPSIS: int;
|
|
851
|
+
/** Accounts for the text being justified before attempting to trim it (see {@link JustificationFlag}). */
|
|
852
|
+
static readonly OVERRUN_JUSTIFICATION_AWARE: int;
|
|
853
|
+
/**
|
|
854
|
+
* Determines whether the ellipsis should be added regardless of the string length, otherwise it is added only if the string is 6 characters or longer.
|
|
855
|
+
*/
|
|
856
|
+
static readonly OVERRUN_SHORT_STRING_ELLIPSIS: int;
|
|
857
|
+
// enum GraphemeFlag
|
|
858
|
+
/** Grapheme is supported by the font, and can be drawn. */
|
|
859
|
+
static readonly GRAPHEME_IS_VALID: int;
|
|
860
|
+
/** Grapheme is part of right-to-left or bottom-to-top run. */
|
|
861
|
+
static readonly GRAPHEME_IS_RTL: int;
|
|
862
|
+
/** Grapheme is not part of source text, it was added by justification process. */
|
|
863
|
+
static readonly GRAPHEME_IS_VIRTUAL: int;
|
|
864
|
+
/** Grapheme is whitespace. */
|
|
865
|
+
static readonly GRAPHEME_IS_SPACE: int;
|
|
866
|
+
/** Grapheme is mandatory break point (e.g. `"\n"`). */
|
|
867
|
+
static readonly GRAPHEME_IS_BREAK_HARD: int;
|
|
868
|
+
/** Grapheme is optional break point (e.g. space). */
|
|
869
|
+
static readonly GRAPHEME_IS_BREAK_SOFT: int;
|
|
870
|
+
/** Grapheme is the tabulation character. */
|
|
871
|
+
static readonly GRAPHEME_IS_TAB: int;
|
|
872
|
+
/** Grapheme is kashida. */
|
|
873
|
+
static readonly GRAPHEME_IS_ELONGATION: int;
|
|
874
|
+
/** Grapheme is punctuation character. */
|
|
875
|
+
static readonly GRAPHEME_IS_PUNCTUATION: int;
|
|
876
|
+
/** Grapheme is underscore character. */
|
|
877
|
+
static readonly GRAPHEME_IS_UNDERSCORE: int;
|
|
878
|
+
/** Grapheme is connected to the previous grapheme. Breaking line before this grapheme is not safe. */
|
|
879
|
+
static readonly GRAPHEME_IS_CONNECTED: int;
|
|
880
|
+
/** It is safe to insert a U+0640 before this grapheme for elongation. */
|
|
881
|
+
static readonly GRAPHEME_IS_SAFE_TO_INSERT_TATWEEL: int;
|
|
882
|
+
/** Grapheme is an object replacement character for the embedded object. */
|
|
883
|
+
static readonly GRAPHEME_IS_EMBEDDED_OBJECT: int;
|
|
884
|
+
/** Grapheme is a soft hyphen. */
|
|
885
|
+
static readonly GRAPHEME_IS_SOFT_HYPHEN: int;
|
|
886
|
+
// enum Hinting
|
|
887
|
+
/** Disables font hinting (smoother but less crisp). */
|
|
888
|
+
static readonly HINTING_NONE: int;
|
|
889
|
+
/** Use the light font hinting mode. */
|
|
890
|
+
static readonly HINTING_LIGHT: int;
|
|
891
|
+
/**
|
|
892
|
+
* Use the default font hinting mode (crisper but less smooth).
|
|
893
|
+
* **Note:** This hinting mode changes both horizontal and vertical glyph metrics. If applied to monospace font, some glyphs might have different width.
|
|
894
|
+
*/
|
|
895
|
+
static readonly HINTING_NORMAL: int;
|
|
896
|
+
// enum SubpixelPositioning
|
|
897
|
+
/** Glyph horizontal position is rounded to the whole pixel size, each glyph is rasterized once. */
|
|
898
|
+
static readonly SUBPIXEL_POSITIONING_DISABLED: int;
|
|
899
|
+
/**
|
|
900
|
+
* Glyph horizontal position is rounded based on font size.
|
|
901
|
+
* - To one quarter of the pixel size if font size is smaller or equal to {@link SUBPIXEL_POSITIONING_ONE_QUARTER_MAX_SIZE}.
|
|
902
|
+
* - To one half of the pixel size if font size is smaller or equal to {@link SUBPIXEL_POSITIONING_ONE_HALF_MAX_SIZE}.
|
|
903
|
+
* - To the whole pixel size for larger fonts.
|
|
904
|
+
*/
|
|
905
|
+
static readonly SUBPIXEL_POSITIONING_AUTO: int;
|
|
906
|
+
/**
|
|
907
|
+
* Glyph horizontal position is rounded to one half of the pixel size, each glyph is rasterized up to two times.
|
|
908
|
+
*/
|
|
909
|
+
static readonly SUBPIXEL_POSITIONING_ONE_HALF: int;
|
|
910
|
+
/**
|
|
911
|
+
* Glyph horizontal position is rounded to one quarter of the pixel size, each glyph is rasterized up to four times.
|
|
912
|
+
*/
|
|
913
|
+
static readonly SUBPIXEL_POSITIONING_ONE_QUARTER: int;
|
|
914
|
+
/**
|
|
915
|
+
* Maximum font size which will use "one half of the pixel" subpixel positioning in {@link SUBPIXEL_POSITIONING_AUTO} mode.
|
|
916
|
+
*/
|
|
917
|
+
static readonly SUBPIXEL_POSITIONING_ONE_HALF_MAX_SIZE: int;
|
|
918
|
+
/**
|
|
919
|
+
* Maximum font size which will use "one quarter of the pixel" subpixel positioning in {@link SUBPIXEL_POSITIONING_AUTO} mode.
|
|
920
|
+
*/
|
|
921
|
+
static readonly SUBPIXEL_POSITIONING_ONE_QUARTER_MAX_SIZE: int;
|
|
922
|
+
// enum Feature
|
|
923
|
+
/** TextServer supports simple text layouts. */
|
|
924
|
+
static readonly FEATURE_SIMPLE_LAYOUT: int;
|
|
925
|
+
/** TextServer supports bidirectional text layouts. */
|
|
926
|
+
static readonly FEATURE_BIDI_LAYOUT: int;
|
|
927
|
+
/** TextServer supports vertical layouts. */
|
|
928
|
+
static readonly FEATURE_VERTICAL_LAYOUT: int;
|
|
929
|
+
/** TextServer supports complex text shaping. */
|
|
930
|
+
static readonly FEATURE_SHAPING: int;
|
|
931
|
+
/** TextServer supports justification using kashidas. */
|
|
932
|
+
static readonly FEATURE_KASHIDA_JUSTIFICATION: int;
|
|
933
|
+
/** TextServer supports complex line/word breaking rules (e.g. dictionary based). */
|
|
934
|
+
static readonly FEATURE_BREAK_ITERATORS: int;
|
|
935
|
+
/** TextServer supports loading bitmap fonts. */
|
|
936
|
+
static readonly FEATURE_FONT_BITMAP: int;
|
|
937
|
+
/** TextServer supports loading dynamic (TrueType, OpeType, etc.) fonts. */
|
|
938
|
+
static readonly FEATURE_FONT_DYNAMIC: int;
|
|
939
|
+
/** TextServer supports multichannel signed distance field dynamic font rendering. */
|
|
940
|
+
static readonly FEATURE_FONT_MSDF: int;
|
|
941
|
+
/** TextServer supports loading system fonts. */
|
|
942
|
+
static readonly FEATURE_FONT_SYSTEM: int;
|
|
943
|
+
/** TextServer supports variable fonts. */
|
|
944
|
+
static readonly FEATURE_FONT_VARIABLE: int;
|
|
945
|
+
/** TextServer supports locale dependent and context sensitive case conversion. */
|
|
946
|
+
static readonly FEATURE_CONTEXT_SENSITIVE_CASE_CONVERSION: int;
|
|
947
|
+
/** TextServer require external data file for some features, see {@link load_support_data}. */
|
|
948
|
+
static readonly FEATURE_USE_SUPPORT_DATA: int;
|
|
949
|
+
/** TextServer supports UAX #31 identifier validation, see {@link is_valid_identifier}. */
|
|
950
|
+
static readonly FEATURE_UNICODE_IDENTIFIERS: int;
|
|
951
|
+
/**
|
|
952
|
+
* TextServer supports Unicode Technical Report #36 (https://unicode.org/reports/tr36/) and Unicode Technical Standard #39 (https://unicode.org/reports/tr39/) based spoof detection features.
|
|
953
|
+
*/
|
|
954
|
+
static readonly FEATURE_UNICODE_SECURITY: int;
|
|
955
|
+
// enum ContourPointTag
|
|
956
|
+
/** Contour point is on the curve. */
|
|
957
|
+
static readonly CONTOUR_CURVE_TAG_ON: int;
|
|
958
|
+
/** Contour point isn't on the curve, but serves as a control point for a conic (quadratic) Bézier arc. */
|
|
959
|
+
static readonly CONTOUR_CURVE_TAG_OFF_CONIC: int;
|
|
960
|
+
/** Contour point isn't on the curve, but serves as a control point for a cubic Bézier arc. */
|
|
961
|
+
static readonly CONTOUR_CURVE_TAG_OFF_CUBIC: int;
|
|
962
|
+
// enum SpacingType
|
|
963
|
+
/** Spacing for each glyph. */
|
|
964
|
+
static readonly SPACING_GLYPH: int;
|
|
965
|
+
/** Spacing for the space character. */
|
|
966
|
+
static readonly SPACING_SPACE: int;
|
|
967
|
+
/** Spacing at the top of the line. */
|
|
968
|
+
static readonly SPACING_TOP: int;
|
|
969
|
+
/** Spacing at the bottom of the line. */
|
|
970
|
+
static readonly SPACING_BOTTOM: int;
|
|
971
|
+
/** Represents the size of the {@link SpacingType} enum. */
|
|
972
|
+
static readonly SPACING_MAX: int;
|
|
973
|
+
// enum FontStyle
|
|
974
|
+
/** Font is bold. */
|
|
975
|
+
static readonly FONT_BOLD: int;
|
|
976
|
+
/** Font is italic or oblique. */
|
|
977
|
+
static readonly FONT_ITALIC: int;
|
|
978
|
+
/** Font has fixed-width characters (also known as monospace). */
|
|
979
|
+
static readonly FONT_FIXED_WIDTH: int;
|
|
980
|
+
// enum StructuredTextParser
|
|
981
|
+
/** Use default Unicode BiDi algorithm. */
|
|
982
|
+
static readonly STRUCTURED_TEXT_DEFAULT: int;
|
|
983
|
+
/** BiDi override for URI. */
|
|
984
|
+
static readonly STRUCTURED_TEXT_URI: int;
|
|
985
|
+
/** BiDi override for file path. */
|
|
986
|
+
static readonly STRUCTURED_TEXT_FILE: int;
|
|
987
|
+
/** BiDi override for email. */
|
|
988
|
+
static readonly STRUCTURED_TEXT_EMAIL: int;
|
|
989
|
+
/** BiDi override for lists. Structured text options: list separator {@link String}. */
|
|
990
|
+
static readonly STRUCTURED_TEXT_LIST: int;
|
|
991
|
+
/** BiDi override for GDScript. */
|
|
992
|
+
static readonly STRUCTURED_TEXT_GDSCRIPT: int;
|
|
993
|
+
/** User defined structured text BiDi override function. */
|
|
994
|
+
static readonly STRUCTURED_TEXT_CUSTOM: int;
|
|
995
|
+
// enum FixedSizeScaleMode
|
|
996
|
+
/** Bitmap font is not scaled. */
|
|
997
|
+
static readonly FIXED_SIZE_SCALE_DISABLE: int;
|
|
998
|
+
/**
|
|
999
|
+
* Bitmap font is scaled to the closest integer multiple of the font's fixed size. This is the recommended option for pixel art fonts.
|
|
1000
|
+
*/
|
|
1001
|
+
static readonly FIXED_SIZE_SCALE_INTEGER_ONLY: int;
|
|
1002
|
+
/**
|
|
1003
|
+
* Bitmap font is scaled to an arbitrary (fractional) size. This is the recommended option for non-pixel art fonts.
|
|
1004
|
+
*/
|
|
1005
|
+
static readonly FIXED_SIZE_SCALE_ENABLED: int;
|
|
1006
|
+
}
|