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.
- package/README.md +44 -17
- package/dist/core/constraints/UIAspectConstraint/UIAspectConstraint.d.ts +1 -1
- package/dist/core/constraints/UIAspectConstraint/UIAspectConstraint.js +6 -6
- package/dist/core/constraints/UIConstraint.d.ts +1 -0
- package/dist/core/constraints/UIConstraint.js +4 -0
- package/dist/core/constraints/UIHeightConstraint/UIHeightConstraint.d.ts +1 -1
- package/dist/core/constraints/UIHeightConstraint/UIHeightConstraint.js +5 -5
- package/dist/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.d.ts +2 -2
- package/dist/core/constraints/UIHorizontalDistanceConstraint/UIHorizontalDistanceConstraint.js +14 -14
- package/dist/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.d.ts +3 -3
- package/dist/core/constraints/UIHorizontalInterpolationConstraint/UIHorizontalInterpolationConstraint.js +20 -20
- package/dist/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.d.ts +2 -2
- package/dist/core/constraints/UIHorizontalProportionConstraint/UIHorizontalProportionConstraint.js +5 -5
- package/dist/core/constraints/UISingleParameterConstraint/UISingleParameterConstraint.js +1 -0
- package/dist/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.d.ts +2 -2
- package/dist/core/constraints/UIVerticalDistanceConstraint/UIVerticalDistanceConstraint.js +14 -14
- package/dist/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.d.ts +3 -3
- package/dist/core/constraints/UIVerticalInterpolationConstraint/UIVerticalInterpolationConstraint.js +20 -20
- package/dist/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.d.ts +2 -2
- package/dist/core/constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.js +5 -5
- package/dist/core/constraints/UIWidthConstraint/UIWidthConstraint.d.ts +1 -1
- package/dist/core/constraints/UIWidthConstraint/UIWidthConstraint.js +5 -5
- package/dist/core/layers/UILayer/UILayer.d.ts +18 -0
- package/dist/core/layers/UILayer/UILayer.js +48 -0
- package/dist/core/miscellaneous/color/UIColor.js +4 -4
- package/dist/core/miscellaneous/shared.d.ts +8 -0
- package/dist/debug/UIAspectDebug.d.ts +26 -0
- package/dist/debug/UIAspectDebug.js +118 -0
- package/dist/debug/UIConstraintDebug.d.ts +7 -0
- package/dist/debug/UIHeightDebug.d.ts +26 -0
- package/dist/debug/UIHeightDebug.js +111 -0
- package/dist/debug/UIHorizontalDistanceDebug.d.ts +29 -0
- package/dist/debug/UIHorizontalDistanceDebug.js +158 -0
- package/dist/debug/UIHorizontalInterpolationDebug.d.ts +29 -0
- package/dist/debug/UIHorizontalInterpolationDebug.js +145 -0
- package/dist/debug/UILayerDebug.d.ts +34 -0
- package/dist/debug/UILayerDebug.js +124 -0
- package/dist/debug/UIVerticalDistanceDebug.d.ts +29 -0
- package/dist/debug/UIVerticalDistanceDebug.js +158 -0
- package/dist/debug/UIVerticalInterpolationDebug.d.ts +29 -0
- package/dist/debug/UIVerticalInterpolationDebug.js +145 -0
- package/dist/debug/UIWidthDebug.d.ts +26 -0
- package/dist/debug/UIWidthDebug.js +111 -0
- package/dist/debug/index.d.ts +8 -0
- package/dist/debug/index.js +8 -0
- package/dist/debug/miscellaneous.d.ts +8 -0
- package/dist/debug/miscellaneous.js +11 -0
- package/dist/node_modules/three/examples/jsm/lines/Line2.js +56 -0
- package/dist/node_modules/three/examples/jsm/lines/LineGeometry.js +157 -0
- package/dist/node_modules/three/examples/jsm/lines/LineMaterial.js +691 -0
- package/dist/node_modules/three/examples/jsm/lines/LineSegments2.js +415 -0
- package/dist/node_modules/three/examples/jsm/lines/LineSegmentsGeometry.js +289 -0
- package/dist/particles/behaviorModules/UIBehaviorDirectionalGravity.d.ts +1 -1
- package/dist/particles/behaviorModules/UIBehaviorScaleOverLife.d.ts +1 -1
- package/dist/particles/behaviorModules/UIBehaviorTorqueDamping.d.ts +1 -1
- package/dist/particles/behaviorModules/UIBehaviorTorqueNoise.d.ts +1 -1
- package/dist/particles/behaviorModules/UIBehaviorVelocityDamping.d.ts +1 -1
- package/dist/particles/elements/UIEmitter.d.ts +1 -1
- package/dist/particles/instancedParticle/UIInstancedParticle.Internal.d.ts +1 -2
- package/dist/particles/instancedParticle/UIInstancedParticle.d.ts +1 -1
- package/dist/particles/miscellaneous/miscellaneous.d.ts +2 -1
- package/dist/particles/spawnModules/UISpawnOffset.d.ts +1 -1
- package/dist/particles/spawnModules/UISpawnRandomRotation.d.ts +1 -1
- package/dist/particles/spawnModules/UISpawnRandomScale.d.ts +1 -1
- package/dist/particles/spawnModules/UISpawnRandomTorque.d.ts +1 -1
- package/dist/particles/spawnModules/UISpawnRandomVelocity.d.ts +1 -1
- package/dist/particles/spawnModules/UISpawnRectangle.d.ts +1 -1
- package/package.json +5 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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.
|
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import type { Vector2Like } from "../../core/miscellaneous/math";
|
|
2
|
-
import {
|
|
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.
|
|
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": {
|