laymur 0.18.1 → 0.19.1

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 (68) hide show
  1. package/README.md +44 -17
  2. package/dist/core/constraints/UIAspectConstraint/UIAspectConstraint.d.ts +1 -1
  3. package/dist/core/constraints/UIAspectConstraint/UIAspectConstraint.js +6 -6
  4. package/dist/core/constraints/UIConstraint.d.ts +1 -0
  5. package/dist/core/constraints/UIConstraint.js +4 -0
  6. package/dist/core/constraints/UIHeightConstraint/UIHeightConstraint.d.ts +1 -1
  7. package/dist/core/constraints/UIHeightConstraint/UIHeightConstraint.js +5 -5
  8. package/dist/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.d.ts +2 -2
  9. package/dist/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.js +14 -14
  10. package/dist/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.d.ts +3 -3
  11. package/dist/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.js +20 -20
  12. package/dist/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.d.ts +2 -2
  13. package/dist/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.js +5 -5
  14. package/dist/core/constraints/UISingleParameterConstraint/UISingleParameterConstraint.js +1 -0
  15. package/dist/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.d.ts +2 -2
  16. package/dist/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.js +14 -14
  17. package/dist/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.d.ts +3 -3
  18. package/dist/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.js +20 -20
  19. package/dist/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.d.ts +2 -2
  20. package/dist/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.js +5 -5
  21. package/dist/core/constraints/UIWidthConstraint/UIWidthConstraint.d.ts +1 -1
  22. package/dist/core/constraints/UIWidthConstraint/UIWidthConstraint.js +5 -5
  23. package/dist/core/layers/UILayer/UILayer.d.ts +18 -0
  24. package/dist/core/layers/UILayer/UILayer.js +48 -0
  25. package/dist/core/miscellaneous/color/UIColor.js +4 -4
  26. package/dist/core/miscellaneous/shared.d.ts +8 -0
  27. package/dist/debug/UIAspectDebug.d.ts +26 -0
  28. package/dist/debug/UIAspectDebug.js +118 -0
  29. package/dist/debug/UIConstraintDebug.d.ts +7 -0
  30. package/dist/debug/UIHeightDebug.d.ts +26 -0
  31. package/dist/debug/UIHeightDebug.js +111 -0
  32. package/dist/debug/UIHorizontalDistanceDebug.d.ts +29 -0
  33. package/dist/debug/UIHorizontalDistanceDebug.js +158 -0
  34. package/dist/debug/UIHorizontalInterpolationDebug.d.ts +29 -0
  35. package/dist/debug/UIHorizontalInterpolationDebug.js +145 -0
  36. package/dist/debug/UILayerDebug.d.ts +34 -0
  37. package/dist/debug/UILayerDebug.js +124 -0
  38. package/dist/debug/UIVerticalDistanceDebug.d.ts +29 -0
  39. package/dist/debug/UIVerticalDistanceDebug.js +158 -0
  40. package/dist/debug/UIVerticalInterpolationDebug.d.ts +29 -0
  41. package/dist/debug/UIVerticalInterpolationDebug.js +145 -0
  42. package/dist/debug/UIWidthDebug.d.ts +26 -0
  43. package/dist/debug/UIWidthDebug.js +111 -0
  44. package/dist/debug/index.d.ts +8 -0
  45. package/dist/debug/index.js +8 -0
  46. package/dist/debug/miscellaneous.d.ts +8 -0
  47. package/dist/debug/miscellaneous.js +11 -0
  48. package/dist/node_modules/three/examples/jsm/lines/Line2.js +56 -0
  49. package/dist/node_modules/three/examples/jsm/lines/LineGeometry.js +157 -0
  50. package/dist/node_modules/three/examples/jsm/lines/LineMaterial.js +691 -0
  51. package/dist/node_modules/three/examples/jsm/lines/LineSegments2.js +415 -0
  52. package/dist/node_modules/three/examples/jsm/lines/LineSegmentsGeometry.js +289 -0
  53. package/dist/particles/behaviorModules/UIBehaviorDirectionalGravity.d.ts +1 -1
  54. package/dist/particles/behaviorModules/UIBehaviorScaleOverLife.d.ts +1 -1
  55. package/dist/particles/behaviorModules/UIBehaviorTorqueDamping.d.ts +1 -1
  56. package/dist/particles/behaviorModules/UIBehaviorTorqueNoise.d.ts +1 -1
  57. package/dist/particles/behaviorModules/UIBehaviorVelocityDamping.d.ts +1 -1
  58. package/dist/particles/elements/UIEmitter.d.ts +1 -1
  59. package/dist/particles/instancedParticle/UIInstancedParticle.Internal.d.ts +1 -2
  60. package/dist/particles/instancedParticle/UIInstancedParticle.d.ts +1 -1
  61. package/dist/particles/miscellaneous/miscellaneous.d.ts +2 -1
  62. package/dist/particles/spawnModules/UISpawnOffset.d.ts +1 -1
  63. package/dist/particles/spawnModules/UISpawnRandomRotation.d.ts +1 -1
  64. package/dist/particles/spawnModules/UISpawnRandomScale.d.ts +1 -1
  65. package/dist/particles/spawnModules/UISpawnRandomTorque.d.ts +1 -1
  66. package/dist/particles/spawnModules/UISpawnRandomVelocity.d.ts +1 -1
  67. package/dist/particles/spawnModules/UISpawnRectangle.d.ts +1 -1
  68. package/package.json +5 -1
@@ -1,4 +1,4 @@
1
- import { type UIRange, type UIRangeConfig } from "../miscellaneous/miscellaneous";
1
+ import type { UIRange, UIRangeConfig } from "../miscellaneous/miscellaneous";
2
2
  import { UIBehaviorModule } from "./UIBehaviorModule";
3
3
  /**
4
4
  * Reduces particle angular velocity over time.
@@ -1,4 +1,4 @@
1
- import { type UIRange, type UIRangeConfig } from "../miscellaneous/miscellaneous";
1
+ import type { UIRange, UIRangeConfig } from "../miscellaneous/miscellaneous";
2
2
  import { UIBehaviorModule } from "./UIBehaviorModule";
3
3
  /**
4
4
  * Applies noise-based angular acceleration to particles.
@@ -1,4 +1,4 @@
1
- import { type UIRange, type UIRangeConfig } from "../miscellaneous/miscellaneous";
1
+ import type { UIRange, UIRangeConfig } from "../miscellaneous/miscellaneous";
2
2
  import { UIBehaviorModule } from "./UIBehaviorModule";
3
3
  /**
4
4
  * Reduces particle velocity over time.
@@ -4,7 +4,7 @@ import type { UIAnchorOptions } from "../../core/elements/UIAnchor/UIAnchor.Inte
4
4
  import type { UIBehaviorModule } from "../behaviorModules/UIBehaviorModule";
5
5
  import type { UIRenderingModule } from "../renderingModules/UIRenderingModule";
6
6
  import type { UISpawnModule } from "../spawnModules/UISpawnModule";
7
- import { type UIEmitterMode, type UIEmitterPlayOptions } from "./UIEmitter.Internal";
7
+ import type { UIEmitterMode, UIEmitterPlayOptions } from "./UIEmitter.Internal";
8
8
  export interface UIEmitterOptions extends UIAnchorOptions {
9
9
  mode: UIEmitterMode;
10
10
  expectedCapacity: number;
@@ -1,6 +1,5 @@
1
1
  import { InstancedBufferGeometry, ShaderMaterial } from "three";
2
- import type { GLProperty, GLTypeInfo } from "../../core/miscellaneous/generic-plane/shared";
3
- import { type UIProperty, type UIPropertyName } from "../../core/miscellaneous/generic-plane/shared";
2
+ import type { GLProperty, GLTypeInfo, UIProperty, UIPropertyName } from "../../core/miscellaneous/generic-plane/shared";
4
3
  export declare const INSTANCED_PARTICLE_GEOMETRY: InstancedBufferGeometry;
5
4
  export declare function collectProperties(keeper: Record<string, GLTypeInfo>, modules: readonly {
6
5
  requiredProperties?: Record<string, UIPropertyName>;
@@ -1,5 +1,5 @@
1
1
  import { InstancedBufferAttribute, Mesh } from "three";
2
- import { type GLProperty, type GLTypeInfo } from "../../core/miscellaneous/generic-plane/shared";
2
+ import type { GLProperty, GLTypeInfo } from "../../core/miscellaneous/generic-plane/shared";
3
3
  export declare class UIInstancedParticle extends Mesh {
4
4
  private readonly capacityStep;
5
5
  readonly propertyBuffers: Record<string, InstancedBufferAttribute>;
@@ -1,4 +1,5 @@
1
- import { DataTexture, type Vector2Tuple } from "three";
1
+ import type { Vector2Tuple } from "three";
2
+ import { DataTexture } from "three";
2
3
  import type { UIColor } from "../../core";
3
4
  import type { Vector2Like } from "../../core/miscellaneous/math";
4
5
  import type { UITextureConfig } from "../../core/miscellaneous/texture/UITextureView.Internal";
@@ -1,5 +1,5 @@
1
1
  import type { Vector2Like } from "../../core/miscellaneous/math";
2
- import { type UIVector2Config } from "../miscellaneous/miscellaneous";
2
+ import type { UIVector2Config } from "../miscellaneous/miscellaneous";
3
3
  import { UISpawnModule } from "./UISpawnModule";
4
4
  /**
5
5
  * Sets particle spawn position offset.
@@ -1,4 +1,4 @@
1
- import { type UIRange, type UIRangeConfig } from "../miscellaneous/miscellaneous";
1
+ import type { UIRange, UIRangeConfig } from "../miscellaneous/miscellaneous";
2
2
  import { UISpawnModule } from "./UISpawnModule";
3
3
  /**
4
4
  * Assigns random rotation to particles.
@@ -1,4 +1,4 @@
1
- import { type UIAspectConfig, type UIRange, type UIRangeConfig } from "../miscellaneous/miscellaneous";
1
+ import type { UIAspectConfig, UIRange, UIRangeConfig } from "../miscellaneous/miscellaneous";
2
2
  import { UISpawnModule } from "./UISpawnModule";
3
3
  /**
4
4
  * Assigns random scale to particles.
@@ -1,4 +1,4 @@
1
- import { type UIRange, type UIRangeConfig } from "../miscellaneous/miscellaneous";
1
+ import type { UIRange, UIRangeConfig } from "../miscellaneous/miscellaneous";
2
2
  import { UISpawnModule } from "./UISpawnModule";
3
3
  /**
4
4
  * Assigns random angular velocity to particles.
@@ -1,4 +1,4 @@
1
- import { type UIRange, type UIRangeConfig } from "../miscellaneous/miscellaneous";
1
+ import type { UIRange, UIRangeConfig } from "../miscellaneous/miscellaneous";
2
2
  import { UISpawnModule } from "./UISpawnModule";
3
3
  /**
4
4
  * Assigns random velocity to particles.
@@ -1,5 +1,5 @@
1
1
  import type { Vector2Like } from "../../core/miscellaneous/math";
2
- import { type UIVector2Config } from "../miscellaneous/miscellaneous";
2
+ import type { UIVector2Config } from "../miscellaneous/miscellaneous";
3
3
  import { UISpawnModule } from "./UISpawnModule";
4
4
  /**
5
5
  * Spawns particles at random positions within a rectangle.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laymur",
3
- "version": "0.18.1",
3
+ "version": "0.19.1",
4
4
  "description": "Constraint-based UI library for Three.js mobile advertisements",
5
5
  "keywords": [
6
6
  "ui",
@@ -39,6 +39,10 @@
39
39
  "./particles": {
40
40
  "import": "./dist/particles/index.js",
41
41
  "types": "./dist/particles/index.d.ts"
42
+ },
43
+ "./debug": {
44
+ "import": "./dist/debug/index.js",
45
+ "types": "./dist/debug/index.d.ts"
42
46
  }
43
47
  },
44
48
  "peerDependencies": {