laymur 0.15.1 → 0.17.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.
Files changed (248) hide show
  1. package/.claude/settings.local.json +9 -0
  2. package/.editorconfig +14 -0
  3. package/CLAUDE.md +181 -0
  4. package/README.md +84 -208
  5. package/assets/logotype.png +0 -0
  6. package/eslint.config.js +111 -0
  7. package/package.json +20 -36
  8. package/rollup.config.js +52 -0
  9. package/{dist/constraints/UIAspectConstraint/UIAspectConstraint.Internal.d.ts → src/core/constraints/UIAspectConstraint/UIAspectConstraint.Internal.ts} +3 -2
  10. package/src/core/constraints/UIAspectConstraint/UIAspectConstraint.ts +60 -0
  11. package/src/core/constraints/UIConstraint.ts +20 -0
  12. package/src/core/constraints/UICustomConstraint.ts +62 -0
  13. package/{dist/constraints/UIHeightConstraint/UIHeightConstraint.Internal.d.ts → src/core/constraints/UIHeightConstraint/UIHeightConstraint.Internal.ts} +3 -2
  14. package/src/core/constraints/UIHeightConstraint/UIHeightConstraint.ts +52 -0
  15. package/src/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.Internal.ts +13 -0
  16. package/src/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.ts +139 -0
  17. package/src/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.Internal.ts +16 -0
  18. package/src/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.ts +189 -0
  19. package/{dist/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.Internal.d.ts → src/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.Internal.ts} +3 -2
  20. package/src/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.ts +68 -0
  21. package/{dist/constraints/UISingleParameterConstraint/UISingleParameterConstraint.Internal.d.ts → src/core/constraints/UISingleParameterConstraint/UISingleParameterConstraint.Internal.ts} +9 -8
  22. package/src/core/constraints/UISingleParameterConstraint/UISingleParameterConstraint.ts +94 -0
  23. package/src/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.Internal.ts +13 -0
  24. package/src/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.ts +135 -0
  25. package/src/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.Internal.ts +16 -0
  26. package/src/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.ts +189 -0
  27. package/{dist/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.Internal.d.ts → src/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.Internal.ts} +3 -2
  28. package/src/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.ts +68 -0
  29. package/{dist/constraints/UIWidthConstraint/UIWidthConstraint.Internal.d.ts → src/core/constraints/UIWidthConstraint/UIWidthConstraint.Internal.ts} +3 -2
  30. package/src/core/constraints/UIWidthConstraint/UIWidthConstraint.ts +52 -0
  31. package/src/core/constraints/builders/UIConstraint2DBuilder.Internal.ts +84 -0
  32. package/src/core/constraints/builders/UIConstraint2DBuilder.ts +168 -0
  33. package/src/core/constraints/builders/UICoverConstraintBuilder.Internal.ts +15 -0
  34. package/src/core/constraints/builders/UICoverConstraintBuilder.ts +84 -0
  35. package/src/core/constraints/builders/UIFitConstraintBuilder.Internal.ts +15 -0
  36. package/src/core/constraints/builders/UIFitConstraintBuilder.ts +84 -0
  37. package/src/core/elements/UIAnchor/UIAnchor.Internal.ts +13 -0
  38. package/src/core/elements/UIAnchor/UIAnchor.ts +70 -0
  39. package/src/core/elements/UIAnimatedImage/UIAnimatedImage.Internal.ts +30 -0
  40. package/src/core/elements/UIAnimatedImage/UIAnimatedImage.ts +355 -0
  41. package/src/core/elements/UIDummy/UIDummy.Internal.ts +33 -0
  42. package/src/core/elements/UIDummy/UIDummy.ts +244 -0
  43. package/src/core/elements/UIElement/UIElement.Internal.ts +13 -0
  44. package/src/core/elements/UIElement/UIElement.ts +127 -0
  45. package/{dist/elements/UIGraphics/UIGraphics.Internal.d.ts → src/core/elements/UIGraphics/UIGraphics.Internal.ts} +7 -5
  46. package/src/core/elements/UIGraphics/UIGraphics.ts +168 -0
  47. package/{dist/elements/UIImage/UIImage.Internal.d.ts → src/core/elements/UIImage/UIImage.Internal.ts} +3 -2
  48. package/src/core/elements/UIImage/UIImage.ts +138 -0
  49. package/src/core/elements/UINineSlice/UINineSlice.Internal.ts +26 -0
  50. package/src/core/elements/UINineSlice/UINineSlice.ts +296 -0
  51. package/src/core/elements/UIProgress/UIProgress.Internal.ts +24 -0
  52. package/src/core/elements/UIProgress/UIProgress.ts +259 -0
  53. package/src/core/elements/UIScene/UIScene.Internal.ts +46 -0
  54. package/src/core/elements/UIScene/UIScene.ts +259 -0
  55. package/{dist/elements/UIText/UIText.Interfaces.d.ts → src/core/elements/UIText/UIText.Interfaces.ts} +21 -16
  56. package/src/core/elements/UIText/UIText.Internal.ts +29 -0
  57. package/src/core/elements/UIText/UIText.Measuring.ts +183 -0
  58. package/src/core/elements/UIText/UIText.Rendering.ts +83 -0
  59. package/src/core/elements/UIText/UIText.ts +376 -0
  60. package/{dist/index.d.ts → src/core/index.ts} +2 -1
  61. package/{dist/layers/UIFullscreenLayer/UIFullscreenLayer.Internal.d.ts → src/core/layers/UIFullscreenLayer/UIFullscreenLayer.Internal.ts} +14 -11
  62. package/src/core/layers/UIFullscreenLayer/UIFullscreenLayer.ts +233 -0
  63. package/{dist/layers/UILayer/UILayer.Internal.d.ts → src/core/layers/UILayer/UILayer.Internal.ts} +15 -11
  64. package/src/core/layers/UILayer/UILayer.ts +156 -0
  65. package/src/core/miscellaneous/UIExpression.ts +142 -0
  66. package/src/core/miscellaneous/UIMode.ts +29 -0
  67. package/src/core/miscellaneous/UIOrientation.ts +18 -0
  68. package/src/core/miscellaneous/UIPriority.ts +63 -0
  69. package/src/core/miscellaneous/UIRelation.ts +39 -0
  70. package/src/core/miscellaneous/UITransparencyMode.ts +9 -0
  71. package/src/core/miscellaneous/area/UIArea.ts +5 -0
  72. package/src/core/miscellaneous/area/UIAreaCircle.ts +32 -0
  73. package/src/core/miscellaneous/area/UIAreaPolygon.ts +50 -0
  74. package/src/core/miscellaneous/area/UIAreaRectangle.ts +38 -0
  75. package/src/core/miscellaneous/area/UIAreaRoundedRectangle.ts +78 -0
  76. package/src/core/miscellaneous/asserts.ts +187 -0
  77. package/src/core/miscellaneous/canvas.ts +73 -0
  78. package/src/core/miscellaneous/color/UIColor.Internal.ts +89 -0
  79. package/src/core/miscellaneous/color/UIColor.ts +844 -0
  80. package/src/core/miscellaneous/computeTransform.ts +127 -0
  81. package/src/core/miscellaneous/generic-plane/UIGenericInstancedPlane/UIGenericInstancedPlane.Internal.ts +235 -0
  82. package/src/core/miscellaneous/generic-plane/UIGenericInstancedPlane/UIGenericInstancedPlane.ts +524 -0
  83. package/{dist/miscellaneous/generic-plane/UIGenericPlaneRegistry/UIGenericPlaneRegistry.Internal.d.ts → src/core/miscellaneous/generic-plane/UIGenericPlaneRegistry/UIGenericPlaneRegistry.Internal.ts} +10 -8
  84. package/src/core/miscellaneous/generic-plane/UIGenericPlaneRegistry/UIGenericPlaneRegistry.ts +448 -0
  85. package/src/core/miscellaneous/generic-plane/shared.ts +323 -0
  86. package/src/core/miscellaneous/insets/UIInsets.Internal.ts +9 -0
  87. package/src/core/miscellaneous/insets/UIInsets.ts +248 -0
  88. package/src/core/miscellaneous/mask-function/UIProgressMaskFunction.ts +24 -0
  89. package/src/core/miscellaneous/mask-function/UIProgressMaskFunctionCircular.ts +58 -0
  90. package/src/core/miscellaneous/mask-function/UIProgressMaskFunctionDirectional.ts +52 -0
  91. package/src/core/miscellaneous/math.ts +16 -0
  92. package/src/core/miscellaneous/micro/UIMicro.Internal.ts +33 -0
  93. package/src/core/miscellaneous/micro/UIMicro.ts +222 -0
  94. package/src/core/miscellaneous/resize-policy/UIResizePolicy.ts +8 -0
  95. package/src/core/miscellaneous/resize-policy/UIResizePolicyCover.ts +57 -0
  96. package/src/core/miscellaneous/resize-policy/UIResizePolicyCross.ts +65 -0
  97. package/src/core/miscellaneous/resize-policy/UIResizePolicyCrossInverted.ts +65 -0
  98. package/src/core/miscellaneous/resize-policy/UIResizePolicyFit.ts +57 -0
  99. package/src/core/miscellaneous/resize-policy/UIResizePolicyFixedHeight.ts +65 -0
  100. package/src/core/miscellaneous/resize-policy/UIResizePolicyFixedWidth.ts +65 -0
  101. package/src/core/miscellaneous/resize-policy/UIResizePolicyNone.ts +11 -0
  102. package/src/core/miscellaneous/shared.ts +73 -0
  103. package/{dist/miscellaneous/text-span/UITextSpan.Internal.d.ts → src/core/miscellaneous/text-span/UITextSpan.Internal.ts} +5 -4
  104. package/src/core/miscellaneous/text-span/UITextSpan.ts +43 -0
  105. package/src/core/miscellaneous/text-style/UITextStyle.Internal.ts +52 -0
  106. package/src/core/miscellaneous/text-style/UITextStyle.ts +479 -0
  107. package/src/core/miscellaneous/texture/UITextureView.Internal.ts +55 -0
  108. package/src/core/miscellaneous/texture/UITextureView.ts +308 -0
  109. package/src/core/miscellaneous/webglCapabilities.ts +129 -0
  110. package/src/core/shaders/UIImage.glsl +10 -0
  111. package/src/core/shaders/UINineSlice.glsl +53 -0
  112. package/src/core/shaders/UIProgress.glsl +15 -0
  113. package/src/core/shaders/UIProgressMaskFunctionCircular.glsl +13 -0
  114. package/src/core/shaders/UIProgressMaskFunctionDirectional.glsl +12 -0
  115. package/src/core/shaders/glsl.d.ts +27 -0
  116. package/src/core/wrappers/UIInputWrapper/UIInputWrapper.Internal.ts +23 -0
  117. package/src/core/wrappers/UIInputWrapper/UIInputWrapper.ts +124 -0
  118. package/src/core/wrappers/UISceneWrapper/UISceneWrapper.Internal.ts +22 -0
  119. package/src/core/wrappers/UISceneWrapper/UISceneWrapper.ts +101 -0
  120. package/src/core/wrappers/UISolverWrapper/UISolverWrapper.Internal.ts +58 -0
  121. package/src/core/wrappers/UISolverWrapper/UISolverWrapper.ts +605 -0
  122. package/src/particles/behaviorModules/UIBehaviorDirectionalGravity.ts +70 -0
  123. package/src/particles/behaviorModules/UIBehaviorModule.ts +20 -0
  124. package/src/particles/behaviorModules/UIBehaviorPointGravity.ts +173 -0
  125. package/src/particles/behaviorModules/UIBehaviorScaleOverLife.ts +104 -0
  126. package/src/particles/behaviorModules/UIBehaviorTorqueDamping.ts +75 -0
  127. package/src/particles/behaviorModules/UIBehaviorTorqueNoise.ts +115 -0
  128. package/src/particles/behaviorModules/UIBehaviorVelocityDamping.ts +77 -0
  129. package/src/particles/behaviorModules/UIBehaviorVelocityNoise.ts +118 -0
  130. package/src/particles/elements/UIEmitter.Internal.ts +22 -0
  131. package/src/particles/elements/UIEmitter.ts +313 -0
  132. package/src/particles/index.ts +18 -0
  133. package/src/particles/instancedParticle/UIInstancedParticle.Internal.ts +263 -0
  134. package/src/particles/instancedParticle/UIInstancedParticle.ts +138 -0
  135. package/src/particles/miscellaneous/miscellaneous.ts +115 -0
  136. package/src/particles/renderingModules/UIRenderingColorOverLife.ts +39 -0
  137. package/src/particles/renderingModules/UIRenderingColorOverVelocity.ts +49 -0
  138. package/src/particles/renderingModules/UIRenderingModule.ts +17 -0
  139. package/src/particles/renderingModules/UIRenderingTexture.ts +30 -0
  140. package/src/particles/shaders/UIRenderingColorOverLife.glsl +4 -0
  141. package/src/particles/shaders/UIRenderingColorOverVelocity.glsl +6 -0
  142. package/src/particles/shaders/UIRenderingTexture.glsl +4 -0
  143. package/src/particles/spawnModules/UISpawnModule.ts +22 -0
  144. package/src/particles/spawnModules/UISpawnOffset.ts +62 -0
  145. package/src/particles/spawnModules/UISpawnRandomLifetime.ts +68 -0
  146. package/src/particles/spawnModules/UISpawnRandomRotation.ts +60 -0
  147. package/src/particles/spawnModules/UISpawnRandomScale.ts +81 -0
  148. package/src/particles/spawnModules/UISpawnRandomTorque.ts +62 -0
  149. package/src/particles/spawnModules/UISpawnRandomVelocity.ts +92 -0
  150. package/src/particles/spawnModules/UISpawnRectangle.ts +81 -0
  151. package/tsconfig.json +29 -0
  152. package/dist/constraints/UIAspectConstraint/UIAspectConstraint.d.ts +0 -22
  153. package/dist/constraints/UIConstraint.d.ts +0 -12
  154. package/dist/constraints/UICustomConstraint.d.ts +0 -28
  155. package/dist/constraints/UIHeightConstraint/UIHeightConstraint.d.ts +0 -20
  156. package/dist/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.Internal.d.ts +0 -11
  157. package/dist/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.d.ts +0 -36
  158. package/dist/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.Internal.d.ts +0 -14
  159. package/dist/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.d.ts +0 -44
  160. package/dist/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.d.ts +0 -22
  161. package/dist/constraints/UISingleParameterConstraint/UISingleParameterConstraint.d.ts +0 -43
  162. package/dist/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.Internal.d.ts +0 -11
  163. package/dist/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.d.ts +0 -32
  164. package/dist/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.Internal.d.ts +0 -14
  165. package/dist/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.d.ts +0 -44
  166. package/dist/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.d.ts +0 -22
  167. package/dist/constraints/UIWidthConstraint/UIWidthConstraint.d.ts +0 -20
  168. package/dist/constraints/builders/UIConstraint2DBuilder.Internal.d.ts +0 -64
  169. package/dist/constraints/builders/UIConstraint2DBuilder.d.ts +0 -46
  170. package/dist/constraints/builders/UICoverConstraintBuilder.Internal.d.ts +0 -13
  171. package/dist/constraints/builders/UICoverConstraintBuilder.d.ts +0 -29
  172. package/dist/constraints/builders/UIFitConstraintBuilder.Internal.d.ts +0 -13
  173. package/dist/constraints/builders/UIFitConstraintBuilder.d.ts +0 -29
  174. package/dist/elements/UIAnchor/UIAnchor.Internal.d.ts +0 -9
  175. package/dist/elements/UIAnchor/UIAnchor.d.ts +0 -32
  176. package/dist/elements/UIAnimatedImage/UIAnimatedImage.Internal.d.ts +0 -27
  177. package/dist/elements/UIAnimatedImage/UIAnimatedImage.d.ts +0 -77
  178. package/dist/elements/UIElement/UIElement.Internal.d.ts +0 -11
  179. package/dist/elements/UIElement/UIElement.d.ts +0 -38
  180. package/dist/elements/UIGraphics/UIGraphics.d.ts +0 -51
  181. package/dist/elements/UIImage/UIImage.d.ts +0 -32
  182. package/dist/elements/UIInputDummy/UIInputDummy.Internal.d.ts +0 -30
  183. package/dist/elements/UIInputDummy/UIInputDummy.d.ts +0 -82
  184. package/dist/elements/UINineSlice/UINineSlice.Internal.d.ts +0 -23
  185. package/dist/elements/UINineSlice/UINineSlice.d.ts +0 -60
  186. package/dist/elements/UIProgress/UIProgress.Internal.d.ts +0 -14
  187. package/dist/elements/UIProgress/UIProgress.d.ts +0 -45
  188. package/dist/elements/UIScene/UIScene.Internal.d.ts +0 -43
  189. package/dist/elements/UIScene/UIScene.d.ts +0 -59
  190. package/dist/elements/UIText/UIText.Internal.d.ts +0 -26
  191. package/dist/elements/UIText/UIText.Measuring.d.ts +0 -50
  192. package/dist/elements/UIText/UIText.Rendering.d.ts +0 -20
  193. package/dist/elements/UIText/UIText.d.ts +0 -71
  194. package/dist/index.js +0 -9236
  195. package/dist/index.js.map +0 -1
  196. package/dist/index.min.js +0 -2
  197. package/dist/index.min.js.map +0 -1
  198. package/dist/layers/UIFullscreenLayer/UIFullscreenLayer.d.ts +0 -63
  199. package/dist/layers/UILayer/UILayer.d.ts +0 -49
  200. package/dist/miscellaneous/UIExpression.d.ts +0 -69
  201. package/dist/miscellaneous/UIMode.d.ts +0 -23
  202. package/dist/miscellaneous/UIOrientation.d.ts +0 -15
  203. package/dist/miscellaneous/UIPriority.d.ts +0 -32
  204. package/dist/miscellaneous/UIRelation.d.ts +0 -23
  205. package/dist/miscellaneous/UITransparencyMode.d.ts +0 -9
  206. package/dist/miscellaneous/area/UIArea.d.ts +0 -3
  207. package/dist/miscellaneous/area/UIAreaCircle.d.ts +0 -15
  208. package/dist/miscellaneous/area/UIAreaPolygon.d.ts +0 -12
  209. package/dist/miscellaneous/area/UIAreaRectangle.d.ts +0 -17
  210. package/dist/miscellaneous/area/UIAreaRoundedRectangle.d.ts +0 -21
  211. package/dist/miscellaneous/asserts.d.ts +0 -43
  212. package/dist/miscellaneous/canvas.d.ts +0 -31
  213. package/dist/miscellaneous/color/UIColor.Internal.d.ts +0 -7
  214. package/dist/miscellaneous/color/UIColor.d.ts +0 -234
  215. package/dist/miscellaneous/computeTransform.d.ts +0 -18
  216. package/dist/miscellaneous/generic-plane/UIGenericInstancedPlane/UIGenericInstancedPlane.Internal.d.ts +0 -19
  217. package/dist/miscellaneous/generic-plane/UIGenericInstancedPlane/UIGenericInstancedPlane.d.ts +0 -1
  218. package/dist/miscellaneous/generic-plane/UIGenericPlaneRegistry/UIGenericPlaneRegistry.d.ts +0 -1
  219. package/dist/miscellaneous/generic-plane/shared.d.ts +0 -38
  220. package/dist/miscellaneous/insets/UIInsets.Internal.d.ts +0 -11
  221. package/dist/miscellaneous/insets/UIInsets.d.ts +0 -48
  222. package/dist/miscellaneous/mask-function/UIProgressMaskFunction.d.ts +0 -9
  223. package/dist/miscellaneous/mask-function/UIProgressMaskFunctionCircular.d.ts +0 -21
  224. package/dist/miscellaneous/mask-function/UIProgressMaskFunctionDirectional.d.ts +0 -16
  225. package/dist/miscellaneous/math.d.ts +0 -5
  226. package/dist/miscellaneous/micro/UIMicro.Internal.d.ts +0 -31
  227. package/dist/miscellaneous/micro/UIMicro.d.ts +0 -59
  228. package/dist/miscellaneous/resize-policy/UIResizePolicy.d.ts +0 -3
  229. package/dist/miscellaneous/resize-policy/UIResizePolicyCover.d.ts +0 -22
  230. package/dist/miscellaneous/resize-policy/UIResizePolicyCross.d.ts +0 -22
  231. package/dist/miscellaneous/resize-policy/UIResizePolicyCrossInverted.d.ts +0 -22
  232. package/dist/miscellaneous/resize-policy/UIResizePolicyFit.d.ts +0 -22
  233. package/dist/miscellaneous/resize-policy/UIResizePolicyFixedHeight.d.ts +0 -22
  234. package/dist/miscellaneous/resize-policy/UIResizePolicyFixedWidth.d.ts +0 -22
  235. package/dist/miscellaneous/resize-policy/UIResizePolicyNone.d.ts +0 -5
  236. package/dist/miscellaneous/shared.d.ts +0 -46
  237. package/dist/miscellaneous/text-span/UITextSpan.d.ts +0 -14
  238. package/dist/miscellaneous/text-style/UITextStyle.Internal.d.ts +0 -48
  239. package/dist/miscellaneous/text-style/UITextStyle.d.ts +0 -85
  240. package/dist/miscellaneous/texture/UITextureView.Internal.d.ts +0 -49
  241. package/dist/miscellaneous/texture/UITextureView.d.ts +0 -67
  242. package/dist/miscellaneous/webglCapabilities.d.ts +0 -2
  243. package/dist/wrappers/UIInputWrapper/UIInputWrapper.Internal.d.ts +0 -17
  244. package/dist/wrappers/UIInputWrapper/UIInputWrapper.d.ts +0 -13
  245. package/dist/wrappers/UISceneWrapper/UISceneWrapper.Internal.d.ts +0 -13
  246. package/dist/wrappers/UISceneWrapper/UISceneWrapper.d.ts +0 -20
  247. package/dist/wrappers/UISolverWrapper/UISolverWrapper.Internal.d.ts +0 -49
  248. package/dist/wrappers/UISolverWrapper/UISolverWrapper.d.ts +0 -215
@@ -1,82 +0,0 @@
1
- import type { FerrsignView1 } from "ferrsign";
2
- import { Ferrsign1 } from "ferrsign";
3
- import type { UILayer } from "../../layers/UILayer/UILayer";
4
- import type { UIArea } from "../../miscellaneous/area/UIArea";
5
- import type { UIPlaneElement } from "../../miscellaneous/shared";
6
- import { UIMode } from "../../miscellaneous/UIMode";
7
- import type { UIInputWrapperInterface } from "../../wrappers/UIInputWrapper/UIInputWrapper.Internal";
8
- import { UIAnchor } from "../UIAnchor/UIAnchor";
9
- import type { UIInputDummyOptions, UIInputEventData } from "./UIInputDummy.Internal";
10
- /** Rectangular area with dimensions but no rendering */
11
- export declare class UIInputDummy extends UIAnchor implements UIPlaneElement {
12
- /** Shape defining interactive region in element-local space (0,0 = bottom-left, 1,1 = top-right) */
13
- interactionArea: UIArea;
14
- /** Solver variable for width */
15
- readonly wVariable: number;
16
- /** Solver variable for height */
17
- readonly hVariable: number;
18
- protected modeInternal: UIMode;
19
- protected readonly inputWrapper: UIInputWrapperInterface;
20
- private readonly catcherHandler;
21
- private wasPointerInside;
22
- private readonly signalPressedInternal;
23
- private readonly signalMovedInternal;
24
- private readonly signalReleasedInternal;
25
- private readonly signalEnteredInternal;
26
- private readonly signalLeftInternal;
27
- /**
28
- * Creates a new UIInputDummy instance.
29
- *
30
- * @param layer - Layer containing this element
31
- * @param options - Configuration options
32
- */
33
- constructor(layer: UILayer, options?: Partial<UIInputDummyOptions>);
34
- /** Width in world units */
35
- get width(): number;
36
- /** Height in world units */
37
- get height(): number;
38
- /** X coordinate of right edge */
39
- get oppositeX(): number;
40
- /** Y coordinate of top edge */
41
- get oppositeY(): number;
42
- /** X coordinate of horizontal center */
43
- get centerX(): number;
44
- /** Y coordinate of vertical center */
45
- get centerY(): number;
46
- /** Controls visibility and interactivity */
47
- get mode(): UIMode;
48
- /** Rendering and input priority. Higher values on top. */
49
- get zIndex(): number;
50
- /** Signal fired when pointer is pressed */
51
- get signalPressed(): FerrsignView1<UIInputEventData>;
52
- /** Signal fired when pointer is moved */
53
- get signalMoved(): FerrsignView1<UIInputEventData>;
54
- /** Signal fired when pointer is released */
55
- get signalReleased(): FerrsignView1<UIInputEventData>;
56
- /** Signal fired when pointer enters element */
57
- get signalEntered(): FerrsignView1<UIInputEventData>;
58
- /** Signal fired when pointer leaves element */
59
- get signalLeft(): FerrsignView1<UIInputEventData>;
60
- /** Width in world units */
61
- set width(value: number);
62
- /** Height in world units */
63
- set height(value: number);
64
- /** X coordinate of right edge */
65
- set oppositeX(value: number);
66
- /** Y coordinate of top edge */
67
- set oppositeY(value: number);
68
- /** X coordinate of horizontal center */
69
- set centerX(value: number);
70
- /** Y coordinate of vertical center */
71
- set centerY(value: number);
72
- /** Controls visibility and interactivity */
73
- set mode(value: UIMode);
74
- /** Rendering and input priority. Higher values on top. */
75
- set zIndex(value: number);
76
- /** Removes element and frees resources */
77
- destroy(): void;
78
- protected readonly catchPointerDown: (x: number, y: number, identifier: number) => boolean;
79
- protected readonly catchPointerMove: (x: number, y: number, identifier: number) => boolean;
80
- protected readonly catchPointerUp: (x: number, y: number, identifier: number) => boolean;
81
- protected handleInputEvent(x: number, y: number, identifier: number, signal: Ferrsign1<UIInputEventData>): boolean;
82
- }
@@ -1,23 +0,0 @@
1
- import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal";
2
- import type { UIInsetsConfig } from "../../miscellaneous/insets/UIInsets.Internal";
3
- import type { UIElementOptions } from "../UIElement/UIElement.Internal";
4
- /** Controls how sliceRegions values are interpreted */
5
- export declare enum UINineSliceRegionMode {
6
- /** sliceRegions in normalized coordinates (0 to 1) */
7
- NORMALIZED = 0,
8
- /** sliceRegions in world units */
9
- WORLD = 1
10
- }
11
- /** Configuration options for UINineSlice */
12
- export interface UINineSliceOptions extends UIElementOptions {
13
- /** Multiplicative tint */
14
- color: UIColorConfig;
15
- /** Border size in normalized texture coordinates (0 to 1) */
16
- sliceBorders: UIInsetsConfig;
17
- /** Region size. Interpretation depends on regionMode. */
18
- sliceRegions: UIInsetsConfig;
19
- /** How sliceRegions values are interpreted */
20
- regionMode: UINineSliceRegionMode;
21
- }
22
- export declare const NINE_SLICE_DEFAULT_BORDER = 0.1;
23
- export declare const NINE_SLICE_DEFAULT_REGION_MODE = UINineSliceRegionMode.WORLD;
@@ -1,60 +0,0 @@
1
- import type { UILayer } from "../../layers/UILayer/UILayer";
2
- import { UIColor } from "../../miscellaneous/color/UIColor";
3
- import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal";
4
- import { UIInsets } from "../../miscellaneous/insets/UIInsets";
5
- import type { UIInsetsConfig } from "../../miscellaneous/insets/UIInsets.Internal";
6
- import { UITextureView } from "../../miscellaneous/texture/UITextureView";
7
- import type { UITextureConfig } from "../../miscellaneous/texture/UITextureView.Internal";
8
- import { UIElement } from "../UIElement/UIElement";
9
- import type { UINineSliceOptions } from "./UINineSlice.Internal";
10
- import { UINineSliceRegionMode } from "./UINineSlice.Internal";
11
- /** Scalable textured image preserving border regions */
12
- export declare class UINineSlice extends UIElement {
13
- /** Texture displayed by this element */
14
- readonly texture: UITextureView;
15
- private readonly colorInternal;
16
- private readonly sliceBordersInternal;
17
- private readonly sliceRegionsInternal;
18
- private regionModeInternal;
19
- private regionModeDirty;
20
- private readonly textureTransform;
21
- private readonly sliceBordersVector;
22
- private readonly sliceRegionsVector;
23
- private lastElementWidth;
24
- private lastElementHeight;
25
- private textureDimensionsDirty;
26
- /**
27
- * Creates a new UINineSlice instance.
28
- *
29
- * Defaults size to texture dimensions if width and height not provided.
30
- *
31
- * @param layer - Layer containing this element
32
- * @param texture - Texture to display
33
- * @param options - Configuration options
34
- */
35
- constructor(layer: UILayer, texture: UITextureConfig, options?: Partial<UINineSliceOptions>);
36
- /** Multiplicative tint. Alpha channel controls opacity. */
37
- get color(): UIColor;
38
- /** Controls how sliceRegions values are interpreted */
39
- get regionMode(): UINineSliceRegionMode;
40
- /** Border size in normalized texture coordinates (0 to 1) */
41
- get sliceBorders(): UIInsets;
42
- /** Region size. Interpretation depends on regionMode. */
43
- get sliceRegions(): UIInsets;
44
- /** Multiplicative tint. Alpha channel controls opacity. */
45
- set color(value: UIColorConfig);
46
- /** Controls how sliceRegions values are interpreted */
47
- set regionMode(value: UINineSliceRegionMode);
48
- /** Border size in normalized texture coordinates (0 to 1) */
49
- set sliceBorders(value: UIInsetsConfig);
50
- /** Region size. Interpretation depends on regionMode. */
51
- set sliceRegions(value: UIInsetsConfig);
52
- /** Removes nine slice and frees resources */
53
- destroy(): void;
54
- protected setPlaneTransform(): void;
55
- private calculateSliceBordersForShader;
56
- private calculateSliceRegionsForShader;
57
- private checkElementDimensionsDirty;
58
- private setElementDimensionsDirtyFalse;
59
- private readonly onTextureDimensionsChanged;
60
- }
@@ -1,14 +0,0 @@
1
- import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal";
2
- import type { UIProgressMaskFunction } from "../../miscellaneous/mask-function/UIProgressMaskFunction";
3
- import type { UIElementOptions } from "../UIElement/UIElement.Internal";
4
- /** Configuration options for UIProgress */
5
- export interface UIProgressOptions extends UIElementOptions {
6
- /** Multiplicative tint */
7
- color: UIColorConfig;
8
- /** Function controlling fill direction and shape */
9
- maskFunction: UIProgressMaskFunction;
10
- /** Progress from 0 (empty) to 1 (full) */
11
- progress: number;
12
- }
13
- export declare const PROGRESS_DEFAULT_VALUE = 1;
14
- export declare function simplifyGLSLSource(source: string): string;
@@ -1,45 +0,0 @@
1
- import type { Texture } from "three";
2
- import type { UILayer } from "../../layers/UILayer/UILayer";
3
- import { UIColor } from "../../miscellaneous/color/UIColor";
4
- import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal";
5
- import type { UIProgressMaskFunction } from "../../miscellaneous/mask-function/UIProgressMaskFunction";
6
- import { UITextureView } from "../../miscellaneous/texture/UITextureView";
7
- import { UIElement } from "../UIElement/UIElement";
8
- import type { UIProgressOptions } from "./UIProgress.Internal";
9
- /** Progress bar with customizable fill direction */
10
- export declare class UIProgress extends UIElement {
11
- /** Texture displayed by this element */
12
- readonly texture: UITextureView;
13
- private readonly colorInternal;
14
- private readonly textureTransform;
15
- private readonly textureResolution;
16
- private maskFunctionInternal;
17
- private progressInternal;
18
- private progressDirty;
19
- private textureResolutionDirty;
20
- /**
21
- * Creates a new UIProgress instance.
22
- *
23
- * Defaults size to texture dimensions if width and height not provided.
24
- *
25
- * @param layer - Layer containing this element
26
- * @param texture - Texture to display
27
- * @param options - Configuration options
28
- */
29
- constructor(layer: UILayer, texture: Texture, options?: Partial<UIProgressOptions>);
30
- /** Multiplicative tint. Alpha channel controls opacity. */
31
- get color(): UIColor;
32
- /** Function controlling fill direction and shape */
33
- get maskFunction(): UIProgressMaskFunction;
34
- /** Progress from 0 (empty) to 1 (full) */
35
- get progress(): number;
36
- /** Multiplicative tint. Alpha channel controls opacity. */
37
- set color(value: UIColorConfig);
38
- /** Function controlling fill direction and shape */
39
- set maskFunction(value: UIProgressMaskFunction);
40
- /** Progress from 0 (empty) to 1 (full). Clamped. */
41
- set progress(value: number);
42
- protected setPlaneTransform(): void;
43
- private readonly onTextureDimensionsChanged;
44
- private rebuildPlane;
45
- }
@@ -1,43 +0,0 @@
1
- import type { Camera, Scene } from "three";
2
- import { UIColor } from "../../miscellaneous/color/UIColor";
3
- import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal";
4
- import type { UIElementOptions } from "../UIElement/UIElement.Internal";
5
- /** Controls when scene re-renders */
6
- export declare enum UISceneUpdateMode {
7
- /** Re-render every frame */
8
- EVERY_FRAME = 1,
9
- /** Re-render every other frame */
10
- EVERY_SECOND_FRAME = 2,
11
- /** Re-render when scene, camera, or updateMode changes */
12
- ON_PROPERTIES_CHANGE = 3,
13
- /** Re-render when dimensions or resolutionFactor changes */
14
- ON_DIMENSIONS_CHANGE = 4,
15
- /** Re-render only via requestUpdate() */
16
- MANUAL = 5
17
- }
18
- /** Configuration options for UIScene */
19
- export interface UISceneOptions extends UIElementOptions {
20
- /** Multiplicative tint */
21
- color: UIColorConfig;
22
- /** Three.js scene to render */
23
- scene: Scene;
24
- /** Camera used for rendering */
25
- camera: Camera;
26
- /** When to re-render */
27
- updateMode: UISceneUpdateMode;
28
- /** Render target resolution multiplier. Range 0.1 to 2.0. */
29
- resolutionFactor: number;
30
- /** Background color */
31
- clearColor: UIColorConfig;
32
- /** Whether to use depth buffer */
33
- enableDepthBuffer: boolean;
34
- }
35
- export declare const SCENE_DEFAULT_RESOLUTION_FACTOR = 0.5;
36
- export declare const SCENE_MIN_RESOLUTION_FACTOR = 0.1;
37
- export declare const SCENE_MAX_RESOLUTION_FACTOR = 2;
38
- export declare const SCENE_DEFAULT_CAMERA_FOV = 60;
39
- export declare const SCENE_DEFAULT_CAMERA_NEAR = 0.1;
40
- export declare const SCENE_DEFAULT_CAMERA_FAR = 100;
41
- export declare const SCENE_DEFAULT_UPDATE_MODE = UISceneUpdateMode.ON_PROPERTIES_CHANGE;
42
- export declare const SCENE_DEFAULT_CLEAR_COLOR: UIColor;
43
- export declare const SCENE_DEFAULT_USE_DEPTH = true;
@@ -1,59 +0,0 @@
1
- import type { Camera, WebGLRenderer } from "three";
2
- import { Scene } from "three";
3
- import type { UILayer } from "../../layers/UILayer/UILayer";
4
- import { UIColor } from "../../miscellaneous/color/UIColor";
5
- import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal";
6
- import { UIElement } from "../UIElement/UIElement";
7
- import type { UISceneOptions } from "./UIScene.Internal";
8
- import { UISceneUpdateMode } from "./UIScene.Internal";
9
- /** Renders Three.js scene to texture */
10
- export declare class UIScene extends UIElement {
11
- private readonly colorInternal;
12
- private readonly clearColorInternal;
13
- private readonly renderTarget;
14
- private sceneInternal;
15
- private cameraInternal;
16
- private updateModeInternal;
17
- private resolutionFactorInternal;
18
- private evenFrame;
19
- private updateRequired;
20
- private resolutionFactorDirty;
21
- private propertyDirty;
22
- /**
23
- * Creates a new UIScene instance.
24
- *
25
- * @param layer - Layer containing this element
26
- * @param options - Configuration options
27
- * @throws If resolutionFactor outside range 0.1 to 2.0
28
- */
29
- constructor(layer: UILayer, options?: Partial<UISceneOptions>);
30
- /** Camera used for rendering */
31
- get camera(): Camera;
32
- /** Background color for render target */
33
- get clearColor(): UIColor;
34
- /** Multiplicative tint. Alpha channel controls opacity. */
35
- get color(): UIColor;
36
- /** Render target resolution multiplier. Range 0.1 to 2.0. */
37
- get resolutionFactor(): number;
38
- /** Three.js scene to render */
39
- get scene(): Scene;
40
- /** Controls when scene re-renders */
41
- get updateMode(): UISceneUpdateMode;
42
- /** Camera used for rendering */
43
- set camera(value: Camera);
44
- /** Background color for render target */
45
- set clearColor(value: UIColorConfig);
46
- /** Multiplicative tint. Alpha channel controls opacity. */
47
- set color(value: UIColorConfig);
48
- /** Render target resolution multiplier. Range 0.1 to 2.0. */
49
- set resolutionFactor(value: number);
50
- /** Three.js scene to render */
51
- set scene(value: Scene);
52
- /** Controls when scene re-renders */
53
- set updateMode(value: UISceneUpdateMode);
54
- /** Removes element and frees resources */
55
- destroy(): void;
56
- /** Triggers re-render on next frame. Useful in MANUAL mode. */
57
- requestUpdate(): void;
58
- protected onWillRender(renderer: WebGLRenderer, deltaTime: number): void;
59
- }
@@ -1,26 +0,0 @@
1
- import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal";
2
- import type { UIInsetsConfig } from "../../miscellaneous/insets/UIInsets.Internal";
3
- import type { UITextStyleConfig } from "../../miscellaneous/text-style/UITextStyle.Internal";
4
- import type { UIElementOptions } from "../UIElement/UIElement.Internal";
5
- /** Controls how text adapts to element size */
6
- export declare enum UITextResizeMode {
7
- /** Break text into multiple lines when narrower than content*/
8
- BREAK = 0,
9
- /** Scale text to fit fixed element size */
10
- SCALE = 1
11
- }
12
- /** Configuration options for UIText */
13
- export interface UITextOptions extends UIElementOptions {
14
- /** Multiplicative tint */
15
- color: UIColorConfig;
16
- /** Text padding in world units */
17
- padding: UIInsetsConfig;
18
- /** Default style applied to all spans */
19
- commonStyle: Partial<UITextStyleConfig>;
20
- /** How text adapts to size constraints */
21
- resizeMode: UITextResizeMode;
22
- /** Maximum line width before wrapping in pixels */
23
- maxLineWidth: number;
24
- }
25
- export declare const TEXT_DEFAULT_MAX_LINE_WIDTH = 1024;
26
- export declare const TEXT_DEFAULT_RESIZE_MODE = UITextResizeMode.SCALE;
@@ -1,50 +0,0 @@
1
- import type { UICanvasRenderingContext2D } from "../../miscellaneous/canvas";
2
- import type { UITextSpan } from "../../miscellaneous/text-span/UITextSpan";
3
- import { UITextStyle } from "../../miscellaneous/text-style/UITextStyle";
4
- import type { UITextStyleConfig } from "../../miscellaneous/text-style/UITextStyle.Internal";
5
- import type { UIChunkMetrics, UITextChunk, UITextLine, UITextSize } from "./UIText.Interfaces";
6
- /**
7
- * Splits text into renderable chunks.
8
- * @param text Text to split
9
- * @returns Array of words, spaces, and newlines
10
- */
11
- export declare function splitTextIntoChunks(text: string): string[];
12
- /**
13
- * Measures single text chunk.
14
- * @param context Canvas context for measurement
15
- * @param text Chunk text
16
- * @param textStyle Resolved text style
17
- * @returns Chunk metrics
18
- */
19
- export declare function measureTextChunk(context: UICanvasRenderingContext2D, text: string, textStyle: UITextStyleConfig): UIChunkMetrics;
20
- /**
21
- * Builds text lines with word wrapping.
22
- * @param maxWidth Maximum line width in pixels
23
- * @param textChunks Measured text chunks
24
- * @returns Array of text lines
25
- */
26
- export declare function buildTextLines(maxWidth: number, textChunks: UITextChunk[]): UITextLine[];
27
- /**
28
- * Calculates total text size from lines.
29
- * @param lines Text lines
30
- * @returns Total width and height
31
- */
32
- export declare function calculateTextSize(lines: UITextLine[]): UITextSize;
33
- /**
34
- * Builds measured text chunks from spans.
35
- * @param context Canvas context for measurement
36
- * @param textSpans Text spans with styles
37
- * @param commonStyle Fallback style
38
- * @returns Measured text chunks
39
- */
40
- export declare function buildTextChunks(context: UICanvasRenderingContext2D, textSpans: UITextSpan[], commonStyle: UITextStyle): UITextChunk[];
41
- /**
42
- * Calculates text layout parameters.
43
- * @param textChunks Measured text chunks
44
- * @param maxLineWidth Maximum line width in pixels
45
- * @returns Lines and total size
46
- */
47
- export declare function calculateTextContentParameters(textChunks: UITextChunk[], maxLineWidth: number): {
48
- lines: UITextLine[];
49
- size: UITextSize;
50
- };
@@ -1,20 +0,0 @@
1
- import type { UICanvasRenderingContext2D } from "../../miscellaneous/canvas";
2
- import type { UITextStyleConfig } from "../../miscellaneous/text-style/UITextStyle.Internal";
3
- import type { UITextLine } from "./UIText.Interfaces";
4
- /**
5
- * Renders single text chunk.
6
- * @param x X coordinate in pixels
7
- * @param y Y coordinate in pixels
8
- * @param text Chunk text
9
- * @param style Resolved text style
10
- * @param context Canvas rendering context
11
- */
12
- export declare function renderTextChunk(x: number, y: number, text: string, style: UITextStyleConfig, context: UICanvasRenderingContext2D): void;
13
- /**
14
- * Renders text lines to canvas.
15
- * @param paddingTop Top padding in pixels
16
- * @param paddingLeft Left padding in pixels
17
- * @param lines Text lines to render
18
- * @param context Canvas rendering context
19
- */
20
- export declare function renderTextLines(paddingTop: number, paddingLeft: number, lines: UITextLine[], context: UICanvasRenderingContext2D): void;
@@ -1,71 +0,0 @@
1
- import type { WebGLRenderer } from "three";
2
- import type { UILayer } from "../../layers/UILayer/UILayer";
3
- import { UIColor } from "../../miscellaneous/color/UIColor";
4
- import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal";
5
- import { UIInsets } from "../../miscellaneous/insets/UIInsets";
6
- import type { UIInsetsConfig } from "../../miscellaneous/insets/UIInsets.Internal";
7
- import { UITextSpan } from "../../miscellaneous/text-span/UITextSpan";
8
- import { UITextStyle } from "../../miscellaneous/text-style/UITextStyle";
9
- import { UIElement } from "../UIElement/UIElement";
10
- import type { UITextContent } from "./UIText.Interfaces";
11
- import type { UITextOptions } from "./UIText.Internal";
12
- import { UITextResizeMode } from "./UIText.Internal";
13
- /** Canvas-based text rendering element */
14
- export declare class UIText extends UIElement {
15
- /** Default style applied to all text spans */
16
- readonly commonStyle: UITextStyle;
17
- private readonly colorInternal;
18
- private readonly paddingInternal;
19
- private readonly canvas;
20
- private readonly context;
21
- private texture;
22
- private contentInternal;
23
- private contentDirty;
24
- private maxLineWidthInternal;
25
- private maxLineWidthDirty;
26
- private resizeModeInternal;
27
- private resizeModeDirty;
28
- private lastWidth;
29
- private lastHeight;
30
- private textChunks;
31
- private textChunksDirty;
32
- /**
33
- * Creates a new UIText instance.
34
- *
35
- * @param layer - Layer containing this element
36
- * @param content - Text content as string or styled spans
37
- * @param options - Configuration options
38
- */
39
- constructor(layer: UILayer, content: UITextContent, options?: Partial<UITextOptions>);
40
- /** Multiplicative tint. Alpha channel controls opacity. */
41
- get color(): UIColor;
42
- /** Text content as array of styled spans */
43
- get content(): UITextSpan[];
44
- /** Maximum line width before wrapping in pixels */
45
- get maxLineWidth(): number;
46
- /** Text padding in world units */
47
- get padding(): UIInsets;
48
- /** Controls how text adapts to element size */
49
- get resizeMode(): UITextResizeMode;
50
- /** Multiplicative tint. Alpha channel controls opacity. */
51
- set color(value: UIColorConfig);
52
- /** Text content as string, span config, or array */
53
- set content(value: UITextContent);
54
- /** Maximum line width before wrapping in pixels */
55
- set maxLineWidth(value: number);
56
- /** Text padding in world units */
57
- set padding(value: UIInsetsConfig);
58
- /** Controls how text adapts to size constraints */
59
- set resizeMode(value: UITextResizeMode);
60
- /** Removes element and frees resources */
61
- destroy(): void;
62
- protected onWillRender(renderer: WebGLRenderer, deltaTime: number): void;
63
- private tryToRenderTextScaleMode;
64
- private tryToRenderTextBreakMode;
65
- private updateProperties;
66
- private buildTextChunks;
67
- private checkDimensionsDirty;
68
- private setDimensionsDirtyFalse;
69
- private checkContentDirty;
70
- private setContentDirtyFalse;
71
- }