laymur 0.22.0 → 0.25.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/README.md +1 -1
- package/dist/core/constraints/UIAspectConstraint/UIAspectConstraint.Internal.d.ts +1 -1
- package/dist/core/constraints/UIAspectConstraint/UIAspectConstraint.Internal.js +1 -0
- package/dist/core/constraints/UIAspectConstraint/UIAspectConstraint.d.ts +3 -3
- package/dist/core/constraints/UIAspectConstraint/UIAspectConstraint.js +14 -16
- package/dist/core/constraints/UIConstraint.d.ts +22 -2
- package/dist/core/constraints/UIConstraint.js +26 -3
- package/dist/core/constraints/UICustomConstraint.d.ts +4 -4
- package/dist/core/constraints/UICustomConstraint.js +15 -15
- package/dist/core/constraints/UIHeightConstraint/UIHeightConstraint.Internal.d.ts +1 -1
- package/dist/core/constraints/UIHeightConstraint/UIHeightConstraint.Internal.js +1 -0
- package/dist/core/constraints/UIHeightConstraint/UIHeightConstraint.d.ts +3 -3
- package/dist/core/constraints/UIHeightConstraint/UIHeightConstraint.js +11 -13
- package/dist/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.Internal.d.ts +1 -1
- package/dist/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.Internal.js +1 -3
- package/dist/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.d.ts +3 -3
- package/dist/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.js +30 -30
- package/dist/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.Internal.d.ts +1 -1
- package/dist/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.Internal.js +2 -4
- package/dist/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.d.ts +3 -3
- package/dist/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.js +40 -39
- package/dist/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.Internal.d.ts +1 -1
- package/dist/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.Internal.js +1 -0
- package/dist/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.d.ts +3 -3
- package/dist/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.js +13 -15
- package/dist/core/constraints/UISingleParameterConstraint/UISingleParameterConstraint.Internal.d.ts +3 -3
- package/dist/core/constraints/UISingleParameterConstraint/UISingleParameterConstraint.Internal.js +1 -0
- package/dist/core/constraints/UISingleParameterConstraint/UISingleParameterConstraint.d.ts +13 -7
- package/dist/core/constraints/UISingleParameterConstraint/UISingleParameterConstraint.js +37 -30
- package/dist/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.Internal.d.ts +1 -1
- package/dist/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.Internal.js +1 -3
- package/dist/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.d.ts +3 -3
- package/dist/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.js +30 -30
- package/dist/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.Internal.d.ts +1 -1
- package/dist/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.Internal.js +2 -4
- package/dist/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.d.ts +3 -3
- package/dist/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.js +40 -39
- package/dist/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.Internal.d.ts +1 -1
- package/dist/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.Internal.js +1 -0
- package/dist/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.d.ts +3 -3
- package/dist/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.js +13 -15
- package/dist/core/constraints/UIWidthConstraint/UIWidthConstraint.Internal.d.ts +1 -1
- package/dist/core/constraints/UIWidthConstraint/UIWidthConstraint.Internal.js +1 -0
- package/dist/core/constraints/UIWidthConstraint/UIWidthConstraint.d.ts +3 -3
- package/dist/core/constraints/UIWidthConstraint/UIWidthConstraint.js +11 -13
- package/dist/core/constraints/builders/UIConstraint2DBuilder.Internal.d.ts +3 -3
- package/dist/core/constraints/builders/UIConstraint2DBuilder.Internal.js +1 -3
- package/dist/core/constraints/builders/UIConstraint2DBuilder.d.ts +11 -11
- package/dist/core/constraints/builders/UIConstraint2DBuilder.js +10 -13
- package/dist/core/constraints/builders/UICoverConstraintBuilder.Internal.d.ts +1 -1
- package/dist/core/constraints/builders/UICoverConstraintBuilder.Internal.js +1 -3
- package/dist/core/constraints/builders/UICoverConstraintBuilder.d.ts +7 -7
- package/dist/core/constraints/builders/UICoverConstraintBuilder.js +10 -13
- package/dist/core/constraints/builders/UIFitConstraintBuilder.Internal.d.ts +1 -1
- package/dist/core/constraints/builders/UIFitConstraintBuilder.Internal.js +1 -3
- package/dist/core/constraints/builders/UIFitConstraintBuilder.d.ts +7 -7
- package/dist/core/constraints/builders/UIFitConstraintBuilder.js +10 -13
- package/dist/core/elements/UIAnchor/UIAnchor.Internal.js +3 -5
- package/dist/core/elements/UIAnchor/UIAnchor.d.ts +23 -5
- package/dist/core/elements/UIAnchor/UIAnchor.js +42 -8
- package/dist/core/elements/UIAnimatedImage/UIAnimatedImage.Internal.d.ts +2 -2
- package/dist/core/elements/UIAnimatedImage/UIAnimatedImage.Internal.js +4 -6
- package/dist/core/elements/UIAnimatedImage/UIAnimatedImage.d.ts +10 -10
- package/dist/core/elements/UIAnimatedImage/UIAnimatedImage.js +108 -111
- package/dist/core/elements/UIDummy/UIDummy.Internal.d.ts +4 -4
- package/dist/core/elements/UIDummy/UIDummy.Internal.js +5 -8
- package/dist/core/elements/UIDummy/UIDummy.d.ts +19 -11
- package/dist/core/elements/UIDummy/UIDummy.js +59 -42
- package/dist/core/elements/UIElement/UIElement.Internal.d.ts +5 -5
- package/dist/core/elements/UIElement/UIElement.Internal.js +9 -12
- package/dist/core/elements/UIElement/UIElement.d.ts +25 -17
- package/dist/core/elements/UIElement/UIElement.js +76 -69
- package/dist/core/elements/UIGraphics/UIGraphics.Internal.d.ts +3 -3
- package/dist/core/elements/UIGraphics/UIGraphics.Internal.js +4 -7
- package/dist/core/elements/UIGraphics/UIGraphics.d.ts +7 -7
- package/dist/core/elements/UIGraphics/UIGraphics.js +44 -47
- package/dist/core/elements/UIImage/UIImage.Internal.d.ts +2 -2
- package/dist/core/elements/UIImage/UIImage.Internal.js +1 -0
- package/dist/core/elements/UIImage/UIImage.d.ts +9 -9
- package/dist/core/elements/UIImage/UIImage.js +21 -24
- package/dist/core/elements/UINineSlice/UINineSlice.Internal.d.ts +3 -3
- package/dist/core/elements/UINineSlice/UINineSlice.Internal.js +3 -5
- package/dist/core/elements/UINineSlice/UINineSlice.d.ts +12 -12
- package/dist/core/elements/UINineSlice/UINineSlice.js +71 -73
- package/dist/core/elements/UIProgress/UIProgress.Internal.d.ts +3 -4
- package/dist/core/elements/UIProgress/UIProgress.Internal.js +1 -3
- package/dist/core/elements/UIProgress/UIProgress.d.ts +10 -8
- package/dist/core/elements/UIProgress/UIProgress.js +60 -58
- package/dist/core/elements/UIScene/UIScene.Internal.d.ts +3 -3
- package/dist/core/elements/UIScene/UIScene.Internal.js +11 -14
- package/dist/core/elements/UIScene/UIScene.d.ts +8 -8
- package/dist/core/elements/UIScene/UIScene.js +68 -69
- package/dist/core/elements/UIText/UIText.Bidi.d.ts +2 -2
- package/dist/core/elements/UIText/UIText.Bidi.js +3 -5
- package/dist/core/elements/UIText/UIText.Interfaces.d.ts +6 -2
- package/dist/core/elements/UIText/UIText.Interfaces.js +1 -0
- package/dist/core/elements/UIText/UIText.Internal.d.ts +4 -4
- package/dist/core/elements/UIText/UIText.Internal.js +5 -7
- package/dist/core/elements/UIText/UIText.Measuring.d.ts +14 -7
- package/dist/core/elements/UIText/UIText.Measuring.js +115 -55
- package/dist/core/elements/UIText/UIText.Rendering.d.ts +3 -3
- package/dist/core/elements/UIText/UIText.Rendering.js +6 -9
- package/dist/core/elements/UIText/UIText.d.ts +28 -14
- package/dist/core/elements/UIText/UIText.js +181 -141
- package/dist/core/index.d.ts +55 -54
- package/dist/core/index.js +53 -0
- package/dist/core/layers/UIFullscreenLayer/UIFullscreenLayer.Internal.d.ts +4 -4
- package/dist/core/layers/UIFullscreenLayer/UIFullscreenLayer.Internal.js +2 -5
- package/dist/core/layers/UIFullscreenLayer/UIFullscreenLayer.d.ts +4 -4
- package/dist/core/layers/UIFullscreenLayer/UIFullscreenLayer.js +43 -42
- package/dist/core/layers/UILayer/UILayer.Internal.d.ts +2 -2
- package/dist/core/layers/UILayer/UILayer.Internal.js +4 -7
- package/dist/core/layers/UILayer/UILayer.d.ts +19 -4
- package/dist/core/layers/UILayer/UILayer.js +125 -62
- package/dist/core/miscellaneous/UIBlendMode.js +1 -3
- package/dist/core/miscellaneous/UIExpression.js +16 -19
- package/dist/core/miscellaneous/UIMode.js +3 -5
- package/dist/core/miscellaneous/UIOrientation.js +2 -4
- package/dist/core/miscellaneous/UIPriority.js +5 -8
- package/dist/core/miscellaneous/UIRelation.js +5 -8
- package/dist/core/miscellaneous/UITransparencyMode.js +1 -3
- package/dist/core/miscellaneous/area/UIArea.js +1 -3
- package/dist/core/miscellaneous/area/UIAreaCircle.d.ts +1 -1
- package/dist/core/miscellaneous/area/UIAreaCircle.js +3 -6
- package/dist/core/miscellaneous/area/UIAreaPolygon.d.ts +2 -2
- package/dist/core/miscellaneous/area/UIAreaPolygon.js +3 -6
- package/dist/core/miscellaneous/area/UIAreaRectangle.d.ts +1 -1
- package/dist/core/miscellaneous/area/UIAreaRectangle.js +3 -6
- package/dist/core/miscellaneous/area/UIAreaRoundedRectangle.d.ts +1 -1
- package/dist/core/miscellaneous/area/UIAreaRoundedRectangle.js +3 -6
- package/dist/core/miscellaneous/asserts.d.ts +20 -1
- package/dist/core/miscellaneous/asserts.js +71 -19
- package/dist/core/miscellaneous/canvas.js +13 -7
- package/dist/core/miscellaneous/color/UIColor.Internal.d.ts +1 -1
- package/dist/core/miscellaneous/color/UIColor.Internal.js +1 -3
- package/dist/core/miscellaneous/color/UIColor.d.ts +1 -1
- package/dist/core/miscellaneous/color/UIColor.js +202 -205
- package/dist/core/miscellaneous/computeTransform.d.ts +1 -1
- package/dist/core/miscellaneous/computeTransform.js +4 -7
- package/dist/core/miscellaneous/generic-plane/UIGenericInstancedPlane/UIGenericInstancedPlane.Internal.d.ts +2 -2
- package/dist/core/miscellaneous/generic-plane/UIGenericInstancedPlane/UIGenericInstancedPlane.Internal.js +13 -16
- package/dist/core/miscellaneous/generic-plane/UIGenericInstancedPlane/UIGenericInstancedPlane.js +115 -118
- package/dist/core/miscellaneous/generic-plane/UIGenericPlaneRegistry/UIGenericPlaneRegistry.Internal.d.ts +3 -3
- package/dist/core/miscellaneous/generic-plane/UIGenericPlaneRegistry/UIGenericPlaneRegistry.Internal.js +1 -0
- package/dist/core/miscellaneous/generic-plane/UIGenericPlaneRegistry/UIGenericPlaneRegistry.js +208 -114
- package/dist/core/miscellaneous/generic-plane/shared.d.ts +2 -2
- package/dist/core/miscellaneous/generic-plane/shared.js +16 -19
- package/dist/core/miscellaneous/insets/UIInsets.Internal.js +1 -3
- package/dist/core/miscellaneous/insets/UIInsets.d.ts +1 -1
- package/dist/core/miscellaneous/insets/UIInsets.js +96 -99
- package/dist/core/miscellaneous/mask-function/UIProgressMaskFunction.js +1 -3
- package/dist/core/miscellaneous/mask-function/UIProgressMaskFunctionCircular.d.ts +1 -1
- package/dist/core/miscellaneous/mask-function/UIProgressMaskFunctionCircular.js +14 -17
- package/dist/core/miscellaneous/mask-function/UIProgressMaskFunctionDirectional.d.ts +2 -2
- package/dist/core/miscellaneous/mask-function/UIProgressMaskFunctionDirectional.js +14 -17
- package/dist/core/miscellaneous/math.js +3 -5
- package/dist/core/miscellaneous/micro/UIMicro.Internal.js +6 -8
- package/dist/core/miscellaneous/micro/UIMicro.d.ts +1 -1
- package/dist/core/miscellaneous/micro/UIMicro.js +91 -94
- package/dist/core/miscellaneous/resize-policy/UIResizePolicy.js +1 -3
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyCover.d.ts +1 -1
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyCover.js +12 -15
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyCross.d.ts +1 -1
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyCross.js +13 -16
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyCrossInverted.d.ts +1 -1
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyCrossInverted.js +13 -16
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyFit.d.ts +1 -1
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyFit.js +12 -15
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyFixedHeight.d.ts +1 -1
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyFixedHeight.js +13 -16
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyFixedWidth.d.ts +1 -1
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyFixedWidth.js +13 -16
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyNone.d.ts +1 -1
- package/dist/core/miscellaneous/resize-policy/UIResizePolicyNone.js +3 -6
- package/dist/core/miscellaneous/shared.d.ts +1 -1
- package/dist/core/miscellaneous/shared.js +4 -7
- package/dist/core/miscellaneous/text-span/UITextSpan.Internal.d.ts +1 -1
- package/dist/core/miscellaneous/text-span/UITextSpan.Internal.js +1 -0
- package/dist/core/miscellaneous/text-span/UITextSpan.d.ts +2 -2
- package/dist/core/miscellaneous/text-span/UITextSpan.js +10 -13
- package/dist/core/miscellaneous/text-style/UITextStyle.Internal.js +15 -17
- package/dist/core/miscellaneous/text-style/UITextStyle.d.ts +13 -2
- package/dist/core/miscellaneous/text-style/UITextStyle.js +222 -207
- package/dist/core/miscellaneous/texture/UITextureView.Internal.d.ts +7 -0
- package/dist/core/miscellaneous/texture/UITextureView.Internal.js +16 -6
- package/dist/core/miscellaneous/texture/UITextureView.d.ts +3 -3
- package/dist/core/miscellaneous/texture/UITextureView.js +114 -118
- package/dist/core/miscellaneous/webglCapabilities.js +3 -4
- package/dist/core/shaders/UIImage.d.ts +9 -0
- package/dist/core/shaders/UIImage.js +14 -0
- package/dist/core/shaders/UINineSlice.d.ts +11 -0
- package/dist/core/shaders/UINineSlice.js +57 -0
- package/dist/core/shaders/UIProgress.d.ts +14 -0
- package/dist/core/shaders/UIProgress.js +21 -0
- package/dist/core/shaders/UIProgressMaskFunctionCircular.d.ts +2 -0
- package/dist/core/shaders/UIProgressMaskFunctionCircular.js +16 -0
- package/dist/core/shaders/UIProgressMaskFunctionDirectional.d.ts +2 -0
- package/dist/core/shaders/UIProgressMaskFunctionDirectional.js +15 -0
- package/dist/core/wrappers/UIInputWrapper/UIInputWrapper.Internal.d.ts +4 -0
- package/dist/core/wrappers/UIInputWrapper/UIInputWrapper.Internal.js +1 -0
- package/dist/core/wrappers/UIInputWrapper/UIInputWrapper.d.ts +7 -1
- package/dist/core/wrappers/UIInputWrapper/UIInputWrapper.js +50 -47
- package/dist/core/wrappers/UISceneWrapper/UISceneWrapper.Internal.d.ts +5 -2
- package/dist/core/wrappers/UISceneWrapper/UISceneWrapper.Internal.js +1 -0
- package/dist/core/wrappers/UISceneWrapper/UISceneWrapper.d.ts +11 -3
- package/dist/core/wrappers/UISceneWrapper/UISceneWrapper.js +42 -26
- package/dist/core/wrappers/UISolverWrapper/UISolverWrapper.Internal.d.ts +5 -3
- package/dist/core/wrappers/UISolverWrapper/UISolverWrapper.Internal.js +1 -0
- package/dist/core/wrappers/UISolverWrapper/UISolverWrapper.d.ts +27 -4
- package/dist/core/wrappers/UISolverWrapper/UISolverWrapper.js +162 -123
- package/dist/debug/UIAspectDebug.d.ts +3 -3
- package/dist/debug/UIAspectDebug.js +64 -68
- package/dist/debug/UIConstraintDebug.d.ts +1 -1
- package/dist/debug/UIConstraintDebug.js +1 -0
- package/dist/debug/UIHeightDebug.d.ts +3 -3
- package/dist/debug/UIHeightDebug.js +63 -67
- package/dist/debug/UIHorizontalDistanceDebug.d.ts +3 -3
- package/dist/debug/UIHorizontalDistanceDebug.js +76 -81
- package/dist/debug/UIHorizontalInterpolationDebug.d.ts +3 -3
- package/dist/debug/UIHorizontalInterpolationDebug.js +74 -78
- package/dist/debug/UILayerDebug.d.ts +1 -1
- package/dist/debug/UILayerDebug.js +55 -64
- package/dist/debug/UIVerticalDistanceDebug.d.ts +3 -3
- package/dist/debug/UIVerticalDistanceDebug.js +76 -81
- package/dist/debug/UIVerticalInterpolationDebug.d.ts +3 -3
- package/dist/debug/UIVerticalInterpolationDebug.js +74 -78
- package/dist/debug/UIWidthDebug.d.ts +3 -3
- package/dist/debug/UIWidthDebug.js +63 -67
- package/dist/debug/index.d.ts +8 -8
- package/dist/debug/index.js +8 -8
- package/dist/debug/miscellaneous.js +8 -11
- package/dist/particles/behaviorModules/UIBehaviorDirectionalGravity.d.ts +3 -3
- package/dist/particles/behaviorModules/UIBehaviorDirectionalGravity.js +13 -16
- package/dist/particles/behaviorModules/UIBehaviorModule.d.ts +1 -1
- package/dist/particles/behaviorModules/UIBehaviorModule.js +1 -3
- package/dist/particles/behaviorModules/UIBehaviorPointGravity.d.ts +3 -3
- package/dist/particles/behaviorModules/UIBehaviorPointGravity.js +37 -40
- package/dist/particles/behaviorModules/UIBehaviorScaleOscillation.d.ts +41 -0
- package/dist/particles/behaviorModules/UIBehaviorScaleOscillation.js +87 -0
- package/dist/particles/behaviorModules/UIBehaviorScaleOverLife.d.ts +2 -2
- package/dist/particles/behaviorModules/UIBehaviorScaleOverLife.js +17 -20
- package/dist/particles/behaviorModules/UIBehaviorTorqueDamping.d.ts +2 -2
- package/dist/particles/behaviorModules/UIBehaviorTorqueDamping.js +13 -16
- package/dist/particles/behaviorModules/UIBehaviorTorqueNoise.d.ts +2 -2
- package/dist/particles/behaviorModules/UIBehaviorTorqueNoise.js +21 -24
- package/dist/particles/behaviorModules/UIBehaviorVelocityDamping.d.ts +2 -2
- package/dist/particles/behaviorModules/UIBehaviorVelocityDamping.js +13 -16
- package/dist/particles/behaviorModules/UIBehaviorVelocityNoise.d.ts +2 -2
- package/dist/particles/behaviorModules/UIBehaviorVelocityNoise.js +21 -24
- package/dist/particles/elements/UIEmitter.Internal.d.ts +2 -2
- package/dist/particles/elements/UIEmitter.Internal.js +6 -9
- package/dist/particles/elements/UIEmitter.d.ts +17 -11
- package/dist/particles/elements/UIEmitter.js +100 -88
- package/dist/particles/index.d.ts +20 -18
- package/dist/particles/index.js +19 -18
- package/dist/particles/instancedParticle/UIInstancedParticle.Internal.d.ts +1 -1
- package/dist/particles/instancedParticle/UIInstancedParticle.Internal.js +14 -15
- package/dist/particles/instancedParticle/UIInstancedParticle.d.ts +1 -1
- package/dist/particles/instancedParticle/UIInstancedParticle.js +29 -32
- package/dist/particles/miscellaneous/miscellaneous.d.ts +3 -3
- package/dist/particles/miscellaneous/miscellaneous.js +26 -27
- package/dist/particles/renderingModules/UIRenderingColorOverLife.d.ts +2 -2
- package/dist/particles/renderingModules/UIRenderingColorOverLife.js +5 -8
- package/dist/particles/renderingModules/UIRenderingColorOverVelocity.d.ts +2 -2
- package/dist/particles/renderingModules/UIRenderingColorOverVelocity.js +6 -9
- package/dist/particles/renderingModules/UIRenderingModule.js +1 -3
- package/dist/particles/renderingModules/UIRenderingTexture.d.ts +2 -2
- package/dist/particles/renderingModules/UIRenderingTexture.js +4 -7
- package/dist/particles/shaders/UIRenderingColorOverLife.d.ts +2 -0
- package/dist/particles/shaders/UIRenderingColorOverLife.js +7 -0
- package/dist/particles/shaders/UIRenderingColorOverVelocity.d.ts +9 -0
- package/dist/particles/shaders/UIRenderingColorOverVelocity.js +16 -0
- package/dist/particles/shaders/UIRenderingTexture.d.ts +2 -0
- package/dist/particles/shaders/UIRenderingTexture.js +7 -0
- package/dist/particles/spawnModules/UISpawnModule.d.ts +1 -1
- package/dist/particles/spawnModules/UISpawnModule.js +1 -3
- package/dist/particles/spawnModules/UISpawnOffset.d.ts +3 -3
- package/dist/particles/spawnModules/UISpawnOffset.js +12 -15
- package/dist/particles/spawnModules/UISpawnRandomLifetime.d.ts +2 -2
- package/dist/particles/spawnModules/UISpawnRandomLifetime.js +13 -16
- package/dist/particles/spawnModules/UISpawnRandomRotation.d.ts +2 -2
- package/dist/particles/spawnModules/UISpawnRandomRotation.js +13 -16
- package/dist/particles/spawnModules/UISpawnRandomScale.d.ts +2 -2
- package/dist/particles/spawnModules/UISpawnRandomScale.js +19 -22
- package/dist/particles/spawnModules/UISpawnRandomTorque.d.ts +2 -2
- package/dist/particles/spawnModules/UISpawnRandomTorque.js +13 -16
- package/dist/particles/spawnModules/UISpawnRandomVelocity.d.ts +2 -2
- package/dist/particles/spawnModules/UISpawnRandomVelocity.js +21 -24
- package/dist/particles/spawnModules/UISpawnRectangle.d.ts +3 -3
- package/dist/particles/spawnModules/UISpawnRectangle.js +21 -24
- package/package.json +13 -17
- package/dist/_virtual/2d.js +0 -3
- package/dist/_virtual/3d.js +0 -3
- package/dist/_virtual/4d.js +0 -3
- package/dist/_virtual/mod.js +0 -5
- package/dist/_virtual/mod2.js +0 -3
- package/dist/core/shaders/UIImage.glsl.js +0 -3
- package/dist/core/shaders/UINineSlice.glsl.js +0 -3
- package/dist/core/shaders/UIProgress.glsl.js +0 -3
- package/dist/core/shaders/UIProgressMaskFunctionCircular.glsl.js +0 -3
- package/dist/core/shaders/UIProgressMaskFunctionDirectional.glsl.js +0 -3
- package/dist/index.js +0 -52
- package/dist/node_modules/fast-simplex-noise/lib/2d.js +0 -93
- package/dist/node_modules/fast-simplex-noise/lib/3d.js +0 -142
- package/dist/node_modules/fast-simplex-noise/lib/4d.js +0 -196
- package/dist/node_modules/fast-simplex-noise/lib/mod.js +0 -24
- package/dist/node_modules/three/examples/jsm/lines/Line2.js +0 -56
- package/dist/node_modules/three/examples/jsm/lines/LineGeometry.js +0 -157
- package/dist/node_modules/three/examples/jsm/lines/LineMaterial.js +0 -691
- package/dist/node_modules/three/examples/jsm/lines/LineSegments2.js +0 -415
- package/dist/node_modules/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -289
- package/dist/particles/shaders/UIRenderingColorOverLife.glsl.js +0 -3
- package/dist/particles/shaders/UIRenderingColorOverVelocity.glsl.js +0 -3
- package/dist/particles/shaders/UIRenderingTexture.glsl.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UIResizePolicy } from "./UIResizePolicy";
|
|
1
|
+
import { UIResizePolicy } from "./UIResizePolicy.js";
|
|
2
2
|
/** Scales by width with orientation-specific targets */
|
|
3
3
|
export declare class UIResizePolicyFixedWidth extends UIResizePolicy {
|
|
4
4
|
private fixedWidthLandscapeInternal;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { assertValidPositiveNumber } from
|
|
2
|
-
import { UIResizePolicy } from
|
|
3
|
-
|
|
1
|
+
import { assertValidPositiveNumber } from "../asserts.js";
|
|
2
|
+
import { UIResizePolicy } from "./UIResizePolicy.js";
|
|
4
3
|
/** Scales by width with orientation-specific targets */
|
|
5
|
-
class UIResizePolicyFixedWidth extends UIResizePolicy {
|
|
4
|
+
export class UIResizePolicyFixedWidth extends UIResizePolicy {
|
|
6
5
|
/**
|
|
7
6
|
* Creates fixed width resize policy.
|
|
8
7
|
*
|
|
@@ -13,30 +12,30 @@ class UIResizePolicyFixedWidth extends UIResizePolicy {
|
|
|
13
12
|
super();
|
|
14
13
|
assertValidPositiveNumber(fixedWidthLandscape, "UIResizePolicyFixedWidth.constructor.fixedWidthLandscape");
|
|
15
14
|
assertValidPositiveNumber(fixedWidthPortrait, "UIResizePolicyFixedWidth.constructor.fixedWidthPortrait");
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
15
|
+
this.fixedWidthLandscapeInternal = fixedWidthLandscape;
|
|
16
|
+
this.fixedWidthPortraitInternal = fixedWidthPortrait;
|
|
18
17
|
}
|
|
19
18
|
/** Target width when landscape */
|
|
20
19
|
get fixedWidthLandscape() {
|
|
21
|
-
return this.
|
|
20
|
+
return this.fixedWidthLandscapeInternal;
|
|
22
21
|
}
|
|
23
22
|
/** Target width when portrait */
|
|
24
23
|
get fixedWidthPortrait() {
|
|
25
|
-
return this.
|
|
24
|
+
return this.fixedWidthPortraitInternal;
|
|
26
25
|
}
|
|
27
26
|
/** Target width when landscape */
|
|
28
27
|
set fixedWidthLandscape(value) {
|
|
29
28
|
assertValidPositiveNumber(value, "UIResizePolicyFixedWidth.fixedWidthLandscape");
|
|
30
|
-
if (value !== this.
|
|
31
|
-
this.
|
|
29
|
+
if (value !== this.fixedWidthLandscapeInternal) {
|
|
30
|
+
this.fixedWidthLandscapeInternal = value;
|
|
32
31
|
this.dirty = true;
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
/** Target width when portrait */
|
|
36
35
|
set fixedWidthPortrait(value) {
|
|
37
36
|
assertValidPositiveNumber(value, "UIResizePolicyFixedWidth.fixedWidthPortrait");
|
|
38
|
-
if (value !== this.
|
|
39
|
-
this.
|
|
37
|
+
if (value !== this.fixedWidthPortraitInternal) {
|
|
38
|
+
this.fixedWidthPortraitInternal = value;
|
|
40
39
|
this.dirty = true;
|
|
41
40
|
}
|
|
42
41
|
}
|
|
@@ -44,9 +43,7 @@ class UIResizePolicyFixedWidth extends UIResizePolicy {
|
|
|
44
43
|
assertValidPositiveNumber(width, "UIResizePolicyFixedWidth.calculateScale.width");
|
|
45
44
|
assertValidPositiveNumber(height, "UIResizePolicyFixedWidth.calculateScale.height");
|
|
46
45
|
return width > height
|
|
47
|
-
? this.
|
|
48
|
-
: this.
|
|
46
|
+
? this.fixedWidthLandscapeInternal / width
|
|
47
|
+
: this.fixedWidthPortraitInternal / width;
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
|
-
|
|
52
|
-
export { UIResizePolicyFixedWidth };
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { assertValidPositiveNumber } from
|
|
2
|
-
import { UIResizePolicy } from
|
|
3
|
-
|
|
1
|
+
import { assertValidPositiveNumber } from "../asserts.js";
|
|
2
|
+
import { UIResizePolicy } from "./UIResizePolicy.js";
|
|
4
3
|
/** No scaling. Always returns 1. */
|
|
5
|
-
class UIResizePolicyNone extends UIResizePolicy {
|
|
4
|
+
export class UIResizePolicyNone extends UIResizePolicy {
|
|
6
5
|
calculateScale(width, height) {
|
|
7
6
|
assertValidPositiveNumber(width, "UIResizePolicyNone.calculateScale.width");
|
|
8
7
|
assertValidPositiveNumber(height, "UIResizePolicyNone.calculateScale.height");
|
|
9
8
|
return 1;
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
export { UIResizePolicyNone };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { UILayer } from
|
|
2
|
-
|
|
1
|
+
import { UILayer } from "../layers/UILayer/UILayer.js";
|
|
3
2
|
/**
|
|
4
3
|
* Checks if object implements UILayerElement.
|
|
5
4
|
* @param obj Object to check
|
|
6
5
|
* @returns True if object has valid layer property
|
|
7
6
|
*/
|
|
8
|
-
function isUILayerElement(obj) {
|
|
7
|
+
export function isUILayerElement(obj) {
|
|
9
8
|
return typeof obj === "object" && obj !== null && "layer" in obj && obj.layer instanceof UILayer;
|
|
10
9
|
}
|
|
11
10
|
/**
|
|
@@ -13,7 +12,7 @@ function isUILayerElement(obj) {
|
|
|
13
12
|
* @param obj Object to check
|
|
14
13
|
* @returns True if object has valid position variables
|
|
15
14
|
*/
|
|
16
|
-
function isUIPointElement(obj) {
|
|
15
|
+
export function isUIPointElement(obj) {
|
|
17
16
|
return (typeof obj === "object" &&
|
|
18
17
|
obj !== null &&
|
|
19
18
|
typeof obj.xVariable === "number" &&
|
|
@@ -26,12 +25,10 @@ function isUIPointElement(obj) {
|
|
|
26
25
|
* @param obj Object to check
|
|
27
26
|
* @returns True if object has valid dimension variables
|
|
28
27
|
*/
|
|
29
|
-
function isUIPlaneElement(obj) {
|
|
28
|
+
export function isUIPlaneElement(obj) {
|
|
30
29
|
return (isUIPointElement(obj) &&
|
|
31
30
|
typeof obj.wVariable === "number" &&
|
|
32
31
|
typeof obj.hVariable === "number" &&
|
|
33
32
|
typeof obj.width === "number" &&
|
|
34
33
|
typeof obj.height === "number");
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
export { isUILayerElement, isUIPlaneElement, isUIPointElement };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UITextStyle } from "../text-style/UITextStyle";
|
|
2
|
-
import type { UITextSpanConfig } from "./UITextSpan.Internal";
|
|
1
|
+
import { UITextStyle } from "../text-style/UITextStyle.js";
|
|
2
|
+
import type { UITextSpanConfig } from "./UITextSpan.Internal.js";
|
|
3
3
|
/** Text span with associated style */
|
|
4
4
|
export declare class UITextSpan {
|
|
5
5
|
/** Text style */
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { UITextStyle } from
|
|
2
|
-
|
|
1
|
+
import { UITextStyle } from "../text-style/UITextStyle.js";
|
|
3
2
|
/** Text span with associated style */
|
|
4
|
-
class UITextSpan {
|
|
3
|
+
export class UITextSpan {
|
|
5
4
|
/** @param config Text span configuration */
|
|
6
5
|
constructor(config) {
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
6
|
+
this.dirtyInternal = true;
|
|
7
|
+
this.textInternal = config.text;
|
|
9
8
|
this.style = new UITextStyle(config.style);
|
|
10
9
|
}
|
|
11
10
|
/** Text content */
|
|
12
11
|
get text() {
|
|
13
|
-
return this.
|
|
12
|
+
return this.textInternal;
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
15
|
* Indicates whether text or style has been modified.
|
|
@@ -18,19 +17,17 @@ class UITextSpan {
|
|
|
18
17
|
* @internal
|
|
19
18
|
*/
|
|
20
19
|
get dirty() {
|
|
21
|
-
return this.
|
|
20
|
+
return this.dirtyInternal || this.style.dirty;
|
|
22
21
|
}
|
|
23
22
|
set text(value) {
|
|
24
|
-
if (value !== this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
23
|
+
if (value !== this.textInternal) {
|
|
24
|
+
this.textInternal = value;
|
|
25
|
+
this.dirtyInternal = true;
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
/** @internal */
|
|
30
29
|
setDirtyFalse() {
|
|
31
|
-
this.
|
|
30
|
+
this.dirtyInternal = false;
|
|
32
31
|
this.style.setDirtyFalse();
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
|
-
|
|
36
|
-
export { UITextSpan };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
const TEXT_STYLE_DEFAULT_COLOR = "#000000";
|
|
2
|
-
const TEXT_STYLE_DEFAULT_ALIGN = "start";
|
|
3
|
-
const TEXT_STYLE_DEFAULT_FONT_FAMILY = "Arial";
|
|
4
|
-
const TEXT_STYLE_DEFAULT_FONT_SIZE = 16;
|
|
5
|
-
const TEXT_STYLE_DEFAULT_FONT_STYLE = "normal";
|
|
6
|
-
const TEXT_STYLE_DEFAULT_FONT_WEIGHT = "normal";
|
|
7
|
-
const TEXT_STYLE_DEFAULT_LINE_HEIGHT = 1.2;
|
|
8
|
-
const TEXT_STYLE_DEFAULT_ENABLE_SHADOW = false;
|
|
9
|
-
const TEXT_STYLE_DEFAULT_SHADOW_OFFSET_X = 0;
|
|
10
|
-
const TEXT_STYLE_DEFAULT_SHADOW_OFFSET_Y = 0;
|
|
11
|
-
const TEXT_STYLE_DEFAULT_SHADOW_BLUR = 0;
|
|
12
|
-
const TEXT_STYLE_DEFAULT_SHADOW_COLOR = "transparent";
|
|
13
|
-
const TEXT_STYLE_DEFAULT_ENABLE_STROKE = false;
|
|
14
|
-
const TEXT_STYLE_DEFAULT_STROKE_COLOR = "#000000";
|
|
15
|
-
const TEXT_STYLE_DEFAULT_STROKE_THICKNESS = 0;
|
|
16
|
-
|
|
17
|
-
export { TEXT_STYLE_DEFAULT_ALIGN, TEXT_STYLE_DEFAULT_COLOR, TEXT_STYLE_DEFAULT_ENABLE_SHADOW, TEXT_STYLE_DEFAULT_ENABLE_STROKE, TEXT_STYLE_DEFAULT_FONT_FAMILY, TEXT_STYLE_DEFAULT_FONT_SIZE, TEXT_STYLE_DEFAULT_FONT_STYLE, TEXT_STYLE_DEFAULT_FONT_WEIGHT, TEXT_STYLE_DEFAULT_LINE_HEIGHT, TEXT_STYLE_DEFAULT_SHADOW_BLUR, TEXT_STYLE_DEFAULT_SHADOW_COLOR, TEXT_STYLE_DEFAULT_SHADOW_OFFSET_X, TEXT_STYLE_DEFAULT_SHADOW_OFFSET_Y, TEXT_STYLE_DEFAULT_STROKE_COLOR, TEXT_STYLE_DEFAULT_STROKE_THICKNESS };
|
|
1
|
+
export const TEXT_STYLE_DEFAULT_COLOR = "#000000";
|
|
2
|
+
export const TEXT_STYLE_DEFAULT_ALIGN = "start";
|
|
3
|
+
export const TEXT_STYLE_DEFAULT_FONT_FAMILY = "Arial";
|
|
4
|
+
export const TEXT_STYLE_DEFAULT_FONT_SIZE = 16;
|
|
5
|
+
export const TEXT_STYLE_DEFAULT_FONT_STYLE = "normal";
|
|
6
|
+
export const TEXT_STYLE_DEFAULT_FONT_WEIGHT = "normal";
|
|
7
|
+
export const TEXT_STYLE_DEFAULT_LINE_HEIGHT = 1.2;
|
|
8
|
+
export const TEXT_STYLE_DEFAULT_ENABLE_SHADOW = false;
|
|
9
|
+
export const TEXT_STYLE_DEFAULT_SHADOW_OFFSET_X = 0;
|
|
10
|
+
export const TEXT_STYLE_DEFAULT_SHADOW_OFFSET_Y = 0;
|
|
11
|
+
export const TEXT_STYLE_DEFAULT_SHADOW_BLUR = 0;
|
|
12
|
+
export const TEXT_STYLE_DEFAULT_SHADOW_COLOR = "transparent";
|
|
13
|
+
export const TEXT_STYLE_DEFAULT_ENABLE_STROKE = false;
|
|
14
|
+
export const TEXT_STYLE_DEFAULT_STROKE_COLOR = "#000000";
|
|
15
|
+
export const TEXT_STYLE_DEFAULT_STROKE_THICKNESS = 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UITextAlign, UITextStyleConfig } from "./UITextStyle.Internal";
|
|
1
|
+
import type { UITextAlign, UITextStyleConfig } from "./UITextStyle.Internal.js";
|
|
2
2
|
/** Text style configuration for UI text rendering */
|
|
3
3
|
export declare class UITextStyle {
|
|
4
4
|
private colorInternal?;
|
|
@@ -71,6 +71,14 @@ export declare class UITextStyle {
|
|
|
71
71
|
* @returns Complete style configuration with all defaults applied
|
|
72
72
|
*/
|
|
73
73
|
static resolve(primary?: UITextStyle, fallback?: UITextStyle): UITextStyleConfig;
|
|
74
|
+
/**
|
|
75
|
+
* Calculates maximum padding required for stroke and shadow of a resolved style.
|
|
76
|
+
* The stroke is centered on the glyph outline, so only half of it is outside.
|
|
77
|
+
* The shadow is cast by the stroke as well as by the fill.
|
|
78
|
+
* @param style Resolved style
|
|
79
|
+
* @returns Padding in pixels needed on all sides
|
|
80
|
+
*/
|
|
81
|
+
static calculatePadding(style: UITextStyleConfig): number;
|
|
74
82
|
/** Sets all properties to default values */
|
|
75
83
|
setDefaults(): void;
|
|
76
84
|
/** Sets all properties to undefined */
|
|
@@ -79,7 +87,10 @@ export declare class UITextStyle {
|
|
|
79
87
|
copy(value: UITextStyle): void;
|
|
80
88
|
/**
|
|
81
89
|
* Calculates maximum padding required for stroke and shadow.
|
|
90
|
+
* Properties left undefined here are taken from `fallback`, then from defaults,
|
|
91
|
+
* so a span style is measured with the stroke and shadow it is drawn with.
|
|
92
|
+
* @param fallback Style that supplies undefined properties (usually the common style)
|
|
82
93
|
* @returns Padding in pixels needed on all sides
|
|
83
94
|
*/
|
|
84
|
-
calculatePadding(): number;
|
|
95
|
+
calculatePadding(fallback?: UITextStyle): number;
|
|
85
96
|
}
|