Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- astra_scene_test/X_03/node_modules/@types/d3-array/LICENSE +21 -0
- astra_scene_test/X_03/node_modules/@types/d3-array/README.md +15 -0
- astra_scene_test/X_03/node_modules/@types/d3-array/index.d.ts +1118 -0
- astra_scene_test/X_03/node_modules/@types/d3-array/package.json +56 -0
- astra_scene_test/X_03/node_modules/@types/d3-color/LICENSE +21 -0
- astra_scene_test/X_03/node_modules/@types/d3-color/README.md +15 -0
- astra_scene_test/X_03/node_modules/@types/d3-color/index.d.ts +669 -0
- astra_scene_test/X_03/node_modules/@types/d3-color/package.json +55 -0
- astra_scene_test/X_03/node_modules/@types/d3-interpolate/LICENSE +21 -0
- astra_scene_test/X_03/node_modules/@types/d3-interpolate/README.md +15 -0
- astra_scene_test/X_03/node_modules/@types/d3-interpolate/index.d.ts +387 -0
- astra_scene_test/X_03/node_modules/@types/d3-interpolate/package.json +47 -0
- astra_scene_test/X_03/node_modules/@types/d3-scale/LICENSE +21 -0
- astra_scene_test/X_03/node_modules/@types/d3-scale/README.md +15 -0
- astra_scene_test/X_03/node_modules/@types/d3-scale/index.d.ts +0 -0
- astra_scene_test/X_03/node_modules/@types/d3-scale/package.json +53 -0
- astra_scene_test/X_03/node_modules/@types/d3-shape/LICENSE +21 -0
- astra_scene_test/X_03/node_modules/@types/d3-shape/README.md +15 -0
- astra_scene_test/X_03/node_modules/@types/d3-shape/index.d.ts +0 -0
- astra_scene_test/X_03/node_modules/@types/d3-shape/package.json +53 -0
- astra_scene_test/X_03/node_modules/@types/d3-time/LICENSE +21 -0
- astra_scene_test/X_03/node_modules/@types/d3-time/README.md +15 -0
- astra_scene_test/X_03/node_modules/@types/d3-time/index.d.ts +697 -0
- astra_scene_test/X_03/node_modules/@types/d3-time/package.json +46 -0
- astra_scene_test/X_03/node_modules/@types/d3-timer/LICENSE +21 -0
- astra_scene_test/X_03/node_modules/@types/d3-timer/README.md +15 -0
- astra_scene_test/X_03/node_modules/@types/d3-timer/index.d.ts +68 -0
- astra_scene_test/X_03/node_modules/@types/d3-timer/package.json +45 -0
- astra_scene_test/X_03/node_modules/@types/three/LICENSE +21 -0
- astra_scene_test/X_03/node_modules/@types/three/README.md +15 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.core.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.core.min.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.d.cts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.module.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.module.min.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.tsl.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.tsl.min.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.webgpu.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.webgpu.min.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.webgpu.nodes.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/build/three.webgpu.nodes.min.d.ts +1 -0
- astra_scene_test/X_03/node_modules/@types/three/examples/jsm/Addons.d.ts +285 -0
- astra_scene_test/X_03/node_modules/@types/three/examples/jsm/animation/AnimationClipCreator.d.ts +12 -0
- astra_scene_test/X_03/node_modules/@types/three/examples/jsm/animation/CCDIKSolver.d.ts +44 -0
- astra_scene_test/X_03/node_modules/@types/three/examples/jsm/capabilities/WebGL.d.ts +6 -0
- astra_scene_test/X_03/node_modules/@types/three/examples/jsm/capabilities/WebGPU.d.ts +7 -0
- astra_scene_test/X_03/node_modules/@types/three/examples/jsm/controls/ArcballControls.d.ts +208 -0
- astra_scene_test/X_03/node_modules/@types/three/examples/jsm/controls/DragControls.d.ts +81 -0
- astra_scene_test/X_03/node_modules/@types/three/examples/jsm/controls/FirstPersonControls.d.ts +101 -0
- astra_scene_test/X_03/node_modules/@types/three/examples/jsm/controls/FlyControls.d.ts +44 -0
astra_scene_test/X_03/node_modules/@types/d3-array/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE
|
astra_scene_test/X_03/node_modules/@types/d3-array/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Installation
|
| 2 |
+
> `npm install --save @types/d3-array`
|
| 3 |
+
|
| 4 |
+
# Summary
|
| 5 |
+
This package contains type definitions for d3-array (https://github.com/d3/d3-array).
|
| 6 |
+
|
| 7 |
+
# Details
|
| 8 |
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-array.
|
| 9 |
+
|
| 10 |
+
### Additional Details
|
| 11 |
+
* Last updated: Fri, 12 Sep 2025 20:02:35 GMT
|
| 12 |
+
* Dependencies: none
|
| 13 |
+
|
| 14 |
+
# Credits
|
| 15 |
+
These definitions were written by [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), [Tom Wanzek](https://github.com/tomwanzek), [denisname](https://github.com/denisname), [Hugues Stefanski](https://github.com/ledragon), [Nathan Bierema](https://github.com/Methuselah96), and [Fil](https://github.com/Fil).
|
astra_scene_test/X_03/node_modules/@types/d3-array/index.d.ts
ADDED
|
@@ -0,0 +1,1118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Last module patch version validated against: 3.2.4
|
| 2 |
+
|
| 3 |
+
// --------------------------------------------------------------------------
|
| 4 |
+
// Shared Types and Interfaces
|
| 5 |
+
// --------------------------------------------------------------------------
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Administrivia: JavaScript primitive types and Date
|
| 9 |
+
*/
|
| 10 |
+
export type Primitive = number | string | boolean | Date;
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
* Administrivia: anything with a valueOf(): number method is comparable, so we allow it in numeric operations
|
| 14 |
+
*/
|
| 15 |
+
export interface Numeric {
|
| 16 |
+
valueOf(): number;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
/**
|
| 20 |
+
* Administrivia: a matrix of numeric values.
|
| 21 |
+
* If height is not specified, it is inferred from the given width and data.length.
|
| 22 |
+
*/
|
| 23 |
+
export interface Matrix {
|
| 24 |
+
data: ArrayLike<number>;
|
| 25 |
+
width: number;
|
| 26 |
+
height?: number;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
/**
|
| 30 |
+
* Represents a nested/recursive InternMap type
|
| 31 |
+
*
|
| 32 |
+
* The first generic "TObject" refers to the type of the data object that is available in the accessor functions.
|
| 33 |
+
* The second generic "TReduce" refers to the type of the data available at the deepest level (the result data).
|
| 34 |
+
* The third generic "TKeys" refers to the type of the keys at each level of the nestes InternMap.
|
| 35 |
+
*/
|
| 36 |
+
export type NestedInternMap<TObject, TReduce, TKeys extends unknown[]> = TKeys extends [infer TFirst, ...infer TRest]
|
| 37 |
+
? InternMap<TFirst, NestedInternMap<TObject, TReduce, TRest>>
|
| 38 |
+
: TReduce;
|
| 39 |
+
|
| 40 |
+
/**
|
| 41 |
+
* Represents a nested/recursive Array type
|
| 42 |
+
*
|
| 43 |
+
* The first generic "TObject" refers to the type of the data object that is available in the accessor functions.
|
| 44 |
+
* The second generic "TReduce" refers to the type of the data available at the deepest level (the result data).
|
| 45 |
+
* The third generic "TKeys" refers to the type of the keys at each level of the nestes Array.
|
| 46 |
+
*/
|
| 47 |
+
export type NestedArray<TObject, TReduce, TKeys extends unknown[]> = TKeys extends [infer TFirst, ...infer TRest]
|
| 48 |
+
? Array<[TFirst, NestedArray<TObject, TReduce, TRest>]>
|
| 49 |
+
: TReduce;
|
| 50 |
+
|
| 51 |
+
// --------------------------------------------------------------------------------------
|
| 52 |
+
// Statistics
|
| 53 |
+
// --------------------------------------------------------------------------------------
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* Return the minimum value in the array using natural order.
|
| 57 |
+
*/
|
| 58 |
+
export function min(iterable: Iterable<string>): string | undefined;
|
| 59 |
+
|
| 60 |
+
/**
|
| 61 |
+
* Return the minimum value in the array using natural order.
|
| 62 |
+
*/
|
| 63 |
+
export function min<T extends Numeric>(iterable: Iterable<T>): T | undefined;
|
| 64 |
+
/**
|
| 65 |
+
* Return the minimum value in the array using natural order.
|
| 66 |
+
*/
|
| 67 |
+
export function min<T>(
|
| 68 |
+
iterable: Iterable<T>,
|
| 69 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => string | undefined | null,
|
| 70 |
+
): string | undefined;
|
| 71 |
+
/**
|
| 72 |
+
* Return the minimum value in the array using natural order.
|
| 73 |
+
*/
|
| 74 |
+
export function min<T, U extends Numeric>(
|
| 75 |
+
iterable: Iterable<T>,
|
| 76 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => U | undefined | null,
|
| 77 |
+
): U | undefined;
|
| 78 |
+
|
| 79 |
+
/**
|
| 80 |
+
* Return the index of the minimum value in the array using natural order.
|
| 81 |
+
*/
|
| 82 |
+
export function minIndex(iterable: Iterable<unknown>): number;
|
| 83 |
+
/**
|
| 84 |
+
* Return the index of the minimum value in the array using natural order and a projection function to map values.
|
| 85 |
+
*/
|
| 86 |
+
export function minIndex<TDatum>(
|
| 87 |
+
iterable: Iterable<TDatum>,
|
| 88 |
+
accessor: (datum: TDatum, index: number, array: Iterable<TDatum>) => unknown,
|
| 89 |
+
): number;
|
| 90 |
+
/**
|
| 91 |
+
* Return the index of the minimum value in the array using natural order.
|
| 92 |
+
*/
|
| 93 |
+
export function minIndex(iterable: Iterable<unknown>): number;
|
| 94 |
+
|
| 95 |
+
/**
|
| 96 |
+
* Return the maximum value in the array of strings using natural order.
|
| 97 |
+
*/
|
| 98 |
+
export function max(iterable: Iterable<string>): string | undefined;
|
| 99 |
+
/**
|
| 100 |
+
* Return the maximum value in the array of numbers using natural order.
|
| 101 |
+
*/
|
| 102 |
+
export function max<T extends Numeric>(iterable: Iterable<T>): T | undefined;
|
| 103 |
+
/**
|
| 104 |
+
* Return the maximum value in the array using natural order and a projection function to map values to strings.
|
| 105 |
+
*/
|
| 106 |
+
export function max<T>(
|
| 107 |
+
iterable: Iterable<T>,
|
| 108 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => string | undefined | null,
|
| 109 |
+
): string | undefined;
|
| 110 |
+
/**
|
| 111 |
+
* Return the maximum value in the array using natural order and a projection function to map values to easily-sorted values.
|
| 112 |
+
*/
|
| 113 |
+
export function max<T, U extends Numeric>(
|
| 114 |
+
iterable: Iterable<T>,
|
| 115 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => U | undefined | null,
|
| 116 |
+
): U | undefined;
|
| 117 |
+
|
| 118 |
+
/**
|
| 119 |
+
* Return the index of the maximum value in the array using natural order.
|
| 120 |
+
*/
|
| 121 |
+
export function maxIndex(iterable: Iterable<unknown>): number;
|
| 122 |
+
/**
|
| 123 |
+
* Return the index of the maximum value in the array using natural order and a projection function to map values.
|
| 124 |
+
*/
|
| 125 |
+
export function maxIndex<TDatum>(
|
| 126 |
+
iterable: Iterable<TDatum>,
|
| 127 |
+
accessor: (datum: TDatum, index: number, array: Iterable<TDatum>) => unknown,
|
| 128 |
+
): number;
|
| 129 |
+
|
| 130 |
+
/**
|
| 131 |
+
* Return the min and max simultaneously.
|
| 132 |
+
*/
|
| 133 |
+
export function extent(iterable: Iterable<string>): [string, string] | [undefined, undefined];
|
| 134 |
+
/**
|
| 135 |
+
* Return the min and max simultaneously.
|
| 136 |
+
*/
|
| 137 |
+
export function extent<T extends Numeric>(iterable: Iterable<T>): [T, T] | [undefined, undefined];
|
| 138 |
+
/**
|
| 139 |
+
* Return the min and max simultaneously.
|
| 140 |
+
*/
|
| 141 |
+
export function extent<T>(
|
| 142 |
+
iterable: Iterable<T>,
|
| 143 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => string | undefined | null,
|
| 144 |
+
): [string, string] | [undefined, undefined];
|
| 145 |
+
/**
|
| 146 |
+
* Return the min and max simultaneously.
|
| 147 |
+
*/
|
| 148 |
+
export function extent<T, U extends Numeric>(
|
| 149 |
+
iterable: Iterable<T>,
|
| 150 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => U | undefined | null,
|
| 151 |
+
): [U, U] | [undefined, undefined];
|
| 152 |
+
|
| 153 |
+
/**
|
| 154 |
+
* Returns the mode of the given iterable, i.e. the value which appears the most often.
|
| 155 |
+
* In case of equality, returns the first of the relevant values.
|
| 156 |
+
* If the iterable contains no comparable values, returns undefined.
|
| 157 |
+
* An optional accessor function may be specified, which is equivalent to calling Array.from before computing the mode.
|
| 158 |
+
* This method ignores undefined, null and NaN values; this is useful for ignoring missing data.
|
| 159 |
+
*/
|
| 160 |
+
export function mode(iterable: Iterable<Numeric | undefined | null>): number;
|
| 161 |
+
/**
|
| 162 |
+
* Returns the mode of the given iterable, i.e. the value which appears the most often.
|
| 163 |
+
* In case of equality, returns the first of the relevant values.
|
| 164 |
+
* If the iterable contains no comparable values, returns undefined.
|
| 165 |
+
* An optional accessor function may be specified, which is equivalent to calling Array.from before computing the mode.
|
| 166 |
+
* This method ignores undefined, null and NaN values; this is useful for ignoring missing data.
|
| 167 |
+
*/
|
| 168 |
+
export function mode<T>(
|
| 169 |
+
iterable: Iterable<T>,
|
| 170 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => number | undefined | null,
|
| 171 |
+
): number;
|
| 172 |
+
|
| 173 |
+
/**
|
| 174 |
+
* Compute the sum of an array of numbers.
|
| 175 |
+
*/
|
| 176 |
+
export function sum(iterable: Iterable<Numeric | undefined | null>): number;
|
| 177 |
+
/**
|
| 178 |
+
* Compute the sum of an array, using the given accessor to convert values to numbers.
|
| 179 |
+
*/
|
| 180 |
+
export function sum<T>(
|
| 181 |
+
iterable: Iterable<T>,
|
| 182 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => number | undefined | null,
|
| 183 |
+
): number;
|
| 184 |
+
|
| 185 |
+
/**
|
| 186 |
+
* Return the mean of an array of numbers
|
| 187 |
+
*/
|
| 188 |
+
export function mean(iterable: Iterable<Numeric | undefined | null>): number | undefined;
|
| 189 |
+
/**
|
| 190 |
+
* Return the mean of an array of numbers
|
| 191 |
+
*/
|
| 192 |
+
export function mean<T>(
|
| 193 |
+
iterable: Iterable<T>,
|
| 194 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => number | undefined | null,
|
| 195 |
+
): number | undefined;
|
| 196 |
+
|
| 197 |
+
/**
|
| 198 |
+
* Return the median of an array of numbers
|
| 199 |
+
*/
|
| 200 |
+
export function median(iterable: Iterable<Numeric | undefined | null>): number | undefined;
|
| 201 |
+
/**
|
| 202 |
+
* Return the median of an array of numbers
|
| 203 |
+
*/
|
| 204 |
+
export function median<T>(
|
| 205 |
+
iterable: Iterable<T>,
|
| 206 |
+
accessor: (element: T, i: number, array: Iterable<T>) => number | undefined | null,
|
| 207 |
+
): number | undefined;
|
| 208 |
+
|
| 209 |
+
/**
|
| 210 |
+
* Like median, but returns the index of the element to the left of the median.
|
| 211 |
+
*/
|
| 212 |
+
export function medianIndex(iterable: Iterable<Numeric | undefined | null>): number;
|
| 213 |
+
/**
|
| 214 |
+
* Like median, but returns the index of the element to the left of the median.
|
| 215 |
+
*/
|
| 216 |
+
export function medianIndex<T>(
|
| 217 |
+
iterable: Iterable<T>,
|
| 218 |
+
accessor: (element: T, i: number, array: Iterable<T>) => number | undefined | null,
|
| 219 |
+
): number;
|
| 220 |
+
|
| 221 |
+
/**
|
| 222 |
+
* Returns the cumulative sum of the given iterable of numbers, as a Float64Array of the same length.
|
| 223 |
+
* If the iterable contains no numbers, returns zeros.
|
| 224 |
+
* An optional accessor function may be specified, which is equivalent to calling Array.from before computing the cumulative sum.
|
| 225 |
+
* This method ignores undefined and NaN values; this is useful for ignoring missing data.
|
| 226 |
+
*/
|
| 227 |
+
export function cumsum(iterable: Iterable<Numeric | undefined | null>): Float64Array;
|
| 228 |
+
/**
|
| 229 |
+
* Returns the cumulative sum of the given iterable of numbers, as a Float64Array of the same length.
|
| 230 |
+
* If the iterable contains no numbers, returns zeros.
|
| 231 |
+
* An optional accessor function may be specified, which is equivalent to calling Array.from before computing the cumulative sum.
|
| 232 |
+
* This method ignores undefined and NaN values; this is useful for ignoring missing data.
|
| 233 |
+
*/
|
| 234 |
+
export function cumsum<T>(
|
| 235 |
+
iterable: Iterable<T>,
|
| 236 |
+
accessor: (element: T, i: number, array: Iterable<T>) => number | undefined | null,
|
| 237 |
+
): Float64Array;
|
| 238 |
+
|
| 239 |
+
/**
|
| 240 |
+
* Returns the p-quantile of the given iterable of numbers, where p is a number in the range [0, 1].
|
| 241 |
+
*
|
| 242 |
+
* An optional accessor function may be specified, which is equivalent to calling array.map(accessor) before computing the quantile.
|
| 243 |
+
*/
|
| 244 |
+
export function quantile(iterable: Iterable<Numeric | undefined | null>, p: number): number | undefined;
|
| 245 |
+
/**
|
| 246 |
+
* Returns the p-quantile of the given iterable of numbers, where p is a number in the range [0, 1].
|
| 247 |
+
*
|
| 248 |
+
* An optional accessor function may be specified, which is equivalent to calling array.map(accessor) before computing the quantile.
|
| 249 |
+
*/
|
| 250 |
+
export function quantile<T>(
|
| 251 |
+
iterable: Iterable<T>,
|
| 252 |
+
p: number,
|
| 253 |
+
accessor: (element: T, i: number, array: Iterable<T>) => number | undefined | null,
|
| 254 |
+
): number | undefined;
|
| 255 |
+
|
| 256 |
+
/**
|
| 257 |
+
* Similar to quantile, but returns the index to the left of p.
|
| 258 |
+
*/
|
| 259 |
+
export function quantileIndex(iterable: Iterable<Numeric | undefined | null>, p: number): number;
|
| 260 |
+
/**
|
| 261 |
+
* Similar to quantile, but returns the index to the left of p.
|
| 262 |
+
*/
|
| 263 |
+
export function quantileIndex<T>(
|
| 264 |
+
iterable: Iterable<T>,
|
| 265 |
+
p: number,
|
| 266 |
+
accessor: (element: T, i: number, array: Iterable<T>) => number | undefined | null,
|
| 267 |
+
): number;
|
| 268 |
+
|
| 269 |
+
/**
|
| 270 |
+
* Similar to quantile, but expects the input to be a sorted array of values.
|
| 271 |
+
* In contrast with quantile, the accessor is only called on the elements needed to compute the quantile.
|
| 272 |
+
*/
|
| 273 |
+
export function quantileSorted(
|
| 274 |
+
array: Array<Numeric | undefined | null>,
|
| 275 |
+
p: number,
|
| 276 |
+
): number | undefined;
|
| 277 |
+
/**
|
| 278 |
+
* Similar to quantile, but expects the input to be a sorted array of values.
|
| 279 |
+
* In contrast with quantile, the accessor is only called on the elements needed to compute the quantile.
|
| 280 |
+
*/
|
| 281 |
+
export function quantileSorted<T>(
|
| 282 |
+
array: T[],
|
| 283 |
+
p: number,
|
| 284 |
+
accessor: (element: T, i: number, array: T[]) => number | undefined | null,
|
| 285 |
+
): number | undefined;
|
| 286 |
+
|
| 287 |
+
/**
|
| 288 |
+
* Returns an array with the rank of each value in the iterable, i.e. the zero-based index of the value when the iterable is sorted.
|
| 289 |
+
* Nullish values are sorted to the end and ranked NaN.
|
| 290 |
+
* An optional comparator or accessor function may be specified; the latter is equivalent to calling array.map(accessor) before computing the ranks.
|
| 291 |
+
* If comparator is not specified, it defaults to ascending.
|
| 292 |
+
* Ties (equivalent values) all get the same rank, defined as the first time the value is found.
|
| 293 |
+
*/
|
| 294 |
+
export function rank(iterable: Iterable<Numeric | undefined | null>): Float64Array;
|
| 295 |
+
/**
|
| 296 |
+
* Returns an array with the rank of each value in the iterable, i.e. the zero-based index of the value when the iterable is sorted.
|
| 297 |
+
* Nullish values are sorted to the end and ranked NaN.
|
| 298 |
+
* An optional comparator or accessor function may be specified; the latter is equivalent to calling array.map(accessor) before computing the ranks.
|
| 299 |
+
* If comparator is not specified, it defaults to ascending.
|
| 300 |
+
* Ties (equivalent values) all get the same rank, defined as the first time the value is found.
|
| 301 |
+
*/
|
| 302 |
+
export function rank<T>(
|
| 303 |
+
iterable: Iterable<T>,
|
| 304 |
+
accessorOrComparator:
|
| 305 |
+
| ((datum: T, index: number, array: Iterable<T>) => number | undefined | null)
|
| 306 |
+
| ((a: T, b: T) => number | undefined | null),
|
| 307 |
+
): Float64Array;
|
| 308 |
+
|
| 309 |
+
/**
|
| 310 |
+
* Returns an unbiased estimator of the population variance of the given iterable of numbers using Welford’s algorithm.
|
| 311 |
+
* If the iterable has fewer than two numbers, returns undefined.
|
| 312 |
+
* An optional accessor function may be specified, which is equivalent to calling Array.from before computing the variance.
|
| 313 |
+
* This method ignores undefined and NaN values; this is useful for ignoring missing data.
|
| 314 |
+
*/
|
| 315 |
+
export function variance(iterable: Iterable<Numeric | undefined | null>): number | undefined;
|
| 316 |
+
/**
|
| 317 |
+
* Returns an unbiased estimator of the population variance of the given iterable of numbers using Welford’s algorithm.
|
| 318 |
+
* If the iterable has fewer than two numbers, returns undefined.
|
| 319 |
+
* An optional accessor function may be specified, which is equivalent to calling Array.from before computing the variance.
|
| 320 |
+
* This method ignores undefined and NaN values; this is useful for ignoring missing data.
|
| 321 |
+
*/
|
| 322 |
+
export function variance<T>(
|
| 323 |
+
iterable: Iterable<T>,
|
| 324 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => number | undefined | null,
|
| 325 |
+
): number | undefined;
|
| 326 |
+
|
| 327 |
+
/**
|
| 328 |
+
* Compute the standard deviation, defined as the square root of the bias-corrected variance, of the given array of numbers.
|
| 329 |
+
*/
|
| 330 |
+
export function deviation(iterable: Iterable<Numeric | undefined | null>): number | undefined;
|
| 331 |
+
/**
|
| 332 |
+
* Compute the standard deviation, defined as the square root of the bias-corrected variance, of the given array,
|
| 333 |
+
* using the given accessor to convert values to numbers.
|
| 334 |
+
*/
|
| 335 |
+
export function deviation<T>(
|
| 336 |
+
iterable: Iterable<T>,
|
| 337 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => number | undefined | null,
|
| 338 |
+
): number | undefined;
|
| 339 |
+
|
| 340 |
+
/**
|
| 341 |
+
* Returns a full precision summation of the given values.
|
| 342 |
+
* Although slower, d3.fsum can replace d3.sum wherever greater precision is needed. Uses d3.Adder.
|
| 343 |
+
*/
|
| 344 |
+
export function fsum(values: Iterable<Numeric | undefined | null>): number;
|
| 345 |
+
/**
|
| 346 |
+
* Returns a full precision summation of the given values.
|
| 347 |
+
* Although slower, d3.fsum can replace d3.sum wherever greater precision is needed. Uses d3.Adder.
|
| 348 |
+
*/
|
| 349 |
+
export function fsum<T>(
|
| 350 |
+
values: Iterable<T>,
|
| 351 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => number | undefined | null,
|
| 352 |
+
): number;
|
| 353 |
+
|
| 354 |
+
/**
|
| 355 |
+
* Returns a full precision cumulative sum of the given values.
|
| 356 |
+
* Although slower, d3.fcumsum can replace d3.cumsum when greater precision is needed. Uses d3.Adder.
|
| 357 |
+
*/
|
| 358 |
+
export function fcumsum(values: Iterable<Numeric | undefined | null>): Float64Array;
|
| 359 |
+
/**
|
| 360 |
+
* Returns a full precision cumulative sum of the given values.
|
| 361 |
+
* Although slower, d3.fcumsum can replace d3.cumsum when greater precision is needed. Uses d3.Adder.
|
| 362 |
+
*/
|
| 363 |
+
export function fcumsum<T>(
|
| 364 |
+
values: Iterable<T>,
|
| 365 |
+
accessor: (datum: T, index: number, array: Iterable<T>) => number | undefined | null,
|
| 366 |
+
): Float64Array;
|
| 367 |
+
|
| 368 |
+
export class Adder {
|
| 369 |
+
/**
|
| 370 |
+
* Creates a full precision adder for IEEE 754 floating point numbers, setting its initial value to 0.
|
| 371 |
+
*/
|
| 372 |
+
constructor();
|
| 373 |
+
|
| 374 |
+
/**
|
| 375 |
+
* Adds the specified number to the adder’s current value and returns the adder.
|
| 376 |
+
*/
|
| 377 |
+
add(number: number): Adder;
|
| 378 |
+
|
| 379 |
+
/**
|
| 380 |
+
* Returns the IEEE 754 double precision representation of the adder’s current value.
|
| 381 |
+
* Most useful as the short-hand notation +adder.
|
| 382 |
+
*/
|
| 383 |
+
valueOf(): number;
|
| 384 |
+
}
|
| 385 |
+
|
| 386 |
+
// --------------------------------------------------------------------------------------
|
| 387 |
+
// Search
|
| 388 |
+
// --------------------------------------------------------------------------------------
|
| 389 |
+
|
| 390 |
+
/**
|
| 391 |
+
* Returns the least element of the specified iterable according to the specified comparator.
|
| 392 |
+
* If comparator is not specified, it defaults to ascending.
|
| 393 |
+
*/
|
| 394 |
+
export function least<T>(iterable: Iterable<T>, comparator?: (a: T, b: T) => number): T | undefined;
|
| 395 |
+
/**
|
| 396 |
+
* Returns the least element of the specified iterable according to the specified accessor.
|
| 397 |
+
*/
|
| 398 |
+
export function least<T>(iterable: Iterable<T>, accessor: (a: T) => unknown): T | undefined;
|
| 399 |
+
|
| 400 |
+
/**
|
| 401 |
+
* Returns the index of the least element of the specified iterable according to the specified comparator.
|
| 402 |
+
*/
|
| 403 |
+
export function leastIndex(iterable: Iterable<unknown>): number | undefined;
|
| 404 |
+
/**
|
| 405 |
+
* Returns the index of the least element of the specified iterable according to the specified comparator.
|
| 406 |
+
*/
|
| 407 |
+
export function leastIndex<T>(iterable: Iterable<T>, comparator: (a: T, b: T) => number): number | undefined;
|
| 408 |
+
/**
|
| 409 |
+
* Returns the index of the least element of the specified iterable according to the specified accessor.
|
| 410 |
+
*/
|
| 411 |
+
// tslint:disable-next-line:unified-signatures
|
| 412 |
+
export function leastIndex<T>(iterable: Iterable<T>, accessor: (a: T) => unknown): number | undefined;
|
| 413 |
+
|
| 414 |
+
/**
|
| 415 |
+
* Returns the greatest element of the specified iterable according to the specified comparator or accessor.
|
| 416 |
+
* If the given iterable contains no comparable elements (i.e., the comparator returns NaN when comparing each element to itself), returns undefined.
|
| 417 |
+
* If comparator is not specified, it defaults to ascending.
|
| 418 |
+
*/
|
| 419 |
+
export function greatest<T>(iterable: Iterable<T>, comparator?: (a: T, b: T) => number): T | undefined;
|
| 420 |
+
/**
|
| 421 |
+
* Returns the greatest element of the specified iterable according to the specified comparator or accessor.
|
| 422 |
+
* If the given iterable contains no comparable elements (i.e., the comparator returns NaN when comparing each element to itself), returns undefined.
|
| 423 |
+
* If comparator is not specified, it defaults to ascending.
|
| 424 |
+
*/
|
| 425 |
+
export function greatest<T>(iterable: Iterable<T>, accessor: (a: T) => unknown): T | undefined;
|
| 426 |
+
|
| 427 |
+
/**
|
| 428 |
+
* Returns the index of the greatest element of the specified iterable according to the specified comparator or accessor.
|
| 429 |
+
* If the given iterable contains no comparable elements (i.e., the comparator returns NaN when comparing each element to itself), returns -1.
|
| 430 |
+
* If comparator is not specified, it defaults to ascending.
|
| 431 |
+
*/
|
| 432 |
+
export function greatestIndex(iterable: Iterable<unknown>): number | undefined;
|
| 433 |
+
/**
|
| 434 |
+
* Returns the index of the greatest element of the specified iterable according to the specified comparator or accessor.
|
| 435 |
+
* If the given iterable contains no comparable elements (i.e., the comparator returns NaN when comparing each element to itself), returns -1.
|
| 436 |
+
* If comparator is not specified, it defaults to ascending.
|
| 437 |
+
*/
|
| 438 |
+
export function greatestIndex<T>(iterable: Iterable<T>, comparator: (a: T, b: T) => number): number | undefined;
|
| 439 |
+
/**
|
| 440 |
+
* Returns the index of the greatest element of the specified iterable according to the specified comparator or accessor.
|
| 441 |
+
* If the given iterable contains no comparable elements (i.e., the comparator returns NaN when comparing each element to itself), returns -1.
|
| 442 |
+
* If comparator is not specified, it defaults to ascending.
|
| 443 |
+
*/
|
| 444 |
+
// tslint:disable-next-line:unified-signatures
|
| 445 |
+
export function greatestIndex<T>(iterable: Iterable<T>, accessor: (a: T) => unknown): number | undefined;
|
| 446 |
+
|
| 447 |
+
export function bisectLeft(array: ArrayLike<number>, x: number, lo?: number, hi?: number): number;
|
| 448 |
+
export function bisectLeft(array: ArrayLike<string>, x: string, lo?: number, hi?: number): number;
|
| 449 |
+
export function bisectLeft(array: ArrayLike<Date>, x: Date, lo?: number, hi?: number): number;
|
| 450 |
+
|
| 451 |
+
export function bisectRight(array: ArrayLike<number>, x: number, lo?: number, hi?: number): number;
|
| 452 |
+
export function bisectRight(array: ArrayLike<string>, x: string, lo?: number, hi?: number): number;
|
| 453 |
+
export function bisectRight(array: ArrayLike<Date>, x: Date, lo?: number, hi?: number): number;
|
| 454 |
+
|
| 455 |
+
export function bisectCenter(array: ArrayLike<number>, x: number, lo?: number, hi?: number): number;
|
| 456 |
+
export function bisectCenter(array: ArrayLike<string>, x: string, lo?: number, hi?: number): number;
|
| 457 |
+
export function bisectCenter(array: ArrayLike<Date>, x: Date, lo?: number, hi?: number): number;
|
| 458 |
+
|
| 459 |
+
export const bisect: typeof bisectRight;
|
| 460 |
+
|
| 461 |
+
export interface Bisector<T, U> {
|
| 462 |
+
left(array: ArrayLike<T>, x: U, lo?: number, hi?: number): number;
|
| 463 |
+
right(array: ArrayLike<T>, x: U, lo?: number, hi?: number): number;
|
| 464 |
+
center(array: ArrayLike<T>, x: U, lo?: number, hi?: number): number;
|
| 465 |
+
}
|
| 466 |
+
|
| 467 |
+
export function bisector<T, U>(comparator: (a: T, b: U) => number): Bisector<T, U>;
|
| 468 |
+
// tslint:disable-next-line:unified-signatures
|
| 469 |
+
export function bisector<T, U>(accessor: (x: T) => U): Bisector<T, U>;
|
| 470 |
+
|
| 471 |
+
/**
|
| 472 |
+
* Rearranges items so that all items in the [left, k] are the smallest. The k-th element will have the (k - left + 1)-th smallest value in [left, right].
|
| 473 |
+
*
|
| 474 |
+
* @param array The array to partially sort (in place).
|
| 475 |
+
* @param k The middle index for partial sorting.
|
| 476 |
+
* @param left The left index of the range to sort.
|
| 477 |
+
* @param right The right index.
|
| 478 |
+
* @param compare The compare function.
|
| 479 |
+
*/
|
| 480 |
+
export function quickselect<T>(
|
| 481 |
+
array: ArrayLike<T>,
|
| 482 |
+
k: number,
|
| 483 |
+
left?: number,
|
| 484 |
+
right?: number,
|
| 485 |
+
compare?: (a: Primitive | undefined, b: Primitive | undefined) => number,
|
| 486 |
+
): T[];
|
| 487 |
+
|
| 488 |
+
// NB. this is limited to primitive values due to D3's use of the <, >, and >= operators. Results get weird for object instances.
|
| 489 |
+
/**
|
| 490 |
+
* Compares two primitive values for sorting (in ascending order).
|
| 491 |
+
*/
|
| 492 |
+
export function ascending(a: Primitive | undefined, b: Primitive | undefined): number;
|
| 493 |
+
|
| 494 |
+
// NB. this is limited to primitive values due to D3's use of the <, >, and >= operators. Results get weird for object instances.
|
| 495 |
+
/**
|
| 496 |
+
* Compares two primitive values for sorting (in descending order).
|
| 497 |
+
*/
|
| 498 |
+
export function descending(a: Primitive | undefined, b: Primitive | undefined): number;
|
| 499 |
+
|
| 500 |
+
// --------------------------------------------------------------------------------------
|
| 501 |
+
// Transformations
|
| 502 |
+
// --------------------------------------------------------------------------------------
|
| 503 |
+
|
| 504 |
+
/**
|
| 505 |
+
* Groups the specified iterable of values into an InternMap from key to array of value.
|
| 506 |
+
*
|
| 507 |
+
* @param iterable The iterable to group.
|
| 508 |
+
* @param keys The key functions.
|
| 509 |
+
*/
|
| 510 |
+
export function group<TObject, TKeys extends unknown[]>(
|
| 511 |
+
iterable: Iterable<TObject>,
|
| 512 |
+
...keys: {
|
| 513 |
+
[Index in keyof TKeys]: (value: TObject, index: number, values: TObject[]) => TKeys[Index];
|
| 514 |
+
}
|
| 515 |
+
): NestedInternMap<TObject, TObject[], TKeys>;
|
| 516 |
+
|
| 517 |
+
/**
|
| 518 |
+
* Equivalent to group, but returns nested arrays instead of nested maps.
|
| 519 |
+
*
|
| 520 |
+
* @param iterable The iterable to group.
|
| 521 |
+
* @param keys The key functions.
|
| 522 |
+
*/
|
| 523 |
+
export function groups<TObject, TKeys extends unknown[]>(
|
| 524 |
+
iterable: Iterable<TObject>,
|
| 525 |
+
...keys: {
|
| 526 |
+
[Index in keyof TKeys]: (value: TObject, index: number, values: TObject[]) => TKeys[Index];
|
| 527 |
+
}
|
| 528 |
+
): NestedArray<TObject, TObject[], TKeys>;
|
| 529 |
+
|
| 530 |
+
/**
|
| 531 |
+
* Equivalent to group, but returns a flat array of [key0, key1, …, values] instead of nested maps.
|
| 532 |
+
*
|
| 533 |
+
* @param iterable The iterable to group.
|
| 534 |
+
* @param keys The key functions.
|
| 535 |
+
*/
|
| 536 |
+
export function flatGroup<TObject, TKeys extends unknown[]>(
|
| 537 |
+
iterable: Iterable<TObject>,
|
| 538 |
+
...keys: {
|
| 539 |
+
[Index in keyof TKeys]: (value: TObject, index: number, values: TObject[]) => TKeys[Index];
|
| 540 |
+
}
|
| 541 |
+
): Array<[...TKeys, TObject[]]>;
|
| 542 |
+
|
| 543 |
+
/**
|
| 544 |
+
* Equivalent to group but returns a unique value per compound key instead of an array, throwing if the key is not unique.
|
| 545 |
+
*
|
| 546 |
+
* @param iterable The iterable to group.
|
| 547 |
+
* @param key The key functions.
|
| 548 |
+
*/
|
| 549 |
+
export function index<TObject, TKeys extends unknown[]>(
|
| 550 |
+
iterable: Iterable<TObject>,
|
| 551 |
+
...keys: {
|
| 552 |
+
[Index in keyof TKeys]: (value: TObject, index: number, values: TObject[]) => TKeys[Index];
|
| 553 |
+
}
|
| 554 |
+
): NestedInternMap<TObject, TObject, TKeys>;
|
| 555 |
+
|
| 556 |
+
/**
|
| 557 |
+
* Equivalent to index, but returns nested arrays instead of nested maps.
|
| 558 |
+
*
|
| 559 |
+
* @param iterable The iterable to group.
|
| 560 |
+
* @param keys The key functions.
|
| 561 |
+
*/
|
| 562 |
+
export function indexes<TObject, TKeys extends unknown[]>(
|
| 563 |
+
iterable: Iterable<TObject>,
|
| 564 |
+
...keys: {
|
| 565 |
+
[Index in keyof TKeys]: (value: TObject, index: number, values: TObject[]) => TKeys[Index];
|
| 566 |
+
}
|
| 567 |
+
): NestedArray<TObject, TObject, TKeys>;
|
| 568 |
+
|
| 569 |
+
/**
|
| 570 |
+
* Groups and reduces the specified array of values into an InternMap from key to value.
|
| 571 |
+
*
|
| 572 |
+
* @param iterable The iterable to group.
|
| 573 |
+
* @param reduce The reduce function.
|
| 574 |
+
* @param keys The key functions.
|
| 575 |
+
*/
|
| 576 |
+
export function rollup<TObject, TReduce, TKeys extends unknown[]>(
|
| 577 |
+
iterable: Iterable<TObject>,
|
| 578 |
+
reduce: (values: TObject[]) => TReduce,
|
| 579 |
+
...keys: {
|
| 580 |
+
[Index in keyof TKeys]: (value: TObject, index: number, values: TObject[]) => TKeys[Index];
|
| 581 |
+
}
|
| 582 |
+
): NestedInternMap<TObject, TReduce, TKeys>;
|
| 583 |
+
|
| 584 |
+
/**
|
| 585 |
+
* Equivalent to rollup, but returns nested arrays instead of nested maps.
|
| 586 |
+
*
|
| 587 |
+
* @param iterable The iterable to group.
|
| 588 |
+
* @param reduce The reduce function.
|
| 589 |
+
* @param keys The key functions.
|
| 590 |
+
*/
|
| 591 |
+
export function rollups<TObject, TReduce, TKeys extends unknown[]>(
|
| 592 |
+
iterable: Iterable<TObject>,
|
| 593 |
+
reduce: (values: TObject[]) => TReduce,
|
| 594 |
+
...keys: {
|
| 595 |
+
[Index in keyof TKeys]: (value: TObject, index: number, values: TObject[]) => TKeys[Index];
|
| 596 |
+
}
|
| 597 |
+
): NestedArray<TObject, TReduce, TKeys>;
|
| 598 |
+
|
| 599 |
+
/**
|
| 600 |
+
* Equivalent to rollup, but returns a flat array of [key0, key1, …, value] instead of nested maps.
|
| 601 |
+
*
|
| 602 |
+
* @param iterable The iterable to group.
|
| 603 |
+
* @param reduce The reduce function.
|
| 604 |
+
* @param keys The key functions.
|
| 605 |
+
*/
|
| 606 |
+
export function flatRollup<TObject, TReduce, TKeys extends unknown[]>(
|
| 607 |
+
iterable: Iterable<TObject>,
|
| 608 |
+
reduce: (values: TObject[]) => TReduce,
|
| 609 |
+
...keys: {
|
| 610 |
+
[Index in keyof TKeys]: (value: TObject, index: number, values: TObject[]) => TKeys[Index];
|
| 611 |
+
}
|
| 612 |
+
): Array<[...TKeys, TReduce]>;
|
| 613 |
+
|
| 614 |
+
/**
|
| 615 |
+
* Groups the specified iterable of elements according to the specified key function, sorts the groups according to the specified comparator, and then returns an array of keys in sorted order.
|
| 616 |
+
* The comparator will be asked to compare two groups a and b and should return a negative value if a should be before b, a positive value if a should be after b, or zero for a partial ordering.
|
| 617 |
+
*/
|
| 618 |
+
export function groupSort<TObject, TKey>(
|
| 619 |
+
iterable: Iterable<TObject>,
|
| 620 |
+
comparator: (a: TObject[], b: TObject[]) => number,
|
| 621 |
+
key: (value: TObject) => TKey,
|
| 622 |
+
): TKey[];
|
| 623 |
+
/**
|
| 624 |
+
* Groups the specified iterable of elements according to the specified key function, sorts the groups according to the specified accessor, and then returns an array of keys in sorted order.
|
| 625 |
+
*/
|
| 626 |
+
export function groupSort<TObject, TKey>(
|
| 627 |
+
iterable: Iterable<TObject>,
|
| 628 |
+
// tslint:disable-next-line:unified-signatures
|
| 629 |
+
accessor: (value: TObject[]) => unknown,
|
| 630 |
+
key: (value: TObject) => TKey,
|
| 631 |
+
): TKey[];
|
| 632 |
+
|
| 633 |
+
/**
|
| 634 |
+
* Returns the number of valid number values (i.e., not null, NaN, or undefined) in the specified iterable; accepts an accessor.
|
| 635 |
+
*
|
| 636 |
+
* @param iterable Input array.
|
| 637 |
+
*/
|
| 638 |
+
export function count(iterable: Iterable<unknown>): number;
|
| 639 |
+
/**
|
| 640 |
+
* Returns the number of valid number values (i.e., not null, NaN, or undefined) in the specified iterable; accepts an accessor.
|
| 641 |
+
*
|
| 642 |
+
* @param iterable Input array.
|
| 643 |
+
* @param accessor Accessor method.
|
| 644 |
+
*/
|
| 645 |
+
export function count<TObject>(
|
| 646 |
+
iterable: Iterable<TObject>,
|
| 647 |
+
accessor: (a: TObject, b: TObject) => number | null | undefined,
|
| 648 |
+
): number;
|
| 649 |
+
|
| 650 |
+
/**
|
| 651 |
+
* Computes the Cartesian product of any number of iterables.
|
| 652 |
+
*
|
| 653 |
+
* When called **without** a reducer, the result is an array of tuples,
|
| 654 |
+
* where each tuple contains one element from each input iterable.
|
| 655 |
+
*
|
| 656 |
+
* @typeParam T - A tuple type describing the element type of each iterable argument.
|
| 657 |
+
* For example, passing `[number[], string[]]` infers `T` as `[number, string]`.
|
| 658 |
+
*
|
| 659 |
+
* @param iterables - Two or more iterables to combine into a Cartesian product.
|
| 660 |
+
* @returns An array of tuples containing one value from each iterable.
|
| 661 |
+
*
|
| 662 |
+
* @example
|
| 663 |
+
* ```ts
|
| 664 |
+
* const nums = [1, 2];
|
| 665 |
+
* const chars = ['a', 'b'];
|
| 666 |
+
* const out = cross(nums, chars);
|
| 667 |
+
* // ^? type: [number, string][]
|
| 668 |
+
* // Example value: [[1,'a'], [1,'b'], [2,'a'], [2,'b']]
|
| 669 |
+
* ```
|
| 670 |
+
*/
|
| 671 |
+
export function cross<T extends unknown[]>(
|
| 672 |
+
...iterables: { [K in keyof T]: Iterable<T[K]> }
|
| 673 |
+
): T[];
|
| 674 |
+
|
| 675 |
+
/**
|
| 676 |
+
* Computes the Cartesian product of any number of iterables and then applies
|
| 677 |
+
* a reducer to each tuple, returning the reduced values.
|
| 678 |
+
*
|
| 679 |
+
* The final argument **must** be the reducer function; all prior arguments are iterables.
|
| 680 |
+
*
|
| 681 |
+
* @typeParam T - A tuple type describing the element type of each iterable argument.
|
| 682 |
+
* @typeParam U - The result type produced by the reducer.
|
| 683 |
+
*
|
| 684 |
+
* @param args - The iterables to combine, followed by a reducer function.
|
| 685 |
+
* @param args.reducer - A function invoked with one element from each iterable
|
| 686 |
+
* (spread as individual parameters) that returns a reduced value.
|
| 687 |
+
* @returns An array of reduced values returned by the reducer.
|
| 688 |
+
*
|
| 689 |
+
* @example
|
| 690 |
+
* ```ts
|
| 691 |
+
* const nums = [1, 2];
|
| 692 |
+
* const chars = ['a', 'b'];
|
| 693 |
+
* const out = cross(nums, chars, (n, c) => `${n}${c}`);
|
| 694 |
+
* // ^? type: string[]
|
| 695 |
+
* // Example value: ['1a', '1b', '2a', '2b']
|
| 696 |
+
* ```
|
| 697 |
+
*/
|
| 698 |
+
export function cross<T extends unknown[], U>(
|
| 699 |
+
...args: [...iterables: { [K in keyof T]: Iterable<T[K]> }, reducer: (...values: T) => U]
|
| 700 |
+
): U[];
|
| 701 |
+
|
| 702 |
+
/**
|
| 703 |
+
* Merges the specified arrays into a single array.
|
| 704 |
+
*/
|
| 705 |
+
export function merge<T>(iterables: Iterable<Iterable<T>>): T[];
|
| 706 |
+
|
| 707 |
+
/**
|
| 708 |
+
* For each adjacent pair of elements in the specified array, returns a new array of tuples of elements i and i - 1.
|
| 709 |
+
* Returns the empty array if the input array has fewer than two elements.
|
| 710 |
+
*
|
| 711 |
+
* @param iterable Array of input elements
|
| 712 |
+
*/
|
| 713 |
+
export function pairs<T>(iterable: Iterable<T>): Array<[T, T]>;
|
| 714 |
+
/**
|
| 715 |
+
* For each adjacent pair of elements in the specified array, in order, invokes the specified reducer function passing the element i and element i - 1.
|
| 716 |
+
* Returns the resulting array of pair-wise reduced elements.
|
| 717 |
+
* Returns the empty array if the input array has fewer than two elements.
|
| 718 |
+
*
|
| 719 |
+
* @param iterable Array of input elements
|
| 720 |
+
* @param reducer A reducer function taking as input to adjacent elements of the input array and returning a reduced value.
|
| 721 |
+
*/
|
| 722 |
+
export function pairs<T, U>(iterable: Iterable<T>, reducer: (a: T, b: T) => U): U[];
|
| 723 |
+
|
| 724 |
+
/**
|
| 725 |
+
* Returns a permutation of the specified source object (or array) using the specified iterable of keys.
|
| 726 |
+
* The returned array contains the corresponding property of the source object for each key in keys, in order.
|
| 727 |
+
* For example, `permute(["a", "b", "c"], [1, 2, 0]) // ["b", "c", "a"]`
|
| 728 |
+
*
|
| 729 |
+
* It is acceptable to have more keys than source elements, and for keys to be duplicated or omitted.
|
| 730 |
+
*/
|
| 731 |
+
export function permute<T>(source: { [key: number]: T }, keys: Iterable<number>): T[];
|
| 732 |
+
/**
|
| 733 |
+
* Extract the values from an object into an array with a stable order. For example:
|
| 734 |
+
* `var object = {yield: 27, year: 1931, site: "University Farm"};`
|
| 735 |
+
* `d3.permute(object, ["site", "yield"]); // ["University Farm", 27]`
|
| 736 |
+
*/
|
| 737 |
+
export function permute<T, K extends keyof T>(source: T, keys: Iterable<K>): Array<T[K]>;
|
| 738 |
+
|
| 739 |
+
/**
|
| 740 |
+
* Randomizes the order of the specified array using the Fisher–Yates shuffle.
|
| 741 |
+
*/
|
| 742 |
+
export function shuffle<T>(array: T[], lo?: number, hi?: number): T[];
|
| 743 |
+
export function shuffle(array: Int8Array, lo?: number, hi?: number): Int8Array;
|
| 744 |
+
export function shuffle(array: Uint8Array, lo?: number, hi?: number): Uint8Array;
|
| 745 |
+
export function shuffle(array: Uint8ClampedArray, lo?: number, hi?: number): Uint8ClampedArray;
|
| 746 |
+
export function shuffle(array: Int16Array, lo?: number, hi?: number): Int16Array;
|
| 747 |
+
export function shuffle(array: Uint16Array, lo?: number, hi?: number): Uint16Array;
|
| 748 |
+
export function shuffle(array: Int32Array, lo?: number, hi?: number): Int32Array;
|
| 749 |
+
export function shuffle(array: Uint32Array, lo?: number, hi?: number): Uint32Array;
|
| 750 |
+
export function shuffle(array: Float32Array, lo?: number, hi?: number): Float32Array;
|
| 751 |
+
export function shuffle(array: Float64Array, lo?: number, hi?: number): Float64Array;
|
| 752 |
+
|
| 753 |
+
/**
|
| 754 |
+
* Returns a shuffle function given the specified random source.
|
| 755 |
+
*/
|
| 756 |
+
export function shuffler(random: () => number): typeof shuffle;
|
| 757 |
+
|
| 758 |
+
/**
|
| 759 |
+
* Generate an array of approximately count + 1 uniformly-spaced, nicely-rounded values between start and stop (inclusive).
|
| 760 |
+
* Each value is a power of ten multiplied by 1, 2 or 5. See also d3.tickIncrement, d3.tickStep and linear.ticks.
|
| 761 |
+
*
|
| 762 |
+
* Ticks are inclusive in the sense that they may include the specified start and stop values if (and only if) they are exact,
|
| 763 |
+
* nicely-rounded values consistent with the inferred step. More formally, each returned tick t satisfies start ≤ t and t ≤ stop.
|
| 764 |
+
*
|
| 765 |
+
* @param start Start value for ticks
|
| 766 |
+
* @param stop Stop value for ticks
|
| 767 |
+
* @param count count + 1 is the approximate number of ticks to be returned by d3.ticks.
|
| 768 |
+
*/
|
| 769 |
+
export function ticks(start: number, stop: number, count: number): number[];
|
| 770 |
+
|
| 771 |
+
/**
|
| 772 |
+
* Returns the difference between adjacent tick values if the same arguments were passed to d3.ticks:
|
| 773 |
+
* a nicely-rounded value that is a power of ten multiplied by 1, 2 or 5.
|
| 774 |
+
*
|
| 775 |
+
* Like d3.tickStep, except requires that start is always less than or equal to stop, and if the tick step for the given start,
|
| 776 |
+
* stop and count would be less than one, returns the negative inverse tick step instead.
|
| 777 |
+
*
|
| 778 |
+
* This method is always guaranteed to return an integer, and is used by d3.ticks to avoid guarantee that the returned tick values
|
| 779 |
+
* are represented as precisely as possible in IEEE 754 floating point.
|
| 780 |
+
*
|
| 781 |
+
* @param start Start value for ticks
|
| 782 |
+
* @param stop Stop value for ticks
|
| 783 |
+
* @param count count + 1 is the approximate number of ticks to be returned by d3.ticks.
|
| 784 |
+
*/
|
| 785 |
+
export function tickIncrement(start: number, stop: number, count: number): number;
|
| 786 |
+
|
| 787 |
+
/**
|
| 788 |
+
* Returns the difference between adjacent tick values if the same arguments were passed to d3.ticks:
|
| 789 |
+
* a nicely-rounded value that is a power of ten multiplied by 1, 2 or 5.
|
| 790 |
+
*
|
| 791 |
+
* Note that due to the limited precision of IEEE 754 floating point, the returned value may not be exact decimals;
|
| 792 |
+
* use d3-format to format numbers for human consumption.
|
| 793 |
+
*
|
| 794 |
+
* @param start Start value for ticks
|
| 795 |
+
* @param stop Stop value for ticks
|
| 796 |
+
* @param count count + 1 is the approximate number of ticks to be returned by d3.ticks.
|
| 797 |
+
*/
|
| 798 |
+
export function tickStep(start: number, stop: number, count: number): number;
|
| 799 |
+
|
| 800 |
+
/**
|
| 801 |
+
* Returns a new interval [niceStart, niceStop] covering the given interval [start, stop] and where niceStart and niceStop are guaranteed to align with the corresponding tick step.
|
| 802 |
+
* Like d3.tickIncrement, this requires that start is less than or equal to stop.
|
| 803 |
+
*
|
| 804 |
+
* @param start Start value for ticks
|
| 805 |
+
* @param stop Stop value for ticks
|
| 806 |
+
* @param count count + 1 is the approximate number of ticks to be returned by d3.ticks.
|
| 807 |
+
*/
|
| 808 |
+
export function nice(start: number, stop: number, count: number): [number, number];
|
| 809 |
+
|
| 810 |
+
/**
|
| 811 |
+
* Generates a 0-based numeric sequence. The output range does not include 'stop'.
|
| 812 |
+
*/
|
| 813 |
+
export function range(stop: number): number[];
|
| 814 |
+
/**
|
| 815 |
+
* Generates a numeric sequence starting from the given start and stop values. 'step' defaults to 1. The output range does not include 'stop'.
|
| 816 |
+
*/
|
| 817 |
+
// tslint:disable-next-line:unified-signatures
|
| 818 |
+
export function range(start: number, stop: number, step?: number): number[];
|
| 819 |
+
|
| 820 |
+
/**
|
| 821 |
+
* Transpose a matrix provided in Array of Arrays format.
|
| 822 |
+
*/
|
| 823 |
+
export function transpose<T>(matrix: ArrayLike<ArrayLike<T>>): T[][];
|
| 824 |
+
|
| 825 |
+
/**
|
| 826 |
+
* Returns an array of arrays, where the ith array contains the ith element from each of the argument arrays.
|
| 827 |
+
* The returned array is truncated in length to the shortest array in arrays. If arrays contains only a single array, the returned array
|
| 828 |
+
* contains one-element arrays. With no arguments, the returned array is empty.
|
| 829 |
+
*/
|
| 830 |
+
export function zip<T>(...arrays: Array<ArrayLike<T>>): T[][];
|
| 831 |
+
|
| 832 |
+
// --------------------------------------------------------------------------------------
|
| 833 |
+
// Blur
|
| 834 |
+
// --------------------------------------------------------------------------------------
|
| 835 |
+
|
| 836 |
+
/**
|
| 837 |
+
* Blurs an array of data in-place by applying three iterations of a moving average transform (box filter)
|
| 838 |
+
* for a fast approximation of a Gaussian kernel of the given radius, a non-negative number.
|
| 839 |
+
* Returns the given data.
|
| 840 |
+
*/
|
| 841 |
+
export function blur(data: ArrayLike<number>, radius: number): ArrayLike<number>;
|
| 842 |
+
|
| 843 |
+
/**
|
| 844 |
+
* Blurs a matrix of the given width and height in-place by applying a horizontal blur of radius rx
|
| 845 |
+
* and a vertical blur of radius ry (which defaults to rx).
|
| 846 |
+
* The matrix values data are stored in a flat (one-dimensional) array.
|
| 847 |
+
* If height is not specified, it is inferred from the given width and data.length.
|
| 848 |
+
* Returns the blurred matrix {data, width, height}.
|
| 849 |
+
*/
|
| 850 |
+
export function blur2(data: Matrix, rx: number, ry?: number): Matrix;
|
| 851 |
+
|
| 852 |
+
/**
|
| 853 |
+
* Blurs the given ImageData in-place, blurring each of the RGBA layers independently by applying an horizontal blur of radius rx
|
| 854 |
+
* and a vertical blur of radius ry (which defaults to rx).
|
| 855 |
+
* Returns the blurred ImageData.
|
| 856 |
+
*/
|
| 857 |
+
export function blurImage(imageData: ImageData, rx: number, ry?: number): ImageData;
|
| 858 |
+
|
| 859 |
+
// --------------------------------------------------------------------------------------
|
| 860 |
+
// Iterables
|
| 861 |
+
// --------------------------------------------------------------------------------------
|
| 862 |
+
|
| 863 |
+
/**
|
| 864 |
+
* Returns true if the given test function returns true for every value in the given iterable.
|
| 865 |
+
* This method returns as soon as test returns a non-truthy value or all values are iterated over.
|
| 866 |
+
* Equivalent to array.every.
|
| 867 |
+
*/
|
| 868 |
+
export function every<T>(
|
| 869 |
+
iterable: Iterable<T>,
|
| 870 |
+
test: (value: T, index: number, iterable: Iterable<T>) => unknown,
|
| 871 |
+
): boolean;
|
| 872 |
+
|
| 873 |
+
/**
|
| 874 |
+
* Returns true if the given test function returns true for any value in the given iterable.
|
| 875 |
+
* This method returns as soon as test returns a truthy value or all values are iterated over.
|
| 876 |
+
* Equivalent to array.some.
|
| 877 |
+
*/
|
| 878 |
+
export function some<T>(
|
| 879 |
+
iterable: Iterable<T>,
|
| 880 |
+
test: (value: T, index: number, iterable: Iterable<T>) => unknown,
|
| 881 |
+
): boolean;
|
| 882 |
+
|
| 883 |
+
/**
|
| 884 |
+
* Returns a new array containing the values from iterable, in order, for which the given test function returns true.
|
| 885 |
+
* Equivalent to array.filter.
|
| 886 |
+
*/
|
| 887 |
+
export function filter<T>(
|
| 888 |
+
iterable: Iterable<T>,
|
| 889 |
+
test: (value: T, index: number, iterable: Iterable<T>) => unknown,
|
| 890 |
+
): T[];
|
| 891 |
+
|
| 892 |
+
/**
|
| 893 |
+
* Returns a new array containing the mapped values from iterable, in order, as defined by given mapper function.
|
| 894 |
+
* Equivalent to array.map and Array.from.
|
| 895 |
+
*/
|
| 896 |
+
export function map<T, U>(iterable: Iterable<T>, mapper: (value: T, index: number, iterable: Iterable<T>) => U): U[];
|
| 897 |
+
|
| 898 |
+
/**
|
| 899 |
+
* Returns the reduced value defined by given reducer function, which is repeatedly invoked for each value in iterable, being passed the current reduced value and the next value.
|
| 900 |
+
* Equivalent to array.reduce.
|
| 901 |
+
*/
|
| 902 |
+
export function reduce<T>(
|
| 903 |
+
iterable: Iterable<T>,
|
| 904 |
+
reducer: (previousValue: T, currentValue: T, currentIndex: number, iterable: Iterable<T>) => T,
|
| 905 |
+
initialValue?: T,
|
| 906 |
+
): T;
|
| 907 |
+
/**
|
| 908 |
+
* Returns the reduced value defined by given reducer function, which is repeatedly invoked for each value in iterable, being passed the current reduced value and the next value.
|
| 909 |
+
* Equivalent to array.reduce.
|
| 910 |
+
*/
|
| 911 |
+
export function reduce<T, U>(
|
| 912 |
+
iterable: Iterable<T>,
|
| 913 |
+
reducer: (previousValue: U, currentValue: T, currentIndex: number, iterable: Iterable<T>) => U,
|
| 914 |
+
initialValue: U,
|
| 915 |
+
): U;
|
| 916 |
+
|
| 917 |
+
/**
|
| 918 |
+
* Returns an array containing the values in the given iterable in reverse order.
|
| 919 |
+
* Equivalent to array.reverse, except that it does not mutate the given iterable.
|
| 920 |
+
*/
|
| 921 |
+
export function reverse<T>(iterable: Iterable<T>): T[];
|
| 922 |
+
|
| 923 |
+
/**
|
| 924 |
+
* Returns an array containing the values in the given iterable in the sorted order defined by the given comparator function.
|
| 925 |
+
* If comparator is not specified, it defaults to d3.ascending.
|
| 926 |
+
* Equivalent to array.sort, except that it does not mutate the given iterable, and the comparator defaults to natural order instead of lexicographic order.
|
| 927 |
+
*/
|
| 928 |
+
export function sort<T>(iterable: Iterable<T>, comparator?: (a: T, b: T) => number): T[];
|
| 929 |
+
/**
|
| 930 |
+
* Returns an array containing the values in the given iterable in the sorted order defined by the given accessor function.
|
| 931 |
+
* This is equivalent to a comparator using natural order.
|
| 932 |
+
* The accessor is only invoked once per element, and thus may be nondeterministic.
|
| 933 |
+
* Multiple accessors may be specified to break ties.
|
| 934 |
+
*/
|
| 935 |
+
export function sort<T>(iterable: Iterable<T>, ...accessors: Array<(a: T) => unknown>): T[];
|
| 936 |
+
|
| 937 |
+
// --------------------------------------------------------------------------------------
|
| 938 |
+
// Sets
|
| 939 |
+
// --------------------------------------------------------------------------------------
|
| 940 |
+
|
| 941 |
+
/**
|
| 942 |
+
* Returns a new InternSet containing every value in iterable that is not in any of the others iterables.
|
| 943 |
+
*/
|
| 944 |
+
export function difference<T>(iterable: Iterable<T>, ...others: Array<Iterable<T>>): InternSet<T>;
|
| 945 |
+
|
| 946 |
+
/**
|
| 947 |
+
* Returns a new InternSet containing every (distinct) value that appears in any of the given iterables.
|
| 948 |
+
* The order of values in the returned set is based on their first occurrence in the given iterables.
|
| 949 |
+
*/
|
| 950 |
+
export function union<T>(...iterables: Array<Iterable<T>>): InternSet<T>;
|
| 951 |
+
|
| 952 |
+
/**
|
| 953 |
+
* Returns a new InternSet containing every (distinct) value that appears in all of the given iterables.
|
| 954 |
+
* The order of values in the returned set is based on their first occurrence in the given iterables.
|
| 955 |
+
*/
|
| 956 |
+
export function intersection<T>(...iterables: Array<Iterable<T>>): InternSet<T>;
|
| 957 |
+
|
| 958 |
+
/**
|
| 959 |
+
* Returns true if a is a superset of b: if every value in the given iterable b is also in the given iterable a.
|
| 960 |
+
*/
|
| 961 |
+
export function superset<T>(a: Iterable<T>, b: Iterable<T>): boolean;
|
| 962 |
+
|
| 963 |
+
/**
|
| 964 |
+
* Returns true if a is a subset of b: if every value in the given iterable a is also in the given iterable b.
|
| 965 |
+
*/
|
| 966 |
+
export function subset<T>(a: Iterable<T>, b: Iterable<T>): boolean;
|
| 967 |
+
|
| 968 |
+
/**
|
| 969 |
+
* Returns true if a and b are disjoint: if a and b contain no shared value.
|
| 970 |
+
*/
|
| 971 |
+
export function disjoint<T>(a: Iterable<T>, b: Iterable<T>): boolean;
|
| 972 |
+
|
| 973 |
+
// --------------------------------------------------------------------------------------
|
| 974 |
+
// Bins
|
| 975 |
+
// --------------------------------------------------------------------------------------
|
| 976 |
+
|
| 977 |
+
export interface Bin<Datum, Value extends number | Date | undefined> extends Array<Datum> {
|
| 978 |
+
x0: Value | undefined;
|
| 979 |
+
x1: Value | undefined;
|
| 980 |
+
}
|
| 981 |
+
|
| 982 |
+
/**
|
| 983 |
+
* Type definition for threshold generator which returns the count of recommended thresholds
|
| 984 |
+
*/
|
| 985 |
+
export type ThresholdCountGenerator<Value extends number | undefined = number | undefined> = (
|
| 986 |
+
values: ArrayLike<Value>,
|
| 987 |
+
min: number,
|
| 988 |
+
max: number,
|
| 989 |
+
) => number;
|
| 990 |
+
|
| 991 |
+
/**
|
| 992 |
+
* Type definition for threshold generator which returns an array of recommended numbers thresholds
|
| 993 |
+
*/
|
| 994 |
+
export type ThresholdNumberArrayGenerator<Value extends number | undefined> = (
|
| 995 |
+
values: ArrayLike<Value>,
|
| 996 |
+
min: number,
|
| 997 |
+
max: number,
|
| 998 |
+
) => Value[];
|
| 999 |
+
|
| 1000 |
+
/**
|
| 1001 |
+
* Type definition for threshold generator which returns an array of recommended dates thresholds
|
| 1002 |
+
*/
|
| 1003 |
+
export type ThresholdDateArrayGenerator<Value extends Date | undefined> = (
|
| 1004 |
+
values: ArrayLike<Value>,
|
| 1005 |
+
min: Date,
|
| 1006 |
+
max: Date,
|
| 1007 |
+
) => Value[];
|
| 1008 |
+
|
| 1009 |
+
export interface HistogramCommon<Datum, Value extends number | Date | undefined> {
|
| 1010 |
+
(data: ArrayLike<Datum>): Array<Bin<Datum, Value>>;
|
| 1011 |
+
|
| 1012 |
+
value(): (d: Datum, i: number, data: ArrayLike<Datum>) => Value;
|
| 1013 |
+
value(valueAccessor: (d: Datum, i: number, data: ArrayLike<Datum>) => Value): this;
|
| 1014 |
+
}
|
| 1015 |
+
|
| 1016 |
+
export interface HistogramGeneratorDate<Datum, Value extends Date | undefined> extends HistogramCommon<Datum, Date> {
|
| 1017 |
+
domain(): (values: ArrayLike<Value>) => [Date, Date];
|
| 1018 |
+
domain(domain: [Date, Date] | ((values: ArrayLike<Value>) => [Date, Date])): this;
|
| 1019 |
+
|
| 1020 |
+
thresholds(): ThresholdDateArrayGenerator<Value>;
|
| 1021 |
+
/**
|
| 1022 |
+
* Set the array of values to be used as thresholds in determining the bins.
|
| 1023 |
+
*
|
| 1024 |
+
* Any threshold values outside the domain are ignored. The first bin.x0 is always equal to the minimum domain value,
|
| 1025 |
+
* and the last bin.x1 is always equal to the maximum domain value.
|
| 1026 |
+
*
|
| 1027 |
+
* @param thresholds Either an array of threshold values used for binning. The elements must
|
| 1028 |
+
* be of the same type as the materialized values of the histogram.
|
| 1029 |
+
* Or a function which accepts as arguments the array of materialized values, and
|
| 1030 |
+
* optionally the domain minimum and maximum. The function calculates and returns the array of values to be used as
|
| 1031 |
+
* thresholds in determining the bins.
|
| 1032 |
+
*/
|
| 1033 |
+
thresholds(thresholds: ArrayLike<Value> | ThresholdDateArrayGenerator<Value>): this;
|
| 1034 |
+
}
|
| 1035 |
+
|
| 1036 |
+
export interface HistogramGeneratorNumber<Datum, Value extends number | undefined>
|
| 1037 |
+
extends HistogramCommon<Datum, Value>
|
| 1038 |
+
{
|
| 1039 |
+
domain(): (values: Iterable<Value>) => [number, number] | [undefined, undefined];
|
| 1040 |
+
domain(domain: [number, number] | ((values: Iterable<Value>) => [number, number] | [undefined, undefined])): this;
|
| 1041 |
+
|
| 1042 |
+
thresholds(): ThresholdCountGenerator<Value> | ThresholdNumberArrayGenerator<Value>;
|
| 1043 |
+
/**
|
| 1044 |
+
* Divide the domain uniformly into approximately count bins. IMPORTANT: This threshold
|
| 1045 |
+
* setting approach only works, when the materialized values are numbers!
|
| 1046 |
+
*
|
| 1047 |
+
* Any threshold values outside the domain are ignored. The first bin.x0 is always equal to the minimum domain value,
|
| 1048 |
+
* and the last bin.x1 is always equal to the maximum domain value.
|
| 1049 |
+
*
|
| 1050 |
+
* @param count Either the desired number of uniform bins or a function which accepts as arguments the array of
|
| 1051 |
+
* materialized values, and optionally the domain minimum and maximum. The function calculates and returns the
|
| 1052 |
+
* suggested number of bins.
|
| 1053 |
+
*/
|
| 1054 |
+
thresholds(count: number | ThresholdCountGenerator<Value>): this;
|
| 1055 |
+
/**
|
| 1056 |
+
* Set the array of values to be used as thresholds in determining the bins.
|
| 1057 |
+
*
|
| 1058 |
+
* Any threshold values outside the domain are ignored. The first bin.x0 is always equal to the minimum domain value,
|
| 1059 |
+
* and the last bin.x1 is always equal to the maximum domain value.
|
| 1060 |
+
*
|
| 1061 |
+
* @param thresholds Either an array of threshold values used for binning. The elements must
|
| 1062 |
+
* be of the same type as the materialized values of the histogram.
|
| 1063 |
+
* Or a function which accepts as arguments the array of materialized values, and
|
| 1064 |
+
* optionally the domain minimum and maximum. The function calculates and returns the array of values to be used as
|
| 1065 |
+
* thresholds in determining the bins.
|
| 1066 |
+
*/
|
| 1067 |
+
// tslint:disable-next-line:unified-signatures
|
| 1068 |
+
thresholds(thresholds: ArrayLike<Value> | ThresholdNumberArrayGenerator<Value>): this;
|
| 1069 |
+
}
|
| 1070 |
+
|
| 1071 |
+
/**
|
| 1072 |
+
* @deprecated Use bin instead.
|
| 1073 |
+
*/
|
| 1074 |
+
export function histogram(): HistogramGeneratorNumber<number, number>;
|
| 1075 |
+
|
| 1076 |
+
/**
|
| 1077 |
+
* @deprecated Use bin instead.
|
| 1078 |
+
*/
|
| 1079 |
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
| 1080 |
+
export function histogram<Datum, Value extends number | undefined>(): HistogramGeneratorNumber<Datum, Value>;
|
| 1081 |
+
|
| 1082 |
+
/**
|
| 1083 |
+
* @deprecated Use bin instead.
|
| 1084 |
+
*/
|
| 1085 |
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
| 1086 |
+
export function histogram<Datum, Value extends Date | undefined>(): HistogramGeneratorDate<Datum, Value>;
|
| 1087 |
+
|
| 1088 |
+
export function bin(): HistogramGeneratorNumber<number, number>;
|
| 1089 |
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
| 1090 |
+
export function bin<Datum, Value extends number | undefined>(): HistogramGeneratorNumber<Datum, Value>;
|
| 1091 |
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
| 1092 |
+
export function bin<Datum, Value extends Date | undefined>(): HistogramGeneratorDate<Datum, Value>;
|
| 1093 |
+
|
| 1094 |
+
// --------------------------------------------------------------------------------------
|
| 1095 |
+
// Histogram Thresholds
|
| 1096 |
+
// --------------------------------------------------------------------------------------
|
| 1097 |
+
|
| 1098 |
+
export function thresholdFreedmanDiaconis(values: ArrayLike<number | undefined>, min: number, max: number): number; // of type ThresholdCountGenerator
|
| 1099 |
+
|
| 1100 |
+
export function thresholdScott(values: ArrayLike<number | undefined>, min: number, max: number): number; // of type ThresholdCountGenerator
|
| 1101 |
+
|
| 1102 |
+
export function thresholdSturges(values: ArrayLike<number | undefined>): number; // of type ThresholdCountGenerator
|
| 1103 |
+
|
| 1104 |
+
// --------------------------------------------------------------------------------------
|
| 1105 |
+
// Interning
|
| 1106 |
+
// --------------------------------------------------------------------------------------
|
| 1107 |
+
|
| 1108 |
+
/**
|
| 1109 |
+
* The InternMap class extends the native JavaScript Map class, allowing Dates and other non-primitive keys by bypassing the SameValueZero algorithm when determining key equality.
|
| 1110 |
+
*/
|
| 1111 |
+
export class InternMap<K = any, V = any> extends Map<K, V> {
|
| 1112 |
+
}
|
| 1113 |
+
|
| 1114 |
+
/**
|
| 1115 |
+
* The InternSet class extends the native JavaScript Set class, allowing Dates and other non-primitive keys by bypassing the SameValueZero algorithm when determining key equality.
|
| 1116 |
+
*/
|
| 1117 |
+
export class InternSet<T = any> extends Set<T> {
|
| 1118 |
+
}
|
astra_scene_test/X_03/node_modules/@types/d3-array/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@types/d3-array",
|
| 3 |
+
"version": "3.2.2",
|
| 4 |
+
"description": "TypeScript definitions for d3-array",
|
| 5 |
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-array",
|
| 6 |
+
"license": "MIT",
|
| 7 |
+
"contributors": [
|
| 8 |
+
{
|
| 9 |
+
"name": "Alex Ford",
|
| 10 |
+
"githubUsername": "gustavderdrache",
|
| 11 |
+
"url": "https://github.com/gustavderdrache"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "Boris Yankov",
|
| 15 |
+
"githubUsername": "borisyankov",
|
| 16 |
+
"url": "https://github.com/borisyankov"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "Tom Wanzek",
|
| 20 |
+
"githubUsername": "tomwanzek",
|
| 21 |
+
"url": "https://github.com/tomwanzek"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name": "denisname",
|
| 25 |
+
"githubUsername": "denisname",
|
| 26 |
+
"url": "https://github.com/denisname"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "Hugues Stefanski",
|
| 30 |
+
"githubUsername": "ledragon",
|
| 31 |
+
"url": "https://github.com/ledragon"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "Nathan Bierema",
|
| 35 |
+
"githubUsername": "Methuselah96",
|
| 36 |
+
"url": "https://github.com/Methuselah96"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"name": "Fil",
|
| 40 |
+
"githubUsername": "Fil",
|
| 41 |
+
"url": "https://github.com/Fil"
|
| 42 |
+
}
|
| 43 |
+
],
|
| 44 |
+
"main": "",
|
| 45 |
+
"types": "index.d.ts",
|
| 46 |
+
"repository": {
|
| 47 |
+
"type": "git",
|
| 48 |
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
| 49 |
+
"directory": "types/d3-array"
|
| 50 |
+
},
|
| 51 |
+
"scripts": {},
|
| 52 |
+
"dependencies": {},
|
| 53 |
+
"peerDependencies": {},
|
| 54 |
+
"typesPublisherContentHash": "d8ff015b14e99aec79f6ac45682bd8237145131c804b94de0ed1e6bc003d5190",
|
| 55 |
+
"typeScriptVersion": "5.2"
|
| 56 |
+
}
|
astra_scene_test/X_03/node_modules/@types/d3-color/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE
|
astra_scene_test/X_03/node_modules/@types/d3-color/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Installation
|
| 2 |
+
> `npm install --save @types/d3-color`
|
| 3 |
+
|
| 4 |
+
# Summary
|
| 5 |
+
This package contains type definitions for d3-color (https://github.com/d3/d3-color/).
|
| 6 |
+
|
| 7 |
+
# Details
|
| 8 |
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-color.
|
| 9 |
+
|
| 10 |
+
### Additional Details
|
| 11 |
+
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
|
| 12 |
+
* Dependencies: none
|
| 13 |
+
|
| 14 |
+
# Credits
|
| 15 |
+
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), [denisname](https://github.com/denisname), [Hugues Stefanski](https://github.com/ledragon), [Nathan Bierema](https://github.com/Methuselah96), and [Fil](https://github.com/Fil).
|
astra_scene_test/X_03/node_modules/@types/d3-color/index.d.ts
ADDED
|
@@ -0,0 +1,669 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Last module patch version validated against: 3.1.0
|
| 2 |
+
|
| 3 |
+
// ---------------------------------------------------------------------------
|
| 4 |
+
// Shared Type Definitions and Interfaces
|
| 5 |
+
// ---------------------------------------------------------------------------
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Type allowing for color objects from a specified color space
|
| 9 |
+
*/
|
| 10 |
+
export type ColorSpaceObject = RGBColor | HSLColor | LabColor | HCLColor | CubehelixColor;
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
* A helper interface of methods common to color objects (including colors defined outside the d3-color standard module,
|
| 14 |
+
* e.g. in d3-hsv). This interface
|
| 15 |
+
*/
|
| 16 |
+
export interface ColorCommonInstance {
|
| 17 |
+
/**
|
| 18 |
+
* Returns true if and only if the color is displayable on standard hardware.
|
| 19 |
+
* For example, this returns false for an RGB color if any channel value is less than zero or greater than 255, or if the opacity is not in the range [0, 1].
|
| 20 |
+
*/
|
| 21 |
+
displayable(): boolean;
|
| 22 |
+
/**
|
| 23 |
+
* Returns a string representing this color according to the CSS Object Model specification,
|
| 24 |
+
* such as rgb(247, 234, 186) or rgba(247, 234, 186, 0.2).
|
| 25 |
+
* If this color is not displayable, a suitable displayable color is returned instead.
|
| 26 |
+
* For example, RGB channel values greater than 255 are clamped to 255.
|
| 27 |
+
*/
|
| 28 |
+
toString(): string;
|
| 29 |
+
/**
|
| 30 |
+
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
| 31 |
+
* If k is not specified, it defaults to 1. The behavior of this method is dependent on the implementing color space.
|
| 32 |
+
*
|
| 33 |
+
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
| 34 |
+
*/
|
| 35 |
+
brighter(k?: number): this;
|
| 36 |
+
/**
|
| 37 |
+
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
| 38 |
+
* If k is not specified, it defaults to 1. The behavior of this method is dependent on the implementing color space.
|
| 39 |
+
*
|
| 40 |
+
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
| 41 |
+
*/
|
| 42 |
+
darker(k?: number): this;
|
| 43 |
+
/**
|
| 44 |
+
* Returns the RGB equivalent of this color. For RGB colors, that’s "this".
|
| 45 |
+
*/
|
| 46 |
+
rgb(): RGBColor;
|
| 47 |
+
/**
|
| 48 |
+
* Returns a hexadecimal string representing this color.
|
| 49 |
+
* If this color is not displayable, a suitable displayable color is returned instead.
|
| 50 |
+
* For example, RGB channel values greater than 255 are clamped to 255.
|
| 51 |
+
*/
|
| 52 |
+
hex(): string;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* A Color object which serves as a base class for
|
| 57 |
+
* colorspace-specific sub-class implementations.
|
| 58 |
+
*/
|
| 59 |
+
export interface Color {
|
| 60 |
+
/**
|
| 61 |
+
* Returns true if and only if the color is displayable on standard hardware.
|
| 62 |
+
* For example, this returns false for an RGB color if any channel value is less than zero or greater than 255, or if the opacity is not in the range [0, 1].
|
| 63 |
+
*/
|
| 64 |
+
displayable(): boolean; // Note: While this method is used in prototyping for colors of specific colorspaces, it should not be called directly, as 'this.rgb' would not be implemented on Color
|
| 65 |
+
/**
|
| 66 |
+
* Returns a string representing this color according to the CSS Object Model specification,
|
| 67 |
+
* such as rgb(247, 234, 186) or rgba(247, 234, 186, 0.2).
|
| 68 |
+
* If this color is not displayable, a suitable displayable color is returned instead.
|
| 69 |
+
* For example, RGB channel values greater than 255 are clamped to 255.
|
| 70 |
+
*/
|
| 71 |
+
toString(): string; // Note: While this method is used in prototyping for colors of specific colorspaces, it should not be called directly, as 'this.rgb' would not be implemented on Color
|
| 72 |
+
/**
|
| 73 |
+
* Returns a hexadecimal string representing this color in RGB space, such as #f7eaba.
|
| 74 |
+
* If this color is not displayable, a suitable displayable color is returned instead.
|
| 75 |
+
* For example, RGB channel values greater than 255 are clamped to 255.
|
| 76 |
+
*/
|
| 77 |
+
formatHex(): string;
|
| 78 |
+
/**
|
| 79 |
+
* Returns a hexadecimal string representing this color in RGBA space, such as #f7eaba90.
|
| 80 |
+
* If this color is not displayable, a suitable displayable color is returned instead.
|
| 81 |
+
* For example, RGB channel values greater than 255 are clamped to 255.
|
| 82 |
+
*/
|
| 83 |
+
formatHex8(): string;
|
| 84 |
+
/**
|
| 85 |
+
* Returns a string representing this color according to the CSS Color Module Level 3 specification, such as hsl(257, 50%, 80%) or hsla(257, 50%, 80%, 0.2).
|
| 86 |
+
* If this color is not displayable, a suitable displayable color is returned instead by clamping S and L channel values to the interval [0, 100].
|
| 87 |
+
*/
|
| 88 |
+
formatHsl(): string;
|
| 89 |
+
/**
|
| 90 |
+
* Returns a string representing this color according to the CSS Object Model specification, such as rgb(247, 234, 186) or rgba(247, 234, 186, 0.2).
|
| 91 |
+
* If this color is not displayable, a suitable displayable color is returned instead by clamping RGB channel values to the interval [0, 255].
|
| 92 |
+
*/
|
| 93 |
+
formatRgb(): string;
|
| 94 |
+
/**
|
| 95 |
+
* @deprecated Use color.formatHex.
|
| 96 |
+
*/
|
| 97 |
+
hex(): string;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
/**
|
| 101 |
+
* A Color factory object, which may also be used with instanceof to test if an object is a color instance.
|
| 102 |
+
*/
|
| 103 |
+
export interface ColorFactory extends Function {
|
| 104 |
+
/**
|
| 105 |
+
* Parses the specified CSS Color Module Level 3 specifier string, returning an RGB or HSL color.
|
| 106 |
+
* If the specifier was not valid, null is returned.
|
| 107 |
+
*
|
| 108 |
+
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
| 109 |
+
*/
|
| 110 |
+
(cssColorSpecifier: string): RGBColor | HSLColor | null;
|
| 111 |
+
/**
|
| 112 |
+
* Converts the provided color instance and returns an RGB or HSL color.
|
| 113 |
+
*
|
| 114 |
+
* @param color A permissible color space instance.
|
| 115 |
+
*/
|
| 116 |
+
(color: ColorSpaceObject | ColorCommonInstance): RGBColor | HSLColor;
|
| 117 |
+
/**
|
| 118 |
+
* Prototype of the factory, which can be used for instanceof testing
|
| 119 |
+
*/
|
| 120 |
+
readonly prototype: Color;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
/**
|
| 124 |
+
* An RGB color object.
|
| 125 |
+
*/
|
| 126 |
+
export interface RGBColor extends Color {
|
| 127 |
+
/**
|
| 128 |
+
* Value of red channel
|
| 129 |
+
*/
|
| 130 |
+
r: number;
|
| 131 |
+
/**
|
| 132 |
+
* Value of green channel
|
| 133 |
+
*/
|
| 134 |
+
g: number;
|
| 135 |
+
/**
|
| 136 |
+
* Value of blue channel
|
| 137 |
+
*/
|
| 138 |
+
b: number;
|
| 139 |
+
/**
|
| 140 |
+
* Opacity value
|
| 141 |
+
*/
|
| 142 |
+
opacity: number;
|
| 143 |
+
/**
|
| 144 |
+
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
| 145 |
+
* If k is not specified, it defaults to 1.
|
| 146 |
+
*
|
| 147 |
+
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
| 148 |
+
*/
|
| 149 |
+
brighter(k?: number): this;
|
| 150 |
+
/**
|
| 151 |
+
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
| 152 |
+
* If k is not specified, it defaults to 1.
|
| 153 |
+
*
|
| 154 |
+
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
| 155 |
+
*/
|
| 156 |
+
darker(k?: number): this;
|
| 157 |
+
/**
|
| 158 |
+
* Returns the RGB equivalent of this color.
|
| 159 |
+
*/
|
| 160 |
+
rgb(): this;
|
| 161 |
+
/**
|
| 162 |
+
* Returns a copy of this color.
|
| 163 |
+
*
|
| 164 |
+
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
| 165 |
+
*/
|
| 166 |
+
copy(
|
| 167 |
+
values?: {
|
| 168 |
+
r?: number | undefined;
|
| 169 |
+
g?: number | undefined;
|
| 170 |
+
b?: number | undefined;
|
| 171 |
+
opacity?: number | undefined;
|
| 172 |
+
},
|
| 173 |
+
): this;
|
| 174 |
+
/**
|
| 175 |
+
* Returns a new RGB color where the r, g, and b channels are clamped to the range [0, 255] and rounded to the nearest integer value,
|
| 176 |
+
* and the opacity is clamped to the range [0, 1].
|
| 177 |
+
*/
|
| 178 |
+
clamp(): this;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
/**
|
| 182 |
+
* An RGB color factory object, which may also be used with instanceof to test if an object
|
| 183 |
+
* is an RGB color instance.
|
| 184 |
+
*/
|
| 185 |
+
export interface RGBColorFactory extends Function {
|
| 186 |
+
/**
|
| 187 |
+
* Constructs a new RGB color based on the specified channel values and opacity.
|
| 188 |
+
*
|
| 189 |
+
* @param r Red channel value.
|
| 190 |
+
* @param g Green channel value.
|
| 191 |
+
* @param b Blue channel value.
|
| 192 |
+
* @param opacity Optional opacity value, defaults to 1.
|
| 193 |
+
*/
|
| 194 |
+
(r: number, g: number, b: number, opacity?: number): RGBColor;
|
| 195 |
+
/**
|
| 196 |
+
* Parses the specified CSS Color Module Level 3 specifier string, returning an RGB color.
|
| 197 |
+
* If the specifier was not valid, null is returned.
|
| 198 |
+
*
|
| 199 |
+
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
| 200 |
+
*/
|
| 201 |
+
(cssColorSpecifier: string): RGBColor;
|
| 202 |
+
/**
|
| 203 |
+
* Converts the provided color instance and returns an RGB color. The color instance is converted to the RGB color space using color.rgb.
|
| 204 |
+
* Note that unlike color.rgb this method always returns a new instance, even if color is already an RGB color.
|
| 205 |
+
*
|
| 206 |
+
* @param color A permissible color space instance.
|
| 207 |
+
*/
|
| 208 |
+
// tslint:disable-next-line:unified-signatures
|
| 209 |
+
(color: ColorSpaceObject | ColorCommonInstance): RGBColor;
|
| 210 |
+
/**
|
| 211 |
+
* Prototype of the factory, which can be used for instanceof testing
|
| 212 |
+
*/
|
| 213 |
+
readonly prototype: RGBColor;
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
/**
|
| 217 |
+
* An HSL color object.
|
| 218 |
+
*/
|
| 219 |
+
export interface HSLColor extends Color {
|
| 220 |
+
/**
|
| 221 |
+
* Hue channel value.
|
| 222 |
+
*/
|
| 223 |
+
h: number;
|
| 224 |
+
/**
|
| 225 |
+
* Saturation channel value.
|
| 226 |
+
*/
|
| 227 |
+
s: number;
|
| 228 |
+
/**
|
| 229 |
+
* Lightness channel value.
|
| 230 |
+
*/
|
| 231 |
+
l: number;
|
| 232 |
+
/**
|
| 233 |
+
* Opacity value.
|
| 234 |
+
*/
|
| 235 |
+
opacity: number;
|
| 236 |
+
/**
|
| 237 |
+
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
| 238 |
+
* If k is not specified, it defaults to 1.
|
| 239 |
+
*
|
| 240 |
+
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
| 241 |
+
*/
|
| 242 |
+
brighter(k?: number): this;
|
| 243 |
+
/**
|
| 244 |
+
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
| 245 |
+
* If k is not specified, it defaults to 1.
|
| 246 |
+
*
|
| 247 |
+
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
| 248 |
+
*/
|
| 249 |
+
darker(k?: number): this;
|
| 250 |
+
/**
|
| 251 |
+
* Returns the RGB color equivalent of this color.
|
| 252 |
+
*/
|
| 253 |
+
rgb(): RGBColor;
|
| 254 |
+
/**
|
| 255 |
+
* Returns a copy of this color.
|
| 256 |
+
*
|
| 257 |
+
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
| 258 |
+
*/
|
| 259 |
+
copy(
|
| 260 |
+
values?: {
|
| 261 |
+
h?: number | undefined;
|
| 262 |
+
s?: number | undefined;
|
| 263 |
+
l?: number | undefined;
|
| 264 |
+
opacity?: number | undefined;
|
| 265 |
+
},
|
| 266 |
+
): this;
|
| 267 |
+
/**
|
| 268 |
+
* Returns a new HSL color where the h channel is clamped to the range [0, 360), and the s, l, and opacity channels are clamped to the range [0, 1].
|
| 269 |
+
*/
|
| 270 |
+
clamp(): this;
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
/**
|
| 274 |
+
* An HSL color factory object, which may also be used with instanceof to test if an object
|
| 275 |
+
* is an HSL color instance.
|
| 276 |
+
*/
|
| 277 |
+
export interface HSLColorFactory extends Function {
|
| 278 |
+
/**
|
| 279 |
+
* Constructs a new HSL color based on the specified channel values and opacity.
|
| 280 |
+
*
|
| 281 |
+
* @param h Hue channel value.
|
| 282 |
+
* @param s Saturation channel value.
|
| 283 |
+
* @param l Lightness channel value.
|
| 284 |
+
* @param opacity Optional opacity value, defaults to 1.
|
| 285 |
+
*/
|
| 286 |
+
(h: number, s: number, l: number, opacity?: number): HSLColor;
|
| 287 |
+
/**
|
| 288 |
+
* Parses the specified CSS Color Module Level 3 specifier string, returning an HSL color.
|
| 289 |
+
* If the specifier was not valid, null is returned.
|
| 290 |
+
*
|
| 291 |
+
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
| 292 |
+
*/
|
| 293 |
+
(cssColorSpecifier: string): HSLColor;
|
| 294 |
+
/**
|
| 295 |
+
* Converts the provided color instance and returns an HSL color.
|
| 296 |
+
* The color instance is converted to the RGB color space using color.rgb and then converted to HSL.
|
| 297 |
+
* (Colors already in the HSL color space skip the conversion to RGB.)
|
| 298 |
+
*
|
| 299 |
+
* @param color A permissible color space instance.
|
| 300 |
+
*/
|
| 301 |
+
// tslint:disable-next-line:unified-signatures
|
| 302 |
+
(color: ColorSpaceObject | ColorCommonInstance): HSLColor;
|
| 303 |
+
/**
|
| 304 |
+
* Prototype of the factory, which can be used for instanceof testing
|
| 305 |
+
*/
|
| 306 |
+
readonly prototype: HSLColor;
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
/**
|
| 310 |
+
* A Lab (CIELAB) color object.
|
| 311 |
+
*/
|
| 312 |
+
export interface LabColor extends Color {
|
| 313 |
+
/**
|
| 314 |
+
* Lightness typically in the range [0, 100].
|
| 315 |
+
*/
|
| 316 |
+
l: number;
|
| 317 |
+
/**
|
| 318 |
+
* Position between red/magenta and green typically in [-160, +160].
|
| 319 |
+
*/
|
| 320 |
+
a: number;
|
| 321 |
+
/**
|
| 322 |
+
* Position between yellow and blue typically in [-160, +160].
|
| 323 |
+
*/
|
| 324 |
+
b: number;
|
| 325 |
+
/**
|
| 326 |
+
* Opacity value
|
| 327 |
+
*/
|
| 328 |
+
opacity: number;
|
| 329 |
+
/**
|
| 330 |
+
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
| 331 |
+
* If k is not specified, it defaults to 1.
|
| 332 |
+
*
|
| 333 |
+
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
| 334 |
+
*/
|
| 335 |
+
brighter(k?: number): this;
|
| 336 |
+
/**
|
| 337 |
+
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
| 338 |
+
* If k is not specified, it defaults to 1.
|
| 339 |
+
*
|
| 340 |
+
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
| 341 |
+
*/
|
| 342 |
+
darker(k?: number): this;
|
| 343 |
+
/**
|
| 344 |
+
* Returns the RGB color equivalent of this color.
|
| 345 |
+
*/
|
| 346 |
+
rgb(): RGBColor;
|
| 347 |
+
/**
|
| 348 |
+
* Returns a copy of this color.
|
| 349 |
+
*
|
| 350 |
+
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
| 351 |
+
*/
|
| 352 |
+
copy(
|
| 353 |
+
values?: {
|
| 354 |
+
l?: number | undefined;
|
| 355 |
+
a?: number | undefined;
|
| 356 |
+
b?: number | undefined;
|
| 357 |
+
opacity?: number | undefined;
|
| 358 |
+
},
|
| 359 |
+
): this;
|
| 360 |
+
}
|
| 361 |
+
|
| 362 |
+
/**
|
| 363 |
+
* A Lab (CIELAB) color factory object, which may also be used with instanceof to test if an object
|
| 364 |
+
* is a Lab color instance.
|
| 365 |
+
*/
|
| 366 |
+
export interface LabColorFactory extends Function {
|
| 367 |
+
/**
|
| 368 |
+
* Constructs a new CIELAB color based on the specified channel values and opacity.
|
| 369 |
+
*
|
| 370 |
+
* @param l Lightness typically in the range [0, 100].
|
| 371 |
+
* @param a Position between red/magenta and green typically in [-160, +160].
|
| 372 |
+
* @param b Position between yellow and blue typically in [-160, +160].
|
| 373 |
+
* @param opacity Optional opacity value, defaults to 1.
|
| 374 |
+
*/
|
| 375 |
+
(l: number, a: number, b: number, opacity?: number): LabColor;
|
| 376 |
+
/**
|
| 377 |
+
* Parses the specified CSS Color Module Level 3 specifier string, returning a Lab color.
|
| 378 |
+
* If the specifier was not valid, null is returned.
|
| 379 |
+
*
|
| 380 |
+
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
| 381 |
+
*/
|
| 382 |
+
(cssColorSpecifier: string): LabColor;
|
| 383 |
+
/**
|
| 384 |
+
* Converts the provided color instance and returns a Lab color.
|
| 385 |
+
* The color instance is converted to the RGB color space using color.rgb and then converted to CIELAB.
|
| 386 |
+
* (Colors already in the Lab color space skip the conversion to RGB,
|
| 387 |
+
* and colors in the HCL color space are converted directly to CIELAB.)
|
| 388 |
+
*
|
| 389 |
+
* @param color A permissible color space instance.
|
| 390 |
+
*/
|
| 391 |
+
// tslint:disable-next-line:unified-signatures
|
| 392 |
+
(color: ColorSpaceObject | ColorCommonInstance): LabColor;
|
| 393 |
+
/**
|
| 394 |
+
* Prototype of the factory, which can be used for instanceof testing
|
| 395 |
+
*/
|
| 396 |
+
readonly prototype: LabColor;
|
| 397 |
+
}
|
| 398 |
+
|
| 399 |
+
/**
|
| 400 |
+
* A gray color factory for Lab (CIELAB) colors.
|
| 401 |
+
*/
|
| 402 |
+
export type GrayColorFactory =
|
| 403 |
+
/**
|
| 404 |
+
* Constructs a new CIELAB color with the specified l value and a = b = 0.
|
| 405 |
+
*
|
| 406 |
+
* @param l Lightness typically in the range [0, 100].
|
| 407 |
+
* @param opacity Optional opacity value, defaults to 1.
|
| 408 |
+
*/
|
| 409 |
+
(l: number, opacity?: number) => LabColor;
|
| 410 |
+
|
| 411 |
+
/**
|
| 412 |
+
* An HCL (CIELCH) color object.
|
| 413 |
+
*/
|
| 414 |
+
export interface HCLColor extends Color {
|
| 415 |
+
/**
|
| 416 |
+
* Hue channel value typically in [0, 360).
|
| 417 |
+
*/
|
| 418 |
+
h: number;
|
| 419 |
+
/**
|
| 420 |
+
* Chroma channel value typically in [0, 230].
|
| 421 |
+
*/
|
| 422 |
+
c: number;
|
| 423 |
+
/**
|
| 424 |
+
* Luminance channel value typically in the range [0, 100].
|
| 425 |
+
*/
|
| 426 |
+
l: number;
|
| 427 |
+
/**
|
| 428 |
+
* Opacity value
|
| 429 |
+
*/
|
| 430 |
+
opacity: number;
|
| 431 |
+
/**
|
| 432 |
+
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
| 433 |
+
* If k is not specified, it defaults to 1.
|
| 434 |
+
*
|
| 435 |
+
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
| 436 |
+
*/
|
| 437 |
+
brighter(k?: number): this;
|
| 438 |
+
/**
|
| 439 |
+
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
| 440 |
+
* If k is not specified, it defaults to 1.
|
| 441 |
+
*
|
| 442 |
+
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
| 443 |
+
*/
|
| 444 |
+
darker(k?: number): this;
|
| 445 |
+
/**
|
| 446 |
+
* Returns the RGB color equivalent of this color.
|
| 447 |
+
*/
|
| 448 |
+
rgb(): RGBColor;
|
| 449 |
+
/**
|
| 450 |
+
* Returns a copy of this color.
|
| 451 |
+
*
|
| 452 |
+
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
| 453 |
+
*/
|
| 454 |
+
copy(
|
| 455 |
+
values?: {
|
| 456 |
+
h?: number | undefined;
|
| 457 |
+
c?: number | undefined;
|
| 458 |
+
l?: number | undefined;
|
| 459 |
+
opacity?: number | undefined;
|
| 460 |
+
},
|
| 461 |
+
): this;
|
| 462 |
+
}
|
| 463 |
+
|
| 464 |
+
/**
|
| 465 |
+
* An HCL (CIELCH) color factory object, which may also be used with instanceof to test if an object
|
| 466 |
+
* is an HCL color instance.
|
| 467 |
+
*/
|
| 468 |
+
export interface HCLColorFactory extends Function {
|
| 469 |
+
/**
|
| 470 |
+
* Constructs a new HCL color based on the specified channel values and opacity.
|
| 471 |
+
*
|
| 472 |
+
* @param h Hue channel value typically in [0, 360).
|
| 473 |
+
* @param c Chroma channel value typically in [0, 230].
|
| 474 |
+
* @param l Luminance channel value typically in the range [0, 100].
|
| 475 |
+
* @param opacity Optional opacity value, defaults to 1.
|
| 476 |
+
*/
|
| 477 |
+
(h: number, c: number, l: number, opacity?: number): HCLColor;
|
| 478 |
+
/**
|
| 479 |
+
* Parses the specified CSS Color Module Level 3 specifier string, returning an HCL color.
|
| 480 |
+
* If the specifier was not valid, null is returned.
|
| 481 |
+
*
|
| 482 |
+
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
| 483 |
+
*/
|
| 484 |
+
(cssColorSpecifier: string): HCLColor;
|
| 485 |
+
/**
|
| 486 |
+
* Converts the provided color instance and returns an HCL color.
|
| 487 |
+
* The color instance is converted to the RGB color space using color.rgb and then converted to HCL.
|
| 488 |
+
* (Colors already in the HCL color space skip the conversion to RGB,
|
| 489 |
+
* and colors in the Lab color space are converted directly to HCL.)
|
| 490 |
+
*
|
| 491 |
+
* @param color A permissible color space instance.
|
| 492 |
+
*/
|
| 493 |
+
// tslint:disable-next-line:unified-signatures
|
| 494 |
+
(color: ColorSpaceObject | ColorCommonInstance): HCLColor;
|
| 495 |
+
/**
|
| 496 |
+
* Prototype of the factory, which can be used for instanceof testing
|
| 497 |
+
*/
|
| 498 |
+
readonly prototype: HCLColor;
|
| 499 |
+
}
|
| 500 |
+
|
| 501 |
+
/**
|
| 502 |
+
* An LCH (CIELCH) color factory function to create an HCL color object.
|
| 503 |
+
*/
|
| 504 |
+
export interface LCHColorFactory {
|
| 505 |
+
/**
|
| 506 |
+
* Constructs a new HCL color based on the specified channel values and opacity.
|
| 507 |
+
*
|
| 508 |
+
* @param l Luminance channel value typically in the range [0, 100].
|
| 509 |
+
* @param c Chroma channel value typically in [0, 230].
|
| 510 |
+
* @param h Hue channel value typically in [0, 360).
|
| 511 |
+
* @param opacity Optional opacity value, defaults to 1.
|
| 512 |
+
*/
|
| 513 |
+
(l: number, c: number, h: number, opacity?: number): HCLColor;
|
| 514 |
+
/**
|
| 515 |
+
* Parses the specified CSS Color Module Level 3 specifier string, returning an HCL color.
|
| 516 |
+
* If the specifier was not valid, null is returned.
|
| 517 |
+
*
|
| 518 |
+
* @param cssColorSpecifier A CSS color Module Level 3 specifier string.
|
| 519 |
+
*/
|
| 520 |
+
(cssColorSpecifier: string): HCLColor;
|
| 521 |
+
/**
|
| 522 |
+
* Converts the provided color instance and returns an HCL color.
|
| 523 |
+
* The color instance is converted to the RGB color space using color.rgb and then converted to HCL.
|
| 524 |
+
* (Colors already in the HCL color space skip the conversion to RGB,
|
| 525 |
+
* and colors in the Lab color space are converted directly to HCL.)
|
| 526 |
+
*
|
| 527 |
+
* @param color A permissible color space instance.
|
| 528 |
+
*/
|
| 529 |
+
// tslint:disable-next-line:unified-signatures
|
| 530 |
+
(color: ColorSpaceObject | ColorCommonInstance): HCLColor;
|
| 531 |
+
}
|
| 532 |
+
|
| 533 |
+
/**
|
| 534 |
+
* Dave Green’s Cubehelix color object.
|
| 535 |
+
*/
|
| 536 |
+
export interface CubehelixColor extends Color {
|
| 537 |
+
/**
|
| 538 |
+
* Hue channel value.
|
| 539 |
+
*/
|
| 540 |
+
h: number;
|
| 541 |
+
/**
|
| 542 |
+
* Saturation channel value.
|
| 543 |
+
*/
|
| 544 |
+
s: number;
|
| 545 |
+
/**
|
| 546 |
+
* Lightness channel value.
|
| 547 |
+
*/
|
| 548 |
+
l: number;
|
| 549 |
+
/**
|
| 550 |
+
* Opacity value.
|
| 551 |
+
*/
|
| 552 |
+
opacity: number;
|
| 553 |
+
/**
|
| 554 |
+
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
| 555 |
+
* If k is not specified, it defaults to 1.
|
| 556 |
+
*
|
| 557 |
+
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
| 558 |
+
*/
|
| 559 |
+
brighter(k?: number): this;
|
| 560 |
+
/**
|
| 561 |
+
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
| 562 |
+
* If k is not specified, it defaults to 1.
|
| 563 |
+
*
|
| 564 |
+
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
| 565 |
+
*/
|
| 566 |
+
darker(k?: number): this;
|
| 567 |
+
/**
|
| 568 |
+
* Returns the RGB color equivalent of this color.
|
| 569 |
+
*/
|
| 570 |
+
rgb(): RGBColor;
|
| 571 |
+
/**
|
| 572 |
+
* Returns a copy of this color.
|
| 573 |
+
*
|
| 574 |
+
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
| 575 |
+
*/
|
| 576 |
+
copy(
|
| 577 |
+
values?: {
|
| 578 |
+
h?: number | undefined;
|
| 579 |
+
s?: number | undefined;
|
| 580 |
+
l?: number | undefined;
|
| 581 |
+
opacity?: number | undefined;
|
| 582 |
+
},
|
| 583 |
+
): this;
|
| 584 |
+
}
|
| 585 |
+
|
| 586 |
+
/**
|
| 587 |
+
* A color factory object for Dave Green's Cubehelix colors, which may also be used with instanceof to test if an object
|
| 588 |
+
* is a Cubehelix color instance.
|
| 589 |
+
*/
|
| 590 |
+
export interface CubehelixColorFactory extends Function {
|
| 591 |
+
/**
|
| 592 |
+
* Constructs a new Cubehelix color based on the specified channel values and opacity.
|
| 593 |
+
*
|
| 594 |
+
* @param h Hue channel value.
|
| 595 |
+
* @param s Saturation channel value.
|
| 596 |
+
* @param l Lightness channel value.
|
| 597 |
+
* @param opacity Optional opacity value, defaults to 1.
|
| 598 |
+
*/
|
| 599 |
+
(h: number, s: number, l: number, opacity?: number): CubehelixColor;
|
| 600 |
+
/**
|
| 601 |
+
* Parses the specified CSS Color Module Level 3 specifier string, returning an Cubehelix color.
|
| 602 |
+
* If the specifier was not valid, null is returned.
|
| 603 |
+
*
|
| 604 |
+
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
| 605 |
+
*/
|
| 606 |
+
(cssColorSpecifier: string): CubehelixColor;
|
| 607 |
+
/**
|
| 608 |
+
* Converts the provided color instance and returns a Cubehelix color.
|
| 609 |
+
* The color instance is specified, it is converted to the RGB color space using color.rgb and then converted to Cubehelix.
|
| 610 |
+
* (Colors already in the Cubehelix color space skip the conversion to RGB.)
|
| 611 |
+
*
|
| 612 |
+
* @param color A permissible color space instance.
|
| 613 |
+
*/
|
| 614 |
+
// tslint:disable-next-line:unified-signatures
|
| 615 |
+
(color: ColorSpaceObject | ColorCommonInstance): CubehelixColor;
|
| 616 |
+
/**
|
| 617 |
+
* Prototype of the factory, which can be used for instanceof testing
|
| 618 |
+
*/
|
| 619 |
+
readonly prototype: CubehelixColor;
|
| 620 |
+
}
|
| 621 |
+
|
| 622 |
+
// --------------------------------------------------------------------------
|
| 623 |
+
// Color object factories
|
| 624 |
+
// --------------------------------------------------------------------------
|
| 625 |
+
|
| 626 |
+
/**
|
| 627 |
+
* A Color factory object, which may also be used with instanceof to test if an object is a color instance.
|
| 628 |
+
*/
|
| 629 |
+
export const color: ColorFactory;
|
| 630 |
+
|
| 631 |
+
/**
|
| 632 |
+
* An RGB color factory object, which may also be used with instanceof to test if an object
|
| 633 |
+
* is an RGB color instance.
|
| 634 |
+
*/
|
| 635 |
+
export const rgb: RGBColorFactory;
|
| 636 |
+
|
| 637 |
+
/**
|
| 638 |
+
* An HSL color factory object, which may also be used with instanceof to test if an object
|
| 639 |
+
* is an HSL color instance.
|
| 640 |
+
*/
|
| 641 |
+
export const hsl: HSLColorFactory;
|
| 642 |
+
|
| 643 |
+
/**
|
| 644 |
+
* A Lab (CIELAB) color factory object, which may also be used with instanceof to test if an object
|
| 645 |
+
* is a Lab color instance.
|
| 646 |
+
*/
|
| 647 |
+
export const lab: LabColorFactory;
|
| 648 |
+
|
| 649 |
+
/**
|
| 650 |
+
* A gray color factory for Lab (CIELAB) colors.
|
| 651 |
+
*/
|
| 652 |
+
export const gray: GrayColorFactory;
|
| 653 |
+
|
| 654 |
+
/**
|
| 655 |
+
* An HCL (CIELCH) color factory object, which may also be used with instanceof to test if an object
|
| 656 |
+
* is an HCL color instance.
|
| 657 |
+
*/
|
| 658 |
+
export const hcl: HCLColorFactory;
|
| 659 |
+
|
| 660 |
+
/**
|
| 661 |
+
* An LCH (CIELCH) color factory function to create an HCL color object.
|
| 662 |
+
*/
|
| 663 |
+
export const lch: LCHColorFactory;
|
| 664 |
+
|
| 665 |
+
/**
|
| 666 |
+
* A color factory object for Dave Green's Cubehelix colors, which may also be used with instanceof to test if an object
|
| 667 |
+
* is a Cubehelix color instance.
|
| 668 |
+
*/
|
| 669 |
+
export const cubehelix: CubehelixColorFactory;
|
astra_scene_test/X_03/node_modules/@types/d3-color/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@types/d3-color",
|
| 3 |
+
"version": "3.1.3",
|
| 4 |
+
"description": "TypeScript definitions for d3-color",
|
| 5 |
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-color",
|
| 6 |
+
"license": "MIT",
|
| 7 |
+
"contributors": [
|
| 8 |
+
{
|
| 9 |
+
"name": "Tom Wanzek",
|
| 10 |
+
"githubUsername": "tomwanzek",
|
| 11 |
+
"url": "https://github.com/tomwanzek"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "Alex Ford",
|
| 15 |
+
"githubUsername": "gustavderdrache",
|
| 16 |
+
"url": "https://github.com/gustavderdrache"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "Boris Yankov",
|
| 20 |
+
"githubUsername": "borisyankov",
|
| 21 |
+
"url": "https://github.com/borisyankov"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name": "denisname",
|
| 25 |
+
"githubUsername": "denisname",
|
| 26 |
+
"url": "https://github.com/denisname"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "Hugues Stefanski",
|
| 30 |
+
"githubUsername": "ledragon",
|
| 31 |
+
"url": "https://github.com/ledragon"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "Nathan Bierema",
|
| 35 |
+
"githubUsername": "Methuselah96",
|
| 36 |
+
"url": "https://github.com/Methuselah96"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"name": "Fil",
|
| 40 |
+
"githubUsername": "Fil",
|
| 41 |
+
"url": "https://github.com/Fil"
|
| 42 |
+
}
|
| 43 |
+
],
|
| 44 |
+
"main": "",
|
| 45 |
+
"types": "index.d.ts",
|
| 46 |
+
"repository": {
|
| 47 |
+
"type": "git",
|
| 48 |
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
| 49 |
+
"directory": "types/d3-color"
|
| 50 |
+
},
|
| 51 |
+
"scripts": {},
|
| 52 |
+
"dependencies": {},
|
| 53 |
+
"typesPublisherContentHash": "89cf9357324cddaa31cfb539b1c33d118648ed55319f2a0d26f24b004975a947",
|
| 54 |
+
"typeScriptVersion": "4.5"
|
| 55 |
+
}
|
astra_scene_test/X_03/node_modules/@types/d3-interpolate/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE
|
astra_scene_test/X_03/node_modules/@types/d3-interpolate/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Installation
|
| 2 |
+
> `npm install --save @types/d3-interpolate`
|
| 3 |
+
|
| 4 |
+
# Summary
|
| 5 |
+
This package contains type definitions for d3-interpolate (https://github.com/d3/d3-interpolate/).
|
| 6 |
+
|
| 7 |
+
# Details
|
| 8 |
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-interpolate.
|
| 9 |
+
|
| 10 |
+
### Additional Details
|
| 11 |
+
* Last updated: Tue, 07 Nov 2023 15:11:37 GMT
|
| 12 |
+
* Dependencies: [@types/d3-color](https://npmjs.com/package/@types/d3-color)
|
| 13 |
+
|
| 14 |
+
# Credits
|
| 15 |
+
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), [denisname](https://github.com/denisname), and [Nathan Bierema](https://github.com/Methuselah96).
|
astra_scene_test/X_03/node_modules/@types/d3-interpolate/index.d.ts
ADDED
|
@@ -0,0 +1,387 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ch version validated against: 3.0.1
|
| 2 |
+
|
| 3 |
+
import { ColorCommonInstance } from "d3-color";
|
| 4 |
+
|
| 5 |
+
// ---------------------------------------------------------------------------
|
| 6 |
+
// Shared Type Definitions and Interfaces
|
| 7 |
+
// ---------------------------------------------------------------------------
|
| 8 |
+
|
| 9 |
+
export interface ZoomInterpolator extends Function {
|
| 10 |
+
(t: number): ZoomView;
|
| 11 |
+
/**
|
| 12 |
+
* Recommended duration of zoom transition in milliseconds.
|
| 13 |
+
*/
|
| 14 |
+
duration: number;
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* Given a zoom interpolator, returns a new zoom interpolator using the specified curvature rho.
|
| 18 |
+
* When rho is close to 0, the interpolator is almost linear.
|
| 19 |
+
* The default curvature is sqrt(2).
|
| 20 |
+
* @param rho
|
| 21 |
+
*/
|
| 22 |
+
rho(rho: number): this;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
export interface ColorGammaInterpolationFactory extends Function {
|
| 26 |
+
(a: string | ColorCommonInstance, b: string | ColorCommonInstance): (t: number) => string;
|
| 27 |
+
/**
|
| 28 |
+
* Returns a new interpolator factory of the same type using the specified *gamma*.
|
| 29 |
+
* For example, to interpolate from purple to orange with a gamma of 2.2 in RGB space: `d3.interpolateRgb.gamma(2.2)("purple", "orange")`.
|
| 30 |
+
* See Eric Brasseur’s article, [Gamma error in picture scaling](https://web.archive.org/web/20160112115812/http://www.4p8.com/eric.brasseur/gamma.html), for more on gamma correction.
|
| 31 |
+
*/
|
| 32 |
+
gamma(g: number): ColorGammaInterpolationFactory;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
/**
|
| 36 |
+
* Type zoomView is used to represent a numeric array with three elements.
|
| 37 |
+
* In order of appearance the elements correspond to:
|
| 38 |
+
* - cx: *x*-coordinate of the center of the viewport
|
| 39 |
+
* - cy: *y*-coordinate of the center of the viewport
|
| 40 |
+
* - width: size of the viewport
|
| 41 |
+
*/
|
| 42 |
+
export type ZoomView = [number, number, number];
|
| 43 |
+
|
| 44 |
+
export type TypedArray =
|
| 45 |
+
| Int8Array
|
| 46 |
+
| Uint8Array
|
| 47 |
+
| Int16Array
|
| 48 |
+
| Uint16Array
|
| 49 |
+
| Int32Array
|
| 50 |
+
| Uint32Array
|
| 51 |
+
| Uint8ClampedArray
|
| 52 |
+
| Float32Array
|
| 53 |
+
| Float64Array;
|
| 54 |
+
|
| 55 |
+
export type NumberArray = TypedArray | DataView;
|
| 56 |
+
|
| 57 |
+
// ---------------------------------------------------------------------------
|
| 58 |
+
// Interpolation Function Factories
|
| 59 |
+
// ---------------------------------------------------------------------------
|
| 60 |
+
|
| 61 |
+
/**
|
| 62 |
+
* Returns an `null` constant interpolator.
|
| 63 |
+
*/
|
| 64 |
+
export function interpolate(a: any, b: null): (t: number) => null;
|
| 65 |
+
/**
|
| 66 |
+
* Returns an boolean constant interpolator of value `b`.
|
| 67 |
+
*/
|
| 68 |
+
export function interpolate(a: any, b: boolean): (t: number) => boolean;
|
| 69 |
+
/**
|
| 70 |
+
* Returns a `interpolateRgb` interpolator.
|
| 71 |
+
*/
|
| 72 |
+
export function interpolate(a: string | ColorCommonInstance, b: ColorCommonInstance): (t: number) => string;
|
| 73 |
+
/**
|
| 74 |
+
* Returns a `interpolateDate` interpolator.
|
| 75 |
+
*/
|
| 76 |
+
export function interpolate(a: Date, b: Date): (t: number) => Date;
|
| 77 |
+
/**
|
| 78 |
+
* Returns a `interpolateNumber` interpolator.
|
| 79 |
+
*/
|
| 80 |
+
export function interpolate(
|
| 81 |
+
a: number | { valueOf(): number },
|
| 82 |
+
b: number | { valueOf(): number },
|
| 83 |
+
): (t: number) => number;
|
| 84 |
+
/**
|
| 85 |
+
* Returns a `interpolateNumberArray` interpolator.
|
| 86 |
+
*/
|
| 87 |
+
export function interpolate<T extends NumberArray>(a: NumberArray | number[], b: T): (t: number) => T;
|
| 88 |
+
/**
|
| 89 |
+
* Returns a `interpolateString` interpolator. If `b` is a string coercible to a color use use `interpolateRgb`.
|
| 90 |
+
*/
|
| 91 |
+
export function interpolate(a: string | { toString(): string }, b: string): (t: number) => string;
|
| 92 |
+
/**
|
| 93 |
+
* Returns a `interpolateArray` interpolator.
|
| 94 |
+
*/
|
| 95 |
+
export function interpolate<U extends any[]>(a: any[], b: U): (t: number) => U;
|
| 96 |
+
/**
|
| 97 |
+
* Returns a `interpolateObject` interpolator.
|
| 98 |
+
*/
|
| 99 |
+
export function interpolate<U extends object>(a: any, b: U): (t: number) => U;
|
| 100 |
+
|
| 101 |
+
/**
|
| 102 |
+
* Returns an interpolator between the two numbers `a` and `b`.
|
| 103 |
+
* The returned interpolator is equivalent to: `(t) => a * (1 - t) + b * t`.
|
| 104 |
+
*/
|
| 105 |
+
export function interpolateNumber(
|
| 106 |
+
a: number | { valueOf(): number },
|
| 107 |
+
b: number | { valueOf(): number },
|
| 108 |
+
): (t: number) => number;
|
| 109 |
+
|
| 110 |
+
/**
|
| 111 |
+
* Returns an interpolator between the two numbers `a` and `b`; the interpolator is similar to `interpolateNumber`,
|
| 112 |
+
* except it will round the resulting value to the nearest integer.
|
| 113 |
+
*/
|
| 114 |
+
export function interpolateRound(
|
| 115 |
+
a: number | { valueOf(): number },
|
| 116 |
+
b: number | { valueOf(): number },
|
| 117 |
+
): (t: number) => number;
|
| 118 |
+
|
| 119 |
+
/**
|
| 120 |
+
* Returns an interpolator between the two strings `a` and `b`.
|
| 121 |
+
* The string interpolator finds numbers embedded in `a` and `b`, where each number is of the form understood by JavaScript.
|
| 122 |
+
* A few examples of numbers that will be detected within a string: `-1`, `42`, `3.14159`, and `6.0221413e+23`.
|
| 123 |
+
*
|
| 124 |
+
* For each number embedded in `b`, the interpolator will attempt to find a corresponding number in `a`.
|
| 125 |
+
* If a corresponding number is found, a numeric interpolator is created using `interpolateNumber`.
|
| 126 |
+
* The remaining parts of the string `b` are used as a template.
|
| 127 |
+
*
|
| 128 |
+
* For example, if `a` is `"300 12px sans-serif"`, and `b` is `"500 36px Comic-Sans"`, two embedded numbers are found.
|
| 129 |
+
* The remaining static parts (of string `b`) are a space between the two numbers (`" "`), and the suffix (`"px Comic-Sans"`).
|
| 130 |
+
* The result of the interpolator at `t` = 0.5 is `"400 24px Comic-Sans"`.
|
| 131 |
+
*/
|
| 132 |
+
export function interpolateString(
|
| 133 |
+
a: string | { toString(): string },
|
| 134 |
+
b: string | { toString(): string },
|
| 135 |
+
): (t: number) => string;
|
| 136 |
+
|
| 137 |
+
/**
|
| 138 |
+
* Returns an interpolator between the two dates `a` and `b`.
|
| 139 |
+
*
|
| 140 |
+
* Note: *no defensive copy* of the returned date is created; the same Date instance is returned for every evaluation of the interpolator.
|
| 141 |
+
* No copy is made for performance reasons; interpolators are often part of the inner loop of animated transitions.
|
| 142 |
+
*/
|
| 143 |
+
export function interpolateDate(a: Date, b: Date): (t: number) => Date;
|
| 144 |
+
|
| 145 |
+
export type ArrayInterpolator<A extends any[]> = (t: number) => A;
|
| 146 |
+
|
| 147 |
+
/**
|
| 148 |
+
* Returns an interpolator between the two arrays `a` and `b`. Internally, an array template is created that is the same length in `b`.
|
| 149 |
+
* For each element in `b`, if there exists a corresponding element in `a`, a generic interpolator is created for the two elements using `interpolate`.
|
| 150 |
+
* If there is no such element, the static value from `b` is used in the template.
|
| 151 |
+
* Then, for the given parameter `t`, the template’s embedded interpolators are evaluated. The updated array template is then returned.
|
| 152 |
+
*
|
| 153 |
+
* For example, if `a` is the array `[0, 1]` and `b` is the array `[1, 10, 100]`, then the result of the interpolator for `t = 0.5` is the array `[0.5, 5.5, 100]`.
|
| 154 |
+
*
|
| 155 |
+
* Note: *no defensive copy* of the template array is created; modifications of the returned array may adversely affect subsequent evaluation of the interpolator.
|
| 156 |
+
* No copy is made for performance reasons; interpolators are often part of the inner loop of animated transitions.
|
| 157 |
+
*/
|
| 158 |
+
export function interpolateArray<A extends any[]>(a: any[], b: A): ArrayInterpolator<A>;
|
| 159 |
+
/**
|
| 160 |
+
* interpolateNumberArray is called
|
| 161 |
+
*/
|
| 162 |
+
export function interpolateArray<T extends NumberArray>(a: NumberArray | number[], b: T): (t: number) => T;
|
| 163 |
+
|
| 164 |
+
/**
|
| 165 |
+
* Returns an interpolator between the two arrays of numbers a and b.
|
| 166 |
+
* Internally, an array template is created that is the same type and length as b.
|
| 167 |
+
* For each element in b, if there exists a corresponding element in a, the values are directly interpolated in the array template.
|
| 168 |
+
* If there is no such element, the static value from b is copied.
|
| 169 |
+
* The updated array template is then returned.
|
| 170 |
+
*
|
| 171 |
+
* Note: For performance reasons, no defensive copy is made of the template array and the arguments a and b; modifications of these arrays may affect subsequent evaluation of the interpolator.
|
| 172 |
+
*/
|
| 173 |
+
export function interpolateNumberArray<T extends NumberArray | number[]>(
|
| 174 |
+
a: NumberArray | number[],
|
| 175 |
+
b: T,
|
| 176 |
+
): (t: number) => T;
|
| 177 |
+
|
| 178 |
+
/**
|
| 179 |
+
* Returns an interpolator between the two objects `a` and `b`. Internally, an object template is created that has the same properties as `b`.
|
| 180 |
+
* For each property in `b`, if there exists a corresponding property in `a`, a generic interpolator is created for the two elements using `interpolate`.
|
| 181 |
+
* If there is no such property, the static value from `b` is used in the template.
|
| 182 |
+
* Then, for the given parameter `t`, the template's embedded interpolators are evaluated and the updated object template is then returned.
|
| 183 |
+
*
|
| 184 |
+
* For example, if `a` is the object `{x: 0, y: 1}` and `b` is the object `{x: 1, y: 10, z: 100}`, the result of the interpolator for `t = 0.5` is the object `{x: 0.5, y: 5.5, z: 100}`.
|
| 185 |
+
*
|
| 186 |
+
* Note: *no defensive copy* of the template object is created; modifications of the returned object may adversely affect subsequent evaluation of the interpolator.
|
| 187 |
+
* No copy is made for performance reasons; interpolators are often part of the inner loop of animated transitions.
|
| 188 |
+
*/
|
| 189 |
+
export function interpolateObject<U extends object>(a: any, b: U): (t: number) => U;
|
| 190 |
+
|
| 191 |
+
/**
|
| 192 |
+
* Returns an interpolator between the two 2D CSS transforms represented by `a` and `b`.
|
| 193 |
+
* Each transform is decomposed to a standard representation of translate, rotate, *x*-skew and scale; these component transformations are then interpolated.
|
| 194 |
+
* This behavior is standardized by CSS: see [matrix decomposition for animation](http://www.w3.org/TR/css3-2d-transforms/#matrix-decomposition).
|
| 195 |
+
*/
|
| 196 |
+
export function interpolateTransformCss(a: string, b: string): (t: number) => string;
|
| 197 |
+
|
| 198 |
+
/**
|
| 199 |
+
* Returns an interpolator between the two 2D SVG transforms represented by `a` and `b`.
|
| 200 |
+
* Each transform is decomposed to a standard representation of translate, rotate, *x*-skew and scale; these component transformations are then interpolated.
|
| 201 |
+
* This behavior is standardized by CSS: see [matrix decomposition for animation](http://www.w3.org/TR/css3-2d-transforms/#matrix-decomposition).
|
| 202 |
+
*/
|
| 203 |
+
export function interpolateTransformSvg(a: string, b: string): (t: number) => string;
|
| 204 |
+
|
| 205 |
+
/**
|
| 206 |
+
* Returns an interpolator between the two views `a` and `b` of a two-dimensional plane,
|
| 207 |
+
* based on [“Smooth and efficient zooming and panning”](http://www.win.tue.nl/~vanwijk/zoompan.pdf).
|
| 208 |
+
* Each view is defined as an array of three numbers: *cx*, *cy* and *width*.
|
| 209 |
+
* The first two coordinates *cx*, *cy* represent the center of the viewport; the last coordinate *width* represents the size of the viewport.
|
| 210 |
+
*
|
| 211 |
+
* The returned interpolator exposes a *duration* property which encodes the recommended transition duration in milliseconds.
|
| 212 |
+
* This duration is based on the path length of the curved trajectory through *x,y* space.
|
| 213 |
+
* If you want to a slower or faster transition, multiply this by an arbitrary scale factor (*V* as described in the original paper).
|
| 214 |
+
*/
|
| 215 |
+
export function interpolateZoom(a: ZoomView, b: ZoomView): ZoomInterpolator;
|
| 216 |
+
|
| 217 |
+
/**
|
| 218 |
+
* Returns a discrete interpolator for the given array of values. The returned interpolator maps `t` in `[0, 1 / n)` to values[0],
|
| 219 |
+
* `t` in `[1 / n, 2 / n)` to `values[1]`, and so on, where `n = values.length`. In effect, this is a lightweight quantize scale with a fixed domain of [0, 1].
|
| 220 |
+
*/
|
| 221 |
+
export function interpolateDiscrete<T>(values: T[]): (t: number) => T;
|
| 222 |
+
|
| 223 |
+
// Sampling ------------------------------------------------------------------
|
| 224 |
+
|
| 225 |
+
/**
|
| 226 |
+
* Returns `n` uniformly-spaced samples from the specified `interpolator`, where `n` is an integer greater than one.
|
| 227 |
+
* The first sample is always at `t = 0`, and the last sample is always at `t = 1`.
|
| 228 |
+
* This can be useful in generating a fixed number of samples from a given interpolator,
|
| 229 |
+
* such as to derive the range of a [quantize scale](https://github.com/d3/d3-scale#quantize-scales) from a [continuous interpolator](https://github.com/d3/d3-scale#interpolateWarm).
|
| 230 |
+
*
|
| 231 |
+
* Caution: this method will not work with interpolators that do not return defensive copies of their output,
|
| 232 |
+
* such as `d3.interpolateArray`, `d3.interpolateDate` and `d3.interpolateObject`. For those interpolators, you must wrap the interpolator and create a copy for each returned value.
|
| 233 |
+
*/
|
| 234 |
+
export function quantize<T>(interpolator: (t: number) => T, n: number): T[];
|
| 235 |
+
|
| 236 |
+
// Color Spaces
|
| 237 |
+
|
| 238 |
+
/**
|
| 239 |
+
* Returns an RGB color space interpolator between the two colors `a` and `b` with a configurable gamma. If the gamma is not specified, it defaults to 1.0.
|
| 240 |
+
* The colors `a` and `b` need not be in RGB; they will be converted to RGB using [`d3.rgb`](https://github.com/d3/d3-color#rgb). The return value of the interpolator is an RGB string.
|
| 241 |
+
*/
|
| 242 |
+
export const interpolateRgb: ColorGammaInterpolationFactory;
|
| 243 |
+
|
| 244 |
+
/**
|
| 245 |
+
* Returns a uniform nonrational B-spline interpolator through the specified array of *colors*, which are converted to RGB color space.
|
| 246 |
+
* Implicit control points are generated such that the interpolator returns `colors[0]` at `t = 0` and `colors[colors.length - 1]` at `t = 1`.
|
| 247 |
+
* Opacity interpolation is not currently supported. See also `d3.interpolateBasis`, and see [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic) for examples.
|
| 248 |
+
*/
|
| 249 |
+
export function interpolateRgbBasis(colors: Array<string | ColorCommonInstance>): (t: number) => string;
|
| 250 |
+
|
| 251 |
+
/**
|
| 252 |
+
* Returns a uniform nonrational B-spline interpolator through the specified array of colors, which are converted to RGB color space.
|
| 253 |
+
* The control points are implicitly repeated such that the resulting spline has cyclical C² continuity when repeated around `t` in [0,1];
|
| 254 |
+
* this is useful, for example, to create cyclical color scales. Opacity interpolation is not currently supported.
|
| 255 |
+
* See also `d3.interpolateBasisClosed, and see [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic) for examples.
|
| 256 |
+
*/
|
| 257 |
+
export function interpolateRgbBasisClosed(colors: Array<string | ColorCommonInstance>): (t: number) => string;
|
| 258 |
+
|
| 259 |
+
/**
|
| 260 |
+
* Returns an HSL color space interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in HSL;
|
| 261 |
+
* they will be converted to HSL using `d3.hsl`. If either color’s hue or saturation is NaN, the opposing color’s channel value is used.
|
| 262 |
+
* The shortest path between hues is used. The return value of the interpolator is an RGB string.
|
| 263 |
+
*/
|
| 264 |
+
export function interpolateHsl(a: string | ColorCommonInstance, b: string | ColorCommonInstance): (t: number) => string;
|
| 265 |
+
|
| 266 |
+
/**
|
| 267 |
+
* Like `interpolateHsl`, but does not use the shortest path between hues.
|
| 268 |
+
*/
|
| 269 |
+
export function interpolateHslLong(
|
| 270 |
+
a: string | ColorCommonInstance,
|
| 271 |
+
b: string | ColorCommonInstance,
|
| 272 |
+
): (t: number) => string;
|
| 273 |
+
|
| 274 |
+
/**
|
| 275 |
+
* Returns a Lab color space interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in Lab;
|
| 276 |
+
* they will be converted to Lab using `d3.lab`. The return value of the interpolator is an RGB string.
|
| 277 |
+
*/
|
| 278 |
+
export function interpolateLab(a: string | ColorCommonInstance, b: string | ColorCommonInstance): (t: number) => string;
|
| 279 |
+
|
| 280 |
+
/**
|
| 281 |
+
* Returns an HCL color space interpolator between the two colors `a` and `b`. The colors `a` and `b` need not be in HCL;
|
| 282 |
+
* they will be converted to HCL using `d3.hcl`. If either color’s hue or chroma is NaN, the opposing color’s channel value is used.
|
| 283 |
+
* The shortest path between hues is used. The return value of the interpolator is an RGB string.
|
| 284 |
+
*/
|
| 285 |
+
export function interpolateHcl(a: string | ColorCommonInstance, b: string | ColorCommonInstance): (t: number) => string;
|
| 286 |
+
|
| 287 |
+
/**
|
| 288 |
+
* Like `interpolateHcl`, but does not use the shortest path between hues.
|
| 289 |
+
*/
|
| 290 |
+
export function interpolateHclLong(
|
| 291 |
+
a: string | ColorCommonInstance,
|
| 292 |
+
b: string | ColorCommonInstance,
|
| 293 |
+
): (t: number) => string;
|
| 294 |
+
|
| 295 |
+
/**
|
| 296 |
+
* Returns a Cubehelix color space interpolator between the two colors `a` and `b` using a configurable `gamma`.
|
| 297 |
+
* If the gamma is not specified, it defaults to 1.0. The colors `a` and `b` need not be in Cubehelix;
|
| 298 |
+
* they will be converted to Cubehelix using [`d3.cubehelix`](https://github.com/d3/d3-color#cubehelix).
|
| 299 |
+
* If either color’s hue or saturation is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string.
|
| 300 |
+
*/
|
| 301 |
+
export const interpolateCubehelix: ColorGammaInterpolationFactory;
|
| 302 |
+
|
| 303 |
+
/**
|
| 304 |
+
* Like `interpolateCubehelix`, but does not use the shortest path between hues.
|
| 305 |
+
*/
|
| 306 |
+
export const interpolateCubehelixLong: ColorGammaInterpolationFactory;
|
| 307 |
+
|
| 308 |
+
/**
|
| 309 |
+
* Returns an interpolator between the two hue angles `a` and `b`. If either hue is NaN, the opposing value is used.
|
| 310 |
+
* The shortest path between hues is used. The return value of the interpolator is a number in `[0, 360)`.
|
| 311 |
+
*/
|
| 312 |
+
export function interpolateHue(a: number, b: number): (t: number) => number;
|
| 313 |
+
|
| 314 |
+
// Splines -------------------------------------------------------------------
|
| 315 |
+
|
| 316 |
+
/**
|
| 317 |
+
* Returns a uniform nonrational B-spline interpolator through the specified array of `values`, which must be numbers.
|
| 318 |
+
* Implicit control points are generated such that the interpolator returns `values[0]` at `t` = 0 and `values[values.length - 1]` at `t` = 1.
|
| 319 |
+
* See also [`d3.curveBasis`](https://github.com/d3/d3-shape#curveBasis).
|
| 320 |
+
*/
|
| 321 |
+
export function interpolateBasis(splineNodes: number[]): (t: number) => number;
|
| 322 |
+
|
| 323 |
+
/**
|
| 324 |
+
* Returns a uniform nonrational B-spline interpolator through the specified array of `values`, which must be numbers.
|
| 325 |
+
* The control points are implicitly repeated such that the resulting one-dimensional spline has cyclical C² continuity when repeated around `t` in [0,1].
|
| 326 |
+
* See also [`d3.curveBasisClosed`](https://github.com/d3/d3-shape#curveBasisClosed).
|
| 327 |
+
*/
|
| 328 |
+
export function interpolateBasisClosed(splineNodes: number[]): (t: number) => number;
|
| 329 |
+
|
| 330 |
+
// Piecewise -----------------------------------------------------------------
|
| 331 |
+
|
| 332 |
+
/**
|
| 333 |
+
* Returns a piecewise zoom interpolator, composing zoom interpolators for each adjacent pair of zoom view.
|
| 334 |
+
* The returned interpolator maps `t` in `[0, 1 / (n - 1)]` to `interpolate(values[0], values[1])`, `t` in `[1 / (n - 1), 2 / (n - 1)]` to `interpolate(values[1], values[2])`,
|
| 335 |
+
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
| 336 |
+
* For example, to blend through three different zoom views: `d3.piecewise(d3.interpolateZoom, [[0, 0, 1], [0, 0, 10], [0, 0, 15]])`.
|
| 337 |
+
*
|
| 338 |
+
* interpolate defaults to d3.interpolate.
|
| 339 |
+
*/
|
| 340 |
+
export function piecewise(values: ZoomView[]): ZoomInterpolator;
|
| 341 |
+
/**
|
| 342 |
+
* Returns a piecewise zoom interpolator, composing zoom interpolators for each adjacent pair of zoom view.
|
| 343 |
+
* The returned interpolator maps `t` in `[0, 1 / (n - 1)]` to `interpolate(values[0], values[1])`, `t` in `[1 / (n - 1), 2 / (n - 1)]` to `interpolate(values[1], values[2])`,
|
| 344 |
+
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
| 345 |
+
* For example, to blend through three different zoom views: `d3.piecewise(d3.interpolateZoom, [[0, 0, 1], [0, 0, 10], [0, 0, 15]])`.
|
| 346 |
+
*/
|
| 347 |
+
export function piecewise(
|
| 348 |
+
interpolate: (a: ZoomView, b: ZoomView) => ZoomInterpolator,
|
| 349 |
+
values: ZoomView[],
|
| 350 |
+
): ZoomInterpolator;
|
| 351 |
+
|
| 352 |
+
/**
|
| 353 |
+
* Returns a piecewise array interpolator, composing array interpolators for each adjacent pair of arrays.
|
| 354 |
+
* The returned interpolator maps `t` in `[0, 1 / (n - 1)]` to `interpolate(values[0], values[1])`, `t` in `[1 / (n - 1), 2 / (n - 1)]` to `interpolate(values[1], values[2])`,
|
| 355 |
+
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
| 356 |
+
* For example, to blend through three different arrays: `d3.piecewise(d3.interpolateArray, [[0, 0, 1], [0, 0, 10], [0, 0, 15]])`.
|
| 357 |
+
*
|
| 358 |
+
* interpolate defaults to d3.interpolate.
|
| 359 |
+
*/
|
| 360 |
+
export function piecewise<A extends any[]>(values: A[]): ArrayInterpolator<A>;
|
| 361 |
+
/**
|
| 362 |
+
* Returns a piecewise array interpolator, composing array interpolators for each adjacent pair of arrays.
|
| 363 |
+
* The returned interpolator maps `t` in `[0, 1 / (n - 1)]` to `interpolate(values[0], values[1])`, `t` in `[1 / (n - 1), 2 / (n - 1)]` to `interpolate(values[1], values[2])`,
|
| 364 |
+
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
| 365 |
+
* For example, to blend through three different arrays: `d3.piecewise(d3.interpolateArray, [[0, 0, 1], [0, 0, 10], [0, 0, 15]])`.
|
| 366 |
+
*/
|
| 367 |
+
export function piecewise<A extends any[]>(
|
| 368 |
+
interpolate: (a: any[], b: A) => ArrayInterpolator<A>,
|
| 369 |
+
values: A[],
|
| 370 |
+
): ArrayInterpolator<A>;
|
| 371 |
+
|
| 372 |
+
/**
|
| 373 |
+
* Returns a piecewise interpolator, composing interpolators for each adjacent pair of values.
|
| 374 |
+
* The returned interpolator maps `t` in `[0, 1 / (n - 1)]` to `interpolate(values[0], values[1])`, `t` in `[1 / (n - 1), 2 / (n - 1)]` to `interpolate(values[1], values[2])`,
|
| 375 |
+
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
| 376 |
+
* For example, to blend through red, green and blue: `d3.piecewise(d3.interpolateRgb.gamma(2.2), ["red", "green", "blue"])`.
|
| 377 |
+
*
|
| 378 |
+
* interpolate defaults to d3.interpolate.
|
| 379 |
+
*/
|
| 380 |
+
export function piecewise(values: unknown[]): (t: number) => any;
|
| 381 |
+
/**
|
| 382 |
+
* Returns a piecewise interpolator, composing interpolators for each adjacent pair of values.
|
| 383 |
+
* The returned interpolator maps `t` in `[0, 1 / (n - 1)]` to `interpolate(values[0], values[1])`, `t` in `[1 / (n - 1), 2 / (n - 1)]` to `interpolate(values[1], values[2])`,
|
| 384 |
+
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
| 385 |
+
* For example, to blend through red, green and blue: `d3.piecewise(d3.interpolateRgb.gamma(2.2), ["red", "green", "blue"])`.
|
| 386 |
+
*/
|
| 387 |
+
export function piecewise<TData>(interpolate: (a: TData, b: TData) => unknown, values: TData[]): (t: number) => any;
|
astra_scene_test/X_03/node_modules/@types/d3-interpolate/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@types/d3-interpolate",
|
| 3 |
+
"version": "3.0.4",
|
| 4 |
+
"description": "TypeScript definitions for d3-interpolate",
|
| 5 |
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-interpolate",
|
| 6 |
+
"license": "MIT",
|
| 7 |
+
"contributors": [
|
| 8 |
+
{
|
| 9 |
+
"name": "Tom Wanzek",
|
| 10 |
+
"githubUsername": "tomwanzek",
|
| 11 |
+
"url": "https://github.com/tomwanzek"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "Alex Ford",
|
| 15 |
+
"githubUsername": "gustavderdrache",
|
| 16 |
+
"url": "https://github.com/gustavderdrache"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "Boris Yankov",
|
| 20 |
+
"githubUsername": "borisyankov",
|
| 21 |
+
"url": "https://github.com/borisyankov"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name": "denisname",
|
| 25 |
+
"githubUsername": "denisname",
|
| 26 |
+
"url": "https://github.com/denisname"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "Nathan Bierema",
|
| 30 |
+
"githubUsername": "Methuselah96",
|
| 31 |
+
"url": "https://github.com/Methuselah96"
|
| 32 |
+
}
|
| 33 |
+
],
|
| 34 |
+
"main": "",
|
| 35 |
+
"types": "index.d.ts",
|
| 36 |
+
"repository": {
|
| 37 |
+
"type": "git",
|
| 38 |
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
| 39 |
+
"directory": "types/d3-interpolate"
|
| 40 |
+
},
|
| 41 |
+
"scripts": {},
|
| 42 |
+
"dependencies": {
|
| 43 |
+
"@types/d3-color": "*"
|
| 44 |
+
},
|
| 45 |
+
"typesPublisherContentHash": "d315fc677144695b44f1447ef7429c9ff248886716c2e9f742d031abcb319115",
|
| 46 |
+
"typeScriptVersion": "4.5"
|
| 47 |
+
}
|
astra_scene_test/X_03/node_modules/@types/d3-scale/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE
|
astra_scene_test/X_03/node_modules/@types/d3-scale/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Installation
|
| 2 |
+
> `npm install --save @types/d3-scale`
|
| 3 |
+
|
| 4 |
+
# Summary
|
| 5 |
+
This package contains type definitions for d3-scale (https://github.com/d3/d3-scale/).
|
| 6 |
+
|
| 7 |
+
# Details
|
| 8 |
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-scale.
|
| 9 |
+
|
| 10 |
+
### Additional Details
|
| 11 |
+
* Last updated: Wed, 05 Feb 2025 00:46:59 GMT
|
| 12 |
+
* Dependencies: [@types/d3-time](https://npmjs.com/package/@types/d3-time)
|
| 13 |
+
|
| 14 |
+
# Credits
|
| 15 |
+
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), [denisname](https://github.com/denisname), [rulonder](https://github.com/rulonder), and [Nathan Bierema](https://github.com/Methuselah96).
|
astra_scene_test/X_03/node_modules/@types/d3-scale/index.d.ts
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
astra_scene_test/X_03/node_modules/@types/d3-scale/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@types/d3-scale",
|
| 3 |
+
"version": "4.0.9",
|
| 4 |
+
"description": "TypeScript definitions for d3-scale",
|
| 5 |
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-scale",
|
| 6 |
+
"license": "MIT",
|
| 7 |
+
"contributors": [
|
| 8 |
+
{
|
| 9 |
+
"name": "Tom Wanzek",
|
| 10 |
+
"githubUsername": "tomwanzek",
|
| 11 |
+
"url": "https://github.com/tomwanzek"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "Alex Ford",
|
| 15 |
+
"githubUsername": "gustavderdrache",
|
| 16 |
+
"url": "https://github.com/gustavderdrache"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "Boris Yankov",
|
| 20 |
+
"githubUsername": "borisyankov",
|
| 21 |
+
"url": "https://github.com/borisyankov"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name": "denisname",
|
| 25 |
+
"githubUsername": "denisname",
|
| 26 |
+
"url": "https://github.com/denisname"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "rulonder",
|
| 30 |
+
"githubUsername": "rulonder",
|
| 31 |
+
"url": "https://github.com/rulonder"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "Nathan Bierema",
|
| 35 |
+
"githubUsername": "Methuselah96",
|
| 36 |
+
"url": "https://github.com/Methuselah96"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"main": "",
|
| 40 |
+
"types": "index.d.ts",
|
| 41 |
+
"repository": {
|
| 42 |
+
"type": "git",
|
| 43 |
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
| 44 |
+
"directory": "types/d3-scale"
|
| 45 |
+
},
|
| 46 |
+
"scripts": {},
|
| 47 |
+
"dependencies": {
|
| 48 |
+
"@types/d3-time": "*"
|
| 49 |
+
},
|
| 50 |
+
"peerDependencies": {},
|
| 51 |
+
"typesPublisherContentHash": "c7eb4d63d0dfb659f0f8e359a4de33ed1f690bdea8051641bffa941f06a92f4d",
|
| 52 |
+
"typeScriptVersion": "5.0"
|
| 53 |
+
}
|
astra_scene_test/X_03/node_modules/@types/d3-shape/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE
|
astra_scene_test/X_03/node_modules/@types/d3-shape/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Installation
|
| 2 |
+
> `npm install --save @types/d3-shape`
|
| 3 |
+
|
| 4 |
+
# Summary
|
| 5 |
+
This package contains type definitions for d3-shape (https://github.com/d3/d3-shape/).
|
| 6 |
+
|
| 7 |
+
# Details
|
| 8 |
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-shape.
|
| 9 |
+
|
| 10 |
+
### Additional Details
|
| 11 |
+
* Last updated: Fri, 21 Aug 2026 21:38:06 GMT
|
| 12 |
+
* Dependencies: [@types/d3-path](https://npmjs.com/package/@types/d3-path)
|
| 13 |
+
|
| 14 |
+
# Credits
|
| 15 |
+
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), [denisname](https://github.com/denisname), [Nathan Bierema](https://github.com/Methuselah96), and [Fil](https://github.com/Fil).
|
astra_scene_test/X_03/node_modules/@types/d3-shape/index.d.ts
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
astra_scene_test/X_03/node_modules/@types/d3-shape/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@types/d3-shape",
|
| 3 |
+
"version": "3.2.0",
|
| 4 |
+
"description": "TypeScript definitions for d3-shape",
|
| 5 |
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-shape",
|
| 6 |
+
"license": "MIT",
|
| 7 |
+
"contributors": [
|
| 8 |
+
{
|
| 9 |
+
"name": "Tom Wanzek",
|
| 10 |
+
"githubUsername": "tomwanzek",
|
| 11 |
+
"url": "https://github.com/tomwanzek"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "Alex Ford",
|
| 15 |
+
"githubUsername": "gustavderdrache",
|
| 16 |
+
"url": "https://github.com/gustavderdrache"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "Boris Yankov",
|
| 20 |
+
"githubUsername": "borisyankov",
|
| 21 |
+
"url": "https://github.com/borisyankov"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name": "denisname",
|
| 25 |
+
"githubUsername": "denisname",
|
| 26 |
+
"url": "https://github.com/denisname"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "Nathan Bierema",
|
| 30 |
+
"githubUsername": "Methuselah96",
|
| 31 |
+
"url": "https://github.com/Methuselah96"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "Fil",
|
| 35 |
+
"githubUsername": "Fil",
|
| 36 |
+
"url": "https://github.com/Fil"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"main": "",
|
| 40 |
+
"types": "index.d.ts",
|
| 41 |
+
"repository": {
|
| 42 |
+
"type": "git",
|
| 43 |
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
| 44 |
+
"directory": "types/d3-shape"
|
| 45 |
+
},
|
| 46 |
+
"scripts": {},
|
| 47 |
+
"dependencies": {
|
| 48 |
+
"@types/d3-path": "*"
|
| 49 |
+
},
|
| 50 |
+
"peerDependencies": {},
|
| 51 |
+
"typesPublisherContentHash": "4d33e16c0579135ebe257c1dfb53b603cbf36eb29b15a4748ff9b6cbf1f979b2",
|
| 52 |
+
"typeScriptVersion": "5.6"
|
| 53 |
+
}
|
astra_scene_test/X_03/node_modules/@types/d3-time/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE
|
astra_scene_test/X_03/node_modules/@types/d3-time/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Installation
|
| 2 |
+
> `npm install --save @types/d3-time`
|
| 3 |
+
|
| 4 |
+
# Summary
|
| 5 |
+
This package contains type definitions for d3-time (https://github.com/d3/d3-time/).
|
| 6 |
+
|
| 7 |
+
# Details
|
| 8 |
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-time.
|
| 9 |
+
|
| 10 |
+
### Additional Details
|
| 11 |
+
* Last updated: Mon, 25 Nov 2024 10:02:27 GMT
|
| 12 |
+
* Dependencies: none
|
| 13 |
+
|
| 14 |
+
# Credits
|
| 15 |
+
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), [denisname](https://github.com/denisname), and [Nathan Bierema](https://github.com/Methuselah96).
|
astra_scene_test/X_03/node_modules/@types/d3-time/index.d.ts
ADDED
|
@@ -0,0 +1,697 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Last module patch version validated against: 3.0.0
|
| 2 |
+
|
| 3 |
+
// ---------------------------------------------------------------
|
| 4 |
+
// Interfaces
|
| 5 |
+
// ---------------------------------------------------------------
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* A D3 Time Interval
|
| 9 |
+
*/
|
| 10 |
+
export interface TimeInterval {
|
| 11 |
+
/**
|
| 12 |
+
* Returns a new date representing the latest interval boundary date before or equal to date.
|
| 13 |
+
* Equivalent to interval.floor, except it date is not specified, it defaults to the current time.
|
| 14 |
+
* For example, d3.timeYear(date) and d3.timeYear.floor(date) are equivalent.
|
| 15 |
+
*
|
| 16 |
+
* For example, timeDay(date) typically returns 12:00 AM local time on the given date.
|
| 17 |
+
*
|
| 18 |
+
* This function is idempotent: if the specified date is already floored to the current interval,
|
| 19 |
+
* a new date with an identical time is returned.
|
| 20 |
+
* Furthermore, the returned date is the minimum expressible value of the associated interval,
|
| 21 |
+
* such that interval.floor(interval.floor(date) - 1) returns the preceding interval boundary date.
|
| 22 |
+
*
|
| 23 |
+
* Note that the == and === operators do not compare by value with Date objects,
|
| 24 |
+
* and thus you cannot use them to tell whether the specified date has already been floored.
|
| 25 |
+
* Instead, coerce to a number and then compare.
|
| 26 |
+
*
|
| 27 |
+
* This is more reliable than testing whether the time is 12:00 AM, as in some time zones midnight may not exist due to daylight saving.
|
| 28 |
+
*
|
| 29 |
+
* @param date A date object.
|
| 30 |
+
*/
|
| 31 |
+
(date?: Date): Date;
|
| 32 |
+
|
| 33 |
+
/**
|
| 34 |
+
* Returns a new date representing the latest interval boundary date before or equal to date.
|
| 35 |
+
*
|
| 36 |
+
* For example, timeDay.floor(date) typically returns 12:00 AM local time on the given date.
|
| 37 |
+
*
|
| 38 |
+
* This method is idempotent: if the specified date is already floored to the current interval,
|
| 39 |
+
* a new date with an identical time is returned.
|
| 40 |
+
* Furthermore, the returned date is the minimum expressible value of the associated interval,
|
| 41 |
+
* such that interval.floor(interval.floor(date) - 1) returns the preceding interval boundary date.
|
| 42 |
+
*
|
| 43 |
+
* Note that the == and === operators do not compare by value with Date objects,
|
| 44 |
+
* and thus you cannot use them to tell whether the specified date has already been floored.
|
| 45 |
+
* Instead, coerce to a number and then compare.
|
| 46 |
+
*
|
| 47 |
+
* This is more reliable than testing whether the time is 12:00 AM, as in some time zones midnight may not exist due to daylight saving.
|
| 48 |
+
*
|
| 49 |
+
* @param date A date object.
|
| 50 |
+
*/
|
| 51 |
+
floor(date: Date): Date;
|
| 52 |
+
|
| 53 |
+
/**
|
| 54 |
+
* Returns a new date representing the closest interval boundary date to date.
|
| 55 |
+
*
|
| 56 |
+
* For example, timeDay.round(date) typically returns 12:00 AM local time on the given date if it is on or before noon,
|
| 57 |
+
* and 12:00 AM of the following day if it is after noon.
|
| 58 |
+
*
|
| 59 |
+
* This method is idempotent: if the specified date is already rounded to the current interval, a new date with an identical time is returned.
|
| 60 |
+
*
|
| 61 |
+
* @param date A date object.
|
| 62 |
+
*/
|
| 63 |
+
round(date: Date): Date;
|
| 64 |
+
|
| 65 |
+
/**
|
| 66 |
+
* Returns a new date representing the earliest interval boundary date after or equal to date.
|
| 67 |
+
*
|
| 68 |
+
* For example, timeDay.ceil(date) typically returns 12:00 AM local time on the date following the given date.
|
| 69 |
+
*
|
| 70 |
+
* This method is idempotent: if the specified date is already ceilinged to the current interval,
|
| 71 |
+
* a new date with an identical time is returned. Furthermore,
|
| 72 |
+
* the returned date is the maximum expressible value of the associated interval,
|
| 73 |
+
* such that interval.ceil(interval.ceil(date) + 1) returns the following interval boundary date.
|
| 74 |
+
*
|
| 75 |
+
* @param date A date object.
|
| 76 |
+
*/
|
| 77 |
+
ceil(date: Date): Date;
|
| 78 |
+
|
| 79 |
+
/**
|
| 80 |
+
* Returns a new date equal to date plus step intervals.
|
| 81 |
+
*
|
| 82 |
+
* If step is not specified it defaults to 1.
|
| 83 |
+
*
|
| 84 |
+
* This method does not round the specified date to the interval. For example, if date is today at 5:34 PM,
|
| 85 |
+
* then timeDay.offset(date, 1) returns 5:34 PM tomorrow (even if daylight saving changes!).
|
| 86 |
+
*
|
| 87 |
+
* @param date A date object.
|
| 88 |
+
* @param step An optional number of steps to apply when calculating the offset date.
|
| 89 |
+
* If step is negative, then the returned date will be before the specified date;
|
| 90 |
+
* if step is zero, then a copy of the specified date is returned; if step is not an integer, it is floored.
|
| 91 |
+
*/
|
| 92 |
+
offset(date: Date, step?: number): Date;
|
| 93 |
+
|
| 94 |
+
/**
|
| 95 |
+
* Returns an array of dates representing every interval boundary after or equal to start (inclusive) and before stop (exclusive).
|
| 96 |
+
*
|
| 97 |
+
* If step is specified, then every step-th boundary will be returned; for example,
|
| 98 |
+
* for the timeDay interval a step of 2 will return every other day.
|
| 99 |
+
* If step is not an integer, it is floored.
|
| 100 |
+
*
|
| 101 |
+
* The first date in the returned array is the earliest boundary after or equal to start;
|
| 102 |
+
* subsequent dates are offset by step intervals and floored.
|
| 103 |
+
* Thus, two overlapping ranges may be inconsistent.
|
| 104 |
+
*
|
| 105 |
+
* To make ranges consistent when a step is specified, use CountableInterval.every instead.
|
| 106 |
+
*
|
| 107 |
+
* @param start A start date object for the range.
|
| 108 |
+
* @param stop A stop date object for the range.
|
| 109 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 110 |
+
*/
|
| 111 |
+
range(start: Date, stop: Date, step?: number): Date[];
|
| 112 |
+
|
| 113 |
+
/**
|
| 114 |
+
* Returns a new interval that is a filtered subset of this interval using the specified test function.
|
| 115 |
+
*
|
| 116 |
+
* @param test A test function which is passed a date and should return true if and only if
|
| 117 |
+
* the specified date should be considered part of the interval.
|
| 118 |
+
*/
|
| 119 |
+
filter(test: (date: Date) => boolean): TimeInterval;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
/**
|
| 123 |
+
* A D3 Countable Time Interval
|
| 124 |
+
*/
|
| 125 |
+
export interface CountableTimeInterval extends TimeInterval {
|
| 126 |
+
/**
|
| 127 |
+
* Returns the number of interval boundaries after start (exclusive) and before or equal to end (inclusive).
|
| 128 |
+
*
|
| 129 |
+
* Note that this behavior is slightly different than interval.range,
|
| 130 |
+
* because its purpose is to return the zero-based number of the specified end date relative to the specified start date.
|
| 131 |
+
*
|
| 132 |
+
* @param start A start date object.
|
| 133 |
+
* @param end An end date object.
|
| 134 |
+
*/
|
| 135 |
+
count(start: Date, end: Date): number;
|
| 136 |
+
/**
|
| 137 |
+
* Returns a filtered view of this interval representing every stepth date.
|
| 138 |
+
*
|
| 139 |
+
* The meaning of step is dependent on this interval’s parent interval as defined by the field function.
|
| 140 |
+
*
|
| 141 |
+
* For example, timeMinute.every(15) returns an interval representing every fifteen minutes,
|
| 142 |
+
* starting on the hour: :00, :15, :30, :45, etc. Note that for some intervals,
|
| 143 |
+
* the resulting dates may not be uniformly-spaced;
|
| 144 |
+
* timeDay’s parent interval is timeMonth, and thus the interval number resets at the start of each month.
|
| 145 |
+
*
|
| 146 |
+
* If step is not valid, returns null. If step is one, returns this interval.
|
| 147 |
+
*
|
| 148 |
+
* This method can be used in conjunction with interval.range to ensure that two overlapping ranges are consistent.
|
| 149 |
+
*
|
| 150 |
+
* The returned filtered interval does not support interval.count. See also interval.filter.
|
| 151 |
+
*
|
| 152 |
+
* @param step Number of steps.
|
| 153 |
+
*/
|
| 154 |
+
every(step: number): TimeInterval | null;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
// ---------------------------------------------------------------
|
| 158 |
+
// Custom (Countable)Interval Factories
|
| 159 |
+
// ---------------------------------------------------------------
|
| 160 |
+
|
| 161 |
+
/**
|
| 162 |
+
* Constructs a new custom interval given the specified floor and offset functions.
|
| 163 |
+
*
|
| 164 |
+
* The returned custom interval is not countable, i.e. does not expose the methods "count(..)" and "every(...)".
|
| 165 |
+
*
|
| 166 |
+
* @param floor A floor function which takes a single date as an argument and rounds it down to the nearest interval boundary.
|
| 167 |
+
* @param offset An offset function which takes a date and an integer step as arguments and advances
|
| 168 |
+
* the specified date by the specified number of boundaries; the step may be positive, negative or zero.
|
| 169 |
+
*/
|
| 170 |
+
export function timeInterval(
|
| 171 |
+
floor: (date: Date) => void,
|
| 172 |
+
offset: (date: Date, step: number) => void,
|
| 173 |
+
): TimeInterval;
|
| 174 |
+
/**
|
| 175 |
+
* Constructs a new custom interval given the specified floor, offset and count functions.
|
| 176 |
+
*
|
| 177 |
+
* The returned custom interval is countable and exposes the methods "count(..)" and "every(...)".
|
| 178 |
+
*
|
| 179 |
+
* Note: due to an internal optimization, the specified count function must not invoke interval.count on other time intervals.
|
| 180 |
+
*
|
| 181 |
+
* @param floor A floor function which takes a single date as an argument and rounds it down to the nearest interval boundary.
|
| 182 |
+
* @param offset An offset function which takes a date and an integer step as arguments and advances
|
| 183 |
+
* the specified date by the specified number of boundaries; the step may be positive, negative or zero.
|
| 184 |
+
* @param count A count function which takes a start date and an end date, already floored to the current interval,
|
| 185 |
+
* and returns the number of boundaries between the start (exclusive) and end (inclusive).
|
| 186 |
+
* Note: due to an internal optimization, the specified count function must not invoke interval.count on other time intervals.
|
| 187 |
+
* @param field An optional field function which takes a date, already floored to the current interval,
|
| 188 |
+
* and returns the field value of the specified date,
|
| 189 |
+
* corresponding to the number of boundaries between this date (exclusive) and the latest previous parent boundary.
|
| 190 |
+
* For example, for the timeDay interval, this returns the number of days since the start of the month.
|
| 191 |
+
* If a field function is not specified, it defaults to counting the number of interval boundaries since
|
| 192 |
+
* the UNIX epoch of January 1, 1970 UTC. The field function defines the behavior of interval.every.
|
| 193 |
+
*/
|
| 194 |
+
export function timeInterval(
|
| 195 |
+
floor: (date: Date) => void,
|
| 196 |
+
offset: (date: Date, step: number) => void,
|
| 197 |
+
count: (start: Date, end: Date) => number,
|
| 198 |
+
field?: (date: Date) => number,
|
| 199 |
+
): CountableTimeInterval;
|
| 200 |
+
|
| 201 |
+
// ---------------------------------------------------------------
|
| 202 |
+
// Built-In Factories and Date Array Creators
|
| 203 |
+
// ---------------------------------------------------------------
|
| 204 |
+
|
| 205 |
+
// local time ----------------------------------------------------------
|
| 206 |
+
|
| 207 |
+
/**
|
| 208 |
+
* Milliseconds Interval in Local Time; the shortest available time unit.
|
| 209 |
+
*/
|
| 210 |
+
export const timeMillisecond: CountableTimeInterval;
|
| 211 |
+
|
| 212 |
+
/**
|
| 213 |
+
* This is a convenience alias for timeMillisecond.range(...).
|
| 214 |
+
*
|
| 215 |
+
* @param start A start date object for the range.
|
| 216 |
+
* @param stop A stop date object for the range.
|
| 217 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 218 |
+
*/
|
| 219 |
+
export function timeMilliseconds(start: Date, stop: Date, step?: number): Date[];
|
| 220 |
+
|
| 221 |
+
/**
|
| 222 |
+
* Seconds Interval in Local Time; seconds (e.g., 01:23:45.0000 AM); 1,000 milliseconds.
|
| 223 |
+
*/
|
| 224 |
+
export const timeSecond: CountableTimeInterval;
|
| 225 |
+
|
| 226 |
+
/**
|
| 227 |
+
* This is a convenience alias for timeSecond.range(...).
|
| 228 |
+
*
|
| 229 |
+
* @param start A start date object for the range.
|
| 230 |
+
* @param stop A stop date object for the range.
|
| 231 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 232 |
+
*/
|
| 233 |
+
export function timeSeconds(start: Date, stop: Date, step?: number): Date[];
|
| 234 |
+
|
| 235 |
+
/**
|
| 236 |
+
* Minutes Interval in Local Time; minutes (e.g., 01:02:00 AM); 60 seconds. Note that ECMAScript ignores leap seconds.
|
| 237 |
+
*/
|
| 238 |
+
export const timeMinute: CountableTimeInterval;
|
| 239 |
+
|
| 240 |
+
/**
|
| 241 |
+
* This is a convenience alias for timeMinute.range(...).
|
| 242 |
+
*
|
| 243 |
+
* @param start A start date object for the range.
|
| 244 |
+
* @param stop A stop date object for the range.
|
| 245 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 246 |
+
*/
|
| 247 |
+
export function timeMinutes(start: Date, stop: Date, step?: number): Date[];
|
| 248 |
+
|
| 249 |
+
/**
|
| 250 |
+
* Hours Interval in Local Time; Hours (e.g., 01:00 AM); 60 minutes.
|
| 251 |
+
*
|
| 252 |
+
* Note that advancing time by one hour in local time can return the same hour or skip an hour due to daylight saving.
|
| 253 |
+
*/
|
| 254 |
+
export const timeHour: CountableTimeInterval;
|
| 255 |
+
|
| 256 |
+
/**
|
| 257 |
+
* This is a convenience alias for timeHour.range(...).
|
| 258 |
+
*
|
| 259 |
+
* @param start A start date object for the range.
|
| 260 |
+
* @param stop A stop date object for the range.
|
| 261 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 262 |
+
*/
|
| 263 |
+
export function timeHours(start: Date, stop: Date, step?: number): Date[];
|
| 264 |
+
|
| 265 |
+
/**
|
| 266 |
+
* Days Interval in Local Time; days (e.g., February 7, 2012 at 12:00 AM); typically 24 hours.
|
| 267 |
+
* Days in local time may range from 23 to 25 hours due to daylight saving.
|
| 268 |
+
*/
|
| 269 |
+
export const timeDay: CountableTimeInterval;
|
| 270 |
+
|
| 271 |
+
/**
|
| 272 |
+
* This is a convenience alias for timeDay.range(...).
|
| 273 |
+
*
|
| 274 |
+
* @param start A start date object for the range.
|
| 275 |
+
* @param stop A stop date object for the range.
|
| 276 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 277 |
+
*/
|
| 278 |
+
export function timeDays(start: Date, stop: Date, step?: number): Date[];
|
| 279 |
+
|
| 280 |
+
/**
|
| 281 |
+
* Week Interval in Local Time. Alias for sunday; 7 days and typically 168 hours.
|
| 282 |
+
*
|
| 283 |
+
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
| 284 |
+
*/
|
| 285 |
+
export const timeWeek: CountableTimeInterval;
|
| 286 |
+
|
| 287 |
+
/**
|
| 288 |
+
* This is a convenience alias for timeWeek.range(...).
|
| 289 |
+
*
|
| 290 |
+
* @param start A start date object for the range.
|
| 291 |
+
* @param stop A stop date object for the range.
|
| 292 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 293 |
+
*/
|
| 294 |
+
export function timeWeeks(start: Date, stop: Date, step?: number): Date[];
|
| 295 |
+
|
| 296 |
+
/**
|
| 297 |
+
* Week Interval for Sunday-based weeks in Local Time (e.g., February 5, 2012 at 12:00 AM).
|
| 298 |
+
* 7 days and typically 168 hours.
|
| 299 |
+
*
|
| 300 |
+
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
| 301 |
+
*/
|
| 302 |
+
export const timeSunday: CountableTimeInterval;
|
| 303 |
+
|
| 304 |
+
/**
|
| 305 |
+
* This is a convenience alias for timeSunday.range(...).
|
| 306 |
+
*
|
| 307 |
+
* @param start A start date object for the range.
|
| 308 |
+
* @param stop A stop date object for the range.
|
| 309 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 310 |
+
*/
|
| 311 |
+
export function timeSundays(start: Date, stop: Date, step?: number): Date[];
|
| 312 |
+
|
| 313 |
+
/**
|
| 314 |
+
* Week Interval for Monday-based weeks in Local Time (e.g., February 6, 2012 at 12:00 AM).
|
| 315 |
+
* 7 days and typically 168 hours.
|
| 316 |
+
*
|
| 317 |
+
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
| 318 |
+
*/
|
| 319 |
+
export const timeMonday: CountableTimeInterval;
|
| 320 |
+
|
| 321 |
+
/**
|
| 322 |
+
* This is a convenience alias for timeMonday.range(...).
|
| 323 |
+
*
|
| 324 |
+
* @param start A start date object for the range.
|
| 325 |
+
* @param stop A stop date object for the range.
|
| 326 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 327 |
+
*/
|
| 328 |
+
export function timeMondays(start: Date, stop: Date, step?: number): Date[];
|
| 329 |
+
|
| 330 |
+
/**
|
| 331 |
+
* Week Interval for Tuesday-based weeks in Local Time (e.g., February 7, 2012 at 12:00 AM).
|
| 332 |
+
* 7 days and typically 168 hours.
|
| 333 |
+
*
|
| 334 |
+
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
| 335 |
+
*/
|
| 336 |
+
export const timeTuesday: CountableTimeInterval;
|
| 337 |
+
|
| 338 |
+
/**
|
| 339 |
+
* This is a convenience alias for timeTuesday.range(...).
|
| 340 |
+
*
|
| 341 |
+
* @param start A start date object for the range.
|
| 342 |
+
* @param stop A stop date object for the range.
|
| 343 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 344 |
+
*/
|
| 345 |
+
export function timeTuesdays(start: Date, stop: Date, step?: number): Date[];
|
| 346 |
+
|
| 347 |
+
/**
|
| 348 |
+
* Week Interval for Wednesday-based weeks in Local Time (e.g., February 8, 2012 at 12:00 AM).
|
| 349 |
+
* 7 days and typically 168 hours.
|
| 350 |
+
*
|
| 351 |
+
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
| 352 |
+
*/
|
| 353 |
+
export const timeWednesday: CountableTimeInterval;
|
| 354 |
+
|
| 355 |
+
/**
|
| 356 |
+
* This is a convenience alias for timeWednesday.range(...).
|
| 357 |
+
*
|
| 358 |
+
* @param start A start date object for the range.
|
| 359 |
+
* @param stop A stop date object for the range.
|
| 360 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 361 |
+
*/
|
| 362 |
+
export function timeWednesdays(start: Date, stop: Date, step?: number): Date[];
|
| 363 |
+
|
| 364 |
+
/**
|
| 365 |
+
* Week Interval for Thursday-based weeks in Local Time (e.g., February 9, 2012 at 12:00 AM).
|
| 366 |
+
* 7 days and typically 168 hours.
|
| 367 |
+
*
|
| 368 |
+
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
| 369 |
+
*/
|
| 370 |
+
export const timeThursday: CountableTimeInterval;
|
| 371 |
+
|
| 372 |
+
/**
|
| 373 |
+
* This is a convenience alias for timeThursday.range(...).
|
| 374 |
+
*
|
| 375 |
+
* @param start A start date object for the range.
|
| 376 |
+
* @param stop A stop date object for the range.
|
| 377 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 378 |
+
*/
|
| 379 |
+
export function timeThursdays(start: Date, stop: Date, step?: number): Date[];
|
| 380 |
+
|
| 381 |
+
/**
|
| 382 |
+
* Week Interval for Friday-based weeks in Local Time (e.g., February 10, 2012 at 12:00 AM).
|
| 383 |
+
* 7 days and typically 168 hours.
|
| 384 |
+
*
|
| 385 |
+
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
| 386 |
+
*/
|
| 387 |
+
export const timeFriday: CountableTimeInterval;
|
| 388 |
+
|
| 389 |
+
/**
|
| 390 |
+
* This is a convenience alias for timeFriday.range(...).
|
| 391 |
+
*
|
| 392 |
+
* @param start A start date object for the range.
|
| 393 |
+
* @param stop A stop date object for the range.
|
| 394 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 395 |
+
*/
|
| 396 |
+
export function timeFridays(start: Date, stop: Date, step?: number): Date[];
|
| 397 |
+
|
| 398 |
+
/**
|
| 399 |
+
* Week Interval for Saturday-based weeks in Local Time (e.g., February 11, 2012 at 12:00 AM).
|
| 400 |
+
* 7 days and typically 168 hours.
|
| 401 |
+
*
|
| 402 |
+
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
| 403 |
+
*/
|
| 404 |
+
export const timeSaturday: CountableTimeInterval;
|
| 405 |
+
|
| 406 |
+
/**
|
| 407 |
+
* This is a convenience alias for timeSaturday.range(...).
|
| 408 |
+
*
|
| 409 |
+
* @param start A start date object for the range.
|
| 410 |
+
* @param stop A stop date object for the range.
|
| 411 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 412 |
+
*/
|
| 413 |
+
export function timeSaturdays(start: Date, stop: Date, step?: number): Date[];
|
| 414 |
+
|
| 415 |
+
/**
|
| 416 |
+
* Month Interval in Local Time; months (e.g., February 1, 2012 at 12:00 AM); ranges from 28 to 31 days.
|
| 417 |
+
*/
|
| 418 |
+
export const timeMonth: CountableTimeInterval;
|
| 419 |
+
|
| 420 |
+
/**
|
| 421 |
+
* This is a convenience alias for timeMonth.range(...).
|
| 422 |
+
*
|
| 423 |
+
* @param start A start date object for the range.
|
| 424 |
+
* @param stop A stop date object for the range.
|
| 425 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 426 |
+
*/
|
| 427 |
+
export function timeMonths(start: Date, stop: Date, step?: number): Date[];
|
| 428 |
+
|
| 429 |
+
/**
|
| 430 |
+
* Year Interval in Local Time; years (e.g., January 1, 2012 at 12:00 AM); ranges from 365 to 366 days.
|
| 431 |
+
*/
|
| 432 |
+
export const timeYear: CountableTimeInterval;
|
| 433 |
+
|
| 434 |
+
/**
|
| 435 |
+
* This is a convenience alias for timeYear.range(...).
|
| 436 |
+
*
|
| 437 |
+
* @param start A start date object for the range.
|
| 438 |
+
* @param stop A stop date object for the range.
|
| 439 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 440 |
+
*/
|
| 441 |
+
export function timeYears(start: Date, stop: Date, step?: number): Date[];
|
| 442 |
+
|
| 443 |
+
// utc Coordinated Universal Time ----------------------------------------------------------
|
| 444 |
+
|
| 445 |
+
/**
|
| 446 |
+
* Milliseconds Interval in Coordinated Universal Time (UTC); the shortest available time unit.
|
| 447 |
+
*/
|
| 448 |
+
export const utcMillisecond: CountableTimeInterval;
|
| 449 |
+
|
| 450 |
+
/**
|
| 451 |
+
* This is a convenience alias for utcMillisecond.range(...).
|
| 452 |
+
*
|
| 453 |
+
* @param start A start date object for the range.
|
| 454 |
+
* @param stop A stop date object for the range.
|
| 455 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 456 |
+
*/
|
| 457 |
+
export function utcMilliseconds(start: Date, stop: Date, step?: number): Date[];
|
| 458 |
+
|
| 459 |
+
/**
|
| 460 |
+
* Seconds Interval in Coordinated Universal Time (UTC); seconds (e.g., 01:23:45.0000 AM); 1,000 milliseconds.
|
| 461 |
+
*/
|
| 462 |
+
export const utcSecond: CountableTimeInterval;
|
| 463 |
+
|
| 464 |
+
/**
|
| 465 |
+
* This is a convenience alias for utcSecond.range(...).
|
| 466 |
+
*
|
| 467 |
+
* @param start A start date object for the range.
|
| 468 |
+
* @param stop A stop date object for the range.
|
| 469 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 470 |
+
*/
|
| 471 |
+
export function utcSeconds(start: Date, stop: Date, step?: number): Date[];
|
| 472 |
+
|
| 473 |
+
/**
|
| 474 |
+
* Minutes Interval in Coordinated Universal Time (UTC); minutes (e.g., 01:02:00 AM); 60 seconds.
|
| 475 |
+
* Note that ECMAScript ignores leap seconds.
|
| 476 |
+
*/
|
| 477 |
+
export const utcMinute: CountableTimeInterval;
|
| 478 |
+
|
| 479 |
+
/**
|
| 480 |
+
* This is a convenience alias for utcMinute.range(...).
|
| 481 |
+
*
|
| 482 |
+
* @param start A start date object for the range.
|
| 483 |
+
* @param stop A stop date object for the range.
|
| 484 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 485 |
+
*/
|
| 486 |
+
export function utcMinutes(start: Date, stop: Date, step?: number): Date[];
|
| 487 |
+
|
| 488 |
+
/**
|
| 489 |
+
* Hours Interval in Coordinated Universal Time (UTC); Hours (e.g., 01:00 AM); 60 minutes.
|
| 490 |
+
*/
|
| 491 |
+
export const utcHour: CountableTimeInterval;
|
| 492 |
+
|
| 493 |
+
/**
|
| 494 |
+
* This is a convenience alias for utcHour.range(...).
|
| 495 |
+
*
|
| 496 |
+
* @param start A start date object for the range.
|
| 497 |
+
* @param stop A stop date object for the range.
|
| 498 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 499 |
+
*/
|
| 500 |
+
export function utcHours(start: Date, stop: Date, step?: number): Date[];
|
| 501 |
+
|
| 502 |
+
/**
|
| 503 |
+
* Days Interval in Coordinated Universal Time (UTC); days (e.g., February 7, 2012 at 12:00 AM); 24 hours.
|
| 504 |
+
*/
|
| 505 |
+
export const utcDay: CountableTimeInterval;
|
| 506 |
+
|
| 507 |
+
/**
|
| 508 |
+
* This is a convenience alias for utcDay.range(...).
|
| 509 |
+
*
|
| 510 |
+
* @param start A start date object for the range.
|
| 511 |
+
* @param stop A stop date object for the range.
|
| 512 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 513 |
+
*/
|
| 514 |
+
export function utcDays(start: Date, stop: Date, step?: number): Date[];
|
| 515 |
+
|
| 516 |
+
/**
|
| 517 |
+
* Week Interval in Local Time. Alias for sunday; 7 days and 168 hours.
|
| 518 |
+
*/
|
| 519 |
+
export const utcWeek: CountableTimeInterval;
|
| 520 |
+
|
| 521 |
+
/**
|
| 522 |
+
* This is a convenience alias for utcWeek.range(...).
|
| 523 |
+
*
|
| 524 |
+
* @param start A start date object for the range.
|
| 525 |
+
* @param stop A stop date object for the range.
|
| 526 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 527 |
+
*/
|
| 528 |
+
export function utcWeeks(start: Date, stop: Date, step?: number): Date[];
|
| 529 |
+
|
| 530 |
+
/**
|
| 531 |
+
* Week Interval for Sunday-based weeks in Coordinated Universal Time (UTC) (e.g., February 5, 2012 at 12:00 AM).
|
| 532 |
+
* 7 days and 168 hours.
|
| 533 |
+
*/
|
| 534 |
+
export const utcSunday: CountableTimeInterval;
|
| 535 |
+
|
| 536 |
+
/**
|
| 537 |
+
* This is a convenience alias for utcSunday.range(...).
|
| 538 |
+
*
|
| 539 |
+
* @param start A start date object for the range.
|
| 540 |
+
* @param stop A stop date object for the range.
|
| 541 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 542 |
+
*/
|
| 543 |
+
export function utcSundays(start: Date, stop: Date, step?: number): Date[];
|
| 544 |
+
|
| 545 |
+
/**
|
| 546 |
+
* Week Interval for Monday-based weeks in Coordinated Universal Time (UTC) (e.g., February 6, 2012 at 12:00 AM).
|
| 547 |
+
* 7 days and 168 hours.
|
| 548 |
+
*/
|
| 549 |
+
export const utcMonday: CountableTimeInterval;
|
| 550 |
+
|
| 551 |
+
/**
|
| 552 |
+
* This is a convenience alias for utcMonday.range(...).
|
| 553 |
+
*
|
| 554 |
+
* @param start A start date object for the range.
|
| 555 |
+
* @param stop A stop date object for the range.
|
| 556 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 557 |
+
*/
|
| 558 |
+
export function utcMondays(start: Date, stop: Date, step?: number): Date[];
|
| 559 |
+
|
| 560 |
+
/**
|
| 561 |
+
* Week Interval for Tuesday-based weeks in Coordinated Universal Time (UTC) (e.g., February 7, 2012 at 12:00 AM).
|
| 562 |
+
* 7 days and 168 hours.
|
| 563 |
+
*/
|
| 564 |
+
export const utcTuesday: CountableTimeInterval;
|
| 565 |
+
|
| 566 |
+
/**
|
| 567 |
+
* This is a convenience alias for utcTuesday.range(...).
|
| 568 |
+
*
|
| 569 |
+
* @param start A start date object for the range.
|
| 570 |
+
* @param stop A stop date object for the range.
|
| 571 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 572 |
+
*/
|
| 573 |
+
export function utcTuesdays(start: Date, stop: Date, step?: number): Date[];
|
| 574 |
+
|
| 575 |
+
/**
|
| 576 |
+
* Week Interval for Wednesday-based weeks in Coordinated Universal Time (UTC) (e.g., February 8, 2012 at 12:00 AM).
|
| 577 |
+
* 7 days and 168 hours.
|
| 578 |
+
*/
|
| 579 |
+
export const utcWednesday: CountableTimeInterval;
|
| 580 |
+
|
| 581 |
+
/**
|
| 582 |
+
* This is a convenience alias for utcWednesday.range(...).
|
| 583 |
+
*
|
| 584 |
+
* @param start A start date object for the range.
|
| 585 |
+
* @param stop A stop date object for the range.
|
| 586 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 587 |
+
*/
|
| 588 |
+
export function utcWednesdays(start: Date, stop: Date, step?: number): Date[];
|
| 589 |
+
|
| 590 |
+
/**
|
| 591 |
+
* Week Interval for Thursday-based weeks in Coordinated Universal Time (UTC) (e.g., February 9, 2012 at 12:00 AM).
|
| 592 |
+
* 7 days and 168 hours.
|
| 593 |
+
*/
|
| 594 |
+
export const utcThursday: CountableTimeInterval;
|
| 595 |
+
|
| 596 |
+
/**
|
| 597 |
+
* This is a convenience alias for utcThursday.range(...).
|
| 598 |
+
*
|
| 599 |
+
* @param start A start date object for the range.
|
| 600 |
+
* @param stop A stop date object for the range.
|
| 601 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 602 |
+
*/
|
| 603 |
+
export function utcThursdays(start: Date, stop: Date, step?: number): Date[];
|
| 604 |
+
|
| 605 |
+
/**
|
| 606 |
+
* Week Interval for Friday-based weeks in Coordinated Universal Time (UTC) (e.g., February 10, 2012 at 12:00 AM).
|
| 607 |
+
* 7 days and 168 hours.
|
| 608 |
+
*/
|
| 609 |
+
export const utcFriday: CountableTimeInterval;
|
| 610 |
+
|
| 611 |
+
/**
|
| 612 |
+
* This is a convenience alias for utcFriday.range(...).
|
| 613 |
+
*
|
| 614 |
+
* @param start A start date object for the range.
|
| 615 |
+
* @param stop A stop date object for the range.
|
| 616 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 617 |
+
*/
|
| 618 |
+
export function utcFridays(start: Date, stop: Date, step?: number): Date[];
|
| 619 |
+
|
| 620 |
+
/**
|
| 621 |
+
* Week Interval for Saturday-based weeks in Coordinated Universal Time (UTC) (e.g., February 11, 2012 at 12:00 AM).
|
| 622 |
+
* 7 days and 168 hours.
|
| 623 |
+
*/
|
| 624 |
+
export const utcSaturday: CountableTimeInterval;
|
| 625 |
+
|
| 626 |
+
/**
|
| 627 |
+
* This is a convenience alias for utcSaturday.range(...).
|
| 628 |
+
*
|
| 629 |
+
* @param start A start date object for the range.
|
| 630 |
+
* @param stop A stop date object for the range.
|
| 631 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 632 |
+
*/
|
| 633 |
+
export function utcSaturdays(start: Date, stop: Date, step?: number): Date[];
|
| 634 |
+
|
| 635 |
+
/**
|
| 636 |
+
* Month Interval in Coordinated Universal Time (UTC); months (e.g., February 1, 2012 at 12:00 AM); ranges from 28 to 31 days.
|
| 637 |
+
*/
|
| 638 |
+
export const utcMonth: CountableTimeInterval;
|
| 639 |
+
|
| 640 |
+
/**
|
| 641 |
+
* This is a convenience alias for utcMonth.range(...).
|
| 642 |
+
*
|
| 643 |
+
* @param start A start date object for the range.
|
| 644 |
+
* @param stop A stop date object for the range.
|
| 645 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 646 |
+
*/
|
| 647 |
+
export function utcMonths(start: Date, stop: Date, step?: number): Date[];
|
| 648 |
+
|
| 649 |
+
/**
|
| 650 |
+
* Year Interval in Coordinated Universal Time (UTC); years (e.g., January 1, 2012 at 12:00 AM); ranges from 365 to 366 days.
|
| 651 |
+
*/
|
| 652 |
+
export const utcYear: CountableTimeInterval;
|
| 653 |
+
|
| 654 |
+
/**
|
| 655 |
+
* This is a convenience alias for utcYear.range(...).
|
| 656 |
+
*
|
| 657 |
+
* @param start A start date object for the range.
|
| 658 |
+
* @param stop A stop date object for the range.
|
| 659 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 660 |
+
*/
|
| 661 |
+
export function utcYears(start: Date, stop: Date, step?: number): Date[];
|
| 662 |
+
|
| 663 |
+
/**
|
| 664 |
+
* Like d3.utcDay, except it counts days since the UNIX epoch (January 1, 1970) such that interval.every returns uniformly-spaced dates rather than varying based on day-of-month.
|
| 665 |
+
*/
|
| 666 |
+
export const unixDay: CountableTimeInterval;
|
| 667 |
+
|
| 668 |
+
/**
|
| 669 |
+
* This is a convenience alias for unixDay.range(...).
|
| 670 |
+
*
|
| 671 |
+
* @param start A start date object for the range.
|
| 672 |
+
* @param stop A stop date object for the range.
|
| 673 |
+
* @param step An optional number of steps to apply when calculating the dates in the range.
|
| 674 |
+
*/
|
| 675 |
+
export function unixDays(start: Date, stop: Date, step?: number): Date[];
|
| 676 |
+
|
| 677 |
+
/**
|
| 678 |
+
* Equivalent to d3.utcTicks, but in local time.
|
| 679 |
+
*/
|
| 680 |
+
export function timeTicks(start: Date, stop: Date, count: number): Date[];
|
| 681 |
+
|
| 682 |
+
/**
|
| 683 |
+
* Returns the time interval that would be used by d3.timeTicks given the same arguments.
|
| 684 |
+
*/
|
| 685 |
+
export function timeTickInterval(start: Date, stop: Date, count: number): TimeInterval | null;
|
| 686 |
+
|
| 687 |
+
/**
|
| 688 |
+
* Returns an array of approximately count dates at regular intervals between start and stop (inclusive).
|
| 689 |
+
* If stop is before start, dates are returned in reverse chronological order; otherwise dates are returned in chronological order.
|
| 690 |
+
*/
|
| 691 |
+
export function utcTicks(start: Date, stop: Date, count: number): Date[];
|
| 692 |
+
|
| 693 |
+
/**
|
| 694 |
+
* Returns the time interval that would be used by d3.utcTicks given the same arguments.
|
| 695 |
+
* If there is no associated interval, such as when start or stop is invalid, returns null.
|
| 696 |
+
*/
|
| 697 |
+
export function utcTickInterval(start: Date, stop: Date, count: number): TimeInterval | null;
|
astra_scene_test/X_03/node_modules/@types/d3-time/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@types/d3-time",
|
| 3 |
+
"version": "3.0.4",
|
| 4 |
+
"description": "TypeScript definitions for d3-time",
|
| 5 |
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-time",
|
| 6 |
+
"license": "MIT",
|
| 7 |
+
"contributors": [
|
| 8 |
+
{
|
| 9 |
+
"name": "Tom Wanzek",
|
| 10 |
+
"githubUsername": "tomwanzek",
|
| 11 |
+
"url": "https://github.com/tomwanzek"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "Alex Ford",
|
| 15 |
+
"githubUsername": "gustavderdrache",
|
| 16 |
+
"url": "https://github.com/gustavderdrache"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "Boris Yankov",
|
| 20 |
+
"githubUsername": "borisyankov",
|
| 21 |
+
"url": "https://github.com/borisyankov"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name": "denisname",
|
| 25 |
+
"githubUsername": "denisname",
|
| 26 |
+
"url": "https://github.com/denisname"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "Nathan Bierema",
|
| 30 |
+
"githubUsername": "Methuselah96",
|
| 31 |
+
"url": "https://github.com/Methuselah96"
|
| 32 |
+
}
|
| 33 |
+
],
|
| 34 |
+
"main": "",
|
| 35 |
+
"types": "index.d.ts",
|
| 36 |
+
"repository": {
|
| 37 |
+
"type": "git",
|
| 38 |
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
| 39 |
+
"directory": "types/d3-time"
|
| 40 |
+
},
|
| 41 |
+
"scripts": {},
|
| 42 |
+
"dependencies": {},
|
| 43 |
+
"peerDependencies": {},
|
| 44 |
+
"typesPublisherContentHash": "995c6a7a1f21328f5dceb32804c5f3d92ab20a98694246d9c8f213f4eef298ed",
|
| 45 |
+
"typeScriptVersion": "4.9"
|
| 46 |
+
}
|
astra_scene_test/X_03/node_modules/@types/d3-timer/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE
|
astra_scene_test/X_03/node_modules/@types/d3-timer/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Installation
|
| 2 |
+
> `npm install --save @types/d3-timer`
|
| 3 |
+
|
| 4 |
+
# Summary
|
| 5 |
+
This package contains type definitions for d3-timer (https://github.com/d3/d3-timer/).
|
| 6 |
+
|
| 7 |
+
# Details
|
| 8 |
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-timer.
|
| 9 |
+
|
| 10 |
+
### Additional Details
|
| 11 |
+
* Last updated: Tue, 07 Nov 2023 15:11:37 GMT
|
| 12 |
+
* Dependencies: none
|
| 13 |
+
|
| 14 |
+
# Credits
|
| 15 |
+
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), [denisname](https://github.com/denisname), and [Nathan Bierema](https://github.com/Methuselah96).
|
astra_scene_test/X_03/node_modules/@types/d3-timer/index.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Last module patch version validated against: 3.0.1
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Returns the current time as defined by performance.now if available, and Date.now if not.
|
| 5 |
+
* The current time is updated at the start of a frame; it is thus consistent during the frame, and any timers scheduled during the same frame will be synchronized.
|
| 6 |
+
* If this method is called outside of a frame, such as in response to a user event, the current time is calculated and then fixed until the next frame,
|
| 7 |
+
* again ensuring consistent timing during event handling.
|
| 8 |
+
*/
|
| 9 |
+
export function now(): number;
|
| 10 |
+
|
| 11 |
+
export interface Timer {
|
| 12 |
+
/**
|
| 13 |
+
* Restart a timer with the specified callback and optional delay and time.
|
| 14 |
+
* This is equivalent to stopping this timer and creating a new timer with the specified arguments,
|
| 15 |
+
* although this timer retains the original invocation priority.
|
| 16 |
+
*
|
| 17 |
+
* @param callback A callback function to be invoked and passed in the apparent
|
| 18 |
+
* elapsed time since the timer became active in milliseconds.
|
| 19 |
+
* @param delay An optional numeric delay in milliseconds (default = 0) relative to time.
|
| 20 |
+
* @param time An optional time in milliseconds relative to which the delay is calculated (default = now).
|
| 21 |
+
*/
|
| 22 |
+
restart(callbackFn: (elapsed: number) => void, delay?: number, time?: number): void;
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* Stop the timer.
|
| 26 |
+
*/
|
| 27 |
+
stop(): void;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Schedules and returns a new timer, invoking the specified callback repeatedly until the timer is stopped.
|
| 32 |
+
* The callback is passed the (apparent) elapsed time since the timer became active.
|
| 33 |
+
*
|
| 34 |
+
* @param callback A callback function to be invoked and passed in the apparent
|
| 35 |
+
* elapsed time since the timer became active in milliseconds.
|
| 36 |
+
* @param delay An optional numeric delay in milliseconds (default = 0) relative to time.
|
| 37 |
+
* @param time An optional time in milliseconds relative to which the delay is calculated (default = now).
|
| 38 |
+
*/
|
| 39 |
+
export function timer(callback: (elapsed: number) => void, delay?: number, time?: number): Timer;
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* Immediately invoke any eligible timer callbacks.
|
| 43 |
+
*/
|
| 44 |
+
export function timerFlush(): void;
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* Schedules and returns a new timer, invoking the specified callback. The timer is stopped automatically
|
| 48 |
+
* on its first callback. The callback is passed the (apparent) elapsed time since the timer became active.
|
| 49 |
+
*
|
| 50 |
+
* @param callback A callback function to be invoked and passed in the apparent
|
| 51 |
+
* elapsed time since the timer became active in milliseconds.
|
| 52 |
+
* @param delay An optional numeric delay in milliseconds (default = 0) relative to time.
|
| 53 |
+
* @param time An optional time in milliseconds relative to which the delay is calculated (default = now).
|
| 54 |
+
*/
|
| 55 |
+
export function timeout(callback: (elapsed: number) => void, delay?: number, time?: number): Timer;
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* Schedules and returns a new timer, invoking the specified callback repeatedly every 'delay' milliseconds
|
| 59 |
+
* until the timer is stopped.
|
| 60 |
+
* The callback is passed the (apparent) elapsed time since the timer became active.
|
| 61 |
+
*
|
| 62 |
+
* @param callback A callback function to be invoked and passed in the apparent
|
| 63 |
+
* elapsed time since the timer became active in milliseconds.
|
| 64 |
+
* @param delay An optional numeric delay in milliseconds between repeat invocations of the callback.
|
| 65 |
+
* If not specified, the interval timer behaves like the regular timer.
|
| 66 |
+
* @param time An optional time in milliseconds relative to which the initial delay is calculated (default = now).
|
| 67 |
+
*/
|
| 68 |
+
export function interval(callback: (elapsed: number) => void, delay?: number, time?: number): Timer;
|
astra_scene_test/X_03/node_modules/@types/d3-timer/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@types/d3-timer",
|
| 3 |
+
"version": "3.0.2",
|
| 4 |
+
"description": "TypeScript definitions for d3-timer",
|
| 5 |
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-timer",
|
| 6 |
+
"license": "MIT",
|
| 7 |
+
"contributors": [
|
| 8 |
+
{
|
| 9 |
+
"name": "Tom Wanzek",
|
| 10 |
+
"githubUsername": "tomwanzek",
|
| 11 |
+
"url": "https://github.com/tomwanzek"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "Alex Ford",
|
| 15 |
+
"githubUsername": "gustavderdrache",
|
| 16 |
+
"url": "https://github.com/gustavderdrache"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "Boris Yankov",
|
| 20 |
+
"githubUsername": "borisyankov",
|
| 21 |
+
"url": "https://github.com/borisyankov"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name": "denisname",
|
| 25 |
+
"githubUsername": "denisname",
|
| 26 |
+
"url": "https://github.com/denisname"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "Nathan Bierema",
|
| 30 |
+
"githubUsername": "Methuselah96",
|
| 31 |
+
"url": "https://github.com/Methuselah96"
|
| 32 |
+
}
|
| 33 |
+
],
|
| 34 |
+
"main": "",
|
| 35 |
+
"types": "index.d.ts",
|
| 36 |
+
"repository": {
|
| 37 |
+
"type": "git",
|
| 38 |
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
| 39 |
+
"directory": "types/d3-timer"
|
| 40 |
+
},
|
| 41 |
+
"scripts": {},
|
| 42 |
+
"dependencies": {},
|
| 43 |
+
"typesPublisherContentHash": "a51fc6981e6d12715fd052f7e598dd291c354465025cbb33ece1895bdab4109c",
|
| 44 |
+
"typeScriptVersion": "4.5"
|
| 45 |
+
}
|
astra_scene_test/X_03/node_modules/@types/three/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE
|
astra_scene_test/X_03/node_modules/@types/three/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Installation
|
| 2 |
+
> `npm install --save @types/three`
|
| 3 |
+
|
| 4 |
+
# Summary
|
| 5 |
+
This package contains type definitions for three (https://threejs.org/).
|
| 6 |
+
|
| 7 |
+
# Details
|
| 8 |
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three.
|
| 9 |
+
|
| 10 |
+
### Additional Details
|
| 11 |
+
* Last updated: Wed, 03 Sep 2025 18:38:35 GMT
|
| 12 |
+
* Dependencies: [@dimforge/rapier3d-compat](https://npmjs.com/package/@dimforge/rapier3d-compat), [@tweenjs/tween.js](https://npmjs.com/package/@tweenjs/tween.js), [@types/stats.js](https://npmjs.com/package/@types/stats.js), [@types/webxr](https://npmjs.com/package/@types/webxr), [@webgpu/types](https://npmjs.com/package/@webgpu/types), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
|
| 13 |
+
|
| 14 |
+
# Credits
|
| 15 |
+
These definitions were written by [Josh Ellis](https://github.com/joshuaellis), and [Nathan Bierema](https://github.com/Methuselah96).
|
astra_scene_test/X_03/node_modules/@types/three/build/three.core.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.Core.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.core.min.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.Core.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.module.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.module.min.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.tsl.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.TSL.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.tsl.min.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.TSL.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.webgpu.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.WebGPU.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.webgpu.min.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.WebGPU.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.webgpu.nodes.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.WebGPU.Nodes.js";
|
astra_scene_test/X_03/node_modules/@types/three/build/three.webgpu.nodes.min.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export * from "../src/Three.WebGPU.Nodes.js";
|
astra_scene_test/X_03/node_modules/@types/three/examples/jsm/Addons.d.ts
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export * from "./animation/AnimationClipCreator.js";
|
| 2 |
+
export * from "./animation/CCDIKSolver.js";
|
| 3 |
+
|
| 4 |
+
export { default as WebGL } from "./capabilities/WebGL.js";
|
| 5 |
+
|
| 6 |
+
export * from "./controls/ArcballControls.js";
|
| 7 |
+
export * from "./controls/DragControls.js";
|
| 8 |
+
export * from "./controls/FirstPersonControls.js";
|
| 9 |
+
export * from "./controls/FlyControls.js";
|
| 10 |
+
export * from "./controls/MapControls.js";
|
| 11 |
+
export * from "./controls/OrbitControls.js";
|
| 12 |
+
export * from "./controls/PointerLockControls.js";
|
| 13 |
+
export * from "./controls/TrackballControls.js";
|
| 14 |
+
export * from "./controls/TransformControls.js";
|
| 15 |
+
|
| 16 |
+
export * from "./csm/CSM.js";
|
| 17 |
+
export * from "./csm/CSMFrustum.js";
|
| 18 |
+
export * from "./csm/CSMHelper.js";
|
| 19 |
+
export * from "./csm/CSMShader.js";
|
| 20 |
+
|
| 21 |
+
export * as Curves from "./curves/CurveExtras.js";
|
| 22 |
+
export * from "./curves/NURBSCurve.js";
|
| 23 |
+
export * from "./curves/NURBSSurface.js";
|
| 24 |
+
export * as NURBSUtils from "./curves/NURBSUtils.js";
|
| 25 |
+
export * from "./curves/NURBSVolume.js";
|
| 26 |
+
|
| 27 |
+
export * from "./effects/AnaglyphEffect.js";
|
| 28 |
+
export * from "./effects/AsciiEffect.js";
|
| 29 |
+
export * from "./effects/OutlineEffect.js";
|
| 30 |
+
export * from "./effects/ParallaxBarrierEffect.js";
|
| 31 |
+
export * from "./effects/StereoEffect.js";
|
| 32 |
+
|
| 33 |
+
export * from "./environments/DebugEnvironment.js";
|
| 34 |
+
export * from "./environments/RoomEnvironment.js";
|
| 35 |
+
|
| 36 |
+
export * from "./exporters/DRACOExporter.js";
|
| 37 |
+
export * from "./exporters/EXRExporter.js";
|
| 38 |
+
export * from "./exporters/GLTFExporter.js";
|
| 39 |
+
export * from "./exporters/KTX2Exporter.js";
|
| 40 |
+
export * from "./exporters/OBJExporter.js";
|
| 41 |
+
export * from "./exporters/PLYExporter.js";
|
| 42 |
+
export * from "./exporters/STLExporter.js";
|
| 43 |
+
export * from "./exporters/USDZExporter.js";
|
| 44 |
+
|
| 45 |
+
export * from "./geometries/BoxLineGeometry.js";
|
| 46 |
+
export * from "./geometries/ConvexGeometry.js";
|
| 47 |
+
export * from "./geometries/DecalGeometry.js";
|
| 48 |
+
export * from "./geometries/ParametricFunctions.js";
|
| 49 |
+
export * from "./geometries/ParametricGeometry.js";
|
| 50 |
+
export * from "./geometries/RoundedBoxGeometry.js";
|
| 51 |
+
export * from "./geometries/TeapotGeometry.js";
|
| 52 |
+
export * from "./geometries/TextGeometry.js";
|
| 53 |
+
|
| 54 |
+
export * from "./helpers/LightProbeHelper.js";
|
| 55 |
+
export * from "./helpers/OctreeHelper.js";
|
| 56 |
+
export * from "./helpers/PositionalAudioHelper.js";
|
| 57 |
+
export * from "./helpers/RectAreaLightHelper.js";
|
| 58 |
+
export * from "./helpers/TextureHelper.js";
|
| 59 |
+
export * from "./helpers/VertexNormalsHelper.js";
|
| 60 |
+
export * from "./helpers/VertexTangentsHelper.js";
|
| 61 |
+
export * from "./helpers/ViewHelper.js";
|
| 62 |
+
|
| 63 |
+
export * from "./interactive/HTMLMesh.js";
|
| 64 |
+
export * from "./interactive/InteractiveGroup.js";
|
| 65 |
+
export * from "./interactive/SelectionBox.js";
|
| 66 |
+
export * from "./interactive/SelectionHelper.js";
|
| 67 |
+
|
| 68 |
+
export * from "./lights/LightProbeGenerator.js";
|
| 69 |
+
export * from "./lights/RectAreaLightUniformsLib.js";
|
| 70 |
+
|
| 71 |
+
export * from "./lines/Line2.js";
|
| 72 |
+
export * from "./lines/LineGeometry.js";
|
| 73 |
+
export * from "./lines/LineMaterial.js";
|
| 74 |
+
export * from "./lines/LineSegments2.js";
|
| 75 |
+
export * from "./lines/LineSegmentsGeometry.js";
|
| 76 |
+
export * from "./lines/Wireframe.js";
|
| 77 |
+
export * from "./lines/WireframeGeometry2.js";
|
| 78 |
+
|
| 79 |
+
export * from "./loaders/3DMLoader.js";
|
| 80 |
+
export * from "./loaders/3MFLoader.js";
|
| 81 |
+
export * from "./loaders/AMFLoader.js";
|
| 82 |
+
export * from "./loaders/BVHLoader.js";
|
| 83 |
+
export * from "./loaders/ColladaLoader.js";
|
| 84 |
+
export * from "./loaders/DDSLoader.js";
|
| 85 |
+
export * from "./loaders/DRACOLoader.js";
|
| 86 |
+
export * from "./loaders/EXRLoader.js";
|
| 87 |
+
export * from "./loaders/FBXLoader.js";
|
| 88 |
+
export * from "./loaders/FontLoader.js";
|
| 89 |
+
export * from "./loaders/GCodeLoader.js";
|
| 90 |
+
export * from "./loaders/GLTFLoader.js";
|
| 91 |
+
export * from "./loaders/HDRCubeTextureLoader.js";
|
| 92 |
+
export * from "./loaders/HDRLoader.js";
|
| 93 |
+
export * from "./loaders/IESLoader.js";
|
| 94 |
+
export * from "./loaders/KMZLoader.js";
|
| 95 |
+
export * from "./loaders/KTX2Loader.js";
|
| 96 |
+
export * from "./loaders/KTXLoader.js";
|
| 97 |
+
export * from "./loaders/LDrawLoader.js";
|
| 98 |
+
export * from "./loaders/LottieLoader.js";
|
| 99 |
+
export * from "./loaders/LUT3dlLoader.js";
|
| 100 |
+
export * from "./loaders/LUTCubeLoader.js";
|
| 101 |
+
export * from "./loaders/LWOLoader.js";
|
| 102 |
+
export * from "./loaders/MD2Loader.js";
|
| 103 |
+
export * from "./loaders/MDDLoader.js";
|
| 104 |
+
export * from "./loaders/MTLLoader.js";
|
| 105 |
+
export * from "./loaders/NRRDLoader.js";
|
| 106 |
+
export * from "./loaders/OBJLoader.js";
|
| 107 |
+
export * from "./loaders/PCDLoader.js";
|
| 108 |
+
export * from "./loaders/PDBLoader.js";
|
| 109 |
+
export * from "./loaders/PLYLoader.js";
|
| 110 |
+
export * from "./loaders/PVRLoader.js";
|
| 111 |
+
export * from "./loaders/RGBELoader.js";
|
| 112 |
+
export * from "./loaders/STLLoader.js";
|
| 113 |
+
export * from "./loaders/SVGLoader.js";
|
| 114 |
+
export * from "./loaders/TDSLoader.js";
|
| 115 |
+
export * from "./loaders/TGALoader.js";
|
| 116 |
+
export * from "./loaders/TIFFLoader.js";
|
| 117 |
+
export * from "./loaders/TTFLoader.js";
|
| 118 |
+
export * from "./loaders/UltraHDRLoader.js";
|
| 119 |
+
export * from "./loaders/USDLoader.js";
|
| 120 |
+
export * from "./loaders/VOXLoader.js";
|
| 121 |
+
export * from "./loaders/VRMLLoader.js";
|
| 122 |
+
export * from "./loaders/VTKLoader.js";
|
| 123 |
+
export * from "./loaders/XYZLoader.js";
|
| 124 |
+
|
| 125 |
+
export * from "./materials/LDrawConditionalLineMaterial.js";
|
| 126 |
+
export * from "./materials/MeshGouraudMaterial.js";
|
| 127 |
+
export * from "./materials/MeshPostProcessingMaterial.js";
|
| 128 |
+
|
| 129 |
+
export * from "./math/Capsule.js";
|
| 130 |
+
export * from "./math/ColorConverter.js";
|
| 131 |
+
export * from "./math/ConvexHull.js";
|
| 132 |
+
export * from "./math/ImprovedNoise.js";
|
| 133 |
+
export * from "./math/Lut.js";
|
| 134 |
+
export * from "./math/MeshSurfaceSampler.js";
|
| 135 |
+
export * from "./math/OBB.js";
|
| 136 |
+
export * from "./math/Octree.js";
|
| 137 |
+
export * from "./math/SimplexNoise.js";
|
| 138 |
+
|
| 139 |
+
export * from "./misc/ConvexObjectBreaker.js";
|
| 140 |
+
export * from "./misc/GPUComputationRenderer.js";
|
| 141 |
+
export * from "./misc/Gyroscope.js";
|
| 142 |
+
export * from "./misc/MD2Character.js";
|
| 143 |
+
export * from "./misc/MD2CharacterComplex.js";
|
| 144 |
+
export * from "./misc/MorphAnimMesh.js";
|
| 145 |
+
export * from "./misc/MorphBlendMesh.js";
|
| 146 |
+
export * from "./misc/ProgressiveLightMap.js";
|
| 147 |
+
export * from "./misc/RollerCoaster.js";
|
| 148 |
+
export * from "./misc/TubePainter.js";
|
| 149 |
+
export * from "./misc/Volume.js";
|
| 150 |
+
export * from "./misc/VolumeSlice.js";
|
| 151 |
+
|
| 152 |
+
export * from "./modifiers/CurveModifier.js";
|
| 153 |
+
export * from "./modifiers/EdgeSplitModifier.js";
|
| 154 |
+
export * from "./modifiers/SimplifyModifier.js";
|
| 155 |
+
export * from "./modifiers/TessellateModifier.js";
|
| 156 |
+
|
| 157 |
+
export * from "./objects/GroundedSkybox.js";
|
| 158 |
+
export * from "./objects/Lensflare.js";
|
| 159 |
+
export * from "./objects/MarchingCubes.js";
|
| 160 |
+
export * from "./objects/Reflector.js";
|
| 161 |
+
export * from "./objects/ReflectorForSSRPass.js";
|
| 162 |
+
export * from "./objects/Refractor.js";
|
| 163 |
+
export * from "./objects/ShadowMesh.js";
|
| 164 |
+
export * from "./objects/Sky.js";
|
| 165 |
+
export * from "./objects/Water.js";
|
| 166 |
+
export { Water as Water2 } from "./objects/Water2.js";
|
| 167 |
+
export type { WaterOptions as Water2Options } from "./objects/Water2.js";
|
| 168 |
+
|
| 169 |
+
export * from "./physics/AmmoPhysics.js";
|
| 170 |
+
export * from "./physics/RapierPhysics.js";
|
| 171 |
+
|
| 172 |
+
export * from "./postprocessing/AfterimagePass.js";
|
| 173 |
+
export * from "./postprocessing/BloomPass.js";
|
| 174 |
+
export * from "./postprocessing/BokehPass.js";
|
| 175 |
+
export * from "./postprocessing/ClearPass.js";
|
| 176 |
+
export * from "./postprocessing/CubeTexturePass.js";
|
| 177 |
+
export * from "./postprocessing/DotScreenPass.js";
|
| 178 |
+
export * from "./postprocessing/EffectComposer.js";
|
| 179 |
+
export * from "./postprocessing/FilmPass.js";
|
| 180 |
+
export * from "./postprocessing/GlitchPass.js";
|
| 181 |
+
export * from "./postprocessing/GTAOPass.js";
|
| 182 |
+
export * from "./postprocessing/HalftonePass.js";
|
| 183 |
+
export * from "./postprocessing/LUTPass.js";
|
| 184 |
+
export * from "./postprocessing/MaskPass.js";
|
| 185 |
+
export * from "./postprocessing/OutlinePass.js";
|
| 186 |
+
export * from "./postprocessing/OutputPass.js";
|
| 187 |
+
export * from "./postprocessing/Pass.js";
|
| 188 |
+
export * from "./postprocessing/RenderPass.js";
|
| 189 |
+
export * from "./postprocessing/RenderPixelatedPass.js";
|
| 190 |
+
export * from "./postprocessing/SAOPass.js";
|
| 191 |
+
export * from "./postprocessing/SavePass.js";
|
| 192 |
+
export * from "./postprocessing/ShaderPass.js";
|
| 193 |
+
export * from "./postprocessing/SMAAPass.js";
|
| 194 |
+
export * from "./postprocessing/SSAARenderPass.js";
|
| 195 |
+
export * from "./postprocessing/SSAOPass.js";
|
| 196 |
+
export * from "./postprocessing/SSRPass.js";
|
| 197 |
+
export * from "./postprocessing/TAARenderPass.js";
|
| 198 |
+
export * from "./postprocessing/TexturePass.js";
|
| 199 |
+
export * from "./postprocessing/UnrealBloomPass.js";
|
| 200 |
+
|
| 201 |
+
export * from "./renderers/CSS2DRenderer.js";
|
| 202 |
+
export * from "./renderers/CSS3DRenderer.js";
|
| 203 |
+
export * from "./renderers/Projector.js";
|
| 204 |
+
export * from "./renderers/SVGRenderer.js";
|
| 205 |
+
|
| 206 |
+
export * from "./shaders/ACESFilmicToneMappingShader.js";
|
| 207 |
+
export * from "./shaders/AfterimageShader.js";
|
| 208 |
+
export * from "./shaders/BasicShader.js";
|
| 209 |
+
export * from "./shaders/BleachBypassShader.js";
|
| 210 |
+
export * from "./shaders/BlendShader.js";
|
| 211 |
+
export * from "./shaders/BokehShader.js";
|
| 212 |
+
export { BokehShader as BokehShader2 } from "./shaders/BokehShader2.js";
|
| 213 |
+
export * from "./shaders/BrightnessContrastShader.js";
|
| 214 |
+
export * from "./shaders/ColorCorrectionShader.js";
|
| 215 |
+
export * from "./shaders/ColorifyShader.js";
|
| 216 |
+
export * from "./shaders/ConvolutionShader.js";
|
| 217 |
+
export * from "./shaders/CopyShader.js";
|
| 218 |
+
export * from "./shaders/DepthLimitedBlurShader.js";
|
| 219 |
+
export * from "./shaders/DigitalGlitch.js";
|
| 220 |
+
export * from "./shaders/DOFMipMapShader.js";
|
| 221 |
+
export * from "./shaders/DotScreenShader.js";
|
| 222 |
+
export * from "./shaders/ExposureShader.js";
|
| 223 |
+
export * from "./shaders/FilmShader.js";
|
| 224 |
+
export * from "./shaders/FocusShader.js";
|
| 225 |
+
export * from "./shaders/FreiChenShader.js";
|
| 226 |
+
export * from "./shaders/FXAAShader.js";
|
| 227 |
+
export * from "./shaders/GammaCorrectionShader.js";
|
| 228 |
+
export * from "./shaders/GodRaysShader.js";
|
| 229 |
+
export * from "./shaders/GTAOShader.js";
|
| 230 |
+
export * from "./shaders/HalftoneShader.js";
|
| 231 |
+
export * from "./shaders/HorizontalBlurShader.js";
|
| 232 |
+
export * from "./shaders/HorizontalTiltShiftShader.js";
|
| 233 |
+
export * from "./shaders/HueSaturationShader.js";
|
| 234 |
+
export * from "./shaders/KaleidoShader.js";
|
| 235 |
+
export * from "./shaders/LuminosityHighPassShader.js";
|
| 236 |
+
export * from "./shaders/LuminosityShader.js";
|
| 237 |
+
export * from "./shaders/MirrorShader.js";
|
| 238 |
+
export * from "./shaders/NormalMapShader.js";
|
| 239 |
+
export * from "./shaders/OutputShader.js";
|
| 240 |
+
export * from "./shaders/RGBShiftShader.js";
|
| 241 |
+
export * from "./shaders/SAOShader.js";
|
| 242 |
+
export * from "./shaders/SepiaShader.js";
|
| 243 |
+
export * from "./shaders/SMAAShader.js";
|
| 244 |
+
export * from "./shaders/SobelOperatorShader.js";
|
| 245 |
+
export * from "./shaders/SSAOShader.js";
|
| 246 |
+
export * from "./shaders/SSRShader.js";
|
| 247 |
+
export * from "./shaders/SubsurfaceScatteringShader.js";
|
| 248 |
+
export * from "./shaders/TechnicolorShader.js";
|
| 249 |
+
export * from "./shaders/ToonShader.js";
|
| 250 |
+
export * from "./shaders/TriangleBlurShader.js";
|
| 251 |
+
export * from "./shaders/UnpackDepthRGBAShader.js";
|
| 252 |
+
export * from "./shaders/VelocityShader.js";
|
| 253 |
+
export * from "./shaders/VerticalBlurShader.js";
|
| 254 |
+
export * from "./shaders/VerticalTiltShiftShader.js";
|
| 255 |
+
export * from "./shaders/VignetteShader.js";
|
| 256 |
+
export * from "./shaders/VolumeShader.js";
|
| 257 |
+
export * from "./shaders/WaterRefractionShader.js";
|
| 258 |
+
|
| 259 |
+
export * from "./textures/FlakesTexture.js";
|
| 260 |
+
|
| 261 |
+
export * as BufferGeometryUtils from "./utils/BufferGeometryUtils.js";
|
| 262 |
+
export * as CameraUtils from "./utils/CameraUtils.js";
|
| 263 |
+
export * as GeometryCompressionUtils from "./utils/GeometryCompressionUtils.js";
|
| 264 |
+
export * as GeometryUtils from "./utils/GeometryUtils.js";
|
| 265 |
+
export * from "./utils/LDrawUtils.js";
|
| 266 |
+
export * as SceneUtils from "./utils/SceneUtils.js";
|
| 267 |
+
export * from "./utils/ShadowMapViewer.js";
|
| 268 |
+
export * as SkeletonUtils from "./utils/SkeletonUtils.js";
|
| 269 |
+
export * as SortUtils from "./utils/SortUtils.js";
|
| 270 |
+
export * from "./utils/UVsDebug.js";
|
| 271 |
+
export * from "./utils/WebGLTextureUtils.js";
|
| 272 |
+
export * from "./utils/WorkerPool.js";
|
| 273 |
+
|
| 274 |
+
export * from "./webxr/ARButton.js";
|
| 275 |
+
export * from "./webxr/OculusHandModel.js";
|
| 276 |
+
export * from "./webxr/OculusHandPointerModel.js";
|
| 277 |
+
export * from "./webxr/Text2D.js";
|
| 278 |
+
export * from "./webxr/VRButton.js";
|
| 279 |
+
export * from "./webxr/XRButton.js";
|
| 280 |
+
export * from "./webxr/XRControllerModelFactory.js";
|
| 281 |
+
export * from "./webxr/XREstimatedLight.js";
|
| 282 |
+
export * from "./webxr/XRHandMeshModel.js";
|
| 283 |
+
export * from "./webxr/XRHandModelFactory.js";
|
| 284 |
+
export * from "./webxr/XRHandPrimitiveModel.js";
|
| 285 |
+
export * from "./webxr/XRPlanes.js";
|
astra_scene_test/X_03/node_modules/@types/three/examples/jsm/animation/AnimationClipCreator.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { AnimationClip, Vector3 } from "three";
|
| 2 |
+
|
| 3 |
+
export interface AnimationClipCreator {
|
| 4 |
+
CreateRotationAnimation(period: number, axis: string): AnimationClip;
|
| 5 |
+
CreateScaleAxisAnimation(period: number, axis: string): AnimationClip;
|
| 6 |
+
CreateShakeAnimation(duration: number, shakeScale: Vector3): AnimationClip;
|
| 7 |
+
CreatePulsationAnimation(duration: number, pulseScale: number): AnimationClip;
|
| 8 |
+
CreateVisibilityAnimation(duration: number): AnimationClip;
|
| 9 |
+
CreateMaterialColorAnimation(duration: number, colors: number[]): AnimationClip;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
export const AnimationClipCreator: AnimationClipCreator;
|
astra_scene_test/X_03/node_modules/@types/three/examples/jsm/animation/CCDIKSolver.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { LineBasicMaterial, MeshBasicMaterial, Object3D, SkinnedMesh, SphereGeometry, Vector3 } from "three";
|
| 2 |
+
|
| 3 |
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
| 4 |
+
export interface IK {
|
| 5 |
+
effector: number;
|
| 6 |
+
iteration?: number | undefined;
|
| 7 |
+
links: Array<{
|
| 8 |
+
enabled?: boolean | undefined;
|
| 9 |
+
index: number;
|
| 10 |
+
limitation?: Vector3 | undefined;
|
| 11 |
+
rotationMin?: Vector3 | undefined;
|
| 12 |
+
rotationMax?: Vector3 | undefined;
|
| 13 |
+
}>;
|
| 14 |
+
minAngle?: number | undefined;
|
| 15 |
+
maxAngle?: number | undefined;
|
| 16 |
+
target: number;
|
| 17 |
+
blendFactor?: number | undefined;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
export class CCDIKSolver {
|
| 21 |
+
mesh: SkinnedMesh;
|
| 22 |
+
iks: IK[];
|
| 23 |
+
|
| 24 |
+
constructor(mesh: SkinnedMesh, iks?: IK[]);
|
| 25 |
+
|
| 26 |
+
update(globalBlendFactor?: number): this;
|
| 27 |
+
updateOne(ik: IK, overrideBlend?: number): this;
|
| 28 |
+
createHelper(sphereSize?: number): CCDIKHelper;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
export class CCDIKHelper extends Object3D {
|
| 32 |
+
root: SkinnedMesh;
|
| 33 |
+
iks: IK[];
|
| 34 |
+
|
| 35 |
+
sphereGeometry: SphereGeometry;
|
| 36 |
+
targetSphereMaterial: MeshBasicMaterial;
|
| 37 |
+
effectorSphereMaterial: MeshBasicMaterial;
|
| 38 |
+
linkSphereMaterial: MeshBasicMaterial;
|
| 39 |
+
lineMaterial: LineBasicMaterial;
|
| 40 |
+
|
| 41 |
+
constructor(mesh: SkinnedMesh, iks?: IK[], sphereSize?: number);
|
| 42 |
+
|
| 43 |
+
dispose(): void;
|
| 44 |
+
}
|
astra_scene_test/X_03/node_modules/@types/three/examples/jsm/capabilities/WebGL.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default class WebGL {
|
| 2 |
+
static isWebGL2Available(): boolean;
|
| 3 |
+
static isColorSpaceAvailable(colorSpace: PredefinedColorSpace): boolean;
|
| 4 |
+
static getWebGL2ErrorMessage(): HTMLElement;
|
| 5 |
+
static getErrorMessage(version: number): HTMLElement;
|
| 6 |
+
}
|
astra_scene_test/X_03/node_modules/@types/three/examples/jsm/capabilities/WebGPU.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// tslint:disable-next-line:no-unnecessary-class
|
| 2 |
+
|
| 3 |
+
export default class WebGPU {
|
| 4 |
+
static isAvailable(): boolean;
|
| 5 |
+
static getStaticAdapter(): unknown;
|
| 6 |
+
static getErrorMessage(): HTMLElement;
|
| 7 |
+
}
|
astra_scene_test/X_03/node_modules/@types/three/examples/jsm/controls/ArcballControls.d.ts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
| 1 |
+
import { Camera, Controls, Raycaster, Scene } from "three";
|
| 2 |
+
|
| 3 |
+
export type ArcballControlsMouseActionOperation = "PAN" | "ROTATE" | "ZOOM" | "FOV";
|
| 4 |
+
|
| 5 |
+
export type ArcballControlsMouseActionMouse = 0 | 1 | 2 | "WHEEL";
|
| 6 |
+
|
| 7 |
+
export type ArcballControlsMouseActionKey = "SHIFT" | "CTRL";
|
| 8 |
+
|
| 9 |
+
export interface ArcballControlsEventMap {
|
| 10 |
+
/**
|
| 11 |
+
* Fires when the camera has been transformed by the controls.
|
| 12 |
+
*/
|
| 13 |
+
change: {};
|
| 14 |
+
|
| 15 |
+
/**
|
| 16 |
+
* Fires when an interaction was initiated.
|
| 17 |
+
*/
|
| 18 |
+
start: {};
|
| 19 |
+
|
| 20 |
+
/**
|
| 21 |
+
* Fires when an interaction has finished.
|
| 22 |
+
*/
|
| 23 |
+
end: {};
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* Arcball controls allow the camera to be controlled by a virtual trackball with full touch support and advanced
|
| 28 |
+
* navigation functionality.
|
| 29 |
+
*/
|
| 30 |
+
declare class ArcballControls extends Controls<ArcballControlsEventMap> {
|
| 31 |
+
/**
|
| 32 |
+
* The scene rendered by the camera.
|
| 33 |
+
*/
|
| 34 |
+
scene: Scene | null;
|
| 35 |
+
|
| 36 |
+
/**
|
| 37 |
+
* The size of the gizmo relative to the screen width and height. Default is 0.67.
|
| 38 |
+
*/
|
| 39 |
+
radiusFactor: number;
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* Duration time of focus animation.
|
| 43 |
+
*/
|
| 44 |
+
focusAnimationTime: number;
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* If true, camera's near and far values will be adjusted every time zoom is performed trying to maintain the same
|
| 48 |
+
* visible portion given by initial near and far values ( {@link PerspectiveCamera} only ). Default is false.
|
| 49 |
+
*/
|
| 50 |
+
adjustNearFar: boolean;
|
| 51 |
+
|
| 52 |
+
/**
|
| 53 |
+
* The scaling factor used when performing zoom operation.
|
| 54 |
+
*/
|
| 55 |
+
scaleFactor: number;
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* The damping inertia used if [page:.enableAnimations] is set to true.
|
| 59 |
+
*/
|
| 60 |
+
dampingFactor: number;
|
| 61 |
+
|
| 62 |
+
/**
|
| 63 |
+
* Maximum angular velocity allowed on rotation animation start.
|
| 64 |
+
*/
|
| 65 |
+
wMax: number;
|
| 66 |
+
|
| 67 |
+
/**
|
| 68 |
+
* Set to true to enable animations for rotation (damping) and focus operation. Default is true.
|
| 69 |
+
*/
|
| 70 |
+
enableAnimations: boolean;
|
| 71 |
+
|
| 72 |
+
/**
|
| 73 |
+
* Enable or disable camera focusing on double-tap (or click) operations. Default is true.
|
| 74 |
+
*/
|
| 75 |
+
enableFocus: boolean;
|
| 76 |
+
|
| 77 |
+
/**
|
| 78 |
+
* When set to true, a grid will appear when panning operation is being performed (desktop interaction only). Default is false.
|
| 79 |
+
*/
|
| 80 |
+
enableGrid: boolean;
|
| 81 |
+
|
| 82 |
+
/**
|
| 83 |
+
* Set to true to make zoom become cursor centered.
|
| 84 |
+
*/
|
| 85 |
+
cursorZoom: boolean;
|
| 86 |
+
|
| 87 |
+
/**
|
| 88 |
+
* Speed of rotation. Default is 1.
|
| 89 |
+
*/
|
| 90 |
+
rotateSpeed: number;
|
| 91 |
+
|
| 92 |
+
/**
|
| 93 |
+
* Enable or disable camera panning. Default is true.
|
| 94 |
+
*/
|
| 95 |
+
enablePan: boolean;
|
| 96 |
+
|
| 97 |
+
/**
|
| 98 |
+
* Enable or disable camera rotation. Default is true.
|
| 99 |
+
*/
|
| 100 |
+
enableRotate: boolean;
|
| 101 |
+
|
| 102 |
+
/**
|
| 103 |
+
* Enable or disable zooming of the camera.
|
| 104 |
+
*/
|
| 105 |
+
enableZoom: boolean;
|
| 106 |
+
|
| 107 |
+
/**
|
| 108 |
+
* How far you can dolly in ( {@link PerspectiveCamera} only ). Default is 0.
|
| 109 |
+
*/
|
| 110 |
+
minDistance: number;
|
| 111 |
+
|
| 112 |
+
/**
|
| 113 |
+
* How far you can dolly out ( {@link PerspectiveCamera} only ). Default is Infinity.
|
| 114 |
+
*/
|
| 115 |
+
maxDistance: number;
|
| 116 |
+
|
| 117 |
+
/**
|
| 118 |
+
* How far you can zoom in ( {@link OrthographicCamera} only ). Default is 0.
|
| 119 |
+
*/
|
| 120 |
+
minZoom: number;
|
| 121 |
+
|
| 122 |
+
/**
|
| 123 |
+
* How far you can zoom out ( {@link OrthographicCamera} only ). Default is Infinity.
|
| 124 |
+
*/
|
| 125 |
+
maxZoom: number;
|
| 126 |
+
|
| 127 |
+
/**
|
| 128 |
+
* @param camera The camera to be controlled. The camera must not be a child of another object, unless that object
|
| 129 |
+
* is the scene itself.
|
| 130 |
+
* @param domElement The HTML element used for event listeners. (optional)
|
| 131 |
+
* @param scene The scene rendered by the camera. If not given, gizmos cannot be shown. (optional)
|
| 132 |
+
*/
|
| 133 |
+
constructor(camera: Camera, domElement?: HTMLElement | null, scene?: Scene | null);
|
| 134 |
+
|
| 135 |
+
/**
|
| 136 |
+
* Set a new mouse action by specifying the operation to be performed and a mouse/key combination. In case of
|
| 137 |
+
* conflict, replaces the existing one.
|
| 138 |
+
* @param operation Operations can be specified as 'ROTATE', 'PAN', 'FOV' or 'ZOOM'.
|
| 139 |
+
* @param mouse Mouse inputs can be specified as mouse buttons 0, 1 and 2 or 'WHEEL' for wheel notches.
|
| 140 |
+
* @param key Keyboard modifiers can be specified as 'CTRL', 'SHIFT' or null if not needed.
|
| 141 |
+
*/
|
| 142 |
+
setMouseAction(
|
| 143 |
+
operation: ArcballControlsMouseActionOperation,
|
| 144 |
+
mouse: ArcballControlsMouseActionMouse,
|
| 145 |
+
key?: ArcballControlsMouseActionKey | null,
|
| 146 |
+
): boolean;
|
| 147 |
+
|
| 148 |
+
/**
|
| 149 |
+
* Removes a mouse action by specifying its mouse/key combination.
|
| 150 |
+
* @param mouse Mouse inputs can be specified as mouse buttons 0, 1 and 2 or 'WHEEL' for wheel notches.
|
| 151 |
+
* @param key Keyboard modifiers can be specified as 'CTRL', 'SHIFT' or null if not needed.
|
| 152 |
+
*/
|
| 153 |
+
unsetMouseAction(mouse: ArcballControlsMouseActionMouse, key?: ArcballControlsMouseActionKey | null): boolean;
|
| 154 |
+
|
| 155 |
+
/**
|
| 156 |
+
* Make gizmos more or less visible.
|
| 157 |
+
*/
|
| 158 |
+
activateGizmos(isActive: boolean): void;
|
| 159 |
+
|
| 160 |
+
/**
|
| 161 |
+
* Set the camera to be controlled. Must be called in order to set a new camera to be controlled.
|
| 162 |
+
*/
|
| 163 |
+
setCamera(camera: Camera): void;
|
| 164 |
+
|
| 165 |
+
/**
|
| 166 |
+
* Set the visible property of gizmos.
|
| 167 |
+
*/
|
| 168 |
+
setGizmosVisible(value: boolean): void;
|
| 169 |
+
|
| 170 |
+
/**
|
| 171 |
+
* Update the `radiusFactor` value, redraw the gizmo and send a `changeEvent` to visualize the changes.
|
| 172 |
+
*/
|
| 173 |
+
setTbRadius(value: number): void;
|
| 174 |
+
|
| 175 |
+
/**
|
| 176 |
+
* Reset the controls to their state from either the last time the {@link .saveState} was called, or the initial
|
| 177 |
+
* state.
|
| 178 |
+
*/
|
| 179 |
+
reset(): void;
|
| 180 |
+
|
| 181 |
+
/**
|
| 182 |
+
* Copy the current state to clipboard (as a readable JSON text).
|
| 183 |
+
*/
|
| 184 |
+
copyState(): void;
|
| 185 |
+
|
| 186 |
+
/**
|
| 187 |
+
* Set the controls state from the clipboard, assumes that the clipboard stores a JSON text as saved from
|
| 188 |
+
* {@link .copyState}.
|
| 189 |
+
*/
|
| 190 |
+
pasteState(): void;
|
| 191 |
+
|
| 192 |
+
/**
|
| 193 |
+
* Save the current state of the controls. This can later be recovered with {@link .reset}.
|
| 194 |
+
*/
|
| 195 |
+
saveState(): void;
|
| 196 |
+
|
| 197 |
+
/**
|
| 198 |
+
* Returns the {@link Raycaster} object that is used for user interaction. This object is shared between all
|
| 199 |
+
* instances of ArcballControls. If you set the [.layers]{@link Object3D.layers} property of the
|
| 200 |
+
* {@link ArcballControls}, you will also want to set the [.layers]{@link Raycaster.layers} property on the
|
| 201 |
+
* {@link Raycaster} with a matching value, or else the {@link ArcballControls} won't work as expected.
|
| 202 |
+
*/
|
| 203 |
+
getRaycaster(): Raycaster;
|
| 204 |
+
|
| 205 |
+
update(): void;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
export { ArcballControls };
|
astra_scene_test/X_03/node_modules/@types/three/examples/jsm/controls/DragControls.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Camera, Controls, MOUSE, Object3D, Raycaster, TOUCH } from "three";
|
| 2 |
+
|
| 3 |
+
export interface DragControlsEventMap {
|
| 4 |
+
/**
|
| 5 |
+
* Fires when the pointer is moved onto a 3D object, or onto one of its children.
|
| 6 |
+
*/
|
| 7 |
+
hoveron: { object: Object3D };
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Fires when the pointer is moved out of a 3D object.
|
| 11 |
+
*/
|
| 12 |
+
hoveroff: { object: Object3D };
|
| 13 |
+
|
| 14 |
+
/**
|
| 15 |
+
* Fires when the user starts to drag a 3D object.
|
| 16 |
+
*/
|
| 17 |
+
dragstart: { object: Object3D };
|
| 18 |
+
|
| 19 |
+
/**
|
| 20 |
+
* Fires when the user drags a 3D object.
|
| 21 |
+
*/
|
| 22 |
+
drag: { object: Object3D };
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* Fires when the user has finished dragging a 3D object.
|
| 26 |
+
*/
|
| 27 |
+
dragend: { object: Object3D };
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
declare class DragControls extends Controls<DragControlsEventMap> {
|
| 31 |
+
/**
|
| 32 |
+
* An array of draggable 3D objects.
|
| 33 |
+
*/
|
| 34 |
+
objects: Object3D[];
|
| 35 |
+
|
| 36 |
+
/**
|
| 37 |
+
* Whether children of draggable objects can be dragged independently from their parent. Default is `true`.
|
| 38 |
+
*/
|
| 39 |
+
recursive: boolean;
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* This option only works if the {@link .objects} array contains a single draggable group object. If set to `true`,
|
| 43 |
+
* {@link DragControls} does not transform individual objects but the entire group. Default is `false`.
|
| 44 |
+
*/
|
| 45 |
+
transformGroup: boolean;
|
| 46 |
+
|
| 47 |
+
/**
|
| 48 |
+
* The speed at which the object will rotate when dragged in `rotate` mode. The higher the number the faster the
|
| 49 |
+
* rotation. Default is `1`.
|
| 50 |
+
*/
|
| 51 |
+
rotateSpeed: number;
|
| 52 |
+
|
| 53 |
+
/**
|
| 54 |
+
* The internal raycaster used for detecting 3D objects.
|
| 55 |
+
*/
|
| 56 |
+
raycaster: Raycaster;
|
| 57 |
+
|
| 58 |
+
/**
|
| 59 |
+
* This object defines what type of actions are assigned to the available mouse buttons.
|
| 60 |
+
*/
|
| 61 |
+
mouseButtons: {
|
| 62 |
+
LEFT?: MOUSE | null | undefined;
|
| 63 |
+
MIDDLE?: MOUSE | null | undefined;
|
| 64 |
+
RIGHT?: MOUSE | null | undefined;
|
| 65 |
+
};
|
| 66 |
+
|
| 67 |
+
/**
|
| 68 |
+
* This object defines what type of actions are assigned to what kind of touch interaction.
|
| 69 |
+
*/
|
| 70 |
+
touches: { ONE?: TOUCH | null | undefined };
|
| 71 |
+
|
| 72 |
+
/**
|
| 73 |
+
* Creates a new instance of DragControls.
|
| 74 |
+
* @param objects An array of draggable 3D objects.
|
| 75 |
+
* @param camera The camera of the rendered scene.
|
| 76 |
+
* @param domElement The HTML element used for event listeners. (optional)
|
| 77 |
+
*/
|
| 78 |
+
constructor(objects: Object3D[], camera: Camera, domElement?: HTMLElement | null);
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
export { DragControls };
|
astra_scene_test/X_03/node_modules/@types/three/examples/jsm/controls/FirstPersonControls.d.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Camera, Controls, Vector3 } from "three";
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* This class is an alternative implementation of {@link FlyControls}.
|
| 5 |
+
*/
|
| 6 |
+
declare class FirstPersonControls extends Controls<{}> {
|
| 7 |
+
/**
|
| 8 |
+
* The movement speed. Default is *1*.
|
| 9 |
+
*/
|
| 10 |
+
movementSpeed: number;
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
* The look around speed. Default is `0.005`.
|
| 14 |
+
*/
|
| 15 |
+
lookSpeed: number;
|
| 16 |
+
|
| 17 |
+
/**
|
| 18 |
+
* Whether or not it's possible to vertically look around. Default is `true`.
|
| 19 |
+
*/
|
| 20 |
+
lookVertical: boolean;
|
| 21 |
+
|
| 22 |
+
/**
|
| 23 |
+
* Whether or not the camera is automatically moved forward. Default is `false`.
|
| 24 |
+
*/
|
| 25 |
+
autoForward: boolean;
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Whether or not it's possible to look around. Default is `true`.
|
| 29 |
+
*/
|
| 30 |
+
activeLook: boolean;
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* Whether or not the camera's height influences the forward movement speed. Default is `false`.
|
| 34 |
+
* Use the properties {@link .heightCoef}, {@link .heightMin} and {@link .heightMax} for configuration
|
| 35 |
+
*/
|
| 36 |
+
heightSpeed: boolean;
|
| 37 |
+
|
| 38 |
+
/**
|
| 39 |
+
* Determines how much faster the camera moves when it's y-component is near {@link .heightMax}. Default is *1*.
|
| 40 |
+
*/
|
| 41 |
+
heightCoef: number;
|
| 42 |
+
|
| 43 |
+
/**
|
| 44 |
+
* Lower camera height limit used for movement speed adjustment. Default is *0*.
|
| 45 |
+
*/
|
| 46 |
+
heightMin: number;
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* Upper camera height limit used for movement speed adjustment. Default is *1*.
|
| 50 |
+
*/
|
| 51 |
+
heightMax: number;
|
| 52 |
+
|
| 53 |
+
/**
|
| 54 |
+
* Whether or not looking around is vertically constrained by [{@link .verticalMin}, {@link .verticalMax}]. Default
|
| 55 |
+
* is `false`.
|
| 56 |
+
*/
|
| 57 |
+
constrainVertical: boolean;
|
| 58 |
+
|
| 59 |
+
/**
|
| 60 |
+
* How far you can vertically look around, lower limit. Range is 0 to Math.PI radians. Default is *0*.
|
| 61 |
+
*/
|
| 62 |
+
verticalMin: number;
|
| 63 |
+
|
| 64 |
+
/**
|
| 65 |
+
* How far you can vertically look around, upper limit. Range is 0 to Math.PI radians. Default is `Math.PI`.
|
| 66 |
+
*/
|
| 67 |
+
verticalMax: number;
|
| 68 |
+
|
| 69 |
+
/**
|
| 70 |
+
* Whether or not the mouse is pressed down. Read-only property.
|
| 71 |
+
*/
|
| 72 |
+
mouseDragOn: boolean;
|
| 73 |
+
|
| 74 |
+
/**
|
| 75 |
+
* Creates a new instance of {@link FirstPersonControls}.
|
| 76 |
+
* @param object The camera to be controlled.
|
| 77 |
+
* @param domElement The HTML element used for event listeners. (optional)
|
| 78 |
+
*/
|
| 79 |
+
constructor(object: Camera, domElement?: HTMLElement);
|
| 80 |
+
|
| 81 |
+
/**
|
| 82 |
+
* Should be called if the application window is resized.
|
| 83 |
+
*/
|
| 84 |
+
handleResize(): void;
|
| 85 |
+
|
| 86 |
+
/**
|
| 87 |
+
* Ensures the controls orient the camera towards the defined target position.
|
| 88 |
+
* @param vector A vector representing the target position.
|
| 89 |
+
*/
|
| 90 |
+
lookAt(vector: Vector3): this;
|
| 91 |
+
|
| 92 |
+
/**
|
| 93 |
+
* Ensures the controls orient the camera towards the defined target position.
|
| 94 |
+
* @param x The x component of the world space position.
|
| 95 |
+
* @param y The y component of the world space position.
|
| 96 |
+
* @param z The z component of the world space position.
|
| 97 |
+
*/
|
| 98 |
+
lookAt(x: number, y: number, z: number): this;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
export { FirstPersonControls };
|
astra_scene_test/X_03/node_modules/@types/three/examples/jsm/controls/FlyControls.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Camera, Controls } from "three";
|
| 2 |
+
|
| 3 |
+
export interface FlyControlsEventMap {
|
| 4 |
+
/**
|
| 5 |
+
* Fires when the camera has been transformed by the controls.
|
| 6 |
+
*/
|
| 7 |
+
change: {};
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* {@link FlyControls} enables a navigation similar to fly modes in DCC tools like Blender. You can arbitrarily
|
| 12 |
+
* transform the camera in 3D space without any limitations (e.g. focus on a specific target).
|
| 13 |
+
*/
|
| 14 |
+
declare class FlyControls extends Controls<FlyControlsEventMap> {
|
| 15 |
+
/**
|
| 16 |
+
* The movement speed. Default is `1`.
|
| 17 |
+
*/
|
| 18 |
+
movementSpeed: number;
|
| 19 |
+
|
| 20 |
+
/**
|
| 21 |
+
* The rotation speed. Default is `0.005`.
|
| 22 |
+
*/
|
| 23 |
+
rollSpeed: number;
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* If set to `true`, you can only look around by performing a drag interaction. Default is `false`.
|
| 27 |
+
*/
|
| 28 |
+
dragToLook: boolean;
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* If set to `true`, the camera automatically moves forward (and does not stop) when initially translated. Default
|
| 32 |
+
* is `false`.
|
| 33 |
+
*/
|
| 34 |
+
autoForward: boolean;
|
| 35 |
+
|
| 36 |
+
/**
|
| 37 |
+
* Creates a new instance of {@link FlyControls}.
|
| 38 |
+
* @param object The camera to be controlled.
|
| 39 |
+
* @param domElement The HTML element used for event listeners. (optional)
|
| 40 |
+
*/
|
| 41 |
+
constructor(object: Camera, domElement?: HTMLElement | null);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
export { FlyControls };
|