@godot-scene-web/html 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/dist/extents-R8RIim2S.d.ts +1223 -0
- package/dist/extents-R8RIim2S.d.ts.map +1 -0
- package/dist/index.d.ts +346 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5330 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime-BkfFs_eO.js +6540 -0
- package/dist/runtime-BkfFs_eO.js.map +1 -0
- package/dist/runtime.d.ts +225 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +2 -0
- package/package.json +54 -0
- package/vendor/LICENSE-OpenSans +201 -0
- package/vendor/OpenSans_SemiBold.woff2 +0 -0
- package/vendor/VENDOR.md +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extents-R8RIim2S.d.ts","names":[],"sources":["../src/content-scale.ts","../src/text-scale.ts","../src/types.ts","../src/diagnostics.ts","../src/effects-loop-pacing.ts","../src/surface-image-swap.ts","../src/runtime-options.ts","../src/webgl/shared-gl.ts","../src/webgpu/device.ts","../src/particles/runtime.ts","../src/particles/spec.ts","../src/particles/render-backend.ts","../src/particles/extents.ts"],"mappings":";;;;;;;;;UAMiB,qBAAA;EACf,KAAA;EACA,MAAM;AAAA;AAAA,KAGI,uBAAA;AAAA,KAOA,0BAAA;AAAA,UAEK,iBAAA;;EAEf,MAAA,EAAQ,uBAAA;EAhBO;;;;AAET;AAGR;;;EAoBE,SAAA,GAAY,0BAAA;EApBqB;EAsBjC,QAAA,GAAW,qBAAA;EAfyB;EAiBpC,UAAA;AAAA;AAAA,UAGe,oBAAA;EACf,MAAA,EAAQ,uBAAA;EACR,SAAA,EAAW,0BAAA;EACX,IAAA,EAAM,qBAAA;EACN,UAAA;AAAA;AAAA,iBAMc,mBAAA,CACd,YAAA,EAAc,iBAAA,cACd,QAAA,EAAU,qBAAA,GACT,oBA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AULT_QUIET_WINDOW_MS, At as rewritePxLengths, B as StaticSurfaceEncodePacing, C as DEFAULT_ENCODE_MAX_DIM, Ct as GodotContentScaleSize, D as DEFAULT_ENCODE_SLOW_MS, Dt as contentScaleStageStyle, E as DEFAULT_ENCODE_SLOW_BACKOFF_MS, Et as contentScaleScript, F as STATIC_SURFACE_IMAGE_ATTR, G as StaticSurfaceTimerHandle, H as StaticSurfaceOption, I as StaticImageRevertCause, J as EffectsLoopPacing, K as createStaticImageSwapCounters, L as StaticImageSwapCounters, M as DEFAULT_SURFACE_WATCHDOG_MS, N as STABLE_OBSERVATIONS_BEFORE_SWAP, O as DEFAULT_ENCODE_TASK_GAP_MS, Ot as observeContentScale, P as STATIC_CAPTURE_BLANK, Q as UnsupportedRenderKind, R as StaticSurfaceCapture, S as DEFAULT_ENCODE_INTERVAL_MS, St as GodotContentScaleAspect, T as DEFAULT_ENCODE_SLICE, Tt as ResolvedContentScale, U as StaticSurfacePolicy, V as StaticSurfaceGate, W as StaticSurfaceQuietWindowGate, X as createEffectsLoopPacer, Y as PARK_SLOP_S, Z as UnsupportedRenderInfo, _ as effectivePixelRatio, _t as TEXT_SCALE_VAR, at as GodotHtmlModel, bt as textScaleLength, ct as GodotHtmlRenderOptions, d as GpuInfo, dt as GodotShaderLoadingFallback, et as reportUnsupportedRender, f as MAX_PINNED_BACKING_DIM, ft as GodotTextAutoFitDirective, g as describeGpu, gt as ResolvedTextScale, h as backingStoreSize, ht as GodotTextScaleOption, it as GodotHtmlFontFace, j as DEFAULT_STILL_CACHE_BYTES, jt as scaleStyleRecord, k as DEFAULT_PARKED_STILL_BYTES, kt as resolveContentScale, lt as GodotHtmlTintFilter, m as SURFACE_PIXEL_RATIO_ATTR, mt as GodotTextScale, n as spriteExtentPad, ot as GodotHtmlNode, p as MAX_SURFACE_PIXEL_RATIO, pt as GodotTextAutoFitNominalMetrics, q as EffectsLoopPacer, rt as GodotHtmlContainerLayout, st as GodotHtmlPositioning, t as emissionExtentPad, tt as GodotBbcodeTagDescriptor, u as WebgpuFallbackReason, ut as GodotResolvedResource, v as parseSurfacePixelRatio, vt as resolveTextScale, w as DEFAULT_ENCODE_PER_TASK, wt as GodotContentScaleTechnique, x as DEFAULT_ENCODE_BUSY_MAX_DEFER_MS, xt as GodotContentScale, y as GodotHtmlMountOptions, yt as setGodotTextScale, z as StaticSurfaceContentKeyGate } from "./extents-R8RIim2S.js";
|
|
2
|
+
import { ColorMatrix, ColorMatrix as ColorMatrix$1, GodotNode, GodotVariant } from "@godot-scene-web/core";
|
|
3
|
+
import { GodotSceneTree, GodotSceneTreeNode } from "@godot-scene-web/layout";
|
|
4
|
+
import { GodotResourceStatus, SceneGraph, SceneGraphNode } from "@godot-scene-web/scene-graph";
|
|
5
|
+
|
|
6
|
+
//#region src/anchor-css.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Pure CSS Anchor Positioning string-building helpers. Shared by any anchor-name emitter in
|
|
9
|
+
* this package — the offline `browser-anchors.ts` model builder, and consumers outside this
|
|
10
|
+
* package (e.g. spirectl's hover-tip materializer) that emit CSS anchor properties directly
|
|
11
|
+
* onto their own node/style records without going through the offline HTML-model pipeline at
|
|
12
|
+
* all. Kept dependency-free (no `GodotHtmlNode`/model types) so it can be imported from either
|
|
13
|
+
* side without pulling in this package's whole model.
|
|
14
|
+
*/
|
|
15
|
+
/** Merge `name` into an existing `anchor-name` value (comma-separated), or start a fresh one. */
|
|
16
|
+
declare function appendAnchorName(existing: string | undefined, name: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Build an inset value (for `top`/`right`/`bottom`/`left`) that anchors to one or more named
|
|
19
|
+
* targets: `anchor(name side)`, `min()`/`max()` over several candidates, optionally wrapped in
|
|
20
|
+
* `calc(... ± Npx)` for a nonzero offset. `combine` only matters when `targetNames.length > 1`.
|
|
21
|
+
*/
|
|
22
|
+
declare function anchorInsetExpression(side: string, targetNames: string[], combine: "min" | "max", offset: number): string;
|
|
23
|
+
/**
|
|
24
|
+
* A `position-try-fallbacks` value for the common "flip to the opposite side when the planned
|
|
25
|
+
* placement would overflow the viewport" case. `flip-inline` flips the inline-axis insets
|
|
26
|
+
* (left/right) and reproduces a manual "flush to the owner's opposite edge" overflow-flip
|
|
27
|
+
* exactly (verified against a real Chromium/Firefox render: a right-anchored box positioned
|
|
28
|
+
* near the viewport's right edge flips so its own right edge sits flush at the owner's left
|
|
29
|
+
* edge — the same target a hand-written overflow-flip computes). `flip-block` is the same for
|
|
30
|
+
* the block axis (top/bottom).
|
|
31
|
+
*/
|
|
32
|
+
declare function positionTryFallback(...kinds: Array<"flip-inline" | "flip-block" | "flip-start">): string;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/base-css.d.ts
|
|
35
|
+
declare const godotSceneBaseCss: string;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/browser-layout.d.ts
|
|
38
|
+
interface BrowserNativeParentContext {
|
|
39
|
+
parentType: string | null;
|
|
40
|
+
parentHorizontal: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare const ROOT_PARENT_CONTEXT: BrowserNativeParentContext;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/browser-zoom.d.ts
|
|
45
|
+
type BrowserZoomWindow = Pick<Window, "addEventListener" | "removeEventListener" | "devicePixelRatio" | "matchMedia"> & {
|
|
46
|
+
document: {
|
|
47
|
+
documentElement: Pick<HTMLElement, "clientWidth">;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
declare const BROWSER_ZOOM_EPSILON = 0.005;
|
|
51
|
+
declare const BROWSER_ZOOM_REBASE_TOLERANCE = 0.02;
|
|
52
|
+
declare function observeBrowserZoom(onChange: (zoom: number) => void, targetWindow?: BrowserZoomWindow): () => void;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/css-values.d.ts
|
|
55
|
+
/** The 20-value SVG `feColorMatrix` row form (alpha passes through). */
|
|
56
|
+
declare function colorMatrixFeValues(matrix: ColorMatrix): string;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/dom.d.ts
|
|
59
|
+
declare function mountHtmlScene(container: HTMLElement, model: GodotHtmlModel, options?: GodotHtmlMountOptions): HTMLElement;
|
|
60
|
+
/** Release a mounted scene's observers and effect bindings before removing its DOM. */
|
|
61
|
+
declare function unmountHtmlScene(container: HTMLElement): void;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/easing.d.ts
|
|
64
|
+
declare const ELASTIC_OUT_LINEAR = "linear(0, 0.832, 1.364, 1.193, 0.912, 0.889, 1, 1.047, 1.016, 0.986, 0.989, 1.002, 1.006, 1.001, 0.998, 0.999, 1)";
|
|
65
|
+
declare function godotEasingToCss(ease?: string, trans?: string): string;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/effects-suspend.d.ts
|
|
68
|
+
/** The DOM attribute that suspends gsw's live effect runtimes for a subtree (see the module doc). */
|
|
69
|
+
declare const EFFECTS_SUSPENDED_ATTR = "data-godot-effects-suspended";
|
|
70
|
+
/**
|
|
71
|
+
* Whether `element` sits inside (or is) a subtree the host marked suspended with
|
|
72
|
+
* `data-godot-effects-suspended`. Attribute-only — no layout is forced.
|
|
73
|
+
*/
|
|
74
|
+
declare function isEffectsSuspended(element: Element): boolean;
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/html-string.d.ts
|
|
77
|
+
declare function renderGodotNodeHtml(node: GodotHtmlNode, nodeByPath: Map<string, GodotHtmlNode>): string;
|
|
78
|
+
declare function renderGodotSceneHtml(model: GodotHtmlModel, options: {
|
|
79
|
+
viewport: {
|
|
80
|
+
width: number;
|
|
81
|
+
height: number;
|
|
82
|
+
};
|
|
83
|
+
background?: string;
|
|
84
|
+
}): string;
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/material.d.ts
|
|
87
|
+
declare function assignMaterialAttributes(attributes: Record<string, string>, style: Record<string, string>, props: Record<string, GodotVariant>, source: GodotNode, options: GodotHtmlRenderOptions, nodePath?: string): void;
|
|
88
|
+
/**
|
|
89
|
+
* The exact linear RGB color transform produced by a node's `ShaderMaterial`,
|
|
90
|
+
* or `undefined` when there is no material, the shader is not a recognized color
|
|
91
|
+
* transform, or the transform is the identity (so a `v = 1.0` no-op stays
|
|
92
|
+
* untouched). The consumer names which shaders are a standard HSV color adjust via
|
|
93
|
+
* `hsvAdjustShaderIds`; other shaders are left as inert diagnostics, matching
|
|
94
|
+
* `assignMaterialAttributes`.
|
|
95
|
+
*
|
|
96
|
+
* An HSV-adjust `fragment()` is linear (every step is a matrix/scalar multiply
|
|
97
|
+
* with no offset), so the whole effect is one 3×3 matrix. We recover it by probing
|
|
98
|
+
* the three RGB basis vectors through a literal port of that color math
|
|
99
|
+
* (`applyHsv`) from the node's `h`/`s`/`v` `shader_parameter` values — this
|
|
100
|
+
* sidesteps GLSL's mixed row/column conventions and Godot's column-major `mat3`.
|
|
101
|
+
*/
|
|
102
|
+
declare function materialColorMatrix(attributes: Record<string, string>, props: Record<string, GodotVariant>, source: GodotNode, options: GodotHtmlRenderOptions): ColorMatrix$1 | undefined;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/model.d.ts
|
|
105
|
+
declare function renderSceneToHtmlModel(scene: GodotSceneTree, options?: GodotHtmlRenderOptions): GodotHtmlModel;
|
|
106
|
+
declare const DEFAULT_BROWSER_VIEWPORT: {
|
|
107
|
+
width: number;
|
|
108
|
+
height: number;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Browser-native HTML model from a `SceneGraph` (the `deriveSceneGraph` output):
|
|
112
|
+
* the SAME `GodotHtmlModel` the computed renderer produces, but geometry is left
|
|
113
|
+
* to the CSS engine — containers flex/grid, children flow, anchored Controls use
|
|
114
|
+
* CSS insets, text sizes itself. Reuses the shared per-node builder
|
|
115
|
+
* (`htmlNodeFromLayoutNode`) for all paint/text/resource work by feeding it a
|
|
116
|
+
* placeholder rect, then replaces the rect-pinning container pass with
|
|
117
|
+
* `assignBrowserNativeLayout`. Because the output model shape is identical, every
|
|
118
|
+
* downstream consumer (fragment builder, content-scale observer, fonts) is shared.
|
|
119
|
+
*/
|
|
120
|
+
declare function renderSceneGraphToHtmlModel(graph: SceneGraph, options?: GodotHtmlRenderOptions & {
|
|
121
|
+
viewport?: {
|
|
122
|
+
width?: number;
|
|
123
|
+
height?: number;
|
|
124
|
+
};
|
|
125
|
+
}): GodotHtmlModel;
|
|
126
|
+
/**
|
|
127
|
+
* Per-node browser-native HTML for ONE `SceneGraph` node — the same paint/text/
|
|
128
|
+
* resource/layout work `renderSceneGraphToHtmlModel` does per node, but callable
|
|
129
|
+
* in isolation so the Vue component renderer can build (and memoize) one node at
|
|
130
|
+
* a time. Feeds `htmlNodeFromLayoutNode` a placeholder rect (overwritten by
|
|
131
|
+
* `assignBrowserNativeNodeLayout`, exactly as the batch model does) and threads
|
|
132
|
+
* the parent's container context for the flow pass. `tintFilters` is the caller's
|
|
133
|
+
* shared, lifetime-stable filter table (a markup keeps its id), so a reused node's
|
|
134
|
+
* baked `filter: url(#id)` stays valid; `fontFaces`/`resourceStatuses` are this
|
|
135
|
+
* node's own (the caller merges them into the view's registry).
|
|
136
|
+
*/
|
|
137
|
+
interface GraphNodeBuildResult {
|
|
138
|
+
node: GodotHtmlNode;
|
|
139
|
+
layout: GodotSceneTreeNode;
|
|
140
|
+
fontFaces: GodotHtmlFontFace[];
|
|
141
|
+
resourceStatuses: GodotResourceStatus[];
|
|
142
|
+
childContext: BrowserNativeParentContext;
|
|
143
|
+
}
|
|
144
|
+
declare function buildGraphNodeHtml(graphNode: SceneGraphNode, parentLayout: GodotSceneTreeNode | undefined, parentPath: string | null, parentContext: BrowserNativeParentContext, options: GodotHtmlRenderOptions, tintFilters: Map<string, string>, viewport: {
|
|
145
|
+
width: number;
|
|
146
|
+
height: number;
|
|
147
|
+
}, contentScale: ResolvedContentScale | null): GraphNodeBuildResult;
|
|
148
|
+
declare function buildHiddenGraphNode(graphNode: SceneGraphNode, parentPath: string | null): GodotHtmlNode;
|
|
149
|
+
/**
|
|
150
|
+
* The render STRUCTURE of a `SceneGraph` — which nodes render, and each renderable
|
|
151
|
+
* parent's children split into the behind/normal paint slots (draw-order sorted),
|
|
152
|
+
* flattening non-renderable nodes onto their nearest renderable ancestor. Pure and
|
|
153
|
+
* visibility-agnostic: a hidden node still occupies its slot (the component renders
|
|
154
|
+
* it as a comment); only the build skips DESCENDING into it. Mirrors the children-
|
|
155
|
+
* wiring + draw-order sort + behind/normal partition `renderSceneGraphToHtmlModel`
|
|
156
|
+
* does inline, so the component tree nests identically.
|
|
157
|
+
*/
|
|
158
|
+
interface GraphSceneStructure {
|
|
159
|
+
rootPaths: string[];
|
|
160
|
+
nodesByPath: Map<string, SceneGraphNode>;
|
|
161
|
+
childrenByPath: Map<string, {
|
|
162
|
+
behind: string[];
|
|
163
|
+
normal: string[];
|
|
164
|
+
}>;
|
|
165
|
+
}
|
|
166
|
+
declare function buildSceneStructure(graph: SceneGraph): GraphSceneStructure;
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/render-tree.d.ts
|
|
169
|
+
interface RenderElement {
|
|
170
|
+
tag: string;
|
|
171
|
+
kind?: "comment";
|
|
172
|
+
className?: string;
|
|
173
|
+
attributes?: Record<string, string>;
|
|
174
|
+
style?: Record<string, string>;
|
|
175
|
+
children?: RenderElement[];
|
|
176
|
+
rawHtml?: string;
|
|
177
|
+
text?: string;
|
|
178
|
+
key?: string;
|
|
179
|
+
sourceNode?: GodotHtmlNode;
|
|
180
|
+
}
|
|
181
|
+
declare function renderFontFaceCss(fontFaces: GodotHtmlFontFace[]): string;
|
|
182
|
+
declare function buildNodePresentation(node: GodotHtmlNode, behind?: RenderElement[], normal?: RenderElement[]): RenderElement;
|
|
183
|
+
declare function buildNodeElement(node: GodotHtmlNode, nodeByPath: Map<string, GodotHtmlNode>): RenderElement;
|
|
184
|
+
declare function buildStageElement(model: GodotHtmlModel, options?: {
|
|
185
|
+
debug?: boolean;
|
|
186
|
+
background?: string;
|
|
187
|
+
}): RenderElement;
|
|
188
|
+
declare function buildFrameElement(model: GodotHtmlModel, stage: RenderElement, options?: {
|
|
189
|
+
background?: string;
|
|
190
|
+
}): RenderElement;
|
|
191
|
+
declare function buildTintDefsElement(model: Pick<GodotHtmlModel, "tintFilters">): RenderElement | undefined;
|
|
192
|
+
declare function buildStyleElement(model: Pick<GodotHtmlModel, "fontFaces" | "css">, options?: {
|
|
193
|
+
includeBaseCss?: boolean;
|
|
194
|
+
}): RenderElement | undefined;
|
|
195
|
+
interface SceneFragmentOptions {
|
|
196
|
+
debug?: boolean;
|
|
197
|
+
background?: string;
|
|
198
|
+
includeStyle?: boolean;
|
|
199
|
+
includeBaseCss?: boolean;
|
|
200
|
+
}
|
|
201
|
+
declare function buildSceneFragment(model: GodotHtmlModel, options?: SceneFragmentOptions): RenderElement[];
|
|
202
|
+
declare function renderElementToHtml(element: RenderElement): string;
|
|
203
|
+
declare function renderElementToDom(element: RenderElement): HTMLElement | Comment;
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region src/render-stabilize.d.ts
|
|
206
|
+
declare function stabilizeRenderElements(previous: RenderElement[] | undefined, next: RenderElement[]): RenderElement[];
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/render-structure.d.ts
|
|
209
|
+
declare const SELF_LAYER_CLASS = "godot-scene-self-layer";
|
|
210
|
+
declare const STAGE_CLASS = "godot-scene-stage";
|
|
211
|
+
declare const FRAME_CLASS = "godot-scene-frame";
|
|
212
|
+
declare function tintFilterDefsMarkup(tintFilters: GodotHtmlTintFilter[] | undefined): string;
|
|
213
|
+
declare function isShowBehindParent(node: GodotHtmlNode): boolean;
|
|
214
|
+
declare function partitionChildren(node: GodotHtmlNode, nodeByPath: Map<string, GodotHtmlNode>): {
|
|
215
|
+
behind: GodotHtmlNode[];
|
|
216
|
+
normal: GodotHtmlNode[];
|
|
217
|
+
};
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region src/resources.d.ts
|
|
220
|
+
declare function uniqueFontFaces(fontFaces: GodotHtmlFontFace[]): GodotHtmlFontFace[];
|
|
221
|
+
declare function normalizeResource(value: unknown): GodotResolvedResource | undefined;
|
|
222
|
+
declare function fontResource(resource: GodotResolvedResource | undefined, options: GodotHtmlRenderOptions, source: GodotNode): GodotResolvedResource;
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/shader-dormant.d.ts
|
|
225
|
+
/** The DOM attribute that parks a gsw WebGL shader binding without disposing it (see the module doc). */
|
|
226
|
+
declare const SHADER_DORMANT_ATTR = "data-godot-shader-dormant";
|
|
227
|
+
/** How long a binding may stay dormant before the runtime disposes it for real. Shared with the
|
|
228
|
+
* PARTICLE runtime's park (`./particles/runtime`, driven by `../effects-suspend` rather than by the
|
|
229
|
+
* attribute above): same question, same answer, and one window means a device probe reads one
|
|
230
|
+
* number. */
|
|
231
|
+
declare const DORMANT_DISPOSE_SECONDS = 30;
|
|
232
|
+
/**
|
|
233
|
+
* Whether `element` is itself marked dormant with `data-godot-shader-dormant`. Own-element only
|
|
234
|
+
* (see the module doc) and attribute-only — no layout is forced.
|
|
235
|
+
*/
|
|
236
|
+
declare function isShaderDormant(element: Element): boolean;
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/text.d.ts
|
|
239
|
+
interface RichTextEffect {
|
|
240
|
+
name: string;
|
|
241
|
+
perChar: boolean;
|
|
242
|
+
perWord: boolean;
|
|
243
|
+
className?: string;
|
|
244
|
+
}
|
|
245
|
+
interface RichTextTag {
|
|
246
|
+
type: "bold" | "italic" | "underline" | "strike" | "code" | "align" | "indent" | "color" | "bgcolor" | "url" | "font_size" | "style" | "effect" | "structural";
|
|
247
|
+
id: string;
|
|
248
|
+
value?: string;
|
|
249
|
+
css?: Record<string, string>;
|
|
250
|
+
effect?: RichTextEffect;
|
|
251
|
+
}
|
|
252
|
+
/** Public tag kinds produced by Godot's built-in BBCode grammar. */
|
|
253
|
+
type GodotBbcodeTagKind = RichTextTag["type"] | "image" | "void";
|
|
254
|
+
declare const GODOT_BBCODE_BUILT_IN_EFFECTS: Readonly<Record<string, Readonly<{
|
|
255
|
+
perChar: boolean;
|
|
256
|
+
perWord: boolean;
|
|
257
|
+
}>>>;
|
|
258
|
+
interface RichTextRenderContext {
|
|
259
|
+
customTags?: GodotHtmlRenderOptions["bbcodeTags"];
|
|
260
|
+
resolveImage?: (path: string) => GodotResolvedResource | undefined;
|
|
261
|
+
textScale?: boolean;
|
|
262
|
+
}
|
|
263
|
+
declare function richTextLayeredHtml(value: string, ctx?: RichTextRenderContext): string;
|
|
264
|
+
/**
|
|
265
|
+
* Classify one BBCode tag name with the same parser used by rich-text output.
|
|
266
|
+
*
|
|
267
|
+
* The return is `undefined` for unknown tags. Custom descriptors are accepted
|
|
268
|
+
* so callers can classify the exact grammar passed to `richTextLayeredHtml`.
|
|
269
|
+
*/
|
|
270
|
+
declare function godotBbcodeTagKind(name: string, customTags?: GodotHtmlRenderOptions["bbcodeTags"]): GodotBbcodeTagKind | undefined;
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/text-auto-fit.d.ts
|
|
273
|
+
declare function resolveTextAutoFitFontSize(directive: GodotTextAutoFitDirective, fits: (fontSizePx: number) => boolean): number;
|
|
274
|
+
declare function applyTextAutoFit(stage: ParentNode): number;
|
|
275
|
+
/**
|
|
276
|
+
* Build a pure `fits(candidate)` predicate from host-engine paragraph metrics
|
|
277
|
+
* (measured at `nominalFontSizePx`): each candidate scales the nominal content box
|
|
278
|
+
* by `candidate / nominalFontSizePx`, so width/height fits match the engine without
|
|
279
|
+
* DOM measurement. Returns `null` when metrics or a positive nominal size are
|
|
280
|
+
* unavailable, so the caller falls back to measuring the live DOM.
|
|
281
|
+
*/
|
|
282
|
+
declare function metricFitPredicate(directive: GodotTextAutoFitDirective, box: {
|
|
283
|
+
width: number;
|
|
284
|
+
height: number;
|
|
285
|
+
}): ((candidate: number) => boolean) | null;
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region src/textures.d.ts
|
|
288
|
+
declare function regionBackgroundStyle(region: {
|
|
289
|
+
x: number;
|
|
290
|
+
y: number;
|
|
291
|
+
width: number;
|
|
292
|
+
height: number;
|
|
293
|
+
}, options?: {
|
|
294
|
+
margin?: {
|
|
295
|
+
x: number;
|
|
296
|
+
y: number;
|
|
297
|
+
width: number;
|
|
298
|
+
height: number;
|
|
299
|
+
};
|
|
300
|
+
atlasSize?: {
|
|
301
|
+
width: number;
|
|
302
|
+
height: number;
|
|
303
|
+
};
|
|
304
|
+
box?: {
|
|
305
|
+
width: number;
|
|
306
|
+
height: number;
|
|
307
|
+
};
|
|
308
|
+
stretchMode?: number;
|
|
309
|
+
}): {
|
|
310
|
+
backgroundPosition: string;
|
|
311
|
+
backgroundSize: string;
|
|
312
|
+
};
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region src/tint-bake.d.ts
|
|
315
|
+
type TintBakeImageLoader = (url: string) => Promise<CanvasImageSource & {
|
|
316
|
+
width: number;
|
|
317
|
+
height: number;
|
|
318
|
+
}>;
|
|
319
|
+
/**
|
|
320
|
+
* Apply a row-major 3×3 linear RGB transform to RGBA pixel bytes in place
|
|
321
|
+
* (sRGB byte domain, alpha untouched) — the per-pixel equivalent of the
|
|
322
|
+
* `feColorMatrix` emitted with `color-interpolation-filters="sRGB"`.
|
|
323
|
+
*/
|
|
324
|
+
declare function applyColorMatrixToPixels(pixels: Uint8ClampedArray, rows: readonly number[]): void;
|
|
325
|
+
/**
|
|
326
|
+
* Upgrade every `data-godot-texture-tint="css-filter"` element under `root` to
|
|
327
|
+
* a baked tinted bitmap (see module comment). Idempotent: upgraded elements are
|
|
328
|
+
* re-marked `baked-bitmap`; failures (image load, tainted canvas) keep the CSS
|
|
329
|
+
* filter. Resolves once every candidate settled; returns the upgraded count.
|
|
330
|
+
*/
|
|
331
|
+
declare function bakeExternalTextureTints(root: ParentNode, loadImage?: TintBakeImageLoader): Promise<number>;
|
|
332
|
+
/**
|
|
333
|
+
* Re-clamp external nine-patch `border-image-slice` once the texture's natural size is
|
|
334
|
+
* known. The string renderer can't size an EXTERNAL texture, so it leaves the source slices
|
|
335
|
+
* at the raw patch margins and marks the element `data-godot-nine-patch-unclamped` (carrying
|
|
336
|
+
* those `top,right,bottom,left` margins). For a texture whose opposing margins meet/overlap
|
|
337
|
+
* in the SOURCE, the browser drops the `border-image` `fill` center (the slanted end-caps
|
|
338
|
+
* paint but the stretched middle does not — e.g. the HP-bar fill). Clamping the source slices
|
|
339
|
+
* to keep a >=1px center restores it — the same fix `clampNinePatchSlices` applies inline when
|
|
340
|
+
* the size IS known (embedded data-URI textures). Idempotent: an image-load failure leaves the
|
|
341
|
+
* marker for a later pass; a successful pass clears it. Returns the count whose slices changed.
|
|
342
|
+
*/
|
|
343
|
+
declare function clampExternalNinePatchSlices(root: ParentNode, loadImage?: TintBakeImageLoader): Promise<number>;
|
|
344
|
+
//#endregion
|
|
345
|
+
export { BROWSER_ZOOM_EPSILON, BROWSER_ZOOM_REBASE_TOLERANCE, type BrowserNativeParentContext, type BrowserZoomWindow, DEFAULT_BROWSER_VIEWPORT, DEFAULT_ENCODE_BUSY_MAX_DEFER_MS, DEFAULT_ENCODE_INTERVAL_MS, DEFAULT_ENCODE_MAX_DIM, DEFAULT_ENCODE_PER_TASK, DEFAULT_ENCODE_SLICE, DEFAULT_ENCODE_SLOW_BACKOFF_MS, DEFAULT_ENCODE_SLOW_MS, DEFAULT_ENCODE_TASK_GAP_MS, DEFAULT_PARKED_STILL_BYTES, DEFAULT_QUIET_WINDOW_MS, DEFAULT_STILL_CACHE_BYTES, DEFAULT_SURFACE_WATCHDOG_MS, DORMANT_DISPOSE_SECONDS, EFFECTS_SUSPENDED_ATTR, ELASTIC_OUT_LINEAR, type EffectsLoopPacer, type EffectsLoopPacing, FRAME_CLASS, GODOT_BBCODE_BUILT_IN_EFFECTS, type GodotBbcodeTagDescriptor, type GodotBbcodeTagKind, type GodotContentScale, type GodotContentScaleAspect, type GodotContentScaleSize, type GodotContentScaleTechnique, type GodotHtmlContainerLayout, type GodotHtmlFontFace, type GodotHtmlModel, type GodotHtmlNode, type GodotHtmlPositioning, type GodotHtmlRenderOptions, type GodotResolvedResource, type GodotShaderLoadingFallback, type GodotTextAutoFitDirective, type GodotTextAutoFitNominalMetrics, type GodotTextScale, type GodotTextScaleOption, type GpuInfo, type GraphNodeBuildResult, type GraphSceneStructure, MAX_PINNED_BACKING_DIM, MAX_SURFACE_PIXEL_RATIO, PARK_SLOP_S, ROOT_PARENT_CONTEXT, type RenderElement, type ResolvedContentScale, type ResolvedTextScale, type RichTextRenderContext, SELF_LAYER_CLASS, SHADER_DORMANT_ATTR, STABLE_OBSERVATIONS_BEFORE_SWAP, STAGE_CLASS, STATIC_CAPTURE_BLANK, STATIC_SURFACE_IMAGE_ATTR, SURFACE_PIXEL_RATIO_ATTR, type SceneFragmentOptions, type StaticImageRevertCause, type StaticImageSwapCounters, type StaticSurfaceCapture, type StaticSurfaceContentKeyGate, type StaticSurfaceEncodePacing, type StaticSurfaceGate, type StaticSurfaceOption, type StaticSurfacePolicy, type StaticSurfaceQuietWindowGate, type StaticSurfaceTimerHandle, TEXT_SCALE_VAR, type TintBakeImageLoader, type UnsupportedRenderInfo, type UnsupportedRenderKind, type UnsupportedRenderReporter, type WebgpuFallbackReason, anchorInsetExpression, appendAnchorName, applyColorMatrixToPixels, applyTextAutoFit, assignMaterialAttributes, backingStoreSize, bakeExternalTextureTints, buildFrameElement, buildGraphNodeHtml, buildHiddenGraphNode, buildNodeElement, buildNodePresentation, buildSceneFragment, buildSceneStructure, buildStageElement, buildStyleElement, buildTintDefsElement, clampExternalNinePatchSlices, colorMatrixFeValues, contentScaleScript, contentScaleStageStyle, createEffectsLoopPacer, createStaticImageSwapCounters, describeGpu, effectivePixelRatio, emissionExtentPad, fontResource, godotBbcodeTagKind, godotEasingToCss, godotSceneBaseCss, isEffectsSuspended, isShaderDormant, isShowBehindParent, materialColorMatrix, metricFitPredicate, mountHtmlScene, normalizeResource, observeBrowserZoom, observeContentScale, parseSurfacePixelRatio, partitionChildren, positionTryFallback, regionBackgroundStyle, renderElementToDom, renderElementToHtml, renderFontFaceCss, renderGodotNodeHtml, renderGodotSceneHtml, renderSceneGraphToHtmlModel, renderSceneToHtmlModel, reportUnsupportedRender, resolveContentScale, resolveTextAutoFitFontSize, resolveTextScale, rewritePxLengths, richTextLayeredHtml, scaleStyleRecord, setGodotTextScale, spriteExtentPad, stabilizeRenderElements, textScaleLength, tintFilterDefsMarkup, uniqueFontFaces, unmountHtmlScene };
|
|
346
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/anchor-css.ts","../src/base-css.ts","../src/browser-layout.ts","../src/browser-zoom.ts","../src/css-values.ts","../src/dom.ts","../src/easing.ts","../src/effects-suspend.ts","../src/html-string.ts","../src/material.ts","../src/model.ts","../src/render-tree.ts","../src/render-stabilize.ts","../src/render-structure.ts","../src/resources.ts","../src/shader-dormant.ts","../src/text.ts","../src/text-auto-fit.ts","../src/textures.ts","../src/tint-bake.ts"],"mappings":";;;;;;;;;;;;AAYA;;;iBAAgB,gBAAA,CAAiB,QAAA,sBAA8B,IAAY;AAAA;AAU3E;;;;AAV2E,iBAU3D,qBAAA,CACd,IAAA,UACA,WAAA,YACA,OAAA,iBACA,MAAA;;;;;AAAc;AA0BhB;;;;iBAAgB,mBAAA,CAAA,GAAuB,KAAA,EAAO,KAAK;;;cCpDtC,iBAAA;;;UCmGI,0BAAA;EACf,UAAA;EACA,gBAAgB;AAAA;AAAA,cAGL,mBAAA,EAAqB,0BAGjC;;;KCrFW,iBAAA,GAAoB,IAAA,CAC9B,MAAA;EAGA,QAAA;IAAY,eAAA,EAAiB,IAAA,CAAK,WAAA;EAAA;AAAA;AAAA,cAMvB,oBAAA;AAAA,cACA,6BAAA;AAAA,iBAEG,kBAAA,CACd,QAAA,GAAW,IAAA,mBACX,YAAA,GAAc,iBAA0B;;;;iBC4D1B,mBAAA,CAAoB,MAAmB,EAAX,WAAW;;;iBClFvC,cAAA,CACd,SAAA,EAAW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