@solidtv/solid 1.0.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 +202 -0
- package/NOTICE +7 -0
- package/README.md +95 -0
- package/dist/jsx-runtime.d.ts +14 -0
- package/dist/src/activeElement.d.ts +2 -0
- package/dist/src/activeElement.js +3 -0
- package/dist/src/activeElement.js.map +1 -0
- package/dist/src/core/config.d.ts +51 -0
- package/dist/src/core/config.js +37 -0
- package/dist/src/core/config.js.map +1 -0
- package/dist/src/core/dom-renderer/domRenderer.d.ts +138 -0
- package/dist/src/core/dom-renderer/domRenderer.js +1844 -0
- package/dist/src/core/dom-renderer/domRenderer.js.map +1 -0
- package/dist/src/core/dom-renderer/domRendererTypes.d.ts +110 -0
- package/dist/src/core/dom-renderer/domRendererTypes.js +2 -0
- package/dist/src/core/dom-renderer/domRendererTypes.js.map +1 -0
- package/dist/src/core/dom-renderer/domRendererUtils.d.ts +23 -0
- package/dist/src/core/dom-renderer/domRendererUtils.js +232 -0
- package/dist/src/core/dom-renderer/domRendererUtils.js.map +1 -0
- package/dist/src/core/elementNode.d.ts +508 -0
- package/dist/src/core/elementNode.js +928 -0
- package/dist/src/core/elementNode.js.map +1 -0
- package/dist/src/core/flex.d.ts +2 -0
- package/dist/src/core/flex.js +284 -0
- package/dist/src/core/flex.js.map +1 -0
- package/dist/src/core/flexLayout.d.ts +2 -0
- package/dist/src/core/flexLayout.js +360 -0
- package/dist/src/core/flexLayout.js.map +1 -0
- package/dist/src/core/focusKeyTypes.d.ts +42 -0
- package/dist/src/core/focusKeyTypes.js +2 -0
- package/dist/src/core/focusKeyTypes.js.map +1 -0
- package/dist/src/core/focusManager.d.ts +13 -0
- package/dist/src/core/focusManager.js +270 -0
- package/dist/src/core/focusManager.js.map +1 -0
- package/dist/src/core/index.d.ts +14 -0
- package/dist/src/core/index.js +11 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/core/intrinsicTypes.d.ts +106 -0
- package/dist/src/core/intrinsicTypes.js +2 -0
- package/dist/src/core/intrinsicTypes.js.map +1 -0
- package/dist/src/core/lightningInit.d.ts +9 -0
- package/dist/src/core/lightningInit.js +34 -0
- package/dist/src/core/lightningInit.js.map +1 -0
- package/dist/src/core/nodeTypes.d.ts +6 -0
- package/dist/src/core/nodeTypes.js +6 -0
- package/dist/src/core/nodeTypes.js.map +1 -0
- package/dist/src/core/shaders.d.ts +52 -0
- package/dist/src/core/shaders.js +86 -0
- package/dist/src/core/shaders.js.map +1 -0
- package/dist/src/core/states.d.ts +12 -0
- package/dist/src/core/states.js +84 -0
- package/dist/src/core/states.js.map +1 -0
- package/dist/src/core/utils.d.ts +39 -0
- package/dist/src/core/utils.js +164 -0
- package/dist/src/core/utils.js.map +1 -0
- package/dist/src/devtools/index.d.ts +6 -0
- package/dist/src/devtools/index.js +65 -0
- package/dist/src/devtools/index.js.map +1 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/index.js +7 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/primitives/Column.d.ts +3 -0
- package/dist/src/primitives/Column.jsx +25 -0
- package/dist/src/primitives/Column.jsx.map +1 -0
- package/dist/src/primitives/FPSCounter.d.ts +4 -0
- package/dist/src/primitives/FPSCounter.jsx +188 -0
- package/dist/src/primitives/FPSCounter.jsx.map +1 -0
- package/dist/src/primitives/FadeInOut.d.ts +18 -0
- package/dist/src/primitives/FadeInOut.jsx +39 -0
- package/dist/src/primitives/FadeInOut.jsx.map +1 -0
- package/dist/src/primitives/Grid.d.ts +23 -0
- package/dist/src/primitives/Grid.jsx +100 -0
- package/dist/src/primitives/Grid.jsx.map +1 -0
- package/dist/src/primitives/Image.d.ts +8 -0
- package/dist/src/primitives/Image.jsx +42 -0
- package/dist/src/primitives/Image.jsx.map +1 -0
- package/dist/src/primitives/KeepAlive.d.ts +42 -0
- package/dist/src/primitives/KeepAlive.jsx +160 -0
- package/dist/src/primitives/KeepAlive.jsx.map +1 -0
- package/dist/src/primitives/Lazy.d.ts +15 -0
- package/dist/src/primitives/Lazy.jsx +95 -0
- package/dist/src/primitives/Lazy.jsx.map +1 -0
- package/dist/src/primitives/LazyImport.d.ts +8 -0
- package/dist/src/primitives/LazyImport.js +40 -0
- package/dist/src/primitives/LazyImport.js.map +1 -0
- package/dist/src/primitives/Marquee.d.ts +64 -0
- package/dist/src/primitives/Marquee.jsx +86 -0
- package/dist/src/primitives/Marquee.jsx.map +1 -0
- package/dist/src/primitives/Preserve.d.ts +4 -0
- package/dist/src/primitives/Preserve.jsx +11 -0
- package/dist/src/primitives/Preserve.jsx.map +1 -0
- package/dist/src/primitives/Row.d.ts +3 -0
- package/dist/src/primitives/Row.jsx +24 -0
- package/dist/src/primitives/Row.jsx.map +1 -0
- package/dist/src/primitives/Suspense.d.ts +22 -0
- package/dist/src/primitives/Suspense.jsx +33 -0
- package/dist/src/primitives/Suspense.jsx.map +1 -0
- package/dist/src/primitives/Virtual.d.ts +18 -0
- package/dist/src/primitives/Virtual.jsx +495 -0
- package/dist/src/primitives/Virtual.jsx.map +1 -0
- package/dist/src/primitives/VirtualGrid.d.ts +13 -0
- package/dist/src/primitives/VirtualGrid.jsx +160 -0
- package/dist/src/primitives/VirtualGrid.jsx.map +1 -0
- package/dist/src/primitives/Visible.d.ts +6 -0
- package/dist/src/primitives/Visible.jsx +37 -0
- package/dist/src/primitives/Visible.jsx.map +1 -0
- package/dist/src/primitives/announcer/announcer.d.ts +40 -0
- package/dist/src/primitives/announcer/announcer.js +125 -0
- package/dist/src/primitives/announcer/announcer.js.map +1 -0
- package/dist/src/primitives/announcer/index.d.ts +6 -0
- package/dist/src/primitives/announcer/index.js +15 -0
- package/dist/src/primitives/announcer/index.js.map +1 -0
- package/dist/src/primitives/announcer/speech.d.ts +10 -0
- package/dist/src/primitives/announcer/speech.js +281 -0
- package/dist/src/primitives/announcer/speech.js.map +1 -0
- package/dist/src/primitives/borderBox.d.ts +8 -0
- package/dist/src/primitives/borderBox.jsx +47 -0
- package/dist/src/primitives/borderBox.jsx.map +1 -0
- package/dist/src/primitives/createFocusStack.d.ts +31 -0
- package/dist/src/primitives/createFocusStack.jsx +62 -0
- package/dist/src/primitives/createFocusStack.jsx.map +1 -0
- package/dist/src/primitives/createInfiniteItems.d.ts +27 -0
- package/dist/src/primitives/createInfiniteItems.js +46 -0
- package/dist/src/primitives/createInfiniteItems.js.map +1 -0
- package/dist/src/primitives/createTag.d.ts +8 -0
- package/dist/src/primitives/createTag.jsx +20 -0
- package/dist/src/primitives/createTag.jsx.map +1 -0
- package/dist/src/primitives/index.d.ts +32 -0
- package/dist/src/primitives/index.js +31 -0
- package/dist/src/primitives/index.js.map +1 -0
- package/dist/src/primitives/portal.d.ts +5 -0
- package/dist/src/primitives/portal.jsx +21 -0
- package/dist/src/primitives/portal.jsx.map +1 -0
- package/dist/src/primitives/router.d.ts +20 -0
- package/dist/src/primitives/router.js +90 -0
- package/dist/src/primitives/router.js.map +1 -0
- package/dist/src/primitives/types.d.ts +79 -0
- package/dist/src/primitives/types.js +2 -0
- package/dist/src/primitives/types.js.map +1 -0
- package/dist/src/primitives/useFocusManager.d.ts +5 -0
- package/dist/src/primitives/useFocusManager.js +21 -0
- package/dist/src/primitives/useFocusManager.js.map +1 -0
- package/dist/src/primitives/useHold.d.ts +27 -0
- package/dist/src/primitives/useHold.js +54 -0
- package/dist/src/primitives/useHold.js.map +1 -0
- package/dist/src/primitives/useMouse.d.ts +18 -0
- package/dist/src/primitives/useMouse.js +240 -0
- package/dist/src/primitives/useMouse.js.map +1 -0
- package/dist/src/primitives/utils/chainFunctions.d.ts +30 -0
- package/dist/src/primitives/utils/chainFunctions.js +32 -0
- package/dist/src/primitives/utils/chainFunctions.js.map +1 -0
- package/dist/src/primitives/utils/createBlurredImage.d.ts +56 -0
- package/dist/src/primitives/utils/createBlurredImage.js +223 -0
- package/dist/src/primitives/utils/createBlurredImage.js.map +1 -0
- package/dist/src/primitives/utils/createSpriteMap.d.ts +9 -0
- package/dist/src/primitives/utils/createSpriteMap.js +18 -0
- package/dist/src/primitives/utils/createSpriteMap.js.map +1 -0
- package/dist/src/primitives/utils/handleNavigation.d.ts +103 -0
- package/dist/src/primitives/utils/handleNavigation.js +300 -0
- package/dist/src/primitives/utils/handleNavigation.js.map +1 -0
- package/dist/src/primitives/utils/withScrolling.d.ts +22 -0
- package/dist/src/primitives/utils/withScrolling.js +186 -0
- package/dist/src/primitives/utils/withScrolling.js.map +1 -0
- package/dist/src/render.d.ts +28 -0
- package/dist/src/render.js +107 -0
- package/dist/src/render.js.map +1 -0
- package/dist/src/solidOpts.d.ts +15 -0
- package/dist/src/solidOpts.js +93 -0
- package/dist/src/solidOpts.js.map +1 -0
- package/dist/src/types.d.ts +11 -0
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils.d.ts +19 -0
- package/dist/src/utils.js +94 -0
- package/dist/src/utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/docs/AI_CODING_GUIDELINES.md +108 -0
- package/docs/README.md +35 -0
- package/jsx-runtime.d.ts +14 -0
- package/package.json +125 -0
- package/src/activeElement.ts +5 -0
- package/src/core/config.ts +101 -0
- package/src/core/dom-renderer/domRenderer.ts +2066 -0
- package/src/core/dom-renderer/domRendererTypes.ts +148 -0
- package/src/core/dom-renderer/domRendererUtils.ts +292 -0
- package/src/core/elementNode.ts +1623 -0
- package/src/core/flex.ts +331 -0
- package/src/core/flexLayout.ts +414 -0
- package/src/core/focusKeyTypes.ts +90 -0
- package/src/core/focusManager.ts +374 -0
- package/src/core/index.ts +15 -0
- package/src/core/intrinsicTypes.ts +216 -0
- package/src/core/lightningInit.ts +45 -0
- package/src/core/nodeTypes.ts +6 -0
- package/src/core/shaders.ts +187 -0
- package/src/core/states.ts +91 -0
- package/src/core/utils.ts +222 -0
- package/src/devtools/index.ts +77 -0
- package/src/index.ts +18 -0
- package/src/primitives/Column.tsx +59 -0
- package/src/primitives/FPSCounter.tsx +209 -0
- package/src/primitives/FadeInOut.tsx +58 -0
- package/src/primitives/Grid.tsx +151 -0
- package/src/primitives/Image.tsx +56 -0
- package/src/primitives/KeepAlive.tsx +268 -0
- package/src/primitives/Lazy.tsx +128 -0
- package/src/primitives/LazyImport.ts +53 -0
- package/src/primitives/Marquee.tsx +149 -0
- package/src/primitives/Preserve.tsx +18 -0
- package/src/primitives/Row.tsx +58 -0
- package/src/primitives/Suspense.tsx +39 -0
- package/src/primitives/Virtual.tsx +602 -0
- package/src/primitives/VirtualGrid.tsx +220 -0
- package/src/primitives/Visible.tsx +59 -0
- package/src/primitives/announcer/announcer.ts +198 -0
- package/src/primitives/announcer/index.ts +20 -0
- package/src/primitives/announcer/speech.ts +334 -0
- package/src/primitives/borderBox.tsx +69 -0
- package/src/primitives/createFocusStack.tsx +79 -0
- package/src/primitives/createInfiniteItems.ts +66 -0
- package/src/primitives/createTag.tsx +33 -0
- package/src/primitives/index.ts +37 -0
- package/src/primitives/portal.tsx +25 -0
- package/src/primitives/router.ts +147 -0
- package/src/primitives/types.ts +109 -0
- package/src/primitives/useFocusManager.ts +47 -0
- package/src/primitives/useHold.ts +69 -0
- package/src/primitives/useMouse.ts +417 -0
- package/src/primitives/utils/chainFunctions.ts +60 -0
- package/src/primitives/utils/createBlurredImage.ts +366 -0
- package/src/primitives/utils/createSpriteMap.ts +32 -0
- package/src/primitives/utils/handleNavigation.ts +373 -0
- package/src/primitives/utils/withScrolling.ts +238 -0
- package/src/render.ts +164 -0
- package/src/solidOpts.ts +107 -0
- package/src/types.ts +22 -0
- package/src/utils.ts +129 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2024 Chris Lorenzo
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
This component contains software that is Copyright (c) 2024 Chris Lorenzo.
|
|
2
|
+
The component is licensed to you under the Apache License, Version 2.0 (the "License").
|
|
3
|
+
You may not use the component except in compliance with the License.
|
|
4
|
+
|
|
5
|
+
This component contains software that is Copyright (c) 2023 Comcast.
|
|
6
|
+
The component is licensed to you under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use the component except in compliance with the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<p>
|
|
2
|
+
<img src="https://assets.solidjs.com/banner?project=Library&type=@solidtv/solid" alt="SolidTV" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# SolidTV
|
|
6
|
+
|
|
7
|
+
SolidTV is a UI framework for building high-performance TV applications. It allows you to declaratively construct UI nodes with reactive primitives, providing incredible performance on even the most constrained hardware.
|
|
8
|
+
|
|
9
|
+
## Used by companies worldwide
|
|
10
|
+
|
|
11
|
+
<div style="display: flex; align-items: center; gap: 20px;">
|
|
12
|
+
<img src="docs/companylogos/Angel.png" alt="Angel Studios" width="200" /> <img src="docs/companylogos/bell-fibe-tv.png" alt="Bell Fibe TV" width="80" />
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
## Need Support?
|
|
16
|
+
|
|
17
|
+
[SolidTV Docs](https://solid-tv.github.io/solid/)
|
|
18
|
+
|
|
19
|
+
Join the [SolidTV Discord](https://discord.com/invite/solidjs) - #SolidTV channel and message chiefcll
|
|
20
|
+
|
|
21
|
+
## Documentation
|
|
22
|
+
|
|
23
|
+
[SolidTV Docs](https://solid-tv.github.io/solid/)
|
|
24
|
+
|
|
25
|
+
[AI Coding Guidelines](docs/AI_CODING_GUIDELINES.md)
|
|
26
|
+
|
|
27
|
+
## Demo App
|
|
28
|
+
|
|
29
|
+
[SolidTV TMDB Demo App](https://github.com/solid-tv/solid-demo-app)
|
|
30
|
+
|
|
31
|
+
Tested and working on Chrome < 38 and could go earlier
|
|
32
|
+
|
|
33
|
+
## Playground
|
|
34
|
+
|
|
35
|
+
[playground.solidjs.com](https://playground.solidjs.com/anonymous/b36869ea-e7df-4f7a-af34-67222bc04271)
|
|
36
|
+
|
|
37
|
+
## Quick Start
|
|
38
|
+
|
|
39
|
+
Clone starter template:
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
> npx degit solid-tv/solid-starter-template my-app
|
|
43
|
+
> cd my-app
|
|
44
|
+
> npm i # or yarn or pnpm
|
|
45
|
+
> npm start # or yarn or pnpm
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Video Quick (actually it's long) Start
|
|
49
|
+
|
|
50
|
+
[](https://www.youtube.com/watch?v=9UU7Ntf7Tww)
|
|
51
|
+
|
|
52
|
+
Read the article:
|
|
53
|
+
https://medium.com/@chiefcll/lightning-3-the-basics-of-solidjs-e6e21d73205e
|
|
54
|
+
|
|
55
|
+
### Hello World
|
|
56
|
+
|
|
57
|
+
```jsx
|
|
58
|
+
import { render, Text } from '@solidtv/solid';
|
|
59
|
+
|
|
60
|
+
render(() => <Text>Hello World</Text>);
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
For a more detailed Hello World guide check out the [Hello World](HelloWorld.md) guide.
|
|
64
|
+
|
|
65
|
+
## Migration Guide from previous repo:
|
|
66
|
+
|
|
67
|
+
If you're migrating from https://github.com/lightning-js/solid
|
|
68
|
+
|
|
69
|
+
Find and replace:
|
|
70
|
+
"@solidtv/solid-primitives" with "@solidtv/solid/primitives"
|
|
71
|
+
"@solidtv/solid" with "@solidtv/solid"
|
|
72
|
+
|
|
73
|
+
Update vite.config to dedupe solid:
|
|
74
|
+
|
|
75
|
+
```js
|
|
76
|
+
resolve: {
|
|
77
|
+
dedupe: [
|
|
78
|
+
"solid-js",
|
|
79
|
+
"@solidtv/solid",
|
|
80
|
+
"@solidtv/solid/primitives",
|
|
81
|
+
"@solidtv/solid-ui",
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
If you don't want to find and replace you can use alias
|
|
87
|
+
|
|
88
|
+
```js
|
|
89
|
+
resolve: {
|
|
90
|
+
alias: {
|
|
91
|
+
"@solidtv/solid": "@solidtv/solid",
|
|
92
|
+
"@solidtv/solid-primitives": "@solidtv/solid/primitives",
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
import type { NodeProps, TextProps } from './src/core/index.js';
|
|
3
|
+
|
|
4
|
+
declare module 'solid-js' {
|
|
5
|
+
namespace JSX {
|
|
6
|
+
interface IntrinsicElements {
|
|
7
|
+
node: NodeProps;
|
|
8
|
+
view: NodeProps;
|
|
9
|
+
text: TextProps;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type { JSX } from 'solid-js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activeElement.js","sourceRoot":"","sources":["../../src/activeElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,YAAY,CAE3D,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { RendererMainSettings } from '@solidtv/renderer';
|
|
2
|
+
import type { TextProps, AnimationSettings, DollarString, StyleEffects } from './intrinsicTypes.js';
|
|
3
|
+
import { type ElementNode } from './elementNode.js';
|
|
4
|
+
import { DomRendererMainSettings, IRendererShader } from './dom-renderer/domRendererTypes.js';
|
|
5
|
+
/**
|
|
6
|
+
STATIC LIGHTNING CONFIGURATION \
|
|
7
|
+
Replace the values below with in your build system, \
|
|
8
|
+
or set them in the global scope before importing lightning-core.
|
|
9
|
+
*/
|
|
10
|
+
declare global {
|
|
11
|
+
/** Whether the DOM renderer should be used instead of `@solidtv/renderer` */
|
|
12
|
+
var SOLIDTV_DOM_RENDERING: boolean | undefined;
|
|
13
|
+
/** Whether element shaders should be disabled */
|
|
14
|
+
var SOLIDTV_DISABLE_SHADERS: boolean | undefined;
|
|
15
|
+
/** Could be set by vite or other bundler */
|
|
16
|
+
interface ImportMetaEnv {
|
|
17
|
+
DEV: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface ImportMeta {
|
|
20
|
+
readonly env: ImportMetaEnv;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export declare const isDev: boolean;
|
|
24
|
+
/** Whether the DOM renderer is used instead of `@solidtv/renderer` */
|
|
25
|
+
export declare const DOM_RENDERING: boolean;
|
|
26
|
+
/** Whether element shaders are enabled */
|
|
27
|
+
export declare const SHADERS_ENABLED: boolean;
|
|
28
|
+
/**
|
|
29
|
+
RUNTIME LIGHTNING CONFIGURATION \
|
|
30
|
+
This configuration can be set at runtime, but it is recommended to set it
|
|
31
|
+
before running any Lightning modules to ensure consistent behavior across the application.
|
|
32
|
+
*/
|
|
33
|
+
export interface Config {
|
|
34
|
+
debug: boolean;
|
|
35
|
+
focusDebug: boolean;
|
|
36
|
+
domRendererEnabled: boolean;
|
|
37
|
+
keyDebug: boolean;
|
|
38
|
+
animationSettings?: AnimationSettings;
|
|
39
|
+
animationsEnabled: boolean;
|
|
40
|
+
fontSettings: Partial<TextProps>;
|
|
41
|
+
rendererOptions?: Partial<RendererMainSettings> | DomRendererMainSettings;
|
|
42
|
+
setActiveElement: (elm: ElementNode) => void;
|
|
43
|
+
focusStateKey: DollarString;
|
|
44
|
+
lockStyles?: boolean;
|
|
45
|
+
fontWeightAlias?: Record<string, number | string>;
|
|
46
|
+
throttleInput?: number;
|
|
47
|
+
taskDelay?: number;
|
|
48
|
+
convertToShader: (_node: ElementNode, v: StyleEffects) => IRendererShader;
|
|
49
|
+
stateOrder?: DollarString[];
|
|
50
|
+
}
|
|
51
|
+
export declare const Config: Config;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { convertToShader as defaultConvertToShader, } from './elementNode.js';
|
|
2
|
+
export const isDev = !!(import.meta.env && import.meta.env.DEV);
|
|
3
|
+
/** Whether the DOM renderer is used instead of `@solidtv/renderer` */
|
|
4
|
+
export const DOM_RENDERING = typeof SOLIDTV_DOM_RENDERING === 'boolean' && SOLIDTV_DOM_RENDERING;
|
|
5
|
+
/** Whether element shaders are enabled */
|
|
6
|
+
export const SHADERS_ENABLED = !(typeof SOLIDTV_DISABLE_SHADERS === 'boolean' && SOLIDTV_DISABLE_SHADERS);
|
|
7
|
+
export const Config = {
|
|
8
|
+
debug: false,
|
|
9
|
+
domRendererEnabled: false,
|
|
10
|
+
focusDebug: false,
|
|
11
|
+
keyDebug: false,
|
|
12
|
+
animationsEnabled: true,
|
|
13
|
+
animationSettings: {
|
|
14
|
+
duration: 250,
|
|
15
|
+
easing: 'ease-in-out',
|
|
16
|
+
},
|
|
17
|
+
convertToShader: defaultConvertToShader,
|
|
18
|
+
fontSettings: {
|
|
19
|
+
fontFamily: 'Ubuntu',
|
|
20
|
+
fontSize: 100,
|
|
21
|
+
},
|
|
22
|
+
fontWeightAlias: {
|
|
23
|
+
thin: 100,
|
|
24
|
+
light: 300,
|
|
25
|
+
regular: '',
|
|
26
|
+
400: '',
|
|
27
|
+
medium: 500,
|
|
28
|
+
bold: 700,
|
|
29
|
+
black: 900,
|
|
30
|
+
},
|
|
31
|
+
setActiveElement: () => { },
|
|
32
|
+
focusStateKey: '$focus',
|
|
33
|
+
lockStyles: true,
|
|
34
|
+
rendererOptions: {},
|
|
35
|
+
stateOrder: [],
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/core/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,eAAe,IAAI,sBAAsB,GAC1C,MAAM,kBAAkB,CAAC;AA0B1B,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEhE,sEAAsE;AACtE,MAAM,CAAC,MAAM,aAAa,GACxB,OAAO,qBAAqB,KAAK,SAAS,IAAI,qBAAqB,CAAC;AAEtE,0CAA0C;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAC9B,OAAO,uBAAuB,KAAK,SAAS,IAAI,uBAAuB,CACxE,CAAC;AA0BF,MAAM,CAAC,MAAM,MAAM,GAAW;IAC5B,KAAK,EAAE,KAAK;IACZ,kBAAkB,EAAE,KAAK;IACzB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;IACf,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE;QACjB,QAAQ,EAAE,GAAG;QACb,MAAM,EAAE,aAAa;KACtB;IACD,eAAe,EAAE,sBAAsB;IACvC,YAAY,EAAE;QACZ,UAAU,EAAE,QAAQ;QACpB,QAAQ,EAAE,GAAG;KACd;IACD,eAAe,EAAE;QACf,IAAI,EAAE,GAAG;QACT,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,EAAE;QACX,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,GAAG;QACT,KAAK,EAAE,GAAG;KACX;IACD,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC1B,aAAa,EAAE,QAAQ;IACvB,UAAU,EAAE,IAAI;IAChB,eAAe,EAAE,EAAE;IACnB,UAAU,EAAE,EAAE;CACf,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as lng from '@solidtv/renderer';
|
|
2
|
+
import { EventEmitter } from '@solidtv/renderer/utils';
|
|
3
|
+
import { FontLoadOptions } from '../intrinsicTypes.js';
|
|
4
|
+
import type { DomRendererMainSettings, ExtractProps, IRendererMain, IRendererNode, IRendererNodeProps, IRendererShader, IRendererStage, IRendererTextNode, IRendererTextNodeProps } from './domRendererTypes.js';
|
|
5
|
+
declare function animate(this: DOMNode, props: Partial<lng.INodeAnimateProps<any>>, settings: Partial<lng.AnimationSettings>): lng.IAnimationController;
|
|
6
|
+
export declare class DOMNode extends EventEmitter implements IRendererNode {
|
|
7
|
+
stage: IRendererStage;
|
|
8
|
+
props: IRendererNodeProps;
|
|
9
|
+
div: HTMLDivElement;
|
|
10
|
+
divBg: HTMLElement | undefined;
|
|
11
|
+
divBorder: HTMLElement | undefined;
|
|
12
|
+
imgEl: HTMLImageElement | undefined;
|
|
13
|
+
lazyImagePendingSrc: string | null;
|
|
14
|
+
lazyImageSubTextureProps: InstanceType<lng.TextureMap['SubTexture']>['props'] | null;
|
|
15
|
+
boundsDirty: boolean;
|
|
16
|
+
children: Set<DOMNode>;
|
|
17
|
+
id: number;
|
|
18
|
+
renderState: lng.CoreNodeRenderState;
|
|
19
|
+
preventCleanup: boolean;
|
|
20
|
+
constructor(stage: IRendererStage, props: IRendererNodeProps);
|
|
21
|
+
destroy(): void;
|
|
22
|
+
get parent(): IRendererNode | null;
|
|
23
|
+
set parent(value: IRendererNode | null);
|
|
24
|
+
markChildrenBoundsDirty(): void;
|
|
25
|
+
animate: typeof animate;
|
|
26
|
+
updateRenderState(renderState: lng.CoreNodeRenderState): void;
|
|
27
|
+
applyPendingImageSrc(): void;
|
|
28
|
+
get x(): number;
|
|
29
|
+
set x(v: number);
|
|
30
|
+
get y(): number;
|
|
31
|
+
set y(v: number);
|
|
32
|
+
get w(): number;
|
|
33
|
+
set w(v: number);
|
|
34
|
+
get h(): number;
|
|
35
|
+
set h(v: number);
|
|
36
|
+
get width(): number;
|
|
37
|
+
set width(v: number);
|
|
38
|
+
get height(): number;
|
|
39
|
+
set height(v: number);
|
|
40
|
+
get alpha(): number;
|
|
41
|
+
set alpha(v: number);
|
|
42
|
+
get autosize(): boolean;
|
|
43
|
+
set autosize(v: boolean);
|
|
44
|
+
get clipping(): boolean;
|
|
45
|
+
set clipping(v: boolean);
|
|
46
|
+
get color(): number;
|
|
47
|
+
set color(v: number);
|
|
48
|
+
get colorTop(): number;
|
|
49
|
+
set colorTop(v: number);
|
|
50
|
+
get colorBottom(): number;
|
|
51
|
+
set colorBottom(v: number);
|
|
52
|
+
get colorLeft(): number;
|
|
53
|
+
set colorLeft(v: number);
|
|
54
|
+
get colorRight(): number;
|
|
55
|
+
set colorRight(v: number);
|
|
56
|
+
get colorTl(): number;
|
|
57
|
+
set colorTl(v: number);
|
|
58
|
+
get colorTr(): number;
|
|
59
|
+
set colorTr(v: number);
|
|
60
|
+
get colorBr(): number;
|
|
61
|
+
set colorBr(v: number);
|
|
62
|
+
get colorBl(): number;
|
|
63
|
+
set colorBl(v: number);
|
|
64
|
+
get zIndex(): number;
|
|
65
|
+
set zIndex(v: number);
|
|
66
|
+
get texture(): lng.Texture | null;
|
|
67
|
+
set texture(v: lng.Texture | null);
|
|
68
|
+
get textureOptions(): IRendererNode['textureOptions'];
|
|
69
|
+
set textureOptions(v: IRendererNode["textureOptions"]);
|
|
70
|
+
get src(): string | null;
|
|
71
|
+
set src(v: string | null);
|
|
72
|
+
get scale(): number;
|
|
73
|
+
set scale(v: number);
|
|
74
|
+
get scaleX(): number;
|
|
75
|
+
set scaleX(v: number);
|
|
76
|
+
get scaleY(): number;
|
|
77
|
+
set scaleY(v: number);
|
|
78
|
+
get mount(): number;
|
|
79
|
+
set mount(v: number);
|
|
80
|
+
get mountX(): number;
|
|
81
|
+
set mountX(v: number);
|
|
82
|
+
get mountY(): number;
|
|
83
|
+
set mountY(v: number);
|
|
84
|
+
get pivot(): number;
|
|
85
|
+
set pivot(v: number);
|
|
86
|
+
get pivotX(): number;
|
|
87
|
+
set pivotX(v: number);
|
|
88
|
+
get pivotY(): number;
|
|
89
|
+
set pivotY(v: number);
|
|
90
|
+
get rotation(): number;
|
|
91
|
+
set rotation(v: number);
|
|
92
|
+
get rtt(): boolean;
|
|
93
|
+
set rtt(v: boolean);
|
|
94
|
+
get shader(): IRendererShader | null;
|
|
95
|
+
set shader(v: IRendererShader | null);
|
|
96
|
+
get data(): IRendererNode['data'];
|
|
97
|
+
set data(v: IRendererNode["data"]);
|
|
98
|
+
get imageType(): "regular" | "compressed" | "svg" | null | undefined;
|
|
99
|
+
set imageType(v: "regular" | "compressed" | "svg" | null | undefined);
|
|
100
|
+
get srcWidth(): number | undefined;
|
|
101
|
+
set srcWidth(v: number | undefined);
|
|
102
|
+
get srcHeight(): number | undefined;
|
|
103
|
+
set srcHeight(v: number | undefined);
|
|
104
|
+
get srcX(): number | undefined;
|
|
105
|
+
set srcX(v: number | undefined);
|
|
106
|
+
get srcY(): number | undefined;
|
|
107
|
+
set srcY(v: number | undefined);
|
|
108
|
+
get boundsMargin(): number | [number, number, number, number] | null;
|
|
109
|
+
set boundsMargin(value: number | [number, number, number, number] | null);
|
|
110
|
+
get absX(): number;
|
|
111
|
+
get absY(): number;
|
|
112
|
+
}
|
|
113
|
+
export declare class DOMRendererMain implements IRendererMain {
|
|
114
|
+
settings: DomRendererMainSettings;
|
|
115
|
+
root: DOMNode;
|
|
116
|
+
canvas: HTMLCanvasElement;
|
|
117
|
+
stage: IRendererStage;
|
|
118
|
+
private eventListeners;
|
|
119
|
+
constructor(settings: DomRendererMainSettings, rawTarget: string | HTMLElement);
|
|
120
|
+
removeAllListeners(): void;
|
|
121
|
+
once<K extends string | number>(event: Extract<K, string>, listener: {
|
|
122
|
+
[s: string]: (target: any, data: any) => void;
|
|
123
|
+
}[K]): void;
|
|
124
|
+
on(name: string, callback: (target: any, data: any) => void): void;
|
|
125
|
+
off<K extends string | number>(event: Extract<K, string>, listener: {
|
|
126
|
+
[s: string]: (target: any, data: any) => void;
|
|
127
|
+
}[K]): void;
|
|
128
|
+
emit<K extends string | number>(event: Extract<K, string>, data: Parameters<any>[1]): void;
|
|
129
|
+
emit<K extends string | number>(event: Extract<K, string>, target: any, data: Parameters<any>[1]): void;
|
|
130
|
+
createNode(props: Partial<IRendererNodeProps>): IRendererNode;
|
|
131
|
+
createTextNode(props: Partial<IRendererTextNodeProps>): IRendererTextNode;
|
|
132
|
+
/** TODO: restore this */
|
|
133
|
+
createShader(...args: Parameters<typeof lng.RendererMain.prototype.createShader>): ReturnType<typeof lng.RendererMain.prototype.createShader>;
|
|
134
|
+
createTexture<Type extends keyof lng.TextureMap>(textureType: Type, props: ExtractProps<lng.TextureMap[Type]>): InstanceType<lng.TextureMap[Type]>;
|
|
135
|
+
}
|
|
136
|
+
export declare function loadFontToDom(font: FontLoadOptions): void;
|
|
137
|
+
export declare function isDomRenderer(r: lng.RendererMain | DOMRendererMain): r is DOMRendererMain;
|
|
138
|
+
export {};
|