laymur 0.23.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 +11 -11
- package/dist/core/elements/UIElement/UIElement.js +57 -60
- 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 -10
- package/dist/core/elements/UIProgress/UIProgress.js +59 -62
- 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 +13 -16
- 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 +1 -1
- package/dist/core/miscellaneous/texture/UITextureView.js +113 -117
- 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 +20 -4
- package/dist/core/wrappers/UISolverWrapper/UISolverWrapper.js +138 -117
- 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,142 +0,0 @@
|
|
|
1
|
-
import { __exports as _3d } from '../../../_virtual/3d.js';
|
|
2
|
-
|
|
3
|
-
var hasRequired_3d;
|
|
4
|
-
|
|
5
|
-
function require_3d () {
|
|
6
|
-
if (hasRequired_3d) return _3d;
|
|
7
|
-
hasRequired_3d = 1;
|
|
8
|
-
/*
|
|
9
|
-
* Based on example code by Stefan Gustavson (stegu@itn.liu.se).
|
|
10
|
-
* Optimisations by Peter Eastman (peastman@drizzle.stanford.edu).
|
|
11
|
-
* Better rank ordering method by Stefan Gustavson in 2012.
|
|
12
|
-
*
|
|
13
|
-
* This code was placed in the public domain by its original author,
|
|
14
|
-
* Stefan Gustavson. You may use it as you see fit, but
|
|
15
|
-
* attribution is appreciated.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(_3d, "__esModule", { value: true });
|
|
18
|
-
_3d.makeNoise3D = void 0;
|
|
19
|
-
var G3 = 1.0 / 6.0;
|
|
20
|
-
var Grad = [
|
|
21
|
-
[1, 1, 0],
|
|
22
|
-
[-1, 1, 0],
|
|
23
|
-
[1, -1, 0],
|
|
24
|
-
[-1, -1, 0],
|
|
25
|
-
[1, 0, 1],
|
|
26
|
-
[-1, 0, 1],
|
|
27
|
-
[1, 0, -1],
|
|
28
|
-
[-1, 0, -1],
|
|
29
|
-
[0, 1, 1],
|
|
30
|
-
[0, -1, -1],
|
|
31
|
-
[0, 1, -1],
|
|
32
|
-
[0, -1, -1],
|
|
33
|
-
];
|
|
34
|
-
function makeNoise3D(random) {
|
|
35
|
-
if (random === void 0) { random = Math.random; }
|
|
36
|
-
var p = new Uint8Array(256);
|
|
37
|
-
for (var i = 0; i < 256; i++)
|
|
38
|
-
p[i] = i;
|
|
39
|
-
var n;
|
|
40
|
-
var q;
|
|
41
|
-
for (var i = 255; i > 0; i--) {
|
|
42
|
-
n = Math.floor((i + 1) * random());
|
|
43
|
-
q = p[i];
|
|
44
|
-
p[i] = p[n];
|
|
45
|
-
p[n] = q;
|
|
46
|
-
}
|
|
47
|
-
var perm = new Uint8Array(512);
|
|
48
|
-
var permMod12 = new Uint8Array(512);
|
|
49
|
-
for (var i = 0; i < 512; i++) {
|
|
50
|
-
perm[i] = p[i & 255];
|
|
51
|
-
permMod12[i] = perm[i] % 12;
|
|
52
|
-
}
|
|
53
|
-
return function (x, y, z) {
|
|
54
|
-
// Skew the input space to determine which simplex cell we're in
|
|
55
|
-
var s = (x + y + z) / 3.0; // Very nice and simple skew factor for 3D
|
|
56
|
-
var i = Math.floor(x + s);
|
|
57
|
-
var j = Math.floor(y + s);
|
|
58
|
-
var k = Math.floor(z + s);
|
|
59
|
-
var t = (i + j + k) * G3;
|
|
60
|
-
var X0 = i - t; // Unskew the cell origin back to (x,y,z) space
|
|
61
|
-
var Y0 = j - t;
|
|
62
|
-
var Z0 = k - t;
|
|
63
|
-
var x0 = x - X0; // The x,y,z distances from the cell origin
|
|
64
|
-
var y0 = y - Y0;
|
|
65
|
-
var z0 = z - Z0;
|
|
66
|
-
// Deterine which simplex we are in
|
|
67
|
-
var i1, j1, k1 // Offsets for second corner of simplex in (i,j,k) coords
|
|
68
|
-
;
|
|
69
|
-
var i2, j2, k2 // Offsets for third corner of simplex in (i,j,k) coords
|
|
70
|
-
;
|
|
71
|
-
if (x0 >= y0) {
|
|
72
|
-
if (y0 >= z0) {
|
|
73
|
-
i1 = i2 = j2 = 1;
|
|
74
|
-
j1 = k1 = k2 = 0;
|
|
75
|
-
}
|
|
76
|
-
else if (x0 >= z0) {
|
|
77
|
-
i1 = i2 = k2 = 1;
|
|
78
|
-
j1 = k1 = j2 = 0;
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
k1 = i2 = k2 = 1;
|
|
82
|
-
i1 = j1 = j2 = 0;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
if (y0 < z0) {
|
|
87
|
-
k1 = j2 = k2 = 1;
|
|
88
|
-
i1 = j1 = i2 = 0;
|
|
89
|
-
}
|
|
90
|
-
else if (x0 < z0) {
|
|
91
|
-
j1 = j2 = k2 = 1;
|
|
92
|
-
i1 = k1 = i2 = 0;
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
j1 = i2 = j2 = 1;
|
|
96
|
-
i1 = k1 = k2 = 0;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
var x1 = x0 - i1 + G3; // Offsets for second corner in (x,y,z) coords
|
|
100
|
-
var y1 = y0 - j1 + G3;
|
|
101
|
-
var z1 = z0 - k1 + G3;
|
|
102
|
-
var x2 = x0 - i2 + 2.0 * G3; // Offsets for third corner in (x,y,z) coords
|
|
103
|
-
var y2 = y0 - j2 + 2.0 * G3;
|
|
104
|
-
var z2 = z0 - k2 + 2.0 * G3;
|
|
105
|
-
var x3 = x0 - 1.0 + 3.0 * G3; // Offsets for last corner in (x,y,z) coords
|
|
106
|
-
var y3 = y0 - 1.0 + 3.0 * G3;
|
|
107
|
-
var z3 = z0 - 1.0 + 3.0 * G3;
|
|
108
|
-
// Work out the hashed gradient indices of the four simplex corners
|
|
109
|
-
var ii = i & 255;
|
|
110
|
-
var jj = j & 255;
|
|
111
|
-
var kk = k & 255;
|
|
112
|
-
var g0 = Grad[permMod12[ii + perm[jj + perm[kk]]]];
|
|
113
|
-
var g1 = Grad[permMod12[ii + i1 + perm[jj + j1 + perm[kk + k1]]]];
|
|
114
|
-
var g2 = Grad[permMod12[ii + i2 + perm[jj + j2 + perm[kk + k2]]]];
|
|
115
|
-
var g3 = Grad[permMod12[ii + 1 + perm[jj + 1 + perm[kk + 1]]]];
|
|
116
|
-
// Calculate the contribution from the four corners
|
|
117
|
-
var t0 = 0.5 - x0 * x0 - y0 * y0 - z0 * z0;
|
|
118
|
-
var n0 = t0 < 0
|
|
119
|
-
? 0.0
|
|
120
|
-
: Math.pow(t0, 4) * (g0[0] * x0 + g0[1] * y0 + g0[2] * z0);
|
|
121
|
-
var t1 = 0.5 - x1 * x1 - y1 * y1 - z1 * z1;
|
|
122
|
-
var n1 = t1 < 0
|
|
123
|
-
? 0.0
|
|
124
|
-
: Math.pow(t1, 4) * (g1[0] * x1 + g1[1] * y1 + g1[2] * z1);
|
|
125
|
-
var t2 = 0.5 - x2 * x2 - y2 * y2 - z2 * z2;
|
|
126
|
-
var n2 = t2 < 0
|
|
127
|
-
? 0.0
|
|
128
|
-
: Math.pow(t2, 4) * (g2[0] * x2 + g2[1] * y2 + g2[2] * z2);
|
|
129
|
-
var t3 = 0.5 - x3 * x3 - y3 * y3 - z3 * z3;
|
|
130
|
-
var n3 = t3 < 0
|
|
131
|
-
? 0.0
|
|
132
|
-
: Math.pow(t3, 4) * (g3[0] * x3 + g3[1] * y3 + g3[2] * z3);
|
|
133
|
-
// Add contributions from each corner to get the final noise value.
|
|
134
|
-
// The result is scaled to stay just inside [-1,1]
|
|
135
|
-
return 94.68493150681972 * (n0 + n1 + n2 + n3);
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
_3d.makeNoise3D = makeNoise3D;
|
|
139
|
-
return _3d;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export { require_3d as __require };
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { __exports as _4d } from '../../../_virtual/4d.js';
|
|
2
|
-
|
|
3
|
-
var hasRequired_4d;
|
|
4
|
-
|
|
5
|
-
function require_4d () {
|
|
6
|
-
if (hasRequired_4d) return _4d;
|
|
7
|
-
hasRequired_4d = 1;
|
|
8
|
-
/*
|
|
9
|
-
* Based on example code by Stefan Gustavson (stegu@itn.liu.se).
|
|
10
|
-
* Optimisations by Peter Eastman (peastman@drizzle.stanford.edu).
|
|
11
|
-
* Better rank ordering method by Stefan Gustavson in 2012.
|
|
12
|
-
*
|
|
13
|
-
* This code was placed in the public domain by its original author,
|
|
14
|
-
* Stefan Gustavson. You may use it as you see fit, but
|
|
15
|
-
* attribution is appreciated.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(_4d, "__esModule", { value: true });
|
|
18
|
-
_4d.makeNoise4D = void 0;
|
|
19
|
-
var G4 = (5.0 - Math.sqrt(5.0)) / 20.0;
|
|
20
|
-
var Grad = [
|
|
21
|
-
[0, 1, 1, 1],
|
|
22
|
-
[0, 1, 1, -1],
|
|
23
|
-
[0, 1, -1, 1],
|
|
24
|
-
[0, 1, -1, -1],
|
|
25
|
-
[0, -1, 1, 1],
|
|
26
|
-
[0, -1, 1, -1],
|
|
27
|
-
[0, -1, -1, 1],
|
|
28
|
-
[0, -1, -1, -1],
|
|
29
|
-
[1, 0, 1, 1],
|
|
30
|
-
[1, 0, 1, -1],
|
|
31
|
-
[1, 0, -1, 1],
|
|
32
|
-
[1, 0, -1, -1],
|
|
33
|
-
[-1, 0, 1, 1],
|
|
34
|
-
[-1, 0, 1, -1],
|
|
35
|
-
[-1, 0, -1, 1],
|
|
36
|
-
[-1, 0, -1, -1],
|
|
37
|
-
[1, 1, 0, 1],
|
|
38
|
-
[1, 1, 0, -1],
|
|
39
|
-
[1, -1, 0, 1],
|
|
40
|
-
[1, -1, 0, -1],
|
|
41
|
-
[-1, 1, 0, 1],
|
|
42
|
-
[-1, 1, 0, -1],
|
|
43
|
-
[-1, -1, 0, 1],
|
|
44
|
-
[-1, -1, 0, -1],
|
|
45
|
-
[1, 1, 1, 0],
|
|
46
|
-
[1, 1, -1, 0],
|
|
47
|
-
[1, -1, 1, 0],
|
|
48
|
-
[1, -1, -1, 0],
|
|
49
|
-
[-1, 1, 1, 0],
|
|
50
|
-
[-1, 1, -1, 0],
|
|
51
|
-
[-1, -1, 1, 0],
|
|
52
|
-
[-1, -1, -1, 0],
|
|
53
|
-
];
|
|
54
|
-
function makeNoise4D(random) {
|
|
55
|
-
if (random === void 0) { random = Math.random; }
|
|
56
|
-
var p = new Uint8Array(256);
|
|
57
|
-
for (var i = 0; i < 256; i++)
|
|
58
|
-
p[i] = i;
|
|
59
|
-
var n;
|
|
60
|
-
var q;
|
|
61
|
-
for (var i = 255; i > 0; i--) {
|
|
62
|
-
n = Math.floor((i + 1) * random());
|
|
63
|
-
q = p[i];
|
|
64
|
-
p[i] = p[n];
|
|
65
|
-
p[n] = q;
|
|
66
|
-
}
|
|
67
|
-
var perm = new Uint8Array(512);
|
|
68
|
-
var permMod12 = new Uint8Array(512);
|
|
69
|
-
for (var i = 0; i < 512; i++) {
|
|
70
|
-
perm[i] = p[i & 255];
|
|
71
|
-
permMod12[i] = perm[i] % 12;
|
|
72
|
-
}
|
|
73
|
-
return function (x, y, z, w) {
|
|
74
|
-
// Skew the (x,y,z,w) space to determine which cell of 24 simplices we're in
|
|
75
|
-
var s = (x + y + z + w) * (Math.sqrt(5.0) - 1.0) / 4.0; // Factor for 4D skewing
|
|
76
|
-
var i = Math.floor(x + s);
|
|
77
|
-
var j = Math.floor(y + s);
|
|
78
|
-
var k = Math.floor(z + s);
|
|
79
|
-
var l = Math.floor(w + s);
|
|
80
|
-
var t = (i + j + k + l) * G4; // Factor for 4D unskewing
|
|
81
|
-
var X0 = i - t; // Unskew the cell origin back to (x,y,z,w) space
|
|
82
|
-
var Y0 = j - t;
|
|
83
|
-
var Z0 = k - t;
|
|
84
|
-
var W0 = l - t;
|
|
85
|
-
var x0 = x - X0; // The x,y,z,w distances from the cell origin
|
|
86
|
-
var y0 = y - Y0;
|
|
87
|
-
var z0 = z - Z0;
|
|
88
|
-
var w0 = w - W0;
|
|
89
|
-
// To find out which of the 24 possible simplices we're in, we need to determine the
|
|
90
|
-
// magnitude ordering of x0, y0, z0 and w0. Six pair-wise comparisons are performed between
|
|
91
|
-
// each possible pair of the four coordinates, and the results are used to rank the numbers.
|
|
92
|
-
var rankx = 0;
|
|
93
|
-
var ranky = 0;
|
|
94
|
-
var rankz = 0;
|
|
95
|
-
var rankw = 0;
|
|
96
|
-
if (x0 > y0)
|
|
97
|
-
rankx++;
|
|
98
|
-
else
|
|
99
|
-
ranky++;
|
|
100
|
-
if (x0 > z0)
|
|
101
|
-
rankx++;
|
|
102
|
-
else
|
|
103
|
-
rankz++;
|
|
104
|
-
if (x0 > w0)
|
|
105
|
-
rankx++;
|
|
106
|
-
else
|
|
107
|
-
rankw++;
|
|
108
|
-
if (y0 > z0)
|
|
109
|
-
ranky++;
|
|
110
|
-
else
|
|
111
|
-
rankz++;
|
|
112
|
-
if (y0 > w0)
|
|
113
|
-
ranky++;
|
|
114
|
-
else
|
|
115
|
-
rankw++;
|
|
116
|
-
if (z0 > w0)
|
|
117
|
-
rankz++;
|
|
118
|
-
else
|
|
119
|
-
rankw++;
|
|
120
|
-
// simplex[c] is a 4-vector with the numbers 0, 1, 2 and 3 in some order.
|
|
121
|
-
// Many values of c will never occur, since e.g. x>y>z>w makes x<z, y<w and x<w
|
|
122
|
-
// impossible. Only the 24 indices which have non-zero entries make any sense.
|
|
123
|
-
// We use a thresholding to set the coordinates in turn from the largest magnitude.
|
|
124
|
-
// Rank 3 denotes the largest coordinate.
|
|
125
|
-
var i1 = rankx >= 3 ? 1 : 0;
|
|
126
|
-
var j1 = ranky >= 3 ? 1 : 0;
|
|
127
|
-
var k1 = rankz >= 3 ? 1 : 0;
|
|
128
|
-
var l1 = rankw >= 3 ? 1 : 0;
|
|
129
|
-
// Rank 2 denotes the second largest coordinate.
|
|
130
|
-
var i2 = rankx >= 2 ? 1 : 0;
|
|
131
|
-
var j2 = ranky >= 2 ? 1 : 0;
|
|
132
|
-
var k2 = rankz >= 2 ? 1 : 0;
|
|
133
|
-
var l2 = rankw >= 2 ? 1 : 0;
|
|
134
|
-
// Rank 1 denotes the second smallest coordinate.
|
|
135
|
-
var i3 = rankx >= 1 ? 1 : 0;
|
|
136
|
-
var j3 = ranky >= 1 ? 1 : 0;
|
|
137
|
-
var k3 = rankz >= 1 ? 1 : 0;
|
|
138
|
-
var l3 = rankw >= 1 ? 1 : 0;
|
|
139
|
-
// The fifth corner has all coordinate offsets = 1, so no need to compute that.
|
|
140
|
-
var x1 = x0 - i1 + G4; // Offsets for second corner in (x,y,z,w) coords
|
|
141
|
-
var y1 = y0 - j1 + G4;
|
|
142
|
-
var z1 = z0 - k1 + G4;
|
|
143
|
-
var w1 = w0 - l1 + G4;
|
|
144
|
-
var x2 = x0 - i2 + 2.0 * G4; // Offsets for third corner in (x,y,z,w) coords
|
|
145
|
-
var y2 = y0 - j2 + 2.0 * G4;
|
|
146
|
-
var z2 = z0 - k2 + 2.0 * G4;
|
|
147
|
-
var w2 = w0 - l2 + 2.0 * G4;
|
|
148
|
-
var x3 = x0 - i3 + 3.0 * G4; // Offsets for fourth corner in (x,y,z,w) coords
|
|
149
|
-
var y3 = y0 - j3 + 3.0 * G4;
|
|
150
|
-
var z3 = z0 - k3 + 3.0 * G4;
|
|
151
|
-
var w3 = w0 - l3 + 3.0 * G4;
|
|
152
|
-
var x4 = x0 - 1.0 + 4.0 * G4; // Offsets for last corner in (x,y,z,w) coords
|
|
153
|
-
var y4 = y0 - 1.0 + 4.0 * G4;
|
|
154
|
-
var z4 = z0 - 1.0 + 4.0 * G4;
|
|
155
|
-
var w4 = w0 - 1.0 + 4.0 * G4;
|
|
156
|
-
// Work out the hashed gradient indices of the five simplex corners
|
|
157
|
-
var ii = i & 255;
|
|
158
|
-
var jj = j & 255;
|
|
159
|
-
var kk = k & 255;
|
|
160
|
-
var ll = l & 255;
|
|
161
|
-
var g0 = Grad[perm[ii + perm[jj + perm[kk + perm[ll]]]] %
|
|
162
|
-
32];
|
|
163
|
-
var g1 = Grad[perm[ii + i1 + perm[jj + j1 + perm[kk + k1 + perm[ll + l1]]]] % 32];
|
|
164
|
-
var g2 = Grad[perm[ii + i2 + perm[jj + j2 + perm[kk + k2 + perm[ll + l2]]]] % 32];
|
|
165
|
-
var g3 = Grad[perm[ii + i3 + perm[jj + j3 + perm[kk + k3 + perm[ll + l3]]]] % 32];
|
|
166
|
-
var g4 = Grad[perm[ii + 1 + perm[jj + 1 + perm[kk + 1 + perm[ll + 1]]]] % 32];
|
|
167
|
-
// Calculate the contribution from the five corners
|
|
168
|
-
var t0 = 0.5 - x0 * x0 - y0 * y0 - z0 * z0 - w0 * w0;
|
|
169
|
-
var n0 = t0 < 0
|
|
170
|
-
? 0.0
|
|
171
|
-
: Math.pow(t0, 4) * (g0[0] * x0 + g0[1] * y0 + g0[2] * z0 + g0[3] * w0);
|
|
172
|
-
var t1 = 0.5 - x1 * x1 - y1 * y1 - z1 * z1 - w1 * w1;
|
|
173
|
-
var n1 = t1 < 0
|
|
174
|
-
? 0.0
|
|
175
|
-
: Math.pow(t1, 4) * (g1[0] * x1 + g1[1] * y1 + g1[2] * z1 + g1[3] * w1);
|
|
176
|
-
var t2 = 0.5 - x2 * x2 - y2 * y2 - z2 * z2 - w2 * w2;
|
|
177
|
-
var n2 = t2 < 0
|
|
178
|
-
? 0.0
|
|
179
|
-
: Math.pow(t2, 4) * (g2[0] * x2 + g2[1] * y2 + g2[2] * z2 + g2[3] * w2);
|
|
180
|
-
var t3 = 0.5 - x3 * x3 - y3 * y3 - z3 * z3 - w3 * w3;
|
|
181
|
-
var n3 = t3 < 0
|
|
182
|
-
? 0.0
|
|
183
|
-
: Math.pow(t3, 4) * (g3[0] * x3 + g3[1] * y3 + g3[2] * z3 + g3[3] * w3);
|
|
184
|
-
var t4 = 0.5 - x4 * x4 - y4 * y4 - z4 * z4 - w4 * w4;
|
|
185
|
-
var n4 = t4 < 0
|
|
186
|
-
? 0.0
|
|
187
|
-
: Math.pow(t4, 4) * (g4[0] * x4 + g4[1] * y4 + g4[2] * z4 + g4[3] * w4);
|
|
188
|
-
// Sum up and scale the result to cover the range [-1,1]
|
|
189
|
-
return 72.37855765153665 * (n0 + n1 + n2 + n3 + n4);
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
_4d.makeNoise4D = makeNoise4D;
|
|
193
|
-
return _4d;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export { require_4d as __require };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { __exports as mod } from '../../../_virtual/mod2.js';
|
|
2
|
-
import { __require as require_2d } from './2d.js';
|
|
3
|
-
import { __require as require_3d } from './3d.js';
|
|
4
|
-
import { __require as require_4d } from './4d.js';
|
|
5
|
-
|
|
6
|
-
var hasRequiredMod;
|
|
7
|
-
|
|
8
|
-
function requireMod () {
|
|
9
|
-
if (hasRequiredMod) return mod;
|
|
10
|
-
hasRequiredMod = 1;
|
|
11
|
-
(function (exports$1) {
|
|
12
|
-
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
13
|
-
exports$1.makeNoise4D = exports$1.makeNoise3D = exports$1.makeNoise2D = void 0;
|
|
14
|
-
var _2d_1 = require_2d();
|
|
15
|
-
Object.defineProperty(exports$1, "makeNoise2D", { enumerable: true, get: function () { return _2d_1.makeNoise2D; } });
|
|
16
|
-
var _3d_1 = require_3d();
|
|
17
|
-
Object.defineProperty(exports$1, "makeNoise3D", { enumerable: true, get: function () { return _3d_1.makeNoise3D; } });
|
|
18
|
-
var _4d_1 = require_4d();
|
|
19
|
-
Object.defineProperty(exports$1, "makeNoise4D", { enumerable: true, get: function () { return _4d_1.makeNoise4D; } });
|
|
20
|
-
} (mod));
|
|
21
|
-
return mod;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { requireMod as __require };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { LineSegments2 } from './LineSegments2.js';
|
|
2
|
-
import { LineGeometry } from './LineGeometry.js';
|
|
3
|
-
import { LineMaterial } from './LineMaterial.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* A polyline drawn between vertices.
|
|
7
|
-
*
|
|
8
|
-
* This adds functionality beyond {@link Line}, like arbitrary line width and changing width to
|
|
9
|
-
* be in world units.It extends {@link LineSegments2}, simplifying constructing segments from a
|
|
10
|
-
* chain of points.
|
|
11
|
-
*
|
|
12
|
-
* This module can only be used with {@link WebGLRenderer}. When using {@link WebGPURenderer},
|
|
13
|
-
* import the class from `lines/webgpu/Line2.js`.
|
|
14
|
-
*
|
|
15
|
-
* ```js
|
|
16
|
-
* const geometry = new LineGeometry();
|
|
17
|
-
* geometry.setPositions( positions );
|
|
18
|
-
* geometry.setColors( colors );
|
|
19
|
-
*
|
|
20
|
-
* const material = new LineMaterial( { linewidth: 5, vertexColors: true } };
|
|
21
|
-
*
|
|
22
|
-
* const line = new Line2( geometry, material );
|
|
23
|
-
* scene.add( line );
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @augments LineSegments2
|
|
27
|
-
* @three_import import { Line2 } from 'three/addons/lines/Line2.js';
|
|
28
|
-
*/
|
|
29
|
-
class Line2 extends LineSegments2 {
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Constructs a new wide line.
|
|
33
|
-
*
|
|
34
|
-
* @param {LineGeometry} [geometry] - The line geometry.
|
|
35
|
-
* @param {LineMaterial} [material] - The line material.
|
|
36
|
-
*/
|
|
37
|
-
constructor( geometry = new LineGeometry(), material = new LineMaterial( { color: Math.random() * 0xffffff } ) ) {
|
|
38
|
-
|
|
39
|
-
super( geometry, material );
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* This flag can be used for type testing.
|
|
43
|
-
*
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @readonly
|
|
46
|
-
* @default true
|
|
47
|
-
*/
|
|
48
|
-
this.isLine2 = true;
|
|
49
|
-
|
|
50
|
-
this.type = 'Line2';
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export { Line2 };
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { LineSegmentsGeometry } from './LineSegmentsGeometry.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A chain of vertices, forming a polyline.
|
|
5
|
-
*
|
|
6
|
-
* This is used in {@link Line2} to describe the shape.
|
|
7
|
-
*
|
|
8
|
-
* ```js
|
|
9
|
-
* const points = [
|
|
10
|
-
* new THREE.Vector3( - 10, 0, 0 ),
|
|
11
|
-
* new THREE.Vector3( 0, 5, 0 ),
|
|
12
|
-
* new THREE.Vector3( 10, 0, 0 ),
|
|
13
|
-
* ];
|
|
14
|
-
*
|
|
15
|
-
* const geometry = new LineGeometry();
|
|
16
|
-
* geometry.setFromPoints( points );
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @augments LineSegmentsGeometry
|
|
20
|
-
* @three_import import { LineLineGeometry2 } from 'three/addons/lines/LineGeometry.js';
|
|
21
|
-
*/
|
|
22
|
-
class LineGeometry extends LineSegmentsGeometry {
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Constructs a new line geometry.
|
|
26
|
-
*/
|
|
27
|
-
constructor() {
|
|
28
|
-
|
|
29
|
-
super();
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* This flag can be used for type testing.
|
|
33
|
-
*
|
|
34
|
-
* @type {boolean}
|
|
35
|
-
* @readonly
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
this.isLineGeometry = true;
|
|
39
|
-
|
|
40
|
-
this.type = 'LineGeometry';
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Sets the given line positions for this geometry.
|
|
46
|
-
*
|
|
47
|
-
* @param {Float32Array|Array<number>} array - The position data to set.
|
|
48
|
-
* @return {LineGeometry} A reference to this geometry.
|
|
49
|
-
*/
|
|
50
|
-
setPositions( array ) {
|
|
51
|
-
|
|
52
|
-
// converts [ x1, y1, z1, x2, y2, z2, ... ] to pairs format
|
|
53
|
-
|
|
54
|
-
const length = array.length - 3;
|
|
55
|
-
const points = new Float32Array( 2 * length );
|
|
56
|
-
|
|
57
|
-
for ( let i = 0; i < length; i += 3 ) {
|
|
58
|
-
|
|
59
|
-
points[ 2 * i ] = array[ i ];
|
|
60
|
-
points[ 2 * i + 1 ] = array[ i + 1 ];
|
|
61
|
-
points[ 2 * i + 2 ] = array[ i + 2 ];
|
|
62
|
-
|
|
63
|
-
points[ 2 * i + 3 ] = array[ i + 3 ];
|
|
64
|
-
points[ 2 * i + 4 ] = array[ i + 4 ];
|
|
65
|
-
points[ 2 * i + 5 ] = array[ i + 5 ];
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
super.setPositions( points );
|
|
70
|
-
|
|
71
|
-
return this;
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Sets the given line colors for this geometry.
|
|
77
|
-
*
|
|
78
|
-
* @param {Float32Array|Array<number>} array - The position data to set.
|
|
79
|
-
* @return {LineGeometry} A reference to this geometry.
|
|
80
|
-
*/
|
|
81
|
-
setColors( array ) {
|
|
82
|
-
|
|
83
|
-
// converts [ r1, g1, b1, r2, g2, b2, ... ] to pairs format
|
|
84
|
-
|
|
85
|
-
const length = array.length - 3;
|
|
86
|
-
const colors = new Float32Array( 2 * length );
|
|
87
|
-
|
|
88
|
-
for ( let i = 0; i < length; i += 3 ) {
|
|
89
|
-
|
|
90
|
-
colors[ 2 * i ] = array[ i ];
|
|
91
|
-
colors[ 2 * i + 1 ] = array[ i + 1 ];
|
|
92
|
-
colors[ 2 * i + 2 ] = array[ i + 2 ];
|
|
93
|
-
|
|
94
|
-
colors[ 2 * i + 3 ] = array[ i + 3 ];
|
|
95
|
-
colors[ 2 * i + 4 ] = array[ i + 4 ];
|
|
96
|
-
colors[ 2 * i + 5 ] = array[ i + 5 ];
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
super.setColors( colors );
|
|
101
|
-
|
|
102
|
-
return this;
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Setups this line segments geometry from the given sequence of points.
|
|
108
|
-
*
|
|
109
|
-
* @param {Array<Vector3|Vector2>} points - An array of points in 2D or 3D space.
|
|
110
|
-
* @return {LineGeometry} A reference to this geometry.
|
|
111
|
-
*/
|
|
112
|
-
setFromPoints( points ) {
|
|
113
|
-
|
|
114
|
-
// converts a vector3 or vector2 array to pairs format
|
|
115
|
-
|
|
116
|
-
const length = points.length - 1;
|
|
117
|
-
const positions = new Float32Array( 6 * length );
|
|
118
|
-
|
|
119
|
-
for ( let i = 0; i < length; i ++ ) {
|
|
120
|
-
|
|
121
|
-
positions[ 6 * i ] = points[ i ].x;
|
|
122
|
-
positions[ 6 * i + 1 ] = points[ i ].y;
|
|
123
|
-
positions[ 6 * i + 2 ] = points[ i ].z || 0;
|
|
124
|
-
|
|
125
|
-
positions[ 6 * i + 3 ] = points[ i + 1 ].x;
|
|
126
|
-
positions[ 6 * i + 4 ] = points[ i + 1 ].y;
|
|
127
|
-
positions[ 6 * i + 5 ] = points[ i + 1 ].z || 0;
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
super.setPositions( positions );
|
|
132
|
-
|
|
133
|
-
return this;
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Setups this line segments geometry from the given line.
|
|
139
|
-
*
|
|
140
|
-
* @param {Line} line - The line that should be used as a data source for this geometry.
|
|
141
|
-
* @return {LineGeometry} A reference to this geometry.
|
|
142
|
-
*/
|
|
143
|
-
fromLine( line ) {
|
|
144
|
-
|
|
145
|
-
const geometry = line.geometry;
|
|
146
|
-
|
|
147
|
-
this.setPositions( geometry.attributes.position.array ); // assumes non-indexed
|
|
148
|
-
|
|
149
|
-
// set colors, maybe
|
|
150
|
-
|
|
151
|
-
return this;
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export { LineGeometry };
|