From 11e721b28ed5978856a66057c0ae73c1bc6e2dc1 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 29 Jun 2023 22:35:29 -0400 Subject: [PATCH] Examples: Clean up. --- types/three/OTHER_FILES.txt | 3 - .../jsm/geometries/LightningStrike.d.ts | 108 ------------------ .../examples/jsm/objects/LightningStorm.d.ts | 32 ------ 3 files changed, 143 deletions(-) delete mode 100644 types/three/examples/jsm/geometries/LightningStrike.d.ts delete mode 100644 types/three/examples/jsm/objects/LightningStorm.d.ts diff --git a/types/three/OTHER_FILES.txt b/types/three/OTHER_FILES.txt index 7091312dd..d72ebc61c 100644 --- a/types/three/OTHER_FILES.txt +++ b/types/three/OTHER_FILES.txt @@ -25,7 +25,6 @@ examples/jsm/exporters/USDZExporter.d.ts examples/jsm/geometries/BoxLineGeometry.d.ts examples/jsm/geometries/ConvexGeometry.d.ts examples/jsm/geometries/DecalGeometry.d.ts -examples/jsm/geometries/LightningStrike.d.ts examples/jsm/geometries/RoundedBoxGeometry.d.ts examples/jsm/geometries/TeapotGeometry.d.ts examples/jsm/helpers/LightProbeHelper.d.ts @@ -88,8 +87,6 @@ examples/jsm/misc/VolumeSlice.d.ts examples/jsm/modifiers/CurveModifier.d.ts examples/jsm/modifiers/EdgeSplitModifier.d.ts examples/jsm/modifiers/SimplifyModifier.d.ts -examples/jsm/objects/LightningStorm.d.ts -examples/jsm/objects/LightningStorm.d.ts examples/jsm/objects/Refractor.d.ts examples/jsm/objects/ShadowMesh.d.ts examples/jsm/objects/Sky.d.ts diff --git a/types/three/examples/jsm/geometries/LightningStrike.d.ts b/types/three/examples/jsm/geometries/LightningStrike.d.ts deleted file mode 100644 index 60bf4fee4..000000000 --- a/types/three/examples/jsm/geometries/LightningStrike.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { BufferGeometry, Vector3 } from '../../../src/Three'; - -export interface RandomGenerator { - random(): number; - getSeed(): number; - setSeed(seed: number): void; -} - -export interface LightningSegment { - iteration: number; - pos0: Vector3; - pos1: Vector3; - linPos0: Vector3; - linPos1: Vector3; - up0: Vector3; - up1: Vector3; - radius0: number; - radius1: number; - fraction0: number; - fraction1: number; - positionVariationFactor: number; -} - -export interface LightningSubray { - seed: number; - maxIterations: number; - recursion: number; - pos0: Vector3; - pos1: Vector3; - linPos0: Vector3; - linPos1: Vector3; - up0: Vector3; - up1: Vector3; - radius0: number; - radius1: number; - birthTime: number; - deathTime: number; - timeScale: number; - roughness: number; - straightness: number; - propagationTimeFactor: number; - vanishingTimeFactor: number; - endPropagationTime: number; - beginVanishingTime: number; -} - -export interface RayParameters { - sourceOffset?: Vector3; - destOffset?: Vector3; - - timeScale?: number; - roughness?: number; - straightness?: number; - - up0?: Vector3; - up1?: Vector3; - radius0?: number; - radius1?: number; - radius0Factor?: number; - radius1Factor?: number; - minRadius?: number; - - isEternal?: boolean; - birthTime?: number; - deathTime?: number; - propagationTimeFactor?: number; - vanishingTimeFactor?: number; - subrayPeriod?: number; - subrayDutyCycle?: number; - - maxIterations?: number; - isStatic?: boolean; - ramification?: number; - maxSubrayRecursion?: number; - recursionProbability?: number; - generateUVs?: boolean; - - randomGenerator?: RandomGenerator; - noiseSeed?: number; - - onDecideSubrayCreation?: (segment: LightningSegment, lightningStrike: LightningStrike) => void; - onSubrayCreation?: ( - segment: LightningSegment, - parentSubray: LightningSubray, - childSubray: LightningSubray, - lightningStrike: LightningStrike, - ) => void; -} - -export class LightningStrike extends BufferGeometry { - constructor(rayParameters?: RayParameters); - copyParameters(dest?: RayParameters, source?: RayParameters): RayParameters; - - // Ray states - static readonly RAY_INITIALIZED: number; - static readonly RAY_UNBORN: number; - static readonly RAY_PROPAGATING: number; - static readonly RAY_STEADY: number; - static readonly RAY_VANISHING: number; - static readonly RAY_EXTINGUISHED: number; - - state: number; - - update(time: number): void; - - copy(source: LightningStrike): this; - clone(): this; -} diff --git a/types/three/examples/jsm/objects/LightningStorm.d.ts b/types/three/examples/jsm/objects/LightningStorm.d.ts deleted file mode 100644 index 225a46ec8..000000000 --- a/types/three/examples/jsm/objects/LightningStorm.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Material, Object3D, Vector3 } from '../../../src/Three'; - -import { LightningStrike, RayParameters } from '../geometries/LightningStrike'; - -export interface StormParams { - size?: number; - minHeight?: number; - maxHeight?: number; - maxSlope?: number; - - maxLightnings?: number; - - lightningMinPeriod?: number; - lightningMaxPeriod?: number; - lightningMinDuration?: number; - lightningMaxDuration?: number; - - lightningParameters?: RayParameters; - lightningMaterial?: Material; - - isEternal?: boolean; - - onRayPosition?: (source: Vector3, dest: Vector3) => void; - onLightningDown?: (lightning: LightningStrike) => void; -} - -export class LightningStorm extends Object3D { - constructor(stormParams?: StormParams); - update(time: number): void; - copy(source: LightningStorm, recursive?: boolean): this; - clone(): this; -}