first commit
This commit is contained in:
21
node_modules/@types/d3-array/LICENSE
generated
vendored
Normal file
21
node_modules/@types/d3-array/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/d3-array/README.md
generated
vendored
Normal file
15
node_modules/@types/d3-array/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/d3-array`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for d3-array (https://github.com/d3/d3-array).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-array.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Fri, 12 Sep 2025 20:02:35 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
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).
|
||||
1118
node_modules/@types/d3-array/index.d.ts
generated
vendored
Normal file
1118
node_modules/@types/d3-array/index.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
56
node_modules/@types/d3-array/package.json
generated
vendored
Normal file
56
node_modules/@types/d3-array/package.json
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "@types/d3-array",
|
||||
"version": "3.2.2",
|
||||
"description": "TypeScript definitions for d3-array",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-array",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Alex Ford",
|
||||
"githubUsername": "gustavderdrache",
|
||||
"url": "https://github.com/gustavderdrache"
|
||||
},
|
||||
{
|
||||
"name": "Boris Yankov",
|
||||
"githubUsername": "borisyankov",
|
||||
"url": "https://github.com/borisyankov"
|
||||
},
|
||||
{
|
||||
"name": "Tom Wanzek",
|
||||
"githubUsername": "tomwanzek",
|
||||
"url": "https://github.com/tomwanzek"
|
||||
},
|
||||
{
|
||||
"name": "denisname",
|
||||
"githubUsername": "denisname",
|
||||
"url": "https://github.com/denisname"
|
||||
},
|
||||
{
|
||||
"name": "Hugues Stefanski",
|
||||
"githubUsername": "ledragon",
|
||||
"url": "https://github.com/ledragon"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Bierema",
|
||||
"githubUsername": "Methuselah96",
|
||||
"url": "https://github.com/Methuselah96"
|
||||
},
|
||||
{
|
||||
"name": "Fil",
|
||||
"githubUsername": "Fil",
|
||||
"url": "https://github.com/Fil"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/d3-array"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "d8ff015b14e99aec79f6ac45682bd8237145131c804b94de0ed1e6bc003d5190",
|
||||
"typeScriptVersion": "5.2"
|
||||
}
|
||||
21
node_modules/@types/d3-color/LICENSE
generated
vendored
Normal file
21
node_modules/@types/d3-color/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/d3-color/README.md
generated
vendored
Normal file
15
node_modules/@types/d3-color/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/d3-color`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for d3-color (https://github.com/d3/d3-color/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-color.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
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).
|
||||
669
node_modules/@types/d3-color/index.d.ts
generated
vendored
Normal file
669
node_modules/@types/d3-color/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,669 @@
|
||||
// Last module patch version validated against: 3.1.0
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Shared Type Definitions and Interfaces
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Type allowing for color objects from a specified color space
|
||||
*/
|
||||
export type ColorSpaceObject = RGBColor | HSLColor | LabColor | HCLColor | CubehelixColor;
|
||||
|
||||
/**
|
||||
* A helper interface of methods common to color objects (including colors defined outside the d3-color standard module,
|
||||
* e.g. in d3-hsv). This interface
|
||||
*/
|
||||
export interface ColorCommonInstance {
|
||||
/**
|
||||
* Returns true if and only if the color is displayable on standard hardware.
|
||||
* 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].
|
||||
*/
|
||||
displayable(): boolean;
|
||||
/**
|
||||
* 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).
|
||||
* If this color is not displayable, a suitable displayable color is returned instead.
|
||||
* For example, RGB channel values greater than 255 are clamped to 255.
|
||||
*/
|
||||
toString(): string;
|
||||
/**
|
||||
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
||||
* If k is not specified, it defaults to 1. The behavior of this method is dependent on the implementing color space.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
||||
*/
|
||||
brighter(k?: number): this;
|
||||
/**
|
||||
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
||||
* If k is not specified, it defaults to 1. The behavior of this method is dependent on the implementing color space.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
||||
*/
|
||||
darker(k?: number): this;
|
||||
/**
|
||||
* Returns the RGB equivalent of this color. For RGB colors, that’s "this".
|
||||
*/
|
||||
rgb(): RGBColor;
|
||||
/**
|
||||
* Returns a hexadecimal string representing this color.
|
||||
* If this color is not displayable, a suitable displayable color is returned instead.
|
||||
* For example, RGB channel values greater than 255 are clamped to 255.
|
||||
*/
|
||||
hex(): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A Color object which serves as a base class for
|
||||
* colorspace-specific sub-class implementations.
|
||||
*/
|
||||
export interface Color {
|
||||
/**
|
||||
* Returns true if and only if the color is displayable on standard hardware.
|
||||
* 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].
|
||||
*/
|
||||
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
|
||||
/**
|
||||
* 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).
|
||||
* If this color is not displayable, a suitable displayable color is returned instead.
|
||||
* For example, RGB channel values greater than 255 are clamped to 255.
|
||||
*/
|
||||
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
|
||||
/**
|
||||
* Returns a hexadecimal string representing this color in RGB space, such as #f7eaba.
|
||||
* If this color is not displayable, a suitable displayable color is returned instead.
|
||||
* For example, RGB channel values greater than 255 are clamped to 255.
|
||||
*/
|
||||
formatHex(): string;
|
||||
/**
|
||||
* Returns a hexadecimal string representing this color in RGBA space, such as #f7eaba90.
|
||||
* If this color is not displayable, a suitable displayable color is returned instead.
|
||||
* For example, RGB channel values greater than 255 are clamped to 255.
|
||||
*/
|
||||
formatHex8(): string;
|
||||
/**
|
||||
* 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).
|
||||
* 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].
|
||||
*/
|
||||
formatHsl(): string;
|
||||
/**
|
||||
* 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).
|
||||
* If this color is not displayable, a suitable displayable color is returned instead by clamping RGB channel values to the interval [0, 255].
|
||||
*/
|
||||
formatRgb(): string;
|
||||
/**
|
||||
* @deprecated Use color.formatHex.
|
||||
*/
|
||||
hex(): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A Color factory object, which may also be used with instanceof to test if an object is a color instance.
|
||||
*/
|
||||
export interface ColorFactory extends Function {
|
||||
/**
|
||||
* Parses the specified CSS Color Module Level 3 specifier string, returning an RGB or HSL color.
|
||||
* If the specifier was not valid, null is returned.
|
||||
*
|
||||
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
||||
*/
|
||||
(cssColorSpecifier: string): RGBColor | HSLColor | null;
|
||||
/**
|
||||
* Converts the provided color instance and returns an RGB or HSL color.
|
||||
*
|
||||
* @param color A permissible color space instance.
|
||||
*/
|
||||
(color: ColorSpaceObject | ColorCommonInstance): RGBColor | HSLColor;
|
||||
/**
|
||||
* Prototype of the factory, which can be used for instanceof testing
|
||||
*/
|
||||
readonly prototype: Color;
|
||||
}
|
||||
|
||||
/**
|
||||
* An RGB color object.
|
||||
*/
|
||||
export interface RGBColor extends Color {
|
||||
/**
|
||||
* Value of red channel
|
||||
*/
|
||||
r: number;
|
||||
/**
|
||||
* Value of green channel
|
||||
*/
|
||||
g: number;
|
||||
/**
|
||||
* Value of blue channel
|
||||
*/
|
||||
b: number;
|
||||
/**
|
||||
* Opacity value
|
||||
*/
|
||||
opacity: number;
|
||||
/**
|
||||
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
||||
*/
|
||||
brighter(k?: number): this;
|
||||
/**
|
||||
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
||||
*/
|
||||
darker(k?: number): this;
|
||||
/**
|
||||
* Returns the RGB equivalent of this color.
|
||||
*/
|
||||
rgb(): this;
|
||||
/**
|
||||
* Returns a copy of this color.
|
||||
*
|
||||
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
||||
*/
|
||||
copy(
|
||||
values?: {
|
||||
r?: number | undefined;
|
||||
g?: number | undefined;
|
||||
b?: number | undefined;
|
||||
opacity?: number | undefined;
|
||||
},
|
||||
): this;
|
||||
/**
|
||||
* 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,
|
||||
* and the opacity is clamped to the range [0, 1].
|
||||
*/
|
||||
clamp(): this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An RGB color factory object, which may also be used with instanceof to test if an object
|
||||
* is an RGB color instance.
|
||||
*/
|
||||
export interface RGBColorFactory extends Function {
|
||||
/**
|
||||
* Constructs a new RGB color based on the specified channel values and opacity.
|
||||
*
|
||||
* @param r Red channel value.
|
||||
* @param g Green channel value.
|
||||
* @param b Blue channel value.
|
||||
* @param opacity Optional opacity value, defaults to 1.
|
||||
*/
|
||||
(r: number, g: number, b: number, opacity?: number): RGBColor;
|
||||
/**
|
||||
* Parses the specified CSS Color Module Level 3 specifier string, returning an RGB color.
|
||||
* If the specifier was not valid, null is returned.
|
||||
*
|
||||
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
||||
*/
|
||||
(cssColorSpecifier: string): RGBColor;
|
||||
/**
|
||||
* Converts the provided color instance and returns an RGB color. The color instance is converted to the RGB color space using color.rgb.
|
||||
* Note that unlike color.rgb this method always returns a new instance, even if color is already an RGB color.
|
||||
*
|
||||
* @param color A permissible color space instance.
|
||||
*/
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
(color: ColorSpaceObject | ColorCommonInstance): RGBColor;
|
||||
/**
|
||||
* Prototype of the factory, which can be used for instanceof testing
|
||||
*/
|
||||
readonly prototype: RGBColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* An HSL color object.
|
||||
*/
|
||||
export interface HSLColor extends Color {
|
||||
/**
|
||||
* Hue channel value.
|
||||
*/
|
||||
h: number;
|
||||
/**
|
||||
* Saturation channel value.
|
||||
*/
|
||||
s: number;
|
||||
/**
|
||||
* Lightness channel value.
|
||||
*/
|
||||
l: number;
|
||||
/**
|
||||
* Opacity value.
|
||||
*/
|
||||
opacity: number;
|
||||
/**
|
||||
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
||||
*/
|
||||
brighter(k?: number): this;
|
||||
/**
|
||||
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
||||
*/
|
||||
darker(k?: number): this;
|
||||
/**
|
||||
* Returns the RGB color equivalent of this color.
|
||||
*/
|
||||
rgb(): RGBColor;
|
||||
/**
|
||||
* Returns a copy of this color.
|
||||
*
|
||||
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
||||
*/
|
||||
copy(
|
||||
values?: {
|
||||
h?: number | undefined;
|
||||
s?: number | undefined;
|
||||
l?: number | undefined;
|
||||
opacity?: number | undefined;
|
||||
},
|
||||
): this;
|
||||
/**
|
||||
* 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].
|
||||
*/
|
||||
clamp(): this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An HSL color factory object, which may also be used with instanceof to test if an object
|
||||
* is an HSL color instance.
|
||||
*/
|
||||
export interface HSLColorFactory extends Function {
|
||||
/**
|
||||
* Constructs a new HSL color based on the specified channel values and opacity.
|
||||
*
|
||||
* @param h Hue channel value.
|
||||
* @param s Saturation channel value.
|
||||
* @param l Lightness channel value.
|
||||
* @param opacity Optional opacity value, defaults to 1.
|
||||
*/
|
||||
(h: number, s: number, l: number, opacity?: number): HSLColor;
|
||||
/**
|
||||
* Parses the specified CSS Color Module Level 3 specifier string, returning an HSL color.
|
||||
* If the specifier was not valid, null is returned.
|
||||
*
|
||||
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
||||
*/
|
||||
(cssColorSpecifier: string): HSLColor;
|
||||
/**
|
||||
* Converts the provided color instance and returns an HSL color.
|
||||
* The color instance is converted to the RGB color space using color.rgb and then converted to HSL.
|
||||
* (Colors already in the HSL color space skip the conversion to RGB.)
|
||||
*
|
||||
* @param color A permissible color space instance.
|
||||
*/
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
(color: ColorSpaceObject | ColorCommonInstance): HSLColor;
|
||||
/**
|
||||
* Prototype of the factory, which can be used for instanceof testing
|
||||
*/
|
||||
readonly prototype: HSLColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* A Lab (CIELAB) color object.
|
||||
*/
|
||||
export interface LabColor extends Color {
|
||||
/**
|
||||
* Lightness typically in the range [0, 100].
|
||||
*/
|
||||
l: number;
|
||||
/**
|
||||
* Position between red/magenta and green typically in [-160, +160].
|
||||
*/
|
||||
a: number;
|
||||
/**
|
||||
* Position between yellow and blue typically in [-160, +160].
|
||||
*/
|
||||
b: number;
|
||||
/**
|
||||
* Opacity value
|
||||
*/
|
||||
opacity: number;
|
||||
/**
|
||||
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
||||
*/
|
||||
brighter(k?: number): this;
|
||||
/**
|
||||
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
||||
*/
|
||||
darker(k?: number): this;
|
||||
/**
|
||||
* Returns the RGB color equivalent of this color.
|
||||
*/
|
||||
rgb(): RGBColor;
|
||||
/**
|
||||
* Returns a copy of this color.
|
||||
*
|
||||
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
||||
*/
|
||||
copy(
|
||||
values?: {
|
||||
l?: number | undefined;
|
||||
a?: number | undefined;
|
||||
b?: number | undefined;
|
||||
opacity?: number | undefined;
|
||||
},
|
||||
): this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A Lab (CIELAB) color factory object, which may also be used with instanceof to test if an object
|
||||
* is a Lab color instance.
|
||||
*/
|
||||
export interface LabColorFactory extends Function {
|
||||
/**
|
||||
* Constructs a new CIELAB color based on the specified channel values and opacity.
|
||||
*
|
||||
* @param l Lightness typically in the range [0, 100].
|
||||
* @param a Position between red/magenta and green typically in [-160, +160].
|
||||
* @param b Position between yellow and blue typically in [-160, +160].
|
||||
* @param opacity Optional opacity value, defaults to 1.
|
||||
*/
|
||||
(l: number, a: number, b: number, opacity?: number): LabColor;
|
||||
/**
|
||||
* Parses the specified CSS Color Module Level 3 specifier string, returning a Lab color.
|
||||
* If the specifier was not valid, null is returned.
|
||||
*
|
||||
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
||||
*/
|
||||
(cssColorSpecifier: string): LabColor;
|
||||
/**
|
||||
* Converts the provided color instance and returns a Lab color.
|
||||
* The color instance is converted to the RGB color space using color.rgb and then converted to CIELAB.
|
||||
* (Colors already in the Lab color space skip the conversion to RGB,
|
||||
* and colors in the HCL color space are converted directly to CIELAB.)
|
||||
*
|
||||
* @param color A permissible color space instance.
|
||||
*/
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
(color: ColorSpaceObject | ColorCommonInstance): LabColor;
|
||||
/**
|
||||
* Prototype of the factory, which can be used for instanceof testing
|
||||
*/
|
||||
readonly prototype: LabColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* A gray color factory for Lab (CIELAB) colors.
|
||||
*/
|
||||
export type GrayColorFactory =
|
||||
/**
|
||||
* Constructs a new CIELAB color with the specified l value and a = b = 0.
|
||||
*
|
||||
* @param l Lightness typically in the range [0, 100].
|
||||
* @param opacity Optional opacity value, defaults to 1.
|
||||
*/
|
||||
(l: number, opacity?: number) => LabColor;
|
||||
|
||||
/**
|
||||
* An HCL (CIELCH) color object.
|
||||
*/
|
||||
export interface HCLColor extends Color {
|
||||
/**
|
||||
* Hue channel value typically in [0, 360).
|
||||
*/
|
||||
h: number;
|
||||
/**
|
||||
* Chroma channel value typically in [0, 230].
|
||||
*/
|
||||
c: number;
|
||||
/**
|
||||
* Luminance channel value typically in the range [0, 100].
|
||||
*/
|
||||
l: number;
|
||||
/**
|
||||
* Opacity value
|
||||
*/
|
||||
opacity: number;
|
||||
/**
|
||||
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
||||
*/
|
||||
brighter(k?: number): this;
|
||||
/**
|
||||
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
||||
*/
|
||||
darker(k?: number): this;
|
||||
/**
|
||||
* Returns the RGB color equivalent of this color.
|
||||
*/
|
||||
rgb(): RGBColor;
|
||||
/**
|
||||
* Returns a copy of this color.
|
||||
*
|
||||
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
||||
*/
|
||||
copy(
|
||||
values?: {
|
||||
h?: number | undefined;
|
||||
c?: number | undefined;
|
||||
l?: number | undefined;
|
||||
opacity?: number | undefined;
|
||||
},
|
||||
): this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An HCL (CIELCH) color factory object, which may also be used with instanceof to test if an object
|
||||
* is an HCL color instance.
|
||||
*/
|
||||
export interface HCLColorFactory extends Function {
|
||||
/**
|
||||
* Constructs a new HCL color based on the specified channel values and opacity.
|
||||
*
|
||||
* @param h Hue channel value typically in [0, 360).
|
||||
* @param c Chroma channel value typically in [0, 230].
|
||||
* @param l Luminance channel value typically in the range [0, 100].
|
||||
* @param opacity Optional opacity value, defaults to 1.
|
||||
*/
|
||||
(h: number, c: number, l: number, opacity?: number): HCLColor;
|
||||
/**
|
||||
* Parses the specified CSS Color Module Level 3 specifier string, returning an HCL color.
|
||||
* If the specifier was not valid, null is returned.
|
||||
*
|
||||
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
||||
*/
|
||||
(cssColorSpecifier: string): HCLColor;
|
||||
/**
|
||||
* Converts the provided color instance and returns an HCL color.
|
||||
* The color instance is converted to the RGB color space using color.rgb and then converted to HCL.
|
||||
* (Colors already in the HCL color space skip the conversion to RGB,
|
||||
* and colors in the Lab color space are converted directly to HCL.)
|
||||
*
|
||||
* @param color A permissible color space instance.
|
||||
*/
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
(color: ColorSpaceObject | ColorCommonInstance): HCLColor;
|
||||
/**
|
||||
* Prototype of the factory, which can be used for instanceof testing
|
||||
*/
|
||||
readonly prototype: HCLColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* An LCH (CIELCH) color factory function to create an HCL color object.
|
||||
*/
|
||||
export interface LCHColorFactory {
|
||||
/**
|
||||
* Constructs a new HCL color based on the specified channel values and opacity.
|
||||
*
|
||||
* @param l Luminance channel value typically in the range [0, 100].
|
||||
* @param c Chroma channel value typically in [0, 230].
|
||||
* @param h Hue channel value typically in [0, 360).
|
||||
* @param opacity Optional opacity value, defaults to 1.
|
||||
*/
|
||||
(l: number, c: number, h: number, opacity?: number): HCLColor;
|
||||
/**
|
||||
* Parses the specified CSS Color Module Level 3 specifier string, returning an HCL color.
|
||||
* If the specifier was not valid, null is returned.
|
||||
*
|
||||
* @param cssColorSpecifier A CSS color Module Level 3 specifier string.
|
||||
*/
|
||||
(cssColorSpecifier: string): HCLColor;
|
||||
/**
|
||||
* Converts the provided color instance and returns an HCL color.
|
||||
* The color instance is converted to the RGB color space using color.rgb and then converted to HCL.
|
||||
* (Colors already in the HCL color space skip the conversion to RGB,
|
||||
* and colors in the Lab color space are converted directly to HCL.)
|
||||
*
|
||||
* @param color A permissible color space instance.
|
||||
*/
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
(color: ColorSpaceObject | ColorCommonInstance): HCLColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dave Green’s Cubehelix color object.
|
||||
*/
|
||||
export interface CubehelixColor extends Color {
|
||||
/**
|
||||
* Hue channel value.
|
||||
*/
|
||||
h: number;
|
||||
/**
|
||||
* Saturation channel value.
|
||||
*/
|
||||
s: number;
|
||||
/**
|
||||
* Lightness channel value.
|
||||
*/
|
||||
l: number;
|
||||
/**
|
||||
* Opacity value.
|
||||
*/
|
||||
opacity: number;
|
||||
/**
|
||||
* Returns a brighter copy of this color. If k is specified, it controls how much brighter the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much brighter the returned color should be.
|
||||
*/
|
||||
brighter(k?: number): this;
|
||||
/**
|
||||
* Returns a darker copy of this color. If k is specified, it controls how much darker the returned color should be.
|
||||
* If k is not specified, it defaults to 1.
|
||||
*
|
||||
* @param k A color space dependent number to determine, how much darker the returned color should be.
|
||||
*/
|
||||
darker(k?: number): this;
|
||||
/**
|
||||
* Returns the RGB color equivalent of this color.
|
||||
*/
|
||||
rgb(): RGBColor;
|
||||
/**
|
||||
* Returns a copy of this color.
|
||||
*
|
||||
* @param values If values is specified, any enumerable own properties of values are assigned to the new returned color.
|
||||
*/
|
||||
copy(
|
||||
values?: {
|
||||
h?: number | undefined;
|
||||
s?: number | undefined;
|
||||
l?: number | undefined;
|
||||
opacity?: number | undefined;
|
||||
},
|
||||
): this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A color factory object for Dave Green's Cubehelix colors, which may also be used with instanceof to test if an object
|
||||
* is a Cubehelix color instance.
|
||||
*/
|
||||
export interface CubehelixColorFactory extends Function {
|
||||
/**
|
||||
* Constructs a new Cubehelix color based on the specified channel values and opacity.
|
||||
*
|
||||
* @param h Hue channel value.
|
||||
* @param s Saturation channel value.
|
||||
* @param l Lightness channel value.
|
||||
* @param opacity Optional opacity value, defaults to 1.
|
||||
*/
|
||||
(h: number, s: number, l: number, opacity?: number): CubehelixColor;
|
||||
/**
|
||||
* Parses the specified CSS Color Module Level 3 specifier string, returning an Cubehelix color.
|
||||
* If the specifier was not valid, null is returned.
|
||||
*
|
||||
* @param cssColorSpecifier A CSS Color Module Level 3 specifier string.
|
||||
*/
|
||||
(cssColorSpecifier: string): CubehelixColor;
|
||||
/**
|
||||
* Converts the provided color instance and returns a Cubehelix color.
|
||||
* The color instance is specified, it is converted to the RGB color space using color.rgb and then converted to Cubehelix.
|
||||
* (Colors already in the Cubehelix color space skip the conversion to RGB.)
|
||||
*
|
||||
* @param color A permissible color space instance.
|
||||
*/
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
(color: ColorSpaceObject | ColorCommonInstance): CubehelixColor;
|
||||
/**
|
||||
* Prototype of the factory, which can be used for instanceof testing
|
||||
*/
|
||||
readonly prototype: CubehelixColor;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// Color object factories
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* A Color factory object, which may also be used with instanceof to test if an object is a color instance.
|
||||
*/
|
||||
export const color: ColorFactory;
|
||||
|
||||
/**
|
||||
* An RGB color factory object, which may also be used with instanceof to test if an object
|
||||
* is an RGB color instance.
|
||||
*/
|
||||
export const rgb: RGBColorFactory;
|
||||
|
||||
/**
|
||||
* An HSL color factory object, which may also be used with instanceof to test if an object
|
||||
* is an HSL color instance.
|
||||
*/
|
||||
export const hsl: HSLColorFactory;
|
||||
|
||||
/**
|
||||
* A Lab (CIELAB) color factory object, which may also be used with instanceof to test if an object
|
||||
* is a Lab color instance.
|
||||
*/
|
||||
export const lab: LabColorFactory;
|
||||
|
||||
/**
|
||||
* A gray color factory for Lab (CIELAB) colors.
|
||||
*/
|
||||
export const gray: GrayColorFactory;
|
||||
|
||||
/**
|
||||
* An HCL (CIELCH) color factory object, which may also be used with instanceof to test if an object
|
||||
* is an HCL color instance.
|
||||
*/
|
||||
export const hcl: HCLColorFactory;
|
||||
|
||||
/**
|
||||
* An LCH (CIELCH) color factory function to create an HCL color object.
|
||||
*/
|
||||
export const lch: LCHColorFactory;
|
||||
|
||||
/**
|
||||
* A color factory object for Dave Green's Cubehelix colors, which may also be used with instanceof to test if an object
|
||||
* is a Cubehelix color instance.
|
||||
*/
|
||||
export const cubehelix: CubehelixColorFactory;
|
||||
55
node_modules/@types/d3-color/package.json
generated
vendored
Normal file
55
node_modules/@types/d3-color/package.json
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"name": "@types/d3-color",
|
||||
"version": "3.1.3",
|
||||
"description": "TypeScript definitions for d3-color",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-color",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Tom Wanzek",
|
||||
"githubUsername": "tomwanzek",
|
||||
"url": "https://github.com/tomwanzek"
|
||||
},
|
||||
{
|
||||
"name": "Alex Ford",
|
||||
"githubUsername": "gustavderdrache",
|
||||
"url": "https://github.com/gustavderdrache"
|
||||
},
|
||||
{
|
||||
"name": "Boris Yankov",
|
||||
"githubUsername": "borisyankov",
|
||||
"url": "https://github.com/borisyankov"
|
||||
},
|
||||
{
|
||||
"name": "denisname",
|
||||
"githubUsername": "denisname",
|
||||
"url": "https://github.com/denisname"
|
||||
},
|
||||
{
|
||||
"name": "Hugues Stefanski",
|
||||
"githubUsername": "ledragon",
|
||||
"url": "https://github.com/ledragon"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Bierema",
|
||||
"githubUsername": "Methuselah96",
|
||||
"url": "https://github.com/Methuselah96"
|
||||
},
|
||||
{
|
||||
"name": "Fil",
|
||||
"githubUsername": "Fil",
|
||||
"url": "https://github.com/Fil"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/d3-color"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "89cf9357324cddaa31cfb539b1c33d118648ed55319f2a0d26f24b004975a947",
|
||||
"typeScriptVersion": "4.5"
|
||||
}
|
||||
21
node_modules/@types/d3-ease/LICENSE
generated
vendored
Normal file
21
node_modules/@types/d3-ease/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/d3-ease/README.md
generated
vendored
Normal file
15
node_modules/@types/d3-ease/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/d3-ease`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for d3-ease (https://github.com/d3/d3-ease/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-ease.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), and [Nathan Bierema](https://github.com/Methuselah96).
|
||||
316
node_modules/@types/d3-ease/index.d.ts
generated
vendored
Normal file
316
node_modules/@types/d3-ease/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,316 @@
|
||||
// Last module patch version validated against: 3.0.1
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// Easing Functions
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Linear easing; the identity function; linear(t) returns t.
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeLinear(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric quadratic easing; scales quadIn for t in [0, 0.5] and quadOut for t in [0.5, 1]. Also equivalent to poly.exponent(2).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeQuad(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Quadratic easing; equivalent to polyIn.exponent(2).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeQuadIn(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Reverse quadratic easing; equivalent to 1 - quadIn(1 - t). Also equivalent to polyOut.exponent(2).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeQuadOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric quadratic easing; scales quadIn for t in [0, 0.5] and quadOut for t in [0.5, 1]. Also equivalent to poly.exponent(2).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeQuadInOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric cubic easing; scales cubicIn for t in [0, 0.5] and cubicOut for t in [0.5, 1]. Also equivalent to poly.exponent(3).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeCubic(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Cubic easing; equivalent to polyIn.exponent(3).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeCubicIn(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Reverse cubic easing; equivalent to 1 - cubicIn(1 - t). Also equivalent to polyOut.exponent(3).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeCubicOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric cubic easing; scales cubicIn for t in [0, 0.5] and cubicOut for t in [0.5, 1]. Also equivalent to poly.exponent(3).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeCubicInOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Polynomial easing function factory
|
||||
*/
|
||||
export interface PolynomialEasingFactory {
|
||||
/**
|
||||
* Calculate eased time.
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
(normalizedTime: number): number;
|
||||
/**
|
||||
* Returns a new polynomial easing with the specified exponent e.
|
||||
* If the exponent is not specified, it defaults to 3, equivalent to cubic.
|
||||
*
|
||||
* @param e Exponent for polynomial easing.
|
||||
*/
|
||||
exponent(e: number): PolynomialEasingFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Symmetric polynomial easing/easing factory; scales polyIn for t in [0, 0.5] and polyOut for t in [0.5, 1].
|
||||
* If the exponent is not specified, it defaults to 3, equivalent to cubic.
|
||||
*/
|
||||
export const easePoly: PolynomialEasingFactory;
|
||||
/**
|
||||
* Polynomial easing/easing factory; raises t to the specified exponent.
|
||||
* If the exponent is not specified, it defaults to 3, equivalent to cubicIn.
|
||||
*/
|
||||
export const easePolyIn: PolynomialEasingFactory;
|
||||
|
||||
/**
|
||||
* Reverse polynomial easing/easing factory; equivalent to 1 - polyIn(1 - t).
|
||||
* If the exponent is not specified, it defaults to 3, equivalent to cubicOut.
|
||||
*/
|
||||
export const easePolyOut: PolynomialEasingFactory;
|
||||
|
||||
/**
|
||||
* Symmetric polynomial easing/easing factory; scales polyIn for t in [0, 0.5] and polyOut for t in [0.5, 1].
|
||||
* If the exponent is not specified, it defaults to 3, equivalent to cubic.
|
||||
*/
|
||||
export const easePolyInOut: PolynomialEasingFactory;
|
||||
|
||||
/**
|
||||
* Symmetric sinusoidal easing; scales sinIn for t in [0, 0.5] and sinOut for t in [0.5, 1].
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeSin(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Sinusoidal easing; returns sin(t).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeSinIn(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Reverse sinusoidal easing; equivalent to 1 - sinIn(1 - t).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeSinOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric sinusoidal easing; scales sinIn for t in [0, 0.5] and sinOut for t in [0.5, 1].
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeSinInOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric exponential easing; scales expIn for t in [0, 0.5] and expOut for t in [0.5, 1].
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeExp(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Exponential easing; raises 2 to the exponent 10 * (t - 1).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeExpIn(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Reverse exponential easing; equivalent to 1 - expIn(1 - t).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeExpOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric exponential easing; scales expIn for t in [0, 0.5] and expOut for t in [0.5, 1].
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeExpInOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric circular easing; scales circleIn for t in [0, 0.5] and circleOut for t in [0.5, 1].
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeCircle(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Circular easing.
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeCircleIn(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Reverse circular easing; equivalent to 1 - circleIn(1 - t).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeCircleOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric circular easing; scales circleIn for t in [0, 0.5] and circleOut for t in [0.5, 1].
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeCircleInOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Reverse bounce easing; equivalent to 1 - bounceIn(1 - t).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeBounce(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Bounce easing, like a rubber ball.
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeBounceIn(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Reverse bounce easing; equivalent to 1 - bounceIn(1 - t).
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeBounceOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Symmetric bounce easing; scales bounceIn for t in [0, 0.5] and bounceOut for t in [0.5, 1].
|
||||
*
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
export function easeBounceInOut(normalizedTime: number): number;
|
||||
|
||||
/**
|
||||
* Anticipatory easing function factory
|
||||
*/
|
||||
export interface BackEasingFactory {
|
||||
/**
|
||||
* Calculate eased time.
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
(normalizedTime: number): number;
|
||||
/**
|
||||
* Returns a new back easing with the specified overshoot s.
|
||||
* The degree of overshoot is configurable; if not specified, it defaults to 1.70158.
|
||||
*
|
||||
* @param s Overshoot parameter
|
||||
*/
|
||||
overshoot(s: number): BackEasingFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Symmetric anticipatory easing; scales backIn for t in [0, 0.5] and backOut for t in [0.5, 1].
|
||||
* The degree of overshoot is configurable; it not specified, it defaults to 1.70158.
|
||||
*/
|
||||
export const easeBack: BackEasingFactory;
|
||||
|
||||
/**
|
||||
* Anticipatory easing, like a dancer bending their knees before jumping off the floor.
|
||||
* The degree of overshoot is configurable; it not specified, it defaults to 1.70158.
|
||||
*/
|
||||
export const easeBackIn: BackEasingFactory;
|
||||
|
||||
/**
|
||||
* Reverse anticipatory easing; equivalent to 1 - backIn(1 - t).
|
||||
* The degree of overshoot is configurable; it not specified, it defaults to 1.70158.
|
||||
*/
|
||||
export const easeBackOut: BackEasingFactory;
|
||||
|
||||
/**
|
||||
* Symmetric anticipatory easing; scales backIn for t in [0, 0.5] and backOut for t in [0.5, 1].
|
||||
* The degree of overshoot is configurable; it not specified, it defaults to 1.70158.
|
||||
*/
|
||||
export const easeBackInOut: BackEasingFactory;
|
||||
|
||||
/**
|
||||
* Elastic easing function factory
|
||||
*/
|
||||
export interface ElasticEasingFactory {
|
||||
/**
|
||||
* Calculate eased time.
|
||||
* @param normalizedTime Normalized time typically in the range [0, 1]
|
||||
*/
|
||||
(normalizedTime: number): number;
|
||||
/**
|
||||
* Returns a new elastic easing with the specified amplitude a.
|
||||
* Defaults to 1,if not specified.
|
||||
*
|
||||
* @param a Amplitude for elastic easing.
|
||||
*/
|
||||
amplitude(a: number): ElasticEasingFactory;
|
||||
/**
|
||||
* Returns a new elastic easing with the specified amplitude a.
|
||||
* Defaults to 0.3,if not specified.
|
||||
*
|
||||
* @param p Period for elastic easing.
|
||||
*/
|
||||
period(p: number): ElasticEasingFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse elastic easing; equivalent to 1 - elasticIn(1 - t).
|
||||
* The amplitude and period of the oscillation are configurable;
|
||||
* if not specified, they default to 1 and 0.3, respectively.
|
||||
*/
|
||||
export const easeElastic: ElasticEasingFactory;
|
||||
|
||||
/**
|
||||
* Elastic easing, like a rubber band.
|
||||
* The amplitude and period of the oscillation are configurable;
|
||||
* if not specified, they default to 1 and 0.3, respectively.
|
||||
*/
|
||||
export const easeElasticIn: ElasticEasingFactory;
|
||||
|
||||
/**
|
||||
* Reverse elastic easing; equivalent to 1 - elasticIn(1 - t).
|
||||
* The amplitude and period of the oscillation are configurable;
|
||||
* if not specified, they default to 1 and 0.3, respectively.
|
||||
*/
|
||||
export const easeElasticOut: ElasticEasingFactory;
|
||||
|
||||
/**
|
||||
* Symmetric elastic easing; scales elasticIn for t in [0, 0.5] and elasticOut for t in [0.5, 1].
|
||||
* The amplitude and period of the oscillation are configurable;
|
||||
* if not specified, they default to 1 and 0.3, respectively.
|
||||
*/
|
||||
export const easeElasticInOut: ElasticEasingFactory;
|
||||
40
node_modules/@types/d3-ease/package.json
generated
vendored
Normal file
40
node_modules/@types/d3-ease/package.json
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "@types/d3-ease",
|
||||
"version": "3.0.2",
|
||||
"description": "TypeScript definitions for d3-ease",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-ease",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Tom Wanzek",
|
||||
"githubUsername": "tomwanzek",
|
||||
"url": "https://github.com/tomwanzek"
|
||||
},
|
||||
{
|
||||
"name": "Alex Ford",
|
||||
"githubUsername": "gustavderdrache",
|
||||
"url": "https://github.com/gustavderdrache"
|
||||
},
|
||||
{
|
||||
"name": "Boris Yankov",
|
||||
"githubUsername": "borisyankov",
|
||||
"url": "https://github.com/borisyankov"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Bierema",
|
||||
"githubUsername": "Methuselah96",
|
||||
"url": "https://github.com/Methuselah96"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/d3-ease"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "2995c518f8de4fa6f2abb2f13065cb4fe65acaea9422f9883b24414ef50cd1ab",
|
||||
"typeScriptVersion": "4.5"
|
||||
}
|
||||
21
node_modules/@types/d3-interpolate/LICENSE
generated
vendored
Normal file
21
node_modules/@types/d3-interpolate/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/d3-interpolate/README.md
generated
vendored
Normal file
15
node_modules/@types/d3-interpolate/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/d3-interpolate`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for d3-interpolate (https://github.com/d3/d3-interpolate/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-interpolate.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Tue, 07 Nov 2023 15:11:37 GMT
|
||||
* Dependencies: [@types/d3-color](https://npmjs.com/package/@types/d3-color)
|
||||
|
||||
# Credits
|
||||
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).
|
||||
387
node_modules/@types/d3-interpolate/index.d.ts
generated
vendored
Normal file
387
node_modules/@types/d3-interpolate/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,387 @@
|
||||
// Last module patch version validated against: 3.0.1
|
||||
|
||||
import { ColorCommonInstance } from "d3-color";
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Shared Type Definitions and Interfaces
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export interface ZoomInterpolator extends Function {
|
||||
(t: number): ZoomView;
|
||||
/**
|
||||
* Recommended duration of zoom transition in milliseconds.
|
||||
*/
|
||||
duration: number;
|
||||
|
||||
/**
|
||||
* Given a zoom interpolator, returns a new zoom interpolator using the specified curvature rho.
|
||||
* When rho is close to 0, the interpolator is almost linear.
|
||||
* The default curvature is sqrt(2).
|
||||
* @param rho
|
||||
*/
|
||||
rho(rho: number): this;
|
||||
}
|
||||
|
||||
export interface ColorGammaInterpolationFactory extends Function {
|
||||
(a: string | ColorCommonInstance, b: string | ColorCommonInstance): (t: number) => string;
|
||||
/**
|
||||
* Returns a new interpolator factory of the same type using the specified *gamma*.
|
||||
* For example, to interpolate from purple to orange with a gamma of 2.2 in RGB space: `d3.interpolateRgb.gamma(2.2)("purple", "orange")`.
|
||||
* 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.
|
||||
*/
|
||||
gamma(g: number): ColorGammaInterpolationFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Type zoomView is used to represent a numeric array with three elements.
|
||||
* In order of appearance the elements correspond to:
|
||||
* - cx: *x*-coordinate of the center of the viewport
|
||||
* - cy: *y*-coordinate of the center of the viewport
|
||||
* - width: size of the viewport
|
||||
*/
|
||||
export type ZoomView = [number, number, number];
|
||||
|
||||
export type TypedArray =
|
||||
| Int8Array
|
||||
| Uint8Array
|
||||
| Int16Array
|
||||
| Uint16Array
|
||||
| Int32Array
|
||||
| Uint32Array
|
||||
| Uint8ClampedArray
|
||||
| Float32Array
|
||||
| Float64Array;
|
||||
|
||||
export type NumberArray = TypedArray | DataView;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Interpolation Function Factories
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Returns an `null` constant interpolator.
|
||||
*/
|
||||
export function interpolate(a: any, b: null): (t: number) => null;
|
||||
/**
|
||||
* Returns an boolean constant interpolator of value `b`.
|
||||
*/
|
||||
export function interpolate(a: any, b: boolean): (t: number) => boolean;
|
||||
/**
|
||||
* Returns a `interpolateRgb` interpolator.
|
||||
*/
|
||||
export function interpolate(a: string | ColorCommonInstance, b: ColorCommonInstance): (t: number) => string;
|
||||
/**
|
||||
* Returns a `interpolateDate` interpolator.
|
||||
*/
|
||||
export function interpolate(a: Date, b: Date): (t: number) => Date;
|
||||
/**
|
||||
* Returns a `interpolateNumber` interpolator.
|
||||
*/
|
||||
export function interpolate(
|
||||
a: number | { valueOf(): number },
|
||||
b: number | { valueOf(): number },
|
||||
): (t: number) => number;
|
||||
/**
|
||||
* Returns a `interpolateNumberArray` interpolator.
|
||||
*/
|
||||
export function interpolate<T extends NumberArray>(a: NumberArray | number[], b: T): (t: number) => T;
|
||||
/**
|
||||
* Returns a `interpolateString` interpolator. If `b` is a string coercible to a color use use `interpolateRgb`.
|
||||
*/
|
||||
export function interpolate(a: string | { toString(): string }, b: string): (t: number) => string;
|
||||
/**
|
||||
* Returns a `interpolateArray` interpolator.
|
||||
*/
|
||||
export function interpolate<U extends any[]>(a: any[], b: U): (t: number) => U;
|
||||
/**
|
||||
* Returns a `interpolateObject` interpolator.
|
||||
*/
|
||||
export function interpolate<U extends object>(a: any, b: U): (t: number) => U;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two numbers `a` and `b`.
|
||||
* The returned interpolator is equivalent to: `(t) => a * (1 - t) + b * t`.
|
||||
*/
|
||||
export function interpolateNumber(
|
||||
a: number | { valueOf(): number },
|
||||
b: number | { valueOf(): number },
|
||||
): (t: number) => number;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two numbers `a` and `b`; the interpolator is similar to `interpolateNumber`,
|
||||
* except it will round the resulting value to the nearest integer.
|
||||
*/
|
||||
export function interpolateRound(
|
||||
a: number | { valueOf(): number },
|
||||
b: number | { valueOf(): number },
|
||||
): (t: number) => number;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two strings `a` and `b`.
|
||||
* The string interpolator finds numbers embedded in `a` and `b`, where each number is of the form understood by JavaScript.
|
||||
* A few examples of numbers that will be detected within a string: `-1`, `42`, `3.14159`, and `6.0221413e+23`.
|
||||
*
|
||||
* For each number embedded in `b`, the interpolator will attempt to find a corresponding number in `a`.
|
||||
* If a corresponding number is found, a numeric interpolator is created using `interpolateNumber`.
|
||||
* The remaining parts of the string `b` are used as a template.
|
||||
*
|
||||
* For example, if `a` is `"300 12px sans-serif"`, and `b` is `"500 36px Comic-Sans"`, two embedded numbers are found.
|
||||
* The remaining static parts (of string `b`) are a space between the two numbers (`" "`), and the suffix (`"px Comic-Sans"`).
|
||||
* The result of the interpolator at `t` = 0.5 is `"400 24px Comic-Sans"`.
|
||||
*/
|
||||
export function interpolateString(
|
||||
a: string | { toString(): string },
|
||||
b: string | { toString(): string },
|
||||
): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two dates `a` and `b`.
|
||||
*
|
||||
* Note: *no defensive copy* of the returned date is created; the same Date instance is returned for every evaluation of the interpolator.
|
||||
* No copy is made for performance reasons; interpolators are often part of the inner loop of animated transitions.
|
||||
*/
|
||||
export function interpolateDate(a: Date, b: Date): (t: number) => Date;
|
||||
|
||||
export type ArrayInterpolator<A extends any[]> = (t: number) => A;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two arrays `a` and `b`. Internally, an array template is created that is the same length in `b`.
|
||||
* For each element in `b`, if there exists a corresponding element in `a`, a generic interpolator is created for the two elements using `interpolate`.
|
||||
* If there is no such element, the static value from `b` is used in the template.
|
||||
* Then, for the given parameter `t`, the template’s embedded interpolators are evaluated. The updated array template is then returned.
|
||||
*
|
||||
* 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]`.
|
||||
*
|
||||
* Note: *no defensive copy* of the template array is created; modifications of the returned array may adversely affect subsequent evaluation of the interpolator.
|
||||
* No copy is made for performance reasons; interpolators are often part of the inner loop of animated transitions.
|
||||
*/
|
||||
export function interpolateArray<A extends any[]>(a: any[], b: A): ArrayInterpolator<A>;
|
||||
/**
|
||||
* interpolateNumberArray is called
|
||||
*/
|
||||
export function interpolateArray<T extends NumberArray>(a: NumberArray | number[], b: T): (t: number) => T;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two arrays of numbers a and b.
|
||||
* Internally, an array template is created that is the same type and length as b.
|
||||
* For each element in b, if there exists a corresponding element in a, the values are directly interpolated in the array template.
|
||||
* If there is no such element, the static value from b is copied.
|
||||
* The updated array template is then returned.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
export function interpolateNumberArray<T extends NumberArray | number[]>(
|
||||
a: NumberArray | number[],
|
||||
b: T,
|
||||
): (t: number) => T;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two objects `a` and `b`. Internally, an object template is created that has the same properties as `b`.
|
||||
* For each property in `b`, if there exists a corresponding property in `a`, a generic interpolator is created for the two elements using `interpolate`.
|
||||
* If there is no such property, the static value from `b` is used in the template.
|
||||
* Then, for the given parameter `t`, the template's embedded interpolators are evaluated and the updated object template is then returned.
|
||||
*
|
||||
* 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}`.
|
||||
*
|
||||
* Note: *no defensive copy* of the template object is created; modifications of the returned object may adversely affect subsequent evaluation of the interpolator.
|
||||
* No copy is made for performance reasons; interpolators are often part of the inner loop of animated transitions.
|
||||
*/
|
||||
export function interpolateObject<U extends object>(a: any, b: U): (t: number) => U;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two 2D CSS transforms represented by `a` and `b`.
|
||||
* Each transform is decomposed to a standard representation of translate, rotate, *x*-skew and scale; these component transformations are then interpolated.
|
||||
* This behavior is standardized by CSS: see [matrix decomposition for animation](http://www.w3.org/TR/css3-2d-transforms/#matrix-decomposition).
|
||||
*/
|
||||
export function interpolateTransformCss(a: string, b: string): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two 2D SVG transforms represented by `a` and `b`.
|
||||
* Each transform is decomposed to a standard representation of translate, rotate, *x*-skew and scale; these component transformations are then interpolated.
|
||||
* This behavior is standardized by CSS: see [matrix decomposition for animation](http://www.w3.org/TR/css3-2d-transforms/#matrix-decomposition).
|
||||
*/
|
||||
export function interpolateTransformSvg(a: string, b: string): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two views `a` and `b` of a two-dimensional plane,
|
||||
* based on [“Smooth and efficient zooming and panning”](http://www.win.tue.nl/~vanwijk/zoompan.pdf).
|
||||
* Each view is defined as an array of three numbers: *cx*, *cy* and *width*.
|
||||
* The first two coordinates *cx*, *cy* represent the center of the viewport; the last coordinate *width* represents the size of the viewport.
|
||||
*
|
||||
* The returned interpolator exposes a *duration* property which encodes the recommended transition duration in milliseconds.
|
||||
* This duration is based on the path length of the curved trajectory through *x,y* space.
|
||||
* If you want to a slower or faster transition, multiply this by an arbitrary scale factor (*V* as described in the original paper).
|
||||
*/
|
||||
export function interpolateZoom(a: ZoomView, b: ZoomView): ZoomInterpolator;
|
||||
|
||||
/**
|
||||
* Returns a discrete interpolator for the given array of values. The returned interpolator maps `t` in `[0, 1 / n)` to values[0],
|
||||
* `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].
|
||||
*/
|
||||
export function interpolateDiscrete<T>(values: T[]): (t: number) => T;
|
||||
|
||||
// Sampling ------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Returns `n` uniformly-spaced samples from the specified `interpolator`, where `n` is an integer greater than one.
|
||||
* The first sample is always at `t = 0`, and the last sample is always at `t = 1`.
|
||||
* This can be useful in generating a fixed number of samples from a given interpolator,
|
||||
* 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).
|
||||
*
|
||||
* Caution: this method will not work with interpolators that do not return defensive copies of their output,
|
||||
* 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.
|
||||
*/
|
||||
export function quantize<T>(interpolator: (t: number) => T, n: number): T[];
|
||||
|
||||
// Color Spaces
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* 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.
|
||||
*/
|
||||
export const interpolateRgb: ColorGammaInterpolationFactory;
|
||||
|
||||
/**
|
||||
* Returns a uniform nonrational B-spline interpolator through the specified array of *colors*, which are converted to RGB color space.
|
||||
* Implicit control points are generated such that the interpolator returns `colors[0]` at `t = 0` and `colors[colors.length - 1]` at `t = 1`.
|
||||
* Opacity interpolation is not currently supported. See also `d3.interpolateBasis`, and see [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic) for examples.
|
||||
*/
|
||||
export function interpolateRgbBasis(colors: Array<string | ColorCommonInstance>): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Returns a uniform nonrational B-spline interpolator through the specified array of colors, which are converted to RGB color space.
|
||||
* The control points are implicitly repeated such that the resulting spline has cyclical C² continuity when repeated around `t` in [0,1];
|
||||
* this is useful, for example, to create cyclical color scales. Opacity interpolation is not currently supported.
|
||||
* See also `d3.interpolateBasisClosed, and see [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic) for examples.
|
||||
*/
|
||||
export function interpolateRgbBasisClosed(colors: Array<string | ColorCommonInstance>): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Returns an HSL color space interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in HSL;
|
||||
* 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.
|
||||
* The shortest path between hues is used. The return value of the interpolator is an RGB string.
|
||||
*/
|
||||
export function interpolateHsl(a: string | ColorCommonInstance, b: string | ColorCommonInstance): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Like `interpolateHsl`, but does not use the shortest path between hues.
|
||||
*/
|
||||
export function interpolateHslLong(
|
||||
a: string | ColorCommonInstance,
|
||||
b: string | ColorCommonInstance,
|
||||
): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Returns a Lab color space interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in Lab;
|
||||
* they will be converted to Lab using `d3.lab`. The return value of the interpolator is an RGB string.
|
||||
*/
|
||||
export function interpolateLab(a: string | ColorCommonInstance, b: string | ColorCommonInstance): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Returns an HCL color space interpolator between the two colors `a` and `b`. The colors `a` and `b` need not be in HCL;
|
||||
* 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.
|
||||
* The shortest path between hues is used. The return value of the interpolator is an RGB string.
|
||||
*/
|
||||
export function interpolateHcl(a: string | ColorCommonInstance, b: string | ColorCommonInstance): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Like `interpolateHcl`, but does not use the shortest path between hues.
|
||||
*/
|
||||
export function interpolateHclLong(
|
||||
a: string | ColorCommonInstance,
|
||||
b: string | ColorCommonInstance,
|
||||
): (t: number) => string;
|
||||
|
||||
/**
|
||||
* Returns a Cubehelix color space interpolator between the two colors `a` and `b` using a configurable `gamma`.
|
||||
* If the gamma is not specified, it defaults to 1.0. The colors `a` and `b` need not be in Cubehelix;
|
||||
* they will be converted to Cubehelix using [`d3.cubehelix`](https://github.com/d3/d3-color#cubehelix).
|
||||
* 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.
|
||||
*/
|
||||
export const interpolateCubehelix: ColorGammaInterpolationFactory;
|
||||
|
||||
/**
|
||||
* Like `interpolateCubehelix`, but does not use the shortest path between hues.
|
||||
*/
|
||||
export const interpolateCubehelixLong: ColorGammaInterpolationFactory;
|
||||
|
||||
/**
|
||||
* Returns an interpolator between the two hue angles `a` and `b`. If either hue is NaN, the opposing value is used.
|
||||
* The shortest path between hues is used. The return value of the interpolator is a number in `[0, 360)`.
|
||||
*/
|
||||
export function interpolateHue(a: number, b: number): (t: number) => number;
|
||||
|
||||
// Splines -------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Returns a uniform nonrational B-spline interpolator through the specified array of `values`, which must be numbers.
|
||||
* Implicit control points are generated such that the interpolator returns `values[0]` at `t` = 0 and `values[values.length - 1]` at `t` = 1.
|
||||
* See also [`d3.curveBasis`](https://github.com/d3/d3-shape#curveBasis).
|
||||
*/
|
||||
export function interpolateBasis(splineNodes: number[]): (t: number) => number;
|
||||
|
||||
/**
|
||||
* Returns a uniform nonrational B-spline interpolator through the specified array of `values`, which must be numbers.
|
||||
* The control points are implicitly repeated such that the resulting one-dimensional spline has cyclical C² continuity when repeated around `t` in [0,1].
|
||||
* See also [`d3.curveBasisClosed`](https://github.com/d3/d3-shape#curveBasisClosed).
|
||||
*/
|
||||
export function interpolateBasisClosed(splineNodes: number[]): (t: number) => number;
|
||||
|
||||
// Piecewise -----------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Returns a piecewise zoom interpolator, composing zoom interpolators for each adjacent pair of zoom view.
|
||||
* 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])`,
|
||||
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
||||
* For example, to blend through three different zoom views: `d3.piecewise(d3.interpolateZoom, [[0, 0, 1], [0, 0, 10], [0, 0, 15]])`.
|
||||
*
|
||||
* interpolate defaults to d3.interpolate.
|
||||
*/
|
||||
export function piecewise(values: ZoomView[]): ZoomInterpolator;
|
||||
/**
|
||||
* Returns a piecewise zoom interpolator, composing zoom interpolators for each adjacent pair of zoom view.
|
||||
* 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])`,
|
||||
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
||||
* For example, to blend through three different zoom views: `d3.piecewise(d3.interpolateZoom, [[0, 0, 1], [0, 0, 10], [0, 0, 15]])`.
|
||||
*/
|
||||
export function piecewise(
|
||||
interpolate: (a: ZoomView, b: ZoomView) => ZoomInterpolator,
|
||||
values: ZoomView[],
|
||||
): ZoomInterpolator;
|
||||
|
||||
/**
|
||||
* Returns a piecewise array interpolator, composing array interpolators for each adjacent pair of arrays.
|
||||
* 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])`,
|
||||
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
||||
* For example, to blend through three different arrays: `d3.piecewise(d3.interpolateArray, [[0, 0, 1], [0, 0, 10], [0, 0, 15]])`.
|
||||
*
|
||||
* interpolate defaults to d3.interpolate.
|
||||
*/
|
||||
export function piecewise<A extends any[]>(values: A[]): ArrayInterpolator<A>;
|
||||
/**
|
||||
* Returns a piecewise array interpolator, composing array interpolators for each adjacent pair of arrays.
|
||||
* 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])`,
|
||||
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
||||
* For example, to blend through three different arrays: `d3.piecewise(d3.interpolateArray, [[0, 0, 1], [0, 0, 10], [0, 0, 15]])`.
|
||||
*/
|
||||
export function piecewise<A extends any[]>(
|
||||
interpolate: (a: any[], b: A) => ArrayInterpolator<A>,
|
||||
values: A[],
|
||||
): ArrayInterpolator<A>;
|
||||
|
||||
/**
|
||||
* Returns a piecewise interpolator, composing interpolators for each adjacent pair of values.
|
||||
* 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])`,
|
||||
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
||||
* For example, to blend through red, green and blue: `d3.piecewise(d3.interpolateRgb.gamma(2.2), ["red", "green", "blue"])`.
|
||||
*
|
||||
* interpolate defaults to d3.interpolate.
|
||||
*/
|
||||
export function piecewise(values: unknown[]): (t: number) => any;
|
||||
/**
|
||||
* Returns a piecewise interpolator, composing interpolators for each adjacent pair of values.
|
||||
* 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])`,
|
||||
* and so on, where `n = values.length`. In effect, this is a lightweight linear scale.
|
||||
* For example, to blend through red, green and blue: `d3.piecewise(d3.interpolateRgb.gamma(2.2), ["red", "green", "blue"])`.
|
||||
*/
|
||||
export function piecewise<TData>(interpolate: (a: TData, b: TData) => unknown, values: TData[]): (t: number) => any;
|
||||
47
node_modules/@types/d3-interpolate/package.json
generated
vendored
Normal file
47
node_modules/@types/d3-interpolate/package.json
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "@types/d3-interpolate",
|
||||
"version": "3.0.4",
|
||||
"description": "TypeScript definitions for d3-interpolate",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-interpolate",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Tom Wanzek",
|
||||
"githubUsername": "tomwanzek",
|
||||
"url": "https://github.com/tomwanzek"
|
||||
},
|
||||
{
|
||||
"name": "Alex Ford",
|
||||
"githubUsername": "gustavderdrache",
|
||||
"url": "https://github.com/gustavderdrache"
|
||||
},
|
||||
{
|
||||
"name": "Boris Yankov",
|
||||
"githubUsername": "borisyankov",
|
||||
"url": "https://github.com/borisyankov"
|
||||
},
|
||||
{
|
||||
"name": "denisname",
|
||||
"githubUsername": "denisname",
|
||||
"url": "https://github.com/denisname"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Bierema",
|
||||
"githubUsername": "Methuselah96",
|
||||
"url": "https://github.com/Methuselah96"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/d3-interpolate"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {
|
||||
"@types/d3-color": "*"
|
||||
},
|
||||
"typesPublisherContentHash": "d315fc677144695b44f1447ef7429c9ff248886716c2e9f742d031abcb319115",
|
||||
"typeScriptVersion": "4.5"
|
||||
}
|
||||
21
node_modules/@types/d3-path/LICENSE
generated
vendored
Normal file
21
node_modules/@types/d3-path/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/d3-path/README.md
generated
vendored
Normal file
15
node_modules/@types/d3-path/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/d3-path`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for d3-path (https://github.com/d3/d3-path/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-path.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Tue, 04 Feb 2025 22:02:37 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), and [Nathan Bierema](https://github.com/Methuselah96).
|
||||
108
node_modules/@types/d3-path/index.d.ts
generated
vendored
Normal file
108
node_modules/@types/d3-path/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
// Last module patch version validated against: 3.1.0
|
||||
|
||||
/**
|
||||
* A D3 path serializer implementing CanvasPathMethods
|
||||
*/
|
||||
export interface Path {
|
||||
/**
|
||||
* Move to the specified point ⟨x, y⟩. Equivalent to context.moveTo and SVG’s “moveto” command.
|
||||
*
|
||||
* @param x x-Coordinate of point to move to
|
||||
* @param y y-Coordinate of point to move to
|
||||
*/
|
||||
moveTo(x: number, y: number): void;
|
||||
|
||||
/**
|
||||
* Ends the current subpath and causes an automatic straight line to be drawn from the current point to the initial point of the current subpath.
|
||||
* Equivalent to context.closePath and SVG’s “closepath” command.
|
||||
*/
|
||||
closePath(): void;
|
||||
|
||||
/**
|
||||
* Draws a straight line from the current point to the specified point ⟨x, y⟩.
|
||||
* Equivalent to context.lineTo and SVG’s “lineto” command.
|
||||
*
|
||||
* @param x x-Coordinate of point to draw the line to
|
||||
* @param y y-Coordinate of point to draw the line to
|
||||
*/
|
||||
lineTo(x: number, y: number): void;
|
||||
|
||||
/**
|
||||
* Draws a quadratic Bézier segment from the current point to the specified point ⟨x, y⟩, with the specified control point ⟨cpx, cpy⟩.
|
||||
* Equivalent to context.quadraticCurveTo and SVG’s quadratic Bézier curve commands.
|
||||
*
|
||||
* @param cpx x-Coordinate of the control point for the quadratic Bézier curve
|
||||
* @param cpy y-Coordinate of the control point for the quadratic Bézier curve
|
||||
* @param x x-Coordinate of point to draw the curve to
|
||||
* @param y y-Coordinate of point to draw the curve to
|
||||
*/
|
||||
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
||||
|
||||
/**
|
||||
* Draws a cubic Bézier segment from the current point to the specified point ⟨x, y⟩, with the specified control points ⟨cpx1, cpy1⟩ and ⟨cpx2, cpy2⟩.
|
||||
* Equivalent to context.bezierCurveTo and SVG’s cubic Bézier curve commands.
|
||||
*
|
||||
* @param cpx1 x-Coordinate of the first control point for the Bézier curve
|
||||
* @param cpy1 y-Coordinate of the first control point for the Bézier curve
|
||||
* @param cpx2 x-Coordinate of the second control point for the Bézier curve
|
||||
* @param cpy2 y-Coordinate of the second control point for the Bézier curve
|
||||
* @param x x-Coordinate of point to draw the curve to
|
||||
* @param y y-Coordinate of point to draw the curve to
|
||||
*/
|
||||
bezierCurveTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): void;
|
||||
|
||||
/**
|
||||
* Draws a circular arc segment with the specified radius that starts tangent to the line between the current point and the specified point ⟨x1, y1⟩
|
||||
* and ends tangent to the line between the specified points ⟨x1, y1⟩ and ⟨x2, y2⟩. If the first tangent point is not equal to the current point,
|
||||
* a straight line is drawn between the current point and the first tangent point. Equivalent to context.arcTo and uses SVG’s elliptical arc curve commands.
|
||||
*
|
||||
* @param x1 x-Coordinate of the first tangent point
|
||||
* @param y1 y-Coordinate of the first tangent point
|
||||
* @param x2 x-Coordinate of the second tangent point
|
||||
* @param y2 y-Coordinate of the second tangent point
|
||||
* @param radius Radius of the arc segment
|
||||
*/
|
||||
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
||||
|
||||
/**
|
||||
* Draws a circular arc segment with the specified center ⟨x, y⟩, radius, startAngle and endAngle. If anticlockwise is true,
|
||||
* the arc is drawn in the anticlockwise direction; otherwise, it is drawn in the clockwise direction.
|
||||
* If the current point is not equal to the starting point of the arc, a straight line is drawn from the current point to the start of the arc.
|
||||
* Equivalent to context.arc and uses SVG’s elliptical arc curve commands.
|
||||
*
|
||||
* @param x x-Coordinate of the center point of the arc segment
|
||||
* @param y y-Coordinate of the center point of the arc segment
|
||||
* @param radius Radius of the arc segment
|
||||
* @param startAngle Start angle of arc segment
|
||||
* @param endAngle End angle of arc segment
|
||||
* @param anticlockwise Flag indicating directionality (true = anti-clockwise, false = clockwise)
|
||||
*/
|
||||
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
|
||||
|
||||
/**
|
||||
* Creates a new subpath containing just the four points ⟨x, y⟩, ⟨x + w, y⟩, ⟨x + w, y + h⟩, ⟨x, y + h⟩,
|
||||
* with those four points connected by straight lines, and then marks the subpath as closed. Equivalent to context.rect and uses SVG’s “lineto” commands.
|
||||
*
|
||||
* @param x x-Coordinate of starting point for drawing the rectangle
|
||||
* @param y y-Coordinate of starting point for drawing the rectangle
|
||||
* @param w Width of rectangle
|
||||
* @param h Height of rectangle
|
||||
*/
|
||||
rect(x: number, y: number, w: number, h: number): void;
|
||||
|
||||
/**
|
||||
* Returns the string representation of this path according to SVG’s path data specification.
|
||||
*/
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a D3 Path serializer
|
||||
*/
|
||||
export function path(): Path;
|
||||
|
||||
/**
|
||||
* Like {@link path}, except limits the digits after the decimal to the specified number of digits.
|
||||
* Useful for reducing the size of generated SVG path data.
|
||||
*/
|
||||
export function pathRound(digits?: number): Path;
|
||||
41
node_modules/@types/d3-path/package.json
generated
vendored
Normal file
41
node_modules/@types/d3-path/package.json
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "@types/d3-path",
|
||||
"version": "3.1.1",
|
||||
"description": "TypeScript definitions for d3-path",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-path",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Tom Wanzek",
|
||||
"githubUsername": "tomwanzek",
|
||||
"url": "https://github.com/tomwanzek"
|
||||
},
|
||||
{
|
||||
"name": "Alex Ford",
|
||||
"githubUsername": "gustavderdrache",
|
||||
"url": "https://github.com/gustavderdrache"
|
||||
},
|
||||
{
|
||||
"name": "Boris Yankov",
|
||||
"githubUsername": "borisyankov",
|
||||
"url": "https://github.com/borisyankov"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Bierema",
|
||||
"githubUsername": "Methuselah96",
|
||||
"url": "https://github.com/Methuselah96"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/d3-path"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "a49fc946781c1138c0dd932ed2a34ea60587bcc0b39790e4eb9a51cb32aaa90b",
|
||||
"typeScriptVersion": "5.0"
|
||||
}
|
||||
21
node_modules/@types/d3-scale/LICENSE
generated
vendored
Normal file
21
node_modules/@types/d3-scale/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/d3-scale/README.md
generated
vendored
Normal file
15
node_modules/@types/d3-scale/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/d3-scale`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for d3-scale (https://github.com/d3/d3-scale/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-scale.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Wed, 05 Feb 2025 00:46:59 GMT
|
||||
* Dependencies: [@types/d3-time](https://npmjs.com/package/@types/d3-time)
|
||||
|
||||
# Credits
|
||||
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).
|
||||
2669
node_modules/@types/d3-scale/index.d.ts
generated
vendored
Normal file
2669
node_modules/@types/d3-scale/index.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
53
node_modules/@types/d3-scale/package.json
generated
vendored
Normal file
53
node_modules/@types/d3-scale/package.json
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"name": "@types/d3-scale",
|
||||
"version": "4.0.9",
|
||||
"description": "TypeScript definitions for d3-scale",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-scale",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Tom Wanzek",
|
||||
"githubUsername": "tomwanzek",
|
||||
"url": "https://github.com/tomwanzek"
|
||||
},
|
||||
{
|
||||
"name": "Alex Ford",
|
||||
"githubUsername": "gustavderdrache",
|
||||
"url": "https://github.com/gustavderdrache"
|
||||
},
|
||||
{
|
||||
"name": "Boris Yankov",
|
||||
"githubUsername": "borisyankov",
|
||||
"url": "https://github.com/borisyankov"
|
||||
},
|
||||
{
|
||||
"name": "denisname",
|
||||
"githubUsername": "denisname",
|
||||
"url": "https://github.com/denisname"
|
||||
},
|
||||
{
|
||||
"name": "rulonder",
|
||||
"githubUsername": "rulonder",
|
||||
"url": "https://github.com/rulonder"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Bierema",
|
||||
"githubUsername": "Methuselah96",
|
||||
"url": "https://github.com/Methuselah96"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/d3-scale"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {
|
||||
"@types/d3-time": "*"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "c7eb4d63d0dfb659f0f8e359a4de33ed1f690bdea8051641bffa941f06a92f4d",
|
||||
"typeScriptVersion": "5.0"
|
||||
}
|
||||
21
node_modules/@types/d3-shape/LICENSE
generated
vendored
Normal file
21
node_modules/@types/d3-shape/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/d3-shape/README.md
generated
vendored
Normal file
15
node_modules/@types/d3-shape/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/d3-shape`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for d3-shape (https://github.com/d3/d3-shape/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-shape.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Mon, 06 Jan 2025 00:46:49 GMT
|
||||
* Dependencies: [@types/d3-path](https://npmjs.com/package/@types/d3-path)
|
||||
|
||||
# Credits
|
||||
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).
|
||||
2680
node_modules/@types/d3-shape/index.d.ts
generated
vendored
Normal file
2680
node_modules/@types/d3-shape/index.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
53
node_modules/@types/d3-shape/package.json
generated
vendored
Normal file
53
node_modules/@types/d3-shape/package.json
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"name": "@types/d3-shape",
|
||||
"version": "3.1.7",
|
||||
"description": "TypeScript definitions for d3-shape",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-shape",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Tom Wanzek",
|
||||
"githubUsername": "tomwanzek",
|
||||
"url": "https://github.com/tomwanzek"
|
||||
},
|
||||
{
|
||||
"name": "Alex Ford",
|
||||
"githubUsername": "gustavderdrache",
|
||||
"url": "https://github.com/gustavderdrache"
|
||||
},
|
||||
{
|
||||
"name": "Boris Yankov",
|
||||
"githubUsername": "borisyankov",
|
||||
"url": "https://github.com/borisyankov"
|
||||
},
|
||||
{
|
||||
"name": "denisname",
|
||||
"githubUsername": "denisname",
|
||||
"url": "https://github.com/denisname"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Bierema",
|
||||
"githubUsername": "Methuselah96",
|
||||
"url": "https://github.com/Methuselah96"
|
||||
},
|
||||
{
|
||||
"name": "Fil",
|
||||
"githubUsername": "Fil",
|
||||
"url": "https://github.com/Fil"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/d3-shape"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {
|
||||
"@types/d3-path": "*"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "799d9815b06c799db603989ab56ae5a207ba179664cd07cbc5d754a2e542d4ca",
|
||||
"typeScriptVersion": "5.0"
|
||||
}
|
||||
21
node_modules/@types/d3-time/LICENSE
generated
vendored
Normal file
21
node_modules/@types/d3-time/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/d3-time/README.md
generated
vendored
Normal file
15
node_modules/@types/d3-time/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/d3-time`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for d3-time (https://github.com/d3/d3-time/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-time.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Mon, 25 Nov 2024 10:02:27 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
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).
|
||||
697
node_modules/@types/d3-time/index.d.ts
generated
vendored
Normal file
697
node_modules/@types/d3-time/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,697 @@
|
||||
// Last module patch version validated against: 3.0.0
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Interfaces
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* A D3 Time Interval
|
||||
*/
|
||||
export interface TimeInterval {
|
||||
/**
|
||||
* Returns a new date representing the latest interval boundary date before or equal to date.
|
||||
* Equivalent to interval.floor, except it date is not specified, it defaults to the current time.
|
||||
* For example, d3.timeYear(date) and d3.timeYear.floor(date) are equivalent.
|
||||
*
|
||||
* For example, timeDay(date) typically returns 12:00 AM local time on the given date.
|
||||
*
|
||||
* This function is idempotent: if the specified date is already floored to the current interval,
|
||||
* a new date with an identical time is returned.
|
||||
* Furthermore, the returned date is the minimum expressible value of the associated interval,
|
||||
* such that interval.floor(interval.floor(date) - 1) returns the preceding interval boundary date.
|
||||
*
|
||||
* Note that the == and === operators do not compare by value with Date objects,
|
||||
* and thus you cannot use them to tell whether the specified date has already been floored.
|
||||
* Instead, coerce to a number and then compare.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @param date A date object.
|
||||
*/
|
||||
(date?: Date): Date;
|
||||
|
||||
/**
|
||||
* Returns a new date representing the latest interval boundary date before or equal to date.
|
||||
*
|
||||
* For example, timeDay.floor(date) typically returns 12:00 AM local time on the given date.
|
||||
*
|
||||
* This method is idempotent: if the specified date is already floored to the current interval,
|
||||
* a new date with an identical time is returned.
|
||||
* Furthermore, the returned date is the minimum expressible value of the associated interval,
|
||||
* such that interval.floor(interval.floor(date) - 1) returns the preceding interval boundary date.
|
||||
*
|
||||
* Note that the == and === operators do not compare by value with Date objects,
|
||||
* and thus you cannot use them to tell whether the specified date has already been floored.
|
||||
* Instead, coerce to a number and then compare.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @param date A date object.
|
||||
*/
|
||||
floor(date: Date): Date;
|
||||
|
||||
/**
|
||||
* Returns a new date representing the closest interval boundary date to date.
|
||||
*
|
||||
* For example, timeDay.round(date) typically returns 12:00 AM local time on the given date if it is on or before noon,
|
||||
* and 12:00 AM of the following day if it is after noon.
|
||||
*
|
||||
* This method is idempotent: if the specified date is already rounded to the current interval, a new date with an identical time is returned.
|
||||
*
|
||||
* @param date A date object.
|
||||
*/
|
||||
round(date: Date): Date;
|
||||
|
||||
/**
|
||||
* Returns a new date representing the earliest interval boundary date after or equal to date.
|
||||
*
|
||||
* For example, timeDay.ceil(date) typically returns 12:00 AM local time on the date following the given date.
|
||||
*
|
||||
* This method is idempotent: if the specified date is already ceilinged to the current interval,
|
||||
* a new date with an identical time is returned. Furthermore,
|
||||
* the returned date is the maximum expressible value of the associated interval,
|
||||
* such that interval.ceil(interval.ceil(date) + 1) returns the following interval boundary date.
|
||||
*
|
||||
* @param date A date object.
|
||||
*/
|
||||
ceil(date: Date): Date;
|
||||
|
||||
/**
|
||||
* Returns a new date equal to date plus step intervals.
|
||||
*
|
||||
* If step is not specified it defaults to 1.
|
||||
*
|
||||
* This method does not round the specified date to the interval. For example, if date is today at 5:34 PM,
|
||||
* then timeDay.offset(date, 1) returns 5:34 PM tomorrow (even if daylight saving changes!).
|
||||
*
|
||||
* @param date A date object.
|
||||
* @param step An optional number of steps to apply when calculating the offset date.
|
||||
* If step is negative, then the returned date will be before the specified date;
|
||||
* if step is zero, then a copy of the specified date is returned; if step is not an integer, it is floored.
|
||||
*/
|
||||
offset(date: Date, step?: number): Date;
|
||||
|
||||
/**
|
||||
* Returns an array of dates representing every interval boundary after or equal to start (inclusive) and before stop (exclusive).
|
||||
*
|
||||
* If step is specified, then every step-th boundary will be returned; for example,
|
||||
* for the timeDay interval a step of 2 will return every other day.
|
||||
* If step is not an integer, it is floored.
|
||||
*
|
||||
* The first date in the returned array is the earliest boundary after or equal to start;
|
||||
* subsequent dates are offset by step intervals and floored.
|
||||
* Thus, two overlapping ranges may be inconsistent.
|
||||
*
|
||||
* To make ranges consistent when a step is specified, use CountableInterval.every instead.
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
range(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Returns a new interval that is a filtered subset of this interval using the specified test function.
|
||||
*
|
||||
* @param test A test function which is passed a date and should return true if and only if
|
||||
* the specified date should be considered part of the interval.
|
||||
*/
|
||||
filter(test: (date: Date) => boolean): TimeInterval;
|
||||
}
|
||||
|
||||
/**
|
||||
* A D3 Countable Time Interval
|
||||
*/
|
||||
export interface CountableTimeInterval extends TimeInterval {
|
||||
/**
|
||||
* Returns the number of interval boundaries after start (exclusive) and before or equal to end (inclusive).
|
||||
*
|
||||
* Note that this behavior is slightly different than interval.range,
|
||||
* because its purpose is to return the zero-based number of the specified end date relative to the specified start date.
|
||||
*
|
||||
* @param start A start date object.
|
||||
* @param end An end date object.
|
||||
*/
|
||||
count(start: Date, end: Date): number;
|
||||
/**
|
||||
* Returns a filtered view of this interval representing every stepth date.
|
||||
*
|
||||
* The meaning of step is dependent on this interval’s parent interval as defined by the field function.
|
||||
*
|
||||
* For example, timeMinute.every(15) returns an interval representing every fifteen minutes,
|
||||
* starting on the hour: :00, :15, :30, :45, etc. Note that for some intervals,
|
||||
* the resulting dates may not be uniformly-spaced;
|
||||
* timeDay’s parent interval is timeMonth, and thus the interval number resets at the start of each month.
|
||||
*
|
||||
* If step is not valid, returns null. If step is one, returns this interval.
|
||||
*
|
||||
* This method can be used in conjunction with interval.range to ensure that two overlapping ranges are consistent.
|
||||
*
|
||||
* The returned filtered interval does not support interval.count. See also interval.filter.
|
||||
*
|
||||
* @param step Number of steps.
|
||||
*/
|
||||
every(step: number): TimeInterval | null;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Custom (Countable)Interval Factories
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Constructs a new custom interval given the specified floor and offset functions.
|
||||
*
|
||||
* The returned custom interval is not countable, i.e. does not expose the methods "count(..)" and "every(...)".
|
||||
*
|
||||
* @param floor A floor function which takes a single date as an argument and rounds it down to the nearest interval boundary.
|
||||
* @param offset An offset function which takes a date and an integer step as arguments and advances
|
||||
* the specified date by the specified number of boundaries; the step may be positive, negative or zero.
|
||||
*/
|
||||
export function timeInterval(
|
||||
floor: (date: Date) => void,
|
||||
offset: (date: Date, step: number) => void,
|
||||
): TimeInterval;
|
||||
/**
|
||||
* Constructs a new custom interval given the specified floor, offset and count functions.
|
||||
*
|
||||
* The returned custom interval is countable and exposes the methods "count(..)" and "every(...)".
|
||||
*
|
||||
* Note: due to an internal optimization, the specified count function must not invoke interval.count on other time intervals.
|
||||
*
|
||||
* @param floor A floor function which takes a single date as an argument and rounds it down to the nearest interval boundary.
|
||||
* @param offset An offset function which takes a date and an integer step as arguments and advances
|
||||
* the specified date by the specified number of boundaries; the step may be positive, negative or zero.
|
||||
* @param count A count function which takes a start date and an end date, already floored to the current interval,
|
||||
* and returns the number of boundaries between the start (exclusive) and end (inclusive).
|
||||
* Note: due to an internal optimization, the specified count function must not invoke interval.count on other time intervals.
|
||||
* @param field An optional field function which takes a date, already floored to the current interval,
|
||||
* and returns the field value of the specified date,
|
||||
* corresponding to the number of boundaries between this date (exclusive) and the latest previous parent boundary.
|
||||
* For example, for the timeDay interval, this returns the number of days since the start of the month.
|
||||
* If a field function is not specified, it defaults to counting the number of interval boundaries since
|
||||
* the UNIX epoch of January 1, 1970 UTC. The field function defines the behavior of interval.every.
|
||||
*/
|
||||
export function timeInterval(
|
||||
floor: (date: Date) => void,
|
||||
offset: (date: Date, step: number) => void,
|
||||
count: (start: Date, end: Date) => number,
|
||||
field?: (date: Date) => number,
|
||||
): CountableTimeInterval;
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Built-In Factories and Date Array Creators
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
// local time ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Milliseconds Interval in Local Time; the shortest available time unit.
|
||||
*/
|
||||
export const timeMillisecond: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeMillisecond.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeMilliseconds(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Seconds Interval in Local Time; seconds (e.g., 01:23:45.0000 AM); 1,000 milliseconds.
|
||||
*/
|
||||
export const timeSecond: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeSecond.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeSeconds(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Minutes Interval in Local Time; minutes (e.g., 01:02:00 AM); 60 seconds. Note that ECMAScript ignores leap seconds.
|
||||
*/
|
||||
export const timeMinute: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeMinute.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeMinutes(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Hours Interval in Local Time; Hours (e.g., 01:00 AM); 60 minutes.
|
||||
*
|
||||
* Note that advancing time by one hour in local time can return the same hour or skip an hour due to daylight saving.
|
||||
*/
|
||||
export const timeHour: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeHour.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeHours(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Days Interval in Local Time; days (e.g., February 7, 2012 at 12:00 AM); typically 24 hours.
|
||||
* Days in local time may range from 23 to 25 hours due to daylight saving.
|
||||
*/
|
||||
export const timeDay: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeDay.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeDays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval in Local Time. Alias for sunday; 7 days and typically 168 hours.
|
||||
*
|
||||
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
||||
*/
|
||||
export const timeWeek: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeWeek.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeWeeks(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Sunday-based weeks in Local Time (e.g., February 5, 2012 at 12:00 AM).
|
||||
* 7 days and typically 168 hours.
|
||||
*
|
||||
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
||||
*/
|
||||
export const timeSunday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeSunday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeSundays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Monday-based weeks in Local Time (e.g., February 6, 2012 at 12:00 AM).
|
||||
* 7 days and typically 168 hours.
|
||||
*
|
||||
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
||||
*/
|
||||
export const timeMonday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeMonday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeMondays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Tuesday-based weeks in Local Time (e.g., February 7, 2012 at 12:00 AM).
|
||||
* 7 days and typically 168 hours.
|
||||
*
|
||||
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
||||
*/
|
||||
export const timeTuesday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeTuesday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeTuesdays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Wednesday-based weeks in Local Time (e.g., February 8, 2012 at 12:00 AM).
|
||||
* 7 days and typically 168 hours.
|
||||
*
|
||||
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
||||
*/
|
||||
export const timeWednesday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeWednesday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeWednesdays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Thursday-based weeks in Local Time (e.g., February 9, 2012 at 12:00 AM).
|
||||
* 7 days and typically 168 hours.
|
||||
*
|
||||
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
||||
*/
|
||||
export const timeThursday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeThursday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeThursdays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Friday-based weeks in Local Time (e.g., February 10, 2012 at 12:00 AM).
|
||||
* 7 days and typically 168 hours.
|
||||
*
|
||||
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
||||
*/
|
||||
export const timeFriday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeFriday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeFridays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Saturday-based weeks in Local Time (e.g., February 11, 2012 at 12:00 AM).
|
||||
* 7 days and typically 168 hours.
|
||||
*
|
||||
* Weeks in local time may range from 167 to 169 hours due on daylight saving.
|
||||
*/
|
||||
export const timeSaturday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeSaturday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeSaturdays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Month Interval in Local Time; months (e.g., February 1, 2012 at 12:00 AM); ranges from 28 to 31 days.
|
||||
*/
|
||||
export const timeMonth: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeMonth.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeMonths(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Year Interval in Local Time; years (e.g., January 1, 2012 at 12:00 AM); ranges from 365 to 366 days.
|
||||
*/
|
||||
export const timeYear: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for timeYear.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function timeYears(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
// utc Coordinated Universal Time ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Milliseconds Interval in Coordinated Universal Time (UTC); the shortest available time unit.
|
||||
*/
|
||||
export const utcMillisecond: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcMillisecond.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcMilliseconds(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Seconds Interval in Coordinated Universal Time (UTC); seconds (e.g., 01:23:45.0000 AM); 1,000 milliseconds.
|
||||
*/
|
||||
export const utcSecond: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcSecond.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcSeconds(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Minutes Interval in Coordinated Universal Time (UTC); minutes (e.g., 01:02:00 AM); 60 seconds.
|
||||
* Note that ECMAScript ignores leap seconds.
|
||||
*/
|
||||
export const utcMinute: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcMinute.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcMinutes(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Hours Interval in Coordinated Universal Time (UTC); Hours (e.g., 01:00 AM); 60 minutes.
|
||||
*/
|
||||
export const utcHour: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcHour.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcHours(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Days Interval in Coordinated Universal Time (UTC); days (e.g., February 7, 2012 at 12:00 AM); 24 hours.
|
||||
*/
|
||||
export const utcDay: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcDay.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcDays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval in Local Time. Alias for sunday; 7 days and 168 hours.
|
||||
*/
|
||||
export const utcWeek: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcWeek.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcWeeks(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Sunday-based weeks in Coordinated Universal Time (UTC) (e.g., February 5, 2012 at 12:00 AM).
|
||||
* 7 days and 168 hours.
|
||||
*/
|
||||
export const utcSunday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcSunday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcSundays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Monday-based weeks in Coordinated Universal Time (UTC) (e.g., February 6, 2012 at 12:00 AM).
|
||||
* 7 days and 168 hours.
|
||||
*/
|
||||
export const utcMonday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcMonday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcMondays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Tuesday-based weeks in Coordinated Universal Time (UTC) (e.g., February 7, 2012 at 12:00 AM).
|
||||
* 7 days and 168 hours.
|
||||
*/
|
||||
export const utcTuesday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcTuesday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcTuesdays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Wednesday-based weeks in Coordinated Universal Time (UTC) (e.g., February 8, 2012 at 12:00 AM).
|
||||
* 7 days and 168 hours.
|
||||
*/
|
||||
export const utcWednesday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcWednesday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcWednesdays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Thursday-based weeks in Coordinated Universal Time (UTC) (e.g., February 9, 2012 at 12:00 AM).
|
||||
* 7 days and 168 hours.
|
||||
*/
|
||||
export const utcThursday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcThursday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcThursdays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Friday-based weeks in Coordinated Universal Time (UTC) (e.g., February 10, 2012 at 12:00 AM).
|
||||
* 7 days and 168 hours.
|
||||
*/
|
||||
export const utcFriday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcFriday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcFridays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Week Interval for Saturday-based weeks in Coordinated Universal Time (UTC) (e.g., February 11, 2012 at 12:00 AM).
|
||||
* 7 days and 168 hours.
|
||||
*/
|
||||
export const utcSaturday: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcSaturday.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcSaturdays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Month Interval in Coordinated Universal Time (UTC); months (e.g., February 1, 2012 at 12:00 AM); ranges from 28 to 31 days.
|
||||
*/
|
||||
export const utcMonth: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcMonth.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcMonths(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Year Interval in Coordinated Universal Time (UTC); years (e.g., January 1, 2012 at 12:00 AM); ranges from 365 to 366 days.
|
||||
*/
|
||||
export const utcYear: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for utcYear.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function utcYears(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
export const unixDay: CountableTimeInterval;
|
||||
|
||||
/**
|
||||
* This is a convenience alias for unixDay.range(...).
|
||||
*
|
||||
* @param start A start date object for the range.
|
||||
* @param stop A stop date object for the range.
|
||||
* @param step An optional number of steps to apply when calculating the dates in the range.
|
||||
*/
|
||||
export function unixDays(start: Date, stop: Date, step?: number): Date[];
|
||||
|
||||
/**
|
||||
* Equivalent to d3.utcTicks, but in local time.
|
||||
*/
|
||||
export function timeTicks(start: Date, stop: Date, count: number): Date[];
|
||||
|
||||
/**
|
||||
* Returns the time interval that would be used by d3.timeTicks given the same arguments.
|
||||
*/
|
||||
export function timeTickInterval(start: Date, stop: Date, count: number): TimeInterval | null;
|
||||
|
||||
/**
|
||||
* Returns an array of approximately count dates at regular intervals between start and stop (inclusive).
|
||||
* If stop is before start, dates are returned in reverse chronological order; otherwise dates are returned in chronological order.
|
||||
*/
|
||||
export function utcTicks(start: Date, stop: Date, count: number): Date[];
|
||||
|
||||
/**
|
||||
* Returns the time interval that would be used by d3.utcTicks given the same arguments.
|
||||
* If there is no associated interval, such as when start or stop is invalid, returns null.
|
||||
*/
|
||||
export function utcTickInterval(start: Date, stop: Date, count: number): TimeInterval | null;
|
||||
46
node_modules/@types/d3-time/package.json
generated
vendored
Normal file
46
node_modules/@types/d3-time/package.json
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "@types/d3-time",
|
||||
"version": "3.0.4",
|
||||
"description": "TypeScript definitions for d3-time",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-time",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Tom Wanzek",
|
||||
"githubUsername": "tomwanzek",
|
||||
"url": "https://github.com/tomwanzek"
|
||||
},
|
||||
{
|
||||
"name": "Alex Ford",
|
||||
"githubUsername": "gustavderdrache",
|
||||
"url": "https://github.com/gustavderdrache"
|
||||
},
|
||||
{
|
||||
"name": "Boris Yankov",
|
||||
"githubUsername": "borisyankov",
|
||||
"url": "https://github.com/borisyankov"
|
||||
},
|
||||
{
|
||||
"name": "denisname",
|
||||
"githubUsername": "denisname",
|
||||
"url": "https://github.com/denisname"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Bierema",
|
||||
"githubUsername": "Methuselah96",
|
||||
"url": "https://github.com/Methuselah96"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/d3-time"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "995c6a7a1f21328f5dceb32804c5f3d92ab20a98694246d9c8f213f4eef298ed",
|
||||
"typeScriptVersion": "4.9"
|
||||
}
|
||||
21
node_modules/@types/d3-timer/LICENSE
generated
vendored
Normal file
21
node_modules/@types/d3-timer/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/d3-timer/README.md
generated
vendored
Normal file
15
node_modules/@types/d3-timer/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/d3-timer`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for d3-timer (https://github.com/d3/d3-timer/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-timer.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Tue, 07 Nov 2023 15:11:37 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
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).
|
||||
68
node_modules/@types/d3-timer/index.d.ts
generated
vendored
Normal file
68
node_modules/@types/d3-timer/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
// Last module patch version validated against: 3.0.1
|
||||
|
||||
/**
|
||||
* Returns the current time as defined by performance.now if available, and Date.now if not.
|
||||
* 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.
|
||||
* 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,
|
||||
* again ensuring consistent timing during event handling.
|
||||
*/
|
||||
export function now(): number;
|
||||
|
||||
export interface Timer {
|
||||
/**
|
||||
* Restart a timer with the specified callback and optional delay and time.
|
||||
* This is equivalent to stopping this timer and creating a new timer with the specified arguments,
|
||||
* although this timer retains the original invocation priority.
|
||||
*
|
||||
* @param callback A callback function to be invoked and passed in the apparent
|
||||
* elapsed time since the timer became active in milliseconds.
|
||||
* @param delay An optional numeric delay in milliseconds (default = 0) relative to time.
|
||||
* @param time An optional time in milliseconds relative to which the delay is calculated (default = now).
|
||||
*/
|
||||
restart(callbackFn: (elapsed: number) => void, delay?: number, time?: number): void;
|
||||
|
||||
/**
|
||||
* Stop the timer.
|
||||
*/
|
||||
stop(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Schedules and returns a new timer, invoking the specified callback repeatedly until the timer is stopped.
|
||||
* The callback is passed the (apparent) elapsed time since the timer became active.
|
||||
*
|
||||
* @param callback A callback function to be invoked and passed in the apparent
|
||||
* elapsed time since the timer became active in milliseconds.
|
||||
* @param delay An optional numeric delay in milliseconds (default = 0) relative to time.
|
||||
* @param time An optional time in milliseconds relative to which the delay is calculated (default = now).
|
||||
*/
|
||||
export function timer(callback: (elapsed: number) => void, delay?: number, time?: number): Timer;
|
||||
|
||||
/**
|
||||
* Immediately invoke any eligible timer callbacks.
|
||||
*/
|
||||
export function timerFlush(): void;
|
||||
|
||||
/**
|
||||
* Schedules and returns a new timer, invoking the specified callback. The timer is stopped automatically
|
||||
* on its first callback. The callback is passed the (apparent) elapsed time since the timer became active.
|
||||
*
|
||||
* @param callback A callback function to be invoked and passed in the apparent
|
||||
* elapsed time since the timer became active in milliseconds.
|
||||
* @param delay An optional numeric delay in milliseconds (default = 0) relative to time.
|
||||
* @param time An optional time in milliseconds relative to which the delay is calculated (default = now).
|
||||
*/
|
||||
export function timeout(callback: (elapsed: number) => void, delay?: number, time?: number): Timer;
|
||||
|
||||
/**
|
||||
* Schedules and returns a new timer, invoking the specified callback repeatedly every 'delay' milliseconds
|
||||
* until the timer is stopped.
|
||||
* The callback is passed the (apparent) elapsed time since the timer became active.
|
||||
*
|
||||
* @param callback A callback function to be invoked and passed in the apparent
|
||||
* elapsed time since the timer became active in milliseconds.
|
||||
* @param delay An optional numeric delay in milliseconds between repeat invocations of the callback.
|
||||
* If not specified, the interval timer behaves like the regular timer.
|
||||
* @param time An optional time in milliseconds relative to which the initial delay is calculated (default = now).
|
||||
*/
|
||||
export function interval(callback: (elapsed: number) => void, delay?: number, time?: number): Timer;
|
||||
45
node_modules/@types/d3-timer/package.json
generated
vendored
Normal file
45
node_modules/@types/d3-timer/package.json
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "@types/d3-timer",
|
||||
"version": "3.0.2",
|
||||
"description": "TypeScript definitions for d3-timer",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-timer",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Tom Wanzek",
|
||||
"githubUsername": "tomwanzek",
|
||||
"url": "https://github.com/tomwanzek"
|
||||
},
|
||||
{
|
||||
"name": "Alex Ford",
|
||||
"githubUsername": "gustavderdrache",
|
||||
"url": "https://github.com/gustavderdrache"
|
||||
},
|
||||
{
|
||||
"name": "Boris Yankov",
|
||||
"githubUsername": "borisyankov",
|
||||
"url": "https://github.com/borisyankov"
|
||||
},
|
||||
{
|
||||
"name": "denisname",
|
||||
"githubUsername": "denisname",
|
||||
"url": "https://github.com/denisname"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Bierema",
|
||||
"githubUsername": "Methuselah96",
|
||||
"url": "https://github.com/Methuselah96"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/d3-timer"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "a51fc6981e6d12715fd052f7e598dd291c354465025cbb33ece1895bdab4109c",
|
||||
"typeScriptVersion": "4.5"
|
||||
}
|
||||
21
node_modules/@types/prop-types/LICENSE
generated
vendored
Normal file
21
node_modules/@types/prop-types/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/prop-types/README.md
generated
vendored
Normal file
15
node_modules/@types/prop-types/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/prop-types`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for prop-types (https://github.com/facebook/prop-types).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prop-types.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Mon, 09 Jun 2025 20:02:33 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by [DovydasNavickas](https://github.com/DovydasNavickas), [Ferdy Budhidharma](https://github.com/ferdaber), and [Sebastian Silbermann](https://github.com/eps1lon).
|
||||
131
node_modules/@types/prop-types/index.d.ts
generated
vendored
Normal file
131
node_modules/@types/prop-types/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
// eslint-disable-next-line @definitelytyped/export-just-namespace
|
||||
export = PropTypes;
|
||||
|
||||
declare namespace PropTypes {
|
||||
type ReactComponentLike =
|
||||
| string
|
||||
| ((props: any) => any)
|
||||
| (new(props: any, context: any) => any);
|
||||
|
||||
interface ReactElementLike {
|
||||
type: ReactComponentLike;
|
||||
props: unknown;
|
||||
key: string | null;
|
||||
}
|
||||
|
||||
interface ReactNodeArray extends Iterable<ReactNodeLike> {}
|
||||
|
||||
/**
|
||||
* @internal Use `Awaited<ReactNodeLike>` instead
|
||||
*/
|
||||
// Helper type to enable `Awaited<ReactNodeLike>`.
|
||||
// Must be a copy of the non-thenables of `ReactNodeLike`.
|
||||
type AwaitedReactNodeLike =
|
||||
| ReactElementLike
|
||||
| string
|
||||
| number
|
||||
| bigint
|
||||
| ReactNodeArray
|
||||
| boolean
|
||||
| null
|
||||
| undefined;
|
||||
|
||||
type ReactNodeLike =
|
||||
| ReactElementLike
|
||||
| ReactNodeArray
|
||||
| string
|
||||
| number
|
||||
| bigint
|
||||
| boolean
|
||||
| null
|
||||
| undefined
|
||||
| Promise<AwaitedReactNodeLike>;
|
||||
|
||||
const nominalTypeHack: unique symbol;
|
||||
|
||||
type IsOptional<T> = undefined extends T ? true : false;
|
||||
|
||||
type RequiredKeys<V> = {
|
||||
[K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer T> ? IsOptional<T> extends true ? never : K
|
||||
: never;
|
||||
}[keyof V];
|
||||
type OptionalKeys<V> = Exclude<keyof V, RequiredKeys<V>>;
|
||||
type InferPropsInner<V> = { [K in keyof V]-?: InferType<V[K]> };
|
||||
|
||||
interface Validator<T> {
|
||||
(
|
||||
props: { [key: string]: any },
|
||||
propName: string,
|
||||
componentName: string,
|
||||
location: string,
|
||||
propFullName: string,
|
||||
): Error | null;
|
||||
[nominalTypeHack]?: {
|
||||
type: T;
|
||||
} | undefined;
|
||||
}
|
||||
|
||||
interface Requireable<T> extends Validator<T | undefined | null> {
|
||||
isRequired: Validator<NonNullable<T>>;
|
||||
}
|
||||
|
||||
type ValidationMap<T> = { [K in keyof T]?: Validator<T[K]> };
|
||||
|
||||
/**
|
||||
* Like {@link ValidationMap} but treats `undefined`, `null` and optional properties the same.
|
||||
* This type is only added as a migration path in React 19 where this type was removed from React.
|
||||
* Runtime and compile time types would mismatch since you could see `undefined` at runtime when your types don't expect this type.
|
||||
*/
|
||||
type WeakValidationMap<T> = {
|
||||
[K in keyof T]?: null extends T[K] ? Validator<T[K] | null | undefined>
|
||||
: undefined extends T[K] ? Validator<T[K] | null | undefined>
|
||||
: Validator<T[K]>;
|
||||
};
|
||||
|
||||
type InferType<V> = V extends Validator<infer T> ? T : any;
|
||||
type InferProps<V> =
|
||||
& InferPropsInner<Pick<V, RequiredKeys<V>>>
|
||||
& Partial<InferPropsInner<Pick<V, OptionalKeys<V>>>>;
|
||||
|
||||
const any: Requireable<any>;
|
||||
const array: Requireable<any[]>;
|
||||
const bool: Requireable<boolean>;
|
||||
const func: Requireable<(...args: any[]) => any>;
|
||||
const number: Requireable<number>;
|
||||
const object: Requireable<object>;
|
||||
const string: Requireable<string>;
|
||||
const node: Requireable<ReactNodeLike>;
|
||||
const element: Requireable<ReactElementLike>;
|
||||
const symbol: Requireable<symbol>;
|
||||
const elementType: Requireable<ReactComponentLike>;
|
||||
function instanceOf<T>(expectedClass: new(...args: any[]) => T): Requireable<T>;
|
||||
function oneOf<T>(types: readonly T[]): Requireable<T>;
|
||||
function oneOfType<T extends Validator<any>>(types: T[]): Requireable<NonNullable<InferType<T>>>;
|
||||
function arrayOf<T>(type: Validator<T>): Requireable<T[]>;
|
||||
function objectOf<T>(type: Validator<T>): Requireable<{ [K in keyof any]: T }>;
|
||||
function shape<P extends ValidationMap<any>>(type: P): Requireable<InferProps<P>>;
|
||||
function exact<P extends ValidationMap<any>>(type: P): Requireable<Required<InferProps<P>>>;
|
||||
|
||||
/**
|
||||
* Assert that the values match with the type specs.
|
||||
* Error messages are memorized and will only be shown once.
|
||||
*
|
||||
* @param typeSpecs Map of name to a ReactPropType
|
||||
* @param values Runtime values that need to be type-checked
|
||||
* @param location e.g. "prop", "context", "child context"
|
||||
* @param componentName Name of the component for error messages
|
||||
* @param getStack Returns the component stack
|
||||
*/
|
||||
function checkPropTypes(
|
||||
typeSpecs: any,
|
||||
values: any,
|
||||
location: string,
|
||||
componentName: string,
|
||||
getStack?: () => any,
|
||||
): void;
|
||||
|
||||
/**
|
||||
* Only available if NODE_ENV=production
|
||||
*/
|
||||
function resetWarningCache(): void;
|
||||
}
|
||||
36
node_modules/@types/prop-types/package.json
generated
vendored
Normal file
36
node_modules/@types/prop-types/package.json
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "@types/prop-types",
|
||||
"version": "15.7.15",
|
||||
"description": "TypeScript definitions for prop-types",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prop-types",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "DovydasNavickas",
|
||||
"githubUsername": "DovydasNavickas",
|
||||
"url": "https://github.com/DovydasNavickas"
|
||||
},
|
||||
{
|
||||
"name": "Ferdy Budhidharma",
|
||||
"githubUsername": "ferdaber",
|
||||
"url": "https://github.com/ferdaber"
|
||||
},
|
||||
{
|
||||
"name": "Sebastian Silbermann",
|
||||
"githubUsername": "eps1lon",
|
||||
"url": "https://github.com/eps1lon"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/prop-types"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "92a20bc6f48f988ae6f314daa592e457e4b7ccb6ef115535bf69c7061375a248",
|
||||
"typeScriptVersion": "5.1"
|
||||
}
|
||||
21
node_modules/@types/react-dom/LICENSE
generated
vendored
Normal file
21
node_modules/@types/react-dom/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
16
node_modules/@types/react-dom/README.md
generated
vendored
Normal file
16
node_modules/@types/react-dom/README.md
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# Installation
|
||||
> `npm install --save @types/react-dom`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for react-dom (https://reactjs.org).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom/v18.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Wed, 30 Apr 2025 10:37:29 GMT
|
||||
* Dependencies: none
|
||||
* Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [MartynasZilinskas](https://github.com/MartynasZilinskas), [Josh Rutherford](https://github.com/theruther4d), [Jessica Franco](https://github.com/Jessidhia), and [Sebastian Silbermann](https://github.com/eps1lon).
|
||||
185
node_modules/@types/react-dom/canary.d.ts
generated
vendored
Normal file
185
node_modules/@types/react-dom/canary.d.ts
generated
vendored
Normal file
@@ -0,0 +1,185 @@
|
||||
/**
|
||||
* These are types for things that are present in the upcoming React 18 release.
|
||||
*
|
||||
* Once React 18 is released they can just be moved to the main index file.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react-dom/canary"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react-dom/canary'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react-dom/canary" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.js to see how the exports are declared,
|
||||
// but confirm with published source code (e.g. https://unpkg.com/react-dom@canary) that these exports end up in the published code
|
||||
|
||||
import React = require("react");
|
||||
import ReactDOM = require(".");
|
||||
|
||||
export {};
|
||||
|
||||
declare const REACT_FORM_STATE_SIGIL: unique symbol;
|
||||
|
||||
declare module "." {
|
||||
function prefetchDNS(href: string): void;
|
||||
|
||||
interface PreconnectOptions {
|
||||
// Don't create a helper type.
|
||||
// It would have to be in module scope to be inlined in TS tooltips.
|
||||
// But then it becomes part of the public API.
|
||||
// TODO: Upstream to microsoft/TypeScript-DOM-lib-generator -> w3c/webref
|
||||
// since the spec has a notion of a dedicated type: https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attribute
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
}
|
||||
function preconnect(href: string, options?: PreconnectOptions): void;
|
||||
|
||||
type PreloadAs =
|
||||
| "audio"
|
||||
| "document"
|
||||
| "embed"
|
||||
| "fetch"
|
||||
| "font"
|
||||
| "image"
|
||||
| "object"
|
||||
| "track"
|
||||
| "script"
|
||||
| "style"
|
||||
| "video"
|
||||
| "worker";
|
||||
interface PreloadOptions {
|
||||
as: PreloadAs;
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
fetchPriority?: "high" | "low" | "auto" | undefined;
|
||||
// TODO: These should only be allowed with `as: 'image'` but it's not trivial to write tests against the full TS support matrix.
|
||||
imageSizes?: string | undefined;
|
||||
imageSrcSet?: string | undefined;
|
||||
integrity?: string | undefined;
|
||||
type?: string | undefined;
|
||||
nonce?: string | undefined;
|
||||
referrerPolicy?: ReferrerPolicy | undefined;
|
||||
media?: string | undefined;
|
||||
}
|
||||
function preload(href: string, options?: PreloadOptions): void;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/links.html#link-type-modulepreload
|
||||
type PreloadModuleAs = RequestDestination;
|
||||
interface PreloadModuleOptions {
|
||||
/**
|
||||
* @default "script"
|
||||
*/
|
||||
as: PreloadModuleAs;
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
integrity?: string | undefined;
|
||||
nonce?: string | undefined;
|
||||
}
|
||||
function preloadModule(href: string, options?: PreloadModuleOptions): void;
|
||||
|
||||
type PreinitAs = "script" | "style";
|
||||
interface PreinitOptions {
|
||||
as: PreinitAs;
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
fetchPriority?: "high" | "low" | "auto" | undefined;
|
||||
precedence?: string | undefined;
|
||||
integrity?: string | undefined;
|
||||
nonce?: string | undefined;
|
||||
}
|
||||
function preinit(href: string, options?: PreinitOptions): void;
|
||||
|
||||
// Will be expanded to include all of https://github.com/tc39/proposal-import-attributes
|
||||
type PreinitModuleAs = "script";
|
||||
interface PreinitModuleOptions {
|
||||
/**
|
||||
* @default "script"
|
||||
*/
|
||||
as?: PreinitModuleAs;
|
||||
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
||||
integrity?: string | undefined;
|
||||
nonce?: string | undefined;
|
||||
}
|
||||
function preinitModule(href: string, options?: PreinitModuleOptions): void;
|
||||
|
||||
interface FormStatusNotPending {
|
||||
pending: false;
|
||||
data: null;
|
||||
method: null;
|
||||
action: null;
|
||||
}
|
||||
|
||||
interface FormStatusPending {
|
||||
pending: true;
|
||||
data: FormData;
|
||||
method: string;
|
||||
action: string | ((formData: FormData) => void | Promise<void>);
|
||||
}
|
||||
|
||||
type FormStatus = FormStatusPending | FormStatusNotPending;
|
||||
|
||||
function useFormStatus(): FormStatus;
|
||||
|
||||
function useFormState<State>(
|
||||
action: (state: Awaited<State>) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: () => void, isPending: boolean];
|
||||
function useFormState<State, Payload>(
|
||||
action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: (payload: Payload) => void, isPending: boolean];
|
||||
|
||||
function requestFormReset(form: HTMLFormElement): void;
|
||||
}
|
||||
|
||||
declare module "./client" {
|
||||
interface ReactFormState {
|
||||
[REACT_FORM_STATE_SIGIL]: never;
|
||||
}
|
||||
|
||||
interface RootOptions {
|
||||
onUncaughtError?:
|
||||
| ((error: unknown, errorInfo: { componentStack?: string | undefined }) => void)
|
||||
| undefined;
|
||||
onCaughtError?:
|
||||
| ((
|
||||
error: unknown,
|
||||
errorInfo: {
|
||||
componentStack?: string | undefined;
|
||||
errorBoundary?: React.Component<unknown> | undefined;
|
||||
},
|
||||
) => void)
|
||||
| undefined;
|
||||
}
|
||||
|
||||
interface HydrationOptions {
|
||||
formState?: ReactFormState | null;
|
||||
onUncaughtError?:
|
||||
| ((error: unknown, errorInfo: { componentStack?: string | undefined }) => void)
|
||||
| undefined;
|
||||
onCaughtError?:
|
||||
| ((
|
||||
error: unknown,
|
||||
errorInfo: {
|
||||
componentStack?: string | undefined;
|
||||
errorBoundary?: React.Component<unknown> | undefined;
|
||||
},
|
||||
) => void)
|
||||
| undefined;
|
||||
}
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS {
|
||||
document: Document;
|
||||
}
|
||||
}
|
||||
72
node_modules/@types/react-dom/client.d.ts
generated
vendored
Normal file
72
node_modules/@types/react-dom/client.d.ts
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
/**
|
||||
* WARNING: This entrypoint is only available starting with `react-dom@18.0.0-rc.1`
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react-dom/client.js to see how the exports are declared,
|
||||
|
||||
import React = require("react");
|
||||
export interface HydrationOptions {
|
||||
/**
|
||||
* Prefix for `useId`.
|
||||
*/
|
||||
identifierPrefix?: string;
|
||||
onRecoverableError?: (error: unknown, errorInfo: ErrorInfo) => void;
|
||||
}
|
||||
|
||||
export interface RootOptions {
|
||||
/**
|
||||
* Prefix for `useId`.
|
||||
*/
|
||||
identifierPrefix?: string;
|
||||
onRecoverableError?: (error: unknown, errorInfo: ErrorInfo) => void;
|
||||
}
|
||||
|
||||
export interface ErrorInfo {
|
||||
digest?: string;
|
||||
componentStack?: string;
|
||||
}
|
||||
|
||||
export interface Root {
|
||||
render(children: React.ReactNode): void;
|
||||
unmount(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Different release channels declare additional types of ReactNode this particular release channel accepts.
|
||||
* App or library types should never augment this interface.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
export interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS {}
|
||||
|
||||
export type Container =
|
||||
| Element
|
||||
| DocumentFragment
|
||||
| DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS[
|
||||
keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_CREATE_ROOT_CONTAINERS
|
||||
];
|
||||
|
||||
/**
|
||||
* createRoot lets you create a root to display React components inside a browser DOM node.
|
||||
*
|
||||
* @see {@link https://react.dev/reference/react-dom/client/createRoot API Reference for `createRoot`}
|
||||
*/
|
||||
export function createRoot(container: Container, options?: RootOptions): Root;
|
||||
|
||||
/**
|
||||
* Same as `createRoot()`, but is used to hydrate a container whose HTML contents were rendered by ReactDOMServer.
|
||||
*
|
||||
* React will attempt to attach event listeners to the existing markup.
|
||||
*
|
||||
* **Example Usage**
|
||||
*
|
||||
* ```jsx
|
||||
* hydrateRoot(document.querySelector('#root'), <App />)
|
||||
* ```
|
||||
*
|
||||
* @see https://reactjs.org/docs/react-dom-client.html#hydrateroot
|
||||
*/
|
||||
export function hydrateRoot(
|
||||
container: Element | Document,
|
||||
initialChildren: React.ReactNode,
|
||||
options?: HydrationOptions,
|
||||
): Root;
|
||||
36
node_modules/@types/react-dom/experimental.d.ts
generated
vendored
Normal file
36
node_modules/@types/react-dom/experimental.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* These are types for things that are present in the `experimental` builds of React but not yet
|
||||
* on a stable build.
|
||||
*
|
||||
* Once they are promoted to stable they can just be moved to the main index file.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react-dom/experimental"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react-dom/experimental'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react-dom/experimental" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.experimental.js to see how the exports are declared,
|
||||
// but confirm with published source code (e.g. https://unpkg.com/react-dom@experimental) that these exports end up in the published code
|
||||
|
||||
import React = require("react");
|
||||
import ReactDOM = require("./canary");
|
||||
|
||||
export {};
|
||||
|
||||
declare module "." {
|
||||
}
|
||||
150
node_modules/@types/react-dom/index.d.ts
generated
vendored
Normal file
150
node_modules/@types/react-dom/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
// NOTE: Users of the `experimental` builds of React should add a reference
|
||||
// to 'react-dom/experimental' in their project. See experimental.d.ts's top comment
|
||||
// for reference and documentation on how exactly to do it.
|
||||
|
||||
export as namespace ReactDOM;
|
||||
|
||||
import {
|
||||
CElement,
|
||||
Component,
|
||||
ComponentState,
|
||||
DOMAttributes,
|
||||
DOMElement,
|
||||
FunctionComponentElement,
|
||||
Key,
|
||||
ReactElement,
|
||||
ReactInstance,
|
||||
ReactNode,
|
||||
ReactPortal,
|
||||
} from "react";
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/reference/react-dom/findDOMNode#alternatives
|
||||
*/
|
||||
export function findDOMNode(instance: ReactInstance | null | undefined): Element | null | Text;
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
export function unmountComponentAtNode(container: Element | DocumentFragment): boolean;
|
||||
|
||||
export function createPortal(
|
||||
children: ReactNode,
|
||||
container: Element | DocumentFragment,
|
||||
key?: Key | null,
|
||||
): ReactPortal;
|
||||
|
||||
export const version: string;
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
export const render: Renderer;
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
export const hydrate: Renderer;
|
||||
|
||||
export function flushSync<R>(fn: () => R): R;
|
||||
|
||||
export function unstable_batchedUpdates<A, R>(callback: (a: A) => R, a: A): R;
|
||||
export function unstable_batchedUpdates<R>(callback: () => R): R;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export function unstable_renderSubtreeIntoContainer<T extends Element>(
|
||||
parentComponent: Component<any>,
|
||||
element: DOMElement<DOMAttributes<T>, T>,
|
||||
container: Element,
|
||||
callback?: (element: T) => any,
|
||||
): T;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export function unstable_renderSubtreeIntoContainer<P, T extends Component<P, ComponentState>>(
|
||||
parentComponent: Component<any>,
|
||||
element: CElement<P, T>,
|
||||
container: Element,
|
||||
callback?: (component: T) => any,
|
||||
): T;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
export function unstable_renderSubtreeIntoContainer<P>(
|
||||
parentComponent: Component<any>,
|
||||
element: ReactElement<P>,
|
||||
container: Element,
|
||||
callback?: (component?: Component<P, ComponentState> | Element) => any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
||||
): Component<P, ComponentState> | Element | void;
|
||||
|
||||
export type Container = Element | Document | DocumentFragment;
|
||||
|
||||
export interface Renderer {
|
||||
// Deprecated(render): The return value is deprecated.
|
||||
// In future releases the render function's return type will be void.
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
<T extends Element>(
|
||||
element: DOMElement<DOMAttributes<T>, T>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): T;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
(
|
||||
element: Array<DOMElement<DOMAttributes<any>, any>>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): Element;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
(
|
||||
element: FunctionComponentElement<any> | Array<FunctionComponentElement<any>>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): void;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
<P, T extends Component<P, ComponentState>>(
|
||||
element: CElement<P, T>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): T;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
(
|
||||
element: Array<CElement<any, Component<any, ComponentState>>>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
): Component<any, ComponentState>;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
<P>(
|
||||
element: ReactElement<P>,
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
||||
): Component<P, ComponentState> | Element | void;
|
||||
|
||||
/**
|
||||
* @deprecated See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
|
||||
*/
|
||||
(
|
||||
element: ReactElement[],
|
||||
container: Container | null,
|
||||
callback?: () => void,
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
||||
): Component<any, ComponentState> | Element | void;
|
||||
}
|
||||
88
node_modules/@types/react-dom/package.json
generated
vendored
Normal file
88
node_modules/@types/react-dom/package.json
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"name": "@types/react-dom",
|
||||
"version": "18.3.7",
|
||||
"description": "TypeScript definitions for react-dom",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Asana",
|
||||
"url": "https://asana.com"
|
||||
},
|
||||
{
|
||||
"name": "AssureSign",
|
||||
"url": "http://www.assuresign.com"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft",
|
||||
"url": "https://microsoft.com"
|
||||
},
|
||||
{
|
||||
"name": "MartynasZilinskas",
|
||||
"githubUsername": "MartynasZilinskas",
|
||||
"url": "https://github.com/MartynasZilinskas"
|
||||
},
|
||||
{
|
||||
"name": "Josh Rutherford",
|
||||
"githubUsername": "theruther4d",
|
||||
"url": "https://github.com/theruther4d"
|
||||
},
|
||||
{
|
||||
"name": "Jessica Franco",
|
||||
"githubUsername": "Jessidhia",
|
||||
"url": "https://github.com/Jessidhia"
|
||||
},
|
||||
{
|
||||
"name": "Sebastian Silbermann",
|
||||
"githubUsername": "eps1lon",
|
||||
"url": "https://github.com/eps1lon"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": {
|
||||
"default": "./index.d.ts"
|
||||
}
|
||||
},
|
||||
"./canary": {
|
||||
"types": {
|
||||
"default": "./canary.d.ts"
|
||||
}
|
||||
},
|
||||
"./client": {
|
||||
"types": {
|
||||
"default": "./client.d.ts"
|
||||
}
|
||||
},
|
||||
"./server": {
|
||||
"types": {
|
||||
"default": "./server.d.ts"
|
||||
}
|
||||
},
|
||||
"./experimental": {
|
||||
"types": {
|
||||
"default": "./experimental.d.ts"
|
||||
}
|
||||
},
|
||||
"./test-utils": {
|
||||
"types": {
|
||||
"default": "./test-utils/index.d.ts"
|
||||
}
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/react-dom"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"@types/react": "^18.0.0"
|
||||
},
|
||||
"typesPublisherContentHash": "091d1528d83863778f5cb9fbf6c81d6e64ed2394f4c3c73a57ed81d9871b4465",
|
||||
"typeScriptVersion": "5.1"
|
||||
}
|
||||
131
node_modules/@types/react-dom/server.d.ts
generated
vendored
Normal file
131
node_modules/@types/react-dom/server.d.ts
generated
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
// forward declarations
|
||||
declare global {
|
||||
namespace NodeJS {
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface ReadableStream {}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface WritableStream {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stub for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface AbortSignal {}
|
||||
|
||||
/**
|
||||
* Stub for https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface ReadableStream {}
|
||||
}
|
||||
|
||||
import { ReactNode } from "react";
|
||||
import { ErrorInfo } from "./client";
|
||||
|
||||
export type BootstrapScriptDescriptor = {
|
||||
src: string;
|
||||
integrity?: string | undefined;
|
||||
crossOrigin?: string | undefined;
|
||||
};
|
||||
export interface RenderToPipeableStreamOptions {
|
||||
identifierPrefix?: string;
|
||||
namespaceURI?: string;
|
||||
nonce?: string;
|
||||
bootstrapScriptContent?: string;
|
||||
bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
|
||||
bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
|
||||
progressiveChunkSize?: number;
|
||||
onShellReady?: () => void;
|
||||
onShellError?: (error: unknown) => void;
|
||||
onAllReady?: () => void;
|
||||
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
|
||||
}
|
||||
|
||||
export interface PipeableStream {
|
||||
abort: (reason?: unknown) => void;
|
||||
pipe: <Writable extends NodeJS.WritableStream>(destination: Writable) => Writable;
|
||||
}
|
||||
|
||||
export interface ServerOptions {
|
||||
identifierPrefix?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Only available in the environments with [Node.js Streams](https://nodejs.dev/learn/nodejs-streams).
|
||||
*
|
||||
* @see [API](https://reactjs.org/docs/react-dom-server.html#rendertopipeablestream)
|
||||
*
|
||||
* @param children
|
||||
* @param options
|
||||
*/
|
||||
export function renderToPipeableStream(children: ReactNode, options?: RenderToPipeableStreamOptions): PipeableStream;
|
||||
|
||||
/**
|
||||
* Render a React element to its initial HTML. This should only be used on the server.
|
||||
* React will return an HTML string. You can use this method to generate HTML on the server
|
||||
* and send the markup down on the initial request for faster page loads and to allow search
|
||||
* engines to crawl your pages for SEO purposes.
|
||||
*
|
||||
* If you call `ReactDOMClient.hydrateRoot()` on a node that already has this server-rendered markup,
|
||||
* React will preserve it and only attach event handlers, allowing you
|
||||
* to have a very performant first-load experience.
|
||||
*/
|
||||
export function renderToString(element: ReactNode, options?: ServerOptions): string;
|
||||
|
||||
/**
|
||||
* Render a React element to its initial HTML. Returns a Readable stream that outputs
|
||||
* an HTML string. The HTML output by this stream is exactly equal to what
|
||||
* `ReactDOMServer.renderToString()` would return.
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
export function renderToNodeStream(element: ReactNode, options?: ServerOptions): NodeJS.ReadableStream;
|
||||
|
||||
/**
|
||||
* Similar to `renderToString`, except this doesn't create extra DOM attributes
|
||||
* such as `data-reactid`, that React uses internally. This is useful if you want
|
||||
* to use React as a simple static page generator, as stripping away the extra
|
||||
* attributes can save lots of bytes.
|
||||
*/
|
||||
export function renderToStaticMarkup(element: ReactNode, options?: ServerOptions): string;
|
||||
|
||||
/**
|
||||
* Similar to `renderToNodeStream`, except this doesn't create extra DOM attributes
|
||||
* such as `data-reactid`, that React uses internally. The HTML output by this stream
|
||||
* is exactly equal to what `ReactDOMServer.renderToStaticMarkup()` would return.
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
export function renderToStaticNodeStream(element: ReactNode, options?: ServerOptions): NodeJS.ReadableStream;
|
||||
|
||||
export interface RenderToReadableStreamOptions {
|
||||
identifierPrefix?: string;
|
||||
namespaceURI?: string;
|
||||
nonce?: string;
|
||||
bootstrapScriptContent?: string;
|
||||
bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
|
||||
bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
|
||||
progressiveChunkSize?: number;
|
||||
signal?: AbortSignal;
|
||||
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
|
||||
}
|
||||
|
||||
export interface ReactDOMServerReadableStream extends ReadableStream {
|
||||
allReady: Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Only available in the environments with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) (this includes browsers, Deno, and some modern edge runtimes).
|
||||
*
|
||||
* @see [API](https://reactjs.org/docs/react-dom-server.html#rendertoreadablestream)
|
||||
*/
|
||||
export function renderToReadableStream(
|
||||
children: ReactNode,
|
||||
options?: RenderToReadableStreamOptions,
|
||||
): Promise<ReactDOMServerReadableStream>;
|
||||
|
||||
export const version: string;
|
||||
|
||||
export as namespace ReactDOMServer;
|
||||
402
node_modules/@types/react-dom/test-utils/index.d.ts
generated
vendored
Normal file
402
node_modules/@types/react-dom/test-utils/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,402 @@
|
||||
import {
|
||||
AbstractView,
|
||||
CElement,
|
||||
ClassType,
|
||||
Component,
|
||||
ComponentClass,
|
||||
DOMAttributes,
|
||||
DOMElement,
|
||||
FC,
|
||||
FunctionComponentElement,
|
||||
ReactElement,
|
||||
ReactHTMLElement,
|
||||
ReactInstance,
|
||||
} from "react";
|
||||
|
||||
import * as ReactTestUtils from ".";
|
||||
|
||||
export {};
|
||||
|
||||
export interface OptionalEventProperties {
|
||||
bubbles?: boolean | undefined;
|
||||
cancelable?: boolean | undefined;
|
||||
currentTarget?: EventTarget | undefined;
|
||||
defaultPrevented?: boolean | undefined;
|
||||
eventPhase?: number | undefined;
|
||||
isTrusted?: boolean | undefined;
|
||||
nativeEvent?: Event | undefined;
|
||||
preventDefault?(): void;
|
||||
stopPropagation?(): void;
|
||||
target?: EventTarget | undefined;
|
||||
timeStamp?: Date | undefined;
|
||||
type?: string | undefined;
|
||||
}
|
||||
|
||||
export type ModifierKey =
|
||||
| "Alt"
|
||||
| "AltGraph"
|
||||
| "CapsLock"
|
||||
| "Control"
|
||||
| "Fn"
|
||||
| "FnLock"
|
||||
| "Hyper"
|
||||
| "Meta"
|
||||
| "NumLock"
|
||||
| "ScrollLock"
|
||||
| "Shift"
|
||||
| "Super"
|
||||
| "Symbol"
|
||||
| "SymbolLock";
|
||||
|
||||
export interface SyntheticEventData extends OptionalEventProperties {
|
||||
altKey?: boolean | undefined;
|
||||
button?: number | undefined;
|
||||
buttons?: number | undefined;
|
||||
clientX?: number | undefined;
|
||||
clientY?: number | undefined;
|
||||
changedTouches?: TouchList | undefined;
|
||||
charCode?: number | undefined;
|
||||
clipboardData?: DataTransfer | undefined;
|
||||
ctrlKey?: boolean | undefined;
|
||||
deltaMode?: number | undefined;
|
||||
deltaX?: number | undefined;
|
||||
deltaY?: number | undefined;
|
||||
deltaZ?: number | undefined;
|
||||
detail?: number | undefined;
|
||||
getModifierState?(key: ModifierKey): boolean;
|
||||
key?: string | undefined;
|
||||
keyCode?: number | undefined;
|
||||
locale?: string | undefined;
|
||||
location?: number | undefined;
|
||||
metaKey?: boolean | undefined;
|
||||
pageX?: number | undefined;
|
||||
pageY?: number | undefined;
|
||||
relatedTarget?: EventTarget | undefined;
|
||||
repeat?: boolean | undefined;
|
||||
screenX?: number | undefined;
|
||||
screenY?: number | undefined;
|
||||
shiftKey?: boolean | undefined;
|
||||
targetTouches?: TouchList | undefined;
|
||||
touches?: TouchList | undefined;
|
||||
view?: AbstractView | undefined;
|
||||
which?: number | undefined;
|
||||
}
|
||||
|
||||
export type EventSimulator = (element: Element | Component<any>, eventData?: SyntheticEventData) => void;
|
||||
|
||||
export interface MockedComponentClass {
|
||||
new(props: any): any;
|
||||
}
|
||||
|
||||
export interface ShallowRenderer {
|
||||
/**
|
||||
* After `shallowRenderer.render()` has been called, returns shallowly rendered output.
|
||||
*/
|
||||
getRenderOutput<E extends ReactElement>(): E;
|
||||
/**
|
||||
* Similar to `ReactDOM.render` but it doesn't require DOM and only renders a single level deep.
|
||||
*/
|
||||
render(element: ReactElement, context?: any): void;
|
||||
unmount(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Simulate an event dispatch on a DOM node with optional `eventData` event data.
|
||||
* `Simulate` has a method for every event that React understands.
|
||||
*/
|
||||
export namespace Simulate {
|
||||
const abort: EventSimulator;
|
||||
const animationEnd: EventSimulator;
|
||||
const animationIteration: EventSimulator;
|
||||
const animationStart: EventSimulator;
|
||||
const blur: EventSimulator;
|
||||
const cancel: EventSimulator;
|
||||
const canPlay: EventSimulator;
|
||||
const canPlayThrough: EventSimulator;
|
||||
const change: EventSimulator;
|
||||
const click: EventSimulator;
|
||||
const close: EventSimulator;
|
||||
const compositionEnd: EventSimulator;
|
||||
const compositionStart: EventSimulator;
|
||||
const compositionUpdate: EventSimulator;
|
||||
const contextMenu: EventSimulator;
|
||||
const copy: EventSimulator;
|
||||
const cut: EventSimulator;
|
||||
const auxClick: EventSimulator;
|
||||
const doubleClick: EventSimulator;
|
||||
const drag: EventSimulator;
|
||||
const dragEnd: EventSimulator;
|
||||
const dragEnter: EventSimulator;
|
||||
const dragExit: EventSimulator;
|
||||
const dragLeave: EventSimulator;
|
||||
const dragOver: EventSimulator;
|
||||
const dragStart: EventSimulator;
|
||||
const drop: EventSimulator;
|
||||
const durationChange: EventSimulator;
|
||||
const emptied: EventSimulator;
|
||||
const encrypted: EventSimulator;
|
||||
const ended: EventSimulator;
|
||||
const error: EventSimulator;
|
||||
const focus: EventSimulator;
|
||||
const input: EventSimulator;
|
||||
const invalid: EventSimulator;
|
||||
const keyDown: EventSimulator;
|
||||
const keyPress: EventSimulator;
|
||||
const keyUp: EventSimulator;
|
||||
const load: EventSimulator;
|
||||
const loadStart: EventSimulator;
|
||||
const loadedData: EventSimulator;
|
||||
const loadedMetadata: EventSimulator;
|
||||
const mouseDown: EventSimulator;
|
||||
const mouseEnter: EventSimulator;
|
||||
const mouseLeave: EventSimulator;
|
||||
const mouseMove: EventSimulator;
|
||||
const mouseOut: EventSimulator;
|
||||
const mouseOver: EventSimulator;
|
||||
const mouseUp: EventSimulator;
|
||||
const paste: EventSimulator;
|
||||
const pause: EventSimulator;
|
||||
const play: EventSimulator;
|
||||
const playing: EventSimulator;
|
||||
const progress: EventSimulator;
|
||||
const pointerCancel: EventSimulator;
|
||||
const pointerDown: EventSimulator;
|
||||
const pointerUp: EventSimulator;
|
||||
const pointerMove: EventSimulator;
|
||||
const pointerOut: EventSimulator;
|
||||
const pointerOver: EventSimulator;
|
||||
const pointerEnter: EventSimulator;
|
||||
const pointerLeave: EventSimulator;
|
||||
const gotPointerCapture: EventSimulator;
|
||||
const lostPointerCapture: EventSimulator;
|
||||
const rateChange: EventSimulator;
|
||||
const reset: EventSimulator;
|
||||
const resize: EventSimulator;
|
||||
const scroll: EventSimulator;
|
||||
const toggle: EventSimulator;
|
||||
const seeked: EventSimulator;
|
||||
const seeking: EventSimulator;
|
||||
const select: EventSimulator;
|
||||
const beforeInput: EventSimulator;
|
||||
const stalled: EventSimulator;
|
||||
const submit: EventSimulator;
|
||||
const suspend: EventSimulator;
|
||||
const timeUpdate: EventSimulator;
|
||||
const touchCancel: EventSimulator;
|
||||
const touchEnd: EventSimulator;
|
||||
const touchMove: EventSimulator;
|
||||
const touchStart: EventSimulator;
|
||||
const transitionEnd: EventSimulator;
|
||||
const volumeChange: EventSimulator;
|
||||
const waiting: EventSimulator;
|
||||
const wheel: EventSimulator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render a React element into a detached DOM node in the document. __This function requires a DOM__.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function renderIntoDocument<T extends Element>(
|
||||
element: DOMElement<any, T>,
|
||||
): T;
|
||||
/** @deprecated https://react.dev/warnings/react-dom-test-utils */
|
||||
export function renderIntoDocument(
|
||||
element: FunctionComponentElement<any>,
|
||||
): void;
|
||||
// If we replace `P` with `any` in this overload, then some tests fail because
|
||||
// calls to `renderIntoDocument` choose the last overload on the
|
||||
// subtype-relation pass and get an undesirably broad return type. Using `P`
|
||||
// allows this overload to match on the subtype-relation pass.
|
||||
/**
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function renderIntoDocument<P, T extends Component<P>>(
|
||||
element: CElement<P, T>,
|
||||
): T;
|
||||
/**
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function renderIntoDocument<P>(
|
||||
element: ReactElement<P>,
|
||||
): Component<P> | Element | void;
|
||||
|
||||
/**
|
||||
* Pass a mocked component module to this method to augment it with useful methods that allow it to
|
||||
* be used as a dummy React component. Instead of rendering as usual, the component will become
|
||||
* a simple `<div>` (or other tag if `mockTagName` is provided) containing any provided children.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function mockComponent(
|
||||
mocked: MockedComponentClass,
|
||||
mockTagName?: string,
|
||||
): typeof ReactTestUtils;
|
||||
|
||||
/**
|
||||
* Returns `true` if `element` is any React element.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElement(element: any): boolean;
|
||||
|
||||
/**
|
||||
* Returns `true` if `element` is a React element whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElementOfType<T extends HTMLElement>(
|
||||
element: ReactElement,
|
||||
type: string,
|
||||
): element is ReactHTMLElement<T>;
|
||||
/**
|
||||
* Returns `true` if `element` is a React element whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElementOfType<P extends DOMAttributes<{}>, T extends Element>(
|
||||
element: ReactElement,
|
||||
type: string,
|
||||
): element is DOMElement<P, T>;
|
||||
/**
|
||||
* Returns `true` if `element` is a React element whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElementOfType<P>(
|
||||
element: ReactElement,
|
||||
type: FC<P>,
|
||||
): element is FunctionComponentElement<P>;
|
||||
/**
|
||||
* Returns `true` if `element` is a React element whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isElementOfType<P, T extends Component<P>, C extends ComponentClass<P>>(
|
||||
element: ReactElement,
|
||||
type: ClassType<P, T, C>,
|
||||
): element is CElement<P, T>;
|
||||
|
||||
/**
|
||||
* Returns `true` if `instance` is a DOM component (such as a `<div>` or `<span>`).
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isDOMComponent(instance: ReactInstance): instance is Element;
|
||||
/**
|
||||
* Returns `true` if `instance` is a user-defined component, such as a class or a function.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isCompositeComponent(instance: ReactInstance): instance is Component<any>;
|
||||
/**
|
||||
* Returns `true` if `instance` is a component whose type is of a React `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function isCompositeComponentWithType<T extends Component<any>, C extends ComponentClass<any>>(
|
||||
instance: ReactInstance,
|
||||
type: ClassType<any, T, C>,
|
||||
): boolean;
|
||||
|
||||
/**
|
||||
* Traverse all components in `tree` and accumulate all components where
|
||||
* `test(component)` is `true`. This is not that useful on its own, but it's used
|
||||
* as a primitive for other test utils.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function findAllInRenderedTree(
|
||||
root: Component<any>,
|
||||
fn: (i: ReactInstance) => boolean,
|
||||
): ReactInstance[];
|
||||
|
||||
/**
|
||||
* Finds all DOM elements of components in the rendered tree that are
|
||||
* DOM components with the class name matching `className`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function scryRenderedDOMComponentsWithClass(
|
||||
root: Component<any>,
|
||||
className: string,
|
||||
): Element[];
|
||||
/**
|
||||
* Like `scryRenderedDOMComponentsWithClass()` but expects there to be one result,
|
||||
* and returns that one result, or throws exception if there is any other
|
||||
* number of matches besides one.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function findRenderedDOMComponentWithClass(
|
||||
root: Component<any>,
|
||||
className: string,
|
||||
): Element;
|
||||
|
||||
/**
|
||||
* Finds all DOM elements of components in the rendered tree that are
|
||||
* DOM components with the tag name matching `tagName`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function scryRenderedDOMComponentsWithTag(
|
||||
root: Component<any>,
|
||||
tagName: string,
|
||||
): Element[];
|
||||
/**
|
||||
* Like `scryRenderedDOMComponentsWithTag()` but expects there to be one result,
|
||||
* and returns that one result, or throws exception if there is any other
|
||||
* number of matches besides one.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function findRenderedDOMComponentWithTag(
|
||||
root: Component<any>,
|
||||
tagName: string,
|
||||
): Element;
|
||||
|
||||
/**
|
||||
* Finds all instances of components with type equal to `componentClass`.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function scryRenderedComponentsWithType<T extends Component<any>, C extends ComponentClass<any>>(
|
||||
root: Component<any>,
|
||||
type: ClassType<any, T, C>,
|
||||
): T[];
|
||||
|
||||
/**
|
||||
* Same as `scryRenderedComponentsWithType()` but expects there to be one result
|
||||
* and returns that one result, or throws exception if there is any other
|
||||
* number of matches besides one.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function findRenderedComponentWithType<T extends Component<any>, C extends ComponentClass<any>>(
|
||||
root: Component<any>,
|
||||
type: ClassType<any, T, C>,
|
||||
): T;
|
||||
|
||||
/**
|
||||
* Call this in your tests to create a shallow renderer.
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function createRenderer(): ShallowRenderer;
|
||||
|
||||
// NOTES
|
||||
// - the order of these signatures matters - typescript will check the signatures in source order.
|
||||
// If the `() => VoidOrUndefinedOnly` signature is first, it'll erroneously match a Promise returning function for users with
|
||||
// `strictNullChecks: false`.
|
||||
// - VoidOrUndefinedOnly is there to forbid any non-void return values for users with `strictNullChecks: true`
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
/**
|
||||
* Wrap any code rendering and triggering updates to your components into `act()` calls.
|
||||
*
|
||||
* Ensures that the behavior in your tests matches what happens in the browser
|
||||
* more closely by executing pending `useEffect`s before returning. This also
|
||||
* reduces the amount of re-renders done.
|
||||
*
|
||||
* @param callback A synchronous, void callback that will execute as a single, complete React commit.
|
||||
*
|
||||
* @see https://reactjs.org/blog/2019/02/06/react-v16.8.0.html#testing-hooks
|
||||
*
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
// While act does always return Thenable, if a void function is passed, we pretend the return value is also void to not trigger dangling Promise lint rules.
|
||||
export function act(callback: () => VoidOrUndefinedOnly): void;
|
||||
/**
|
||||
* @deprecated https://react.dev/warnings/react-dom-test-utils
|
||||
*/
|
||||
export function act<T>(callback: () => T | Promise<T>): Promise<T>;
|
||||
|
||||
// Intentionally doesn't extend PromiseLike<never>.
|
||||
// Ideally this should be as hard to accidentally use as possible.
|
||||
export interface DebugPromiseLike {
|
||||
// the actual then() in here is 0-ary, but that doesn't count as a PromiseLike.
|
||||
then(onfulfilled: (value: never) => never, onrejected: (reason: never) => never): never;
|
||||
}
|
||||
21
node_modules/@types/react/LICENSE
generated
vendored
Normal file
21
node_modules/@types/react/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
15
node_modules/@types/react/README.md
generated
vendored
Normal file
15
node_modules/@types/react/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/react`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for react (https://react.dev/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react/v18.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Mon, 06 Oct 2025 21:02:40 GMT
|
||||
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [csstype](https://npmjs.com/package/csstype)
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [John Reilly](https://github.com/johnnyreilly), [Benoit Benezech](https://github.com/bbenezech), [Patricio Zavolinsky](https://github.com/pzavolinsky), [Eric Anderson](https://github.com/ericanderson), [Dovydas Navickas](https://github.com/DovydasNavickas), [Josh Rutherford](https://github.com/theruther4d), [Guilherme Hübner](https://github.com/guilhermehubner), [Ferdy Budhidharma](https://github.com/ferdaber), [Johann Rakotoharisoa](https://github.com/jrakotoharisoa), [Olivier Pascal](https://github.com/pascaloliv), [Martin Hochel](https://github.com/hotell), [Frank Li](https://github.com/franklixuefei), [Jessica Franco](https://github.com/Jessidhia), [Saransh Kataria](https://github.com/saranshkataria), [Kanitkorn Sujautra](https://github.com/lukyth), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag), [Priyanshu Rav](https://github.com/priyanshurav), [Dmitry Semigradsky](https://github.com/Semigradsky), and [Matt Pocock](https://github.com/mattpocock).
|
||||
166
node_modules/@types/react/canary.d.ts
generated
vendored
Normal file
166
node_modules/@types/react/canary.d.ts
generated
vendored
Normal file
@@ -0,0 +1,166 @@
|
||||
/**
|
||||
* These are types for things that are present in the React `canary` release channel.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react/canary"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react/canary'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react/canary" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react/src/React.js to see how the exports are declared,
|
||||
|
||||
import React = require(".");
|
||||
|
||||
export {};
|
||||
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
|
||||
type NativeToggleEvent = ToggleEvent;
|
||||
|
||||
declare module "." {
|
||||
export type Usable<T> = PromiseLike<T> | Context<T>;
|
||||
|
||||
export function use<T>(usable: Usable<T>): T;
|
||||
|
||||
interface ServerContextJSONArray extends ReadonlyArray<ServerContextJSONValue> {}
|
||||
export type ServerContextJSONValue =
|
||||
| string
|
||||
| boolean
|
||||
| number
|
||||
| null
|
||||
| ServerContextJSONArray
|
||||
| { [key: string]: ServerContextJSONValue };
|
||||
export interface ServerContext<T extends ServerContextJSONValue> {
|
||||
Provider: Provider<T>;
|
||||
}
|
||||
/**
|
||||
* Accepts a context object (the value returned from `React.createContext` or `React.createServerContext`) and returns the current
|
||||
* context value, as given by the nearest context provider for the given context.
|
||||
*
|
||||
* @version 16.8.0
|
||||
* @see https://react.dev/reference/react/useContext
|
||||
*/
|
||||
function useContext<T extends ServerContextJSONValue>(context: ServerContext<T>): T;
|
||||
export function createServerContext<T extends ServerContextJSONValue>(
|
||||
globalName: string,
|
||||
defaultValue: T,
|
||||
): ServerContext<T>;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
|
||||
|
||||
export function unstable_useCacheRefresh(): () => void;
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS {
|
||||
functions: (formData: FormData) => void | Promise<void>;
|
||||
}
|
||||
|
||||
export interface TransitionStartFunction {
|
||||
/**
|
||||
* Marks all state updates inside the async function as transitions
|
||||
*
|
||||
* @see {https://react.dev/reference/react/useTransition#starttransition}
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
(callback: () => Promise<VoidOrUndefinedOnly>): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to `useTransition` but allows uses where hooks are not available.
|
||||
*
|
||||
* @param callback An _asynchronous_ function which causes state updates that can be deferred.
|
||||
*/
|
||||
export function startTransition(scope: () => Promise<VoidOrUndefinedOnly>): void;
|
||||
|
||||
export function useOptimistic<State>(
|
||||
passthrough: State,
|
||||
): [State, (action: State | ((pendingState: State) => State)) => void];
|
||||
export function useOptimistic<State, Action>(
|
||||
passthrough: State,
|
||||
reducer: (state: State, action: Action) => State,
|
||||
): [State, (action: Action) => void];
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES {
|
||||
cleanup: () => VoidOrUndefinedOnly;
|
||||
}
|
||||
|
||||
export function useActionState<State>(
|
||||
action: (state: Awaited<State>) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: () => void, isPending: boolean];
|
||||
export function useActionState<State, Payload>(
|
||||
action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: (payload: Payload) => void, isPending: boolean];
|
||||
|
||||
interface DOMAttributes<T> {
|
||||
// Transition Events
|
||||
onTransitionCancel?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionCancelCapture?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionRun?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionRunCapture?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionStart?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionStartCapture?: TransitionEventHandler<T> | undefined;
|
||||
}
|
||||
|
||||
type ToggleEventHandler<T = Element> = EventHandler<ToggleEvent<T>>;
|
||||
|
||||
interface HTMLAttributes<T> {
|
||||
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
||||
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
||||
popoverTarget?: string | undefined;
|
||||
onToggle?: ToggleEventHandler<T> | undefined;
|
||||
onBeforeToggle?: ToggleEventHandler<T> | undefined;
|
||||
}
|
||||
|
||||
interface ToggleEvent<T = Element> extends SyntheticEvent<T, NativeToggleEvent> {
|
||||
oldState: "closed" | "open";
|
||||
newState: "closed" | "open";
|
||||
}
|
||||
|
||||
interface LinkHTMLAttributes<T> {
|
||||
precedence?: string | undefined;
|
||||
}
|
||||
|
||||
interface StyleHTMLAttributes<T> {
|
||||
href?: string | undefined;
|
||||
precedence?: string | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal Use `Awaited<ReactNode>` instead
|
||||
*/
|
||||
// Helper type to enable `Awaited<ReactNode>`.
|
||||
// Must be a copy of the non-thenables of `ReactNode`.
|
||||
type AwaitedReactNode =
|
||||
| ReactElement
|
||||
| string
|
||||
| number
|
||||
| Iterable<AwaitedReactNode>
|
||||
| ReactPortal
|
||||
| boolean
|
||||
| null
|
||||
| undefined;
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
|
||||
promises: Promise<AwaitedReactNode>;
|
||||
bigints: bigint;
|
||||
}
|
||||
}
|
||||
132
node_modules/@types/react/experimental.d.ts
generated
vendored
Normal file
132
node_modules/@types/react/experimental.d.ts
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* These are types for things that are present in the `experimental` builds of React but not yet
|
||||
* on a stable build.
|
||||
*
|
||||
* Once they are promoted to stable they can just be moved to the main index file.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react/experimental"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react/experimental'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react/experimental" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/master/packages/react/src/React.js to see how the exports are declared,
|
||||
// and https://github.com/facebook/react/blob/master/packages/shared/ReactFeatureFlags.js to verify which APIs are
|
||||
// flagged experimental or not. Experimental APIs will be tagged with `__EXPERIMENTAL__`.
|
||||
//
|
||||
// For the inputs of types exported as simply a fiber tag, the `beginWork` function of ReactFiberBeginWork.js
|
||||
// is a good place to start looking for details; it generally calls prop validation functions or delegates
|
||||
// all tasks done as part of the render phase (the concurrent part of the React update cycle).
|
||||
//
|
||||
// Suspense-related handling can be found in ReactFiberThrow.js.
|
||||
|
||||
import React = require("./canary");
|
||||
|
||||
export {};
|
||||
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
|
||||
declare module "." {
|
||||
export interface SuspenseProps {
|
||||
/**
|
||||
* The presence of this prop indicates that the content is computationally expensive to render.
|
||||
* In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data).
|
||||
* @see {@link https://github.com/facebook/react/pull/19936}
|
||||
*/
|
||||
unstable_expectedLoadTime?: number | undefined;
|
||||
}
|
||||
|
||||
export type SuspenseListRevealOrder = "forwards" | "backwards" | "together";
|
||||
export type SuspenseListTailMode = "collapsed" | "hidden";
|
||||
|
||||
export interface SuspenseListCommonProps {
|
||||
/**
|
||||
* Note that SuspenseList require more than one child;
|
||||
* it is a runtime warning to provide only a single child.
|
||||
*
|
||||
* It does, however, allow those children to be wrapped inside a single
|
||||
* level of `<React.Fragment>`.
|
||||
*/
|
||||
children: ReactElement | Iterable<ReactElement>;
|
||||
}
|
||||
|
||||
interface DirectionalSuspenseListProps extends SuspenseListCommonProps {
|
||||
/**
|
||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
||||
*/
|
||||
revealOrder: "forwards" | "backwards";
|
||||
/**
|
||||
* Dictates how unloaded items in a SuspenseList is shown.
|
||||
*
|
||||
* - By default, `SuspenseList` will show all fallbacks in the list.
|
||||
* - `collapsed` shows only the next fallback in the list.
|
||||
* - `hidden` doesn’t show any unloaded items.
|
||||
*/
|
||||
tail?: SuspenseListTailMode | undefined;
|
||||
}
|
||||
|
||||
interface NonDirectionalSuspenseListProps extends SuspenseListCommonProps {
|
||||
/**
|
||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
||||
*/
|
||||
revealOrder?: Exclude<SuspenseListRevealOrder, DirectionalSuspenseListProps["revealOrder"]> | undefined;
|
||||
/**
|
||||
* The tail property is invalid when not using the `forwards` or `backwards` reveal orders.
|
||||
*/
|
||||
tail?: never | undefined;
|
||||
}
|
||||
|
||||
export type SuspenseListProps = DirectionalSuspenseListProps | NonDirectionalSuspenseListProps;
|
||||
|
||||
/**
|
||||
* `SuspenseList` helps coordinate many components that can suspend by orchestrating the order
|
||||
* in which these components are revealed to the user.
|
||||
*
|
||||
* When multiple components need to fetch data, this data may arrive in an unpredictable order.
|
||||
* However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
|
||||
* until previous items have been displayed (this behavior is adjustable).
|
||||
*
|
||||
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
||||
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
||||
*/
|
||||
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
||||
|
||||
/**
|
||||
* Warning: Only available in development builds.
|
||||
*/
|
||||
function captureOwnerStack(): string | null;
|
||||
|
||||
type Reference = object;
|
||||
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
||||
function experimental_taintUniqueValue(
|
||||
message: string | undefined,
|
||||
lifetime: Reference,
|
||||
value: TaintableUniqueValue,
|
||||
): void;
|
||||
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
||||
|
||||
export interface HTMLAttributes<T> {
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
|
||||
*/
|
||||
inert?: boolean | undefined;
|
||||
}
|
||||
}
|
||||
161
node_modules/@types/react/global.d.ts
generated
vendored
Normal file
161
node_modules/@types/react/global.d.ts
generated
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
React projects that don't include the DOM library need these interfaces to compile.
|
||||
React Native applications use React, but there is no DOM available. The JavaScript runtime
|
||||
is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
|
||||
|
||||
Warning: all of these interfaces are empty. If you want type definitions for various properties
|
||||
(such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
|
||||
*/
|
||||
|
||||
interface Event {}
|
||||
interface AnimationEvent extends Event {}
|
||||
interface ClipboardEvent extends Event {}
|
||||
interface CompositionEvent extends Event {}
|
||||
interface DragEvent extends Event {}
|
||||
interface FocusEvent extends Event {}
|
||||
interface InputEvent extends Event {}
|
||||
interface KeyboardEvent extends Event {}
|
||||
interface MouseEvent extends Event {}
|
||||
interface TouchEvent extends Event {}
|
||||
interface PointerEvent extends Event {}
|
||||
interface ToggleEvent extends Event {}
|
||||
interface TransitionEvent extends Event {}
|
||||
interface UIEvent extends Event {}
|
||||
interface WheelEvent extends Event {}
|
||||
|
||||
interface EventTarget {}
|
||||
interface Document {}
|
||||
interface DataTransfer {}
|
||||
interface StyleMedia {}
|
||||
|
||||
interface Element {}
|
||||
interface DocumentFragment {}
|
||||
|
||||
interface HTMLElement extends Element {}
|
||||
interface HTMLAnchorElement extends HTMLElement {}
|
||||
interface HTMLAreaElement extends HTMLElement {}
|
||||
interface HTMLAudioElement extends HTMLElement {}
|
||||
interface HTMLBaseElement extends HTMLElement {}
|
||||
interface HTMLBodyElement extends HTMLElement {}
|
||||
interface HTMLBRElement extends HTMLElement {}
|
||||
interface HTMLButtonElement extends HTMLElement {}
|
||||
interface HTMLCanvasElement extends HTMLElement {}
|
||||
interface HTMLDataElement extends HTMLElement {}
|
||||
interface HTMLDataListElement extends HTMLElement {}
|
||||
interface HTMLDetailsElement extends HTMLElement {}
|
||||
interface HTMLDialogElement extends HTMLElement {}
|
||||
interface HTMLDivElement extends HTMLElement {}
|
||||
interface HTMLDListElement extends HTMLElement {}
|
||||
interface HTMLEmbedElement extends HTMLElement {}
|
||||
interface HTMLFieldSetElement extends HTMLElement {}
|
||||
interface HTMLFormElement extends HTMLElement {}
|
||||
interface HTMLHeadingElement extends HTMLElement {}
|
||||
interface HTMLHeadElement extends HTMLElement {}
|
||||
interface HTMLHRElement extends HTMLElement {}
|
||||
interface HTMLHtmlElement extends HTMLElement {}
|
||||
interface HTMLIFrameElement extends HTMLElement {}
|
||||
interface HTMLImageElement extends HTMLElement {}
|
||||
interface HTMLInputElement extends HTMLElement {}
|
||||
interface HTMLModElement extends HTMLElement {}
|
||||
interface HTMLLabelElement extends HTMLElement {}
|
||||
interface HTMLLegendElement extends HTMLElement {}
|
||||
interface HTMLLIElement extends HTMLElement {}
|
||||
interface HTMLLinkElement extends HTMLElement {}
|
||||
interface HTMLMapElement extends HTMLElement {}
|
||||
interface HTMLMetaElement extends HTMLElement {}
|
||||
interface HTMLMeterElement extends HTMLElement {}
|
||||
interface HTMLObjectElement extends HTMLElement {}
|
||||
interface HTMLOListElement extends HTMLElement {}
|
||||
interface HTMLOptGroupElement extends HTMLElement {}
|
||||
interface HTMLOptionElement extends HTMLElement {}
|
||||
interface HTMLOutputElement extends HTMLElement {}
|
||||
interface HTMLParagraphElement extends HTMLElement {}
|
||||
interface HTMLParamElement extends HTMLElement {}
|
||||
interface HTMLPreElement extends HTMLElement {}
|
||||
interface HTMLProgressElement extends HTMLElement {}
|
||||
interface HTMLQuoteElement extends HTMLElement {}
|
||||
interface HTMLSlotElement extends HTMLElement {}
|
||||
interface HTMLScriptElement extends HTMLElement {}
|
||||
interface HTMLSelectElement extends HTMLElement {}
|
||||
interface HTMLSourceElement extends HTMLElement {}
|
||||
interface HTMLSpanElement extends HTMLElement {}
|
||||
interface HTMLStyleElement extends HTMLElement {}
|
||||
interface HTMLTableElement extends HTMLElement {}
|
||||
interface HTMLTableColElement extends HTMLElement {}
|
||||
interface HTMLTableDataCellElement extends HTMLElement {}
|
||||
interface HTMLTableHeaderCellElement extends HTMLElement {}
|
||||
interface HTMLTableRowElement extends HTMLElement {}
|
||||
interface HTMLTableSectionElement extends HTMLElement {}
|
||||
interface HTMLTemplateElement extends HTMLElement {}
|
||||
interface HTMLTextAreaElement extends HTMLElement {}
|
||||
interface HTMLTimeElement extends HTMLElement {}
|
||||
interface HTMLTitleElement extends HTMLElement {}
|
||||
interface HTMLTrackElement extends HTMLElement {}
|
||||
interface HTMLUListElement extends HTMLElement {}
|
||||
interface HTMLVideoElement extends HTMLElement {}
|
||||
interface HTMLWebViewElement extends HTMLElement {}
|
||||
|
||||
interface SVGElement extends Element {}
|
||||
interface SVGSVGElement extends SVGElement {}
|
||||
interface SVGCircleElement extends SVGElement {}
|
||||
interface SVGClipPathElement extends SVGElement {}
|
||||
interface SVGDefsElement extends SVGElement {}
|
||||
interface SVGDescElement extends SVGElement {}
|
||||
interface SVGEllipseElement extends SVGElement {}
|
||||
interface SVGFEBlendElement extends SVGElement {}
|
||||
interface SVGFEColorMatrixElement extends SVGElement {}
|
||||
interface SVGFEComponentTransferElement extends SVGElement {}
|
||||
interface SVGFECompositeElement extends SVGElement {}
|
||||
interface SVGFEConvolveMatrixElement extends SVGElement {}
|
||||
interface SVGFEDiffuseLightingElement extends SVGElement {}
|
||||
interface SVGFEDisplacementMapElement extends SVGElement {}
|
||||
interface SVGFEDistantLightElement extends SVGElement {}
|
||||
interface SVGFEDropShadowElement extends SVGElement {}
|
||||
interface SVGFEFloodElement extends SVGElement {}
|
||||
interface SVGFEFuncAElement extends SVGElement {}
|
||||
interface SVGFEFuncBElement extends SVGElement {}
|
||||
interface SVGFEFuncGElement extends SVGElement {}
|
||||
interface SVGFEFuncRElement extends SVGElement {}
|
||||
interface SVGFEGaussianBlurElement extends SVGElement {}
|
||||
interface SVGFEImageElement extends SVGElement {}
|
||||
interface SVGFEMergeElement extends SVGElement {}
|
||||
interface SVGFEMergeNodeElement extends SVGElement {}
|
||||
interface SVGFEMorphologyElement extends SVGElement {}
|
||||
interface SVGFEOffsetElement extends SVGElement {}
|
||||
interface SVGFEPointLightElement extends SVGElement {}
|
||||
interface SVGFESpecularLightingElement extends SVGElement {}
|
||||
interface SVGFESpotLightElement extends SVGElement {}
|
||||
interface SVGFETileElement extends SVGElement {}
|
||||
interface SVGFETurbulenceElement extends SVGElement {}
|
||||
interface SVGFilterElement extends SVGElement {}
|
||||
interface SVGForeignObjectElement extends SVGElement {}
|
||||
interface SVGGElement extends SVGElement {}
|
||||
interface SVGImageElement extends SVGElement {}
|
||||
interface SVGLineElement extends SVGElement {}
|
||||
interface SVGLinearGradientElement extends SVGElement {}
|
||||
interface SVGMarkerElement extends SVGElement {}
|
||||
interface SVGMaskElement extends SVGElement {}
|
||||
interface SVGMetadataElement extends SVGElement {}
|
||||
interface SVGPathElement extends SVGElement {}
|
||||
interface SVGPatternElement extends SVGElement {}
|
||||
interface SVGPolygonElement extends SVGElement {}
|
||||
interface SVGPolylineElement extends SVGElement {}
|
||||
interface SVGRadialGradientElement extends SVGElement {}
|
||||
interface SVGRectElement extends SVGElement {}
|
||||
interface SVGSetElement extends SVGElement {}
|
||||
interface SVGStopElement extends SVGElement {}
|
||||
interface SVGSwitchElement extends SVGElement {}
|
||||
interface SVGSymbolElement extends SVGElement {}
|
||||
interface SVGTextElement extends SVGElement {}
|
||||
interface SVGTextPathElement extends SVGElement {}
|
||||
interface SVGTSpanElement extends SVGElement {}
|
||||
interface SVGUseElement extends SVGElement {}
|
||||
interface SVGViewElement extends SVGElement {}
|
||||
|
||||
interface FormData {}
|
||||
interface Text {}
|
||||
interface TouchList {}
|
||||
interface WebGLRenderingContext {}
|
||||
interface WebGL2RenderingContext {}
|
||||
|
||||
interface TrustedHTML {}
|
||||
4587
node_modules/@types/react/index.d.ts
generated
vendored
Normal file
4587
node_modules/@types/react/index.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
45
node_modules/@types/react/jsx-dev-runtime.d.ts
generated
vendored
Normal file
45
node_modules/@types/react/jsx-dev-runtime.d.ts
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
import * as React from "./";
|
||||
export { Fragment } from "./";
|
||||
|
||||
export namespace JSX {
|
||||
type ElementType = React.JSX.ElementType;
|
||||
interface Element extends React.JSX.Element {}
|
||||
interface ElementClass extends React.JSX.ElementClass {}
|
||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
||||
}
|
||||
|
||||
export interface JSXSource {
|
||||
/**
|
||||
* The source file where the element originates from.
|
||||
*/
|
||||
fileName?: string | undefined;
|
||||
|
||||
/**
|
||||
* The line number where the element was created.
|
||||
*/
|
||||
lineNumber?: number | undefined;
|
||||
|
||||
/**
|
||||
* The column number where the element was created.
|
||||
*/
|
||||
columnNumber?: number | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsxDEV(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key: React.Key | undefined,
|
||||
isStatic: boolean,
|
||||
source?: JSXSource,
|
||||
self?: unknown,
|
||||
): React.ReactElement;
|
||||
36
node_modules/@types/react/jsx-runtime.d.ts
generated
vendored
Normal file
36
node_modules/@types/react/jsx-runtime.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import * as React from "./";
|
||||
export { Fragment } from "./";
|
||||
|
||||
export namespace JSX {
|
||||
type ElementType = React.JSX.ElementType;
|
||||
interface Element extends React.JSX.Element {}
|
||||
interface ElementClass extends React.JSX.ElementClass {}
|
||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsx(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key?: React.Key,
|
||||
): React.ReactElement;
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsxs(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key?: React.Key,
|
||||
): React.ReactElement;
|
||||
206
node_modules/@types/react/package.json
generated
vendored
Normal file
206
node_modules/@types/react/package.json
generated
vendored
Normal file
@@ -0,0 +1,206 @@
|
||||
{
|
||||
"name": "@types/react",
|
||||
"version": "18.3.26",
|
||||
"description": "TypeScript definitions for react",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Asana",
|
||||
"url": "https://asana.com"
|
||||
},
|
||||
{
|
||||
"name": "AssureSign",
|
||||
"url": "http://www.assuresign.com"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft",
|
||||
"url": "https://microsoft.com"
|
||||
},
|
||||
{
|
||||
"name": "John Reilly",
|
||||
"githubUsername": "johnnyreilly",
|
||||
"url": "https://github.com/johnnyreilly"
|
||||
},
|
||||
{
|
||||
"name": "Benoit Benezech",
|
||||
"githubUsername": "bbenezech",
|
||||
"url": "https://github.com/bbenezech"
|
||||
},
|
||||
{
|
||||
"name": "Patricio Zavolinsky",
|
||||
"githubUsername": "pzavolinsky",
|
||||
"url": "https://github.com/pzavolinsky"
|
||||
},
|
||||
{
|
||||
"name": "Eric Anderson",
|
||||
"githubUsername": "ericanderson",
|
||||
"url": "https://github.com/ericanderson"
|
||||
},
|
||||
{
|
||||
"name": "Dovydas Navickas",
|
||||
"githubUsername": "DovydasNavickas",
|
||||
"url": "https://github.com/DovydasNavickas"
|
||||
},
|
||||
{
|
||||
"name": "Josh Rutherford",
|
||||
"githubUsername": "theruther4d",
|
||||
"url": "https://github.com/theruther4d"
|
||||
},
|
||||
{
|
||||
"name": "Guilherme Hübner",
|
||||
"githubUsername": "guilhermehubner",
|
||||
"url": "https://github.com/guilhermehubner"
|
||||
},
|
||||
{
|
||||
"name": "Ferdy Budhidharma",
|
||||
"githubUsername": "ferdaber",
|
||||
"url": "https://github.com/ferdaber"
|
||||
},
|
||||
{
|
||||
"name": "Johann Rakotoharisoa",
|
||||
"githubUsername": "jrakotoharisoa",
|
||||
"url": "https://github.com/jrakotoharisoa"
|
||||
},
|
||||
{
|
||||
"name": "Olivier Pascal",
|
||||
"githubUsername": "pascaloliv",
|
||||
"url": "https://github.com/pascaloliv"
|
||||
},
|
||||
{
|
||||
"name": "Martin Hochel",
|
||||
"githubUsername": "hotell",
|
||||
"url": "https://github.com/hotell"
|
||||
},
|
||||
{
|
||||
"name": "Frank Li",
|
||||
"githubUsername": "franklixuefei",
|
||||
"url": "https://github.com/franklixuefei"
|
||||
},
|
||||
{
|
||||
"name": "Jessica Franco",
|
||||
"githubUsername": "Jessidhia",
|
||||
"url": "https://github.com/Jessidhia"
|
||||
},
|
||||
{
|
||||
"name": "Saransh Kataria",
|
||||
"githubUsername": "saranshkataria",
|
||||
"url": "https://github.com/saranshkataria"
|
||||
},
|
||||
{
|
||||
"name": "Kanitkorn Sujautra",
|
||||
"githubUsername": "lukyth",
|
||||
"url": "https://github.com/lukyth"
|
||||
},
|
||||
{
|
||||
"name": "Sebastian Silbermann",
|
||||
"githubUsername": "eps1lon",
|
||||
"url": "https://github.com/eps1lon"
|
||||
},
|
||||
{
|
||||
"name": "Kyle Scully",
|
||||
"githubUsername": "zieka",
|
||||
"url": "https://github.com/zieka"
|
||||
},
|
||||
{
|
||||
"name": "Cong Zhang",
|
||||
"githubUsername": "dancerphil",
|
||||
"url": "https://github.com/dancerphil"
|
||||
},
|
||||
{
|
||||
"name": "Dimitri Mitropoulos",
|
||||
"githubUsername": "dimitropoulos",
|
||||
"url": "https://github.com/dimitropoulos"
|
||||
},
|
||||
{
|
||||
"name": "JongChan Choi",
|
||||
"githubUsername": "disjukr",
|
||||
"url": "https://github.com/disjukr"
|
||||
},
|
||||
{
|
||||
"name": "Victor Magalhães",
|
||||
"githubUsername": "vhfmag",
|
||||
"url": "https://github.com/vhfmag"
|
||||
},
|
||||
{
|
||||
"name": "Priyanshu Rav",
|
||||
"githubUsername": "priyanshurav",
|
||||
"url": "https://github.com/priyanshurav"
|
||||
},
|
||||
{
|
||||
"name": "Dmitry Semigradsky",
|
||||
"githubUsername": "Semigradsky",
|
||||
"url": "https://github.com/Semigradsky"
|
||||
},
|
||||
{
|
||||
"name": "Matt Pocock",
|
||||
"githubUsername": "mattpocock",
|
||||
"url": "https://github.com/mattpocock"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"typesVersions": {
|
||||
"<=5.0": {
|
||||
"*": [
|
||||
"ts5.0/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/index.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./index.d.ts"
|
||||
}
|
||||
},
|
||||
"./canary": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/canary.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./canary.d.ts"
|
||||
}
|
||||
},
|
||||
"./experimental": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/experimental.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./experimental.d.ts"
|
||||
}
|
||||
},
|
||||
"./jsx-runtime": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/jsx-runtime.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./jsx-runtime.d.ts"
|
||||
}
|
||||
},
|
||||
"./jsx-dev-runtime": {
|
||||
"types@<=5.0": {
|
||||
"default": "./ts5.0/jsx-dev-runtime.d.ts"
|
||||
},
|
||||
"types": {
|
||||
"default": "./jsx-dev-runtime.d.ts"
|
||||
}
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/react"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {
|
||||
"@types/prop-types": "*",
|
||||
"csstype": "^3.0.2"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"typesPublisherContentHash": "76d9489e0295ad25d05b8021949dcbb349e49bd993c765d791afe1126656c589",
|
||||
"typeScriptVersion": "5.2"
|
||||
}
|
||||
166
node_modules/@types/react/ts5.0/canary.d.ts
generated
vendored
Normal file
166
node_modules/@types/react/ts5.0/canary.d.ts
generated
vendored
Normal file
@@ -0,0 +1,166 @@
|
||||
/**
|
||||
* These are types for things that are present in the React `canary` release channel.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react/canary"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react/canary'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react/canary" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/main/packages/react/src/React.js to see how the exports are declared,
|
||||
|
||||
import React = require(".");
|
||||
|
||||
export {};
|
||||
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
|
||||
type NativeToggleEvent = ToggleEvent;
|
||||
|
||||
declare module "." {
|
||||
export type Usable<T> = PromiseLike<T> | Context<T>;
|
||||
|
||||
export function use<T>(usable: Usable<T>): T;
|
||||
|
||||
interface ServerContextJSONArray extends ReadonlyArray<ServerContextJSONValue> {}
|
||||
export type ServerContextJSONValue =
|
||||
| string
|
||||
| boolean
|
||||
| number
|
||||
| null
|
||||
| ServerContextJSONArray
|
||||
| { [key: string]: ServerContextJSONValue };
|
||||
export interface ServerContext<T extends ServerContextJSONValue> {
|
||||
Provider: Provider<T>;
|
||||
}
|
||||
/**
|
||||
* Accepts a context object (the value returned from `React.createContext` or `React.createServerContext`) and returns the current
|
||||
* context value, as given by the nearest context provider for the given context.
|
||||
*
|
||||
* @version 16.8.0
|
||||
* @see https://react.dev/reference/react/useContext
|
||||
*/
|
||||
function useContext<T extends ServerContextJSONValue>(context: ServerContext<T>): T;
|
||||
export function createServerContext<T extends ServerContextJSONValue>(
|
||||
globalName: string,
|
||||
defaultValue: T,
|
||||
): ServerContext<T>;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
|
||||
|
||||
export function unstable_useCacheRefresh(): () => void;
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS {
|
||||
functions: (formData: FormData) => void | Promise<void>;
|
||||
}
|
||||
|
||||
export interface TransitionStartFunction {
|
||||
/**
|
||||
* Marks all state updates inside the async function as transitions
|
||||
*
|
||||
* @see {https://react.dev/reference/react/useTransition#starttransition}
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
(callback: () => Promise<VoidOrUndefinedOnly>): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to `useTransition` but allows uses where hooks are not available.
|
||||
*
|
||||
* @param callback An _asynchronous_ function which causes state updates that can be deferred.
|
||||
*/
|
||||
export function startTransition(scope: () => Promise<VoidOrUndefinedOnly>): void;
|
||||
|
||||
export function useOptimistic<State>(
|
||||
passthrough: State,
|
||||
): [State, (action: State | ((pendingState: State) => State)) => void];
|
||||
export function useOptimistic<State, Action>(
|
||||
passthrough: State,
|
||||
reducer: (state: State, action: Action) => State,
|
||||
): [State, (action: Action) => void];
|
||||
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES {
|
||||
cleanup: () => VoidOrUndefinedOnly;
|
||||
}
|
||||
|
||||
export function useActionState<State>(
|
||||
action: (state: Awaited<State>) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: () => void, isPending: boolean];
|
||||
export function useActionState<State, Payload>(
|
||||
action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
|
||||
initialState: Awaited<State>,
|
||||
permalink?: string,
|
||||
): [state: Awaited<State>, dispatch: (payload: Payload) => void, isPending: boolean];
|
||||
|
||||
interface DOMAttributes<T> {
|
||||
// Transition Events
|
||||
onTransitionCancel?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionCancelCapture?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionRun?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionRunCapture?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionStart?: TransitionEventHandler<T> | undefined;
|
||||
onTransitionStartCapture?: TransitionEventHandler<T> | undefined;
|
||||
}
|
||||
|
||||
type ToggleEventHandler<T = Element> = EventHandler<ToggleEvent<T>>;
|
||||
|
||||
interface HTMLAttributes<T> {
|
||||
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
||||
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
||||
popoverTarget?: string | undefined;
|
||||
onToggle?: ToggleEventHandler<T> | undefined;
|
||||
onBeforeToggle?: ToggleEventHandler<T> | undefined;
|
||||
}
|
||||
|
||||
interface ToggleEvent<T = Element> extends SyntheticEvent<T, NativeToggleEvent> {
|
||||
oldState: "closed" | "open";
|
||||
newState: "closed" | "open";
|
||||
}
|
||||
|
||||
interface LinkHTMLAttributes<T> {
|
||||
precedence?: string | undefined;
|
||||
}
|
||||
|
||||
interface StyleHTMLAttributes<T> {
|
||||
href?: string | undefined;
|
||||
precedence?: string | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal Use `Awaited<ReactNode>` instead
|
||||
*/
|
||||
// Helper type to enable `Awaited<ReactNode>`.
|
||||
// Must be a copy of the non-thenables of `ReactNode`.
|
||||
type AwaitedReactNode =
|
||||
| ReactElement
|
||||
| string
|
||||
| number
|
||||
| Iterable<AwaitedReactNode>
|
||||
| ReactPortal
|
||||
| boolean
|
||||
| null
|
||||
| undefined;
|
||||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES {
|
||||
promises: Promise<AwaitedReactNode>;
|
||||
bigints: bigint;
|
||||
}
|
||||
}
|
||||
132
node_modules/@types/react/ts5.0/experimental.d.ts
generated
vendored
Normal file
132
node_modules/@types/react/ts5.0/experimental.d.ts
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* These are types for things that are present in the `experimental` builds of React but not yet
|
||||
* on a stable build.
|
||||
*
|
||||
* Once they are promoted to stable they can just be moved to the main index file.
|
||||
*
|
||||
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
||||
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
||||
* is to add `"react/experimental"` to the `"types"` array.
|
||||
*
|
||||
* Alternatively, a specific import syntax can to be used from a typescript file.
|
||||
* This module does not exist in reality, which is why the {} is important:
|
||||
*
|
||||
* ```ts
|
||||
* import {} from 'react/experimental'
|
||||
* ```
|
||||
*
|
||||
* It is also possible to include it through a triple-slash reference:
|
||||
*
|
||||
* ```ts
|
||||
* /// <reference types="react/experimental" />
|
||||
* ```
|
||||
*
|
||||
* Either the import or the reference only needs to appear once, anywhere in the project.
|
||||
*/
|
||||
|
||||
// See https://github.com/facebook/react/blob/master/packages/react/src/React.js to see how the exports are declared,
|
||||
// and https://github.com/facebook/react/blob/master/packages/shared/ReactFeatureFlags.js to verify which APIs are
|
||||
// flagged experimental or not. Experimental APIs will be tagged with `__EXPERIMENTAL__`.
|
||||
//
|
||||
// For the inputs of types exported as simply a fiber tag, the `beginWork` function of ReactFiberBeginWork.js
|
||||
// is a good place to start looking for details; it generally calls prop validation functions or delegates
|
||||
// all tasks done as part of the render phase (the concurrent part of the React update cycle).
|
||||
//
|
||||
// Suspense-related handling can be found in ReactFiberThrow.js.
|
||||
|
||||
import React = require("./canary");
|
||||
|
||||
export {};
|
||||
|
||||
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
||||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
||||
|
||||
declare module "." {
|
||||
export interface SuspenseProps {
|
||||
/**
|
||||
* The presence of this prop indicates that the content is computationally expensive to render.
|
||||
* In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data).
|
||||
* @see {@link https://github.com/facebook/react/pull/19936}
|
||||
*/
|
||||
unstable_expectedLoadTime?: number | undefined;
|
||||
}
|
||||
|
||||
export type SuspenseListRevealOrder = "forwards" | "backwards" | "together";
|
||||
export type SuspenseListTailMode = "collapsed" | "hidden";
|
||||
|
||||
export interface SuspenseListCommonProps {
|
||||
/**
|
||||
* Note that SuspenseList require more than one child;
|
||||
* it is a runtime warning to provide only a single child.
|
||||
*
|
||||
* It does, however, allow those children to be wrapped inside a single
|
||||
* level of `<React.Fragment>`.
|
||||
*/
|
||||
children: ReactElement | Iterable<ReactElement>;
|
||||
}
|
||||
|
||||
interface DirectionalSuspenseListProps extends SuspenseListCommonProps {
|
||||
/**
|
||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
||||
*/
|
||||
revealOrder: "forwards" | "backwards";
|
||||
/**
|
||||
* Dictates how unloaded items in a SuspenseList is shown.
|
||||
*
|
||||
* - By default, `SuspenseList` will show all fallbacks in the list.
|
||||
* - `collapsed` shows only the next fallback in the list.
|
||||
* - `hidden` doesn’t show any unloaded items.
|
||||
*/
|
||||
tail?: SuspenseListTailMode | undefined;
|
||||
}
|
||||
|
||||
interface NonDirectionalSuspenseListProps extends SuspenseListCommonProps {
|
||||
/**
|
||||
* Defines the order in which the `SuspenseList` children should be revealed.
|
||||
*/
|
||||
revealOrder?: Exclude<SuspenseListRevealOrder, DirectionalSuspenseListProps["revealOrder"]> | undefined;
|
||||
/**
|
||||
* The tail property is invalid when not using the `forwards` or `backwards` reveal orders.
|
||||
*/
|
||||
tail?: never | undefined;
|
||||
}
|
||||
|
||||
export type SuspenseListProps = DirectionalSuspenseListProps | NonDirectionalSuspenseListProps;
|
||||
|
||||
/**
|
||||
* `SuspenseList` helps coordinate many components that can suspend by orchestrating the order
|
||||
* in which these components are revealed to the user.
|
||||
*
|
||||
* When multiple components need to fetch data, this data may arrive in an unpredictable order.
|
||||
* However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
|
||||
* until previous items have been displayed (this behavior is adjustable).
|
||||
*
|
||||
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
||||
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
||||
*/
|
||||
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
||||
|
||||
/**
|
||||
* Warning: Only available in development builds.
|
||||
*/
|
||||
function captureOwnerStack(): string | null;
|
||||
|
||||
type Reference = object;
|
||||
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
||||
function experimental_taintUniqueValue(
|
||||
message: string | undefined,
|
||||
lifetime: Reference,
|
||||
value: TaintableUniqueValue,
|
||||
): void;
|
||||
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
||||
|
||||
export interface HTMLAttributes<T> {
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
|
||||
*/
|
||||
inert?: boolean | undefined;
|
||||
}
|
||||
}
|
||||
161
node_modules/@types/react/ts5.0/global.d.ts
generated
vendored
Normal file
161
node_modules/@types/react/ts5.0/global.d.ts
generated
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
React projects that don't include the DOM library need these interfaces to compile.
|
||||
React Native applications use React, but there is no DOM available. The JavaScript runtime
|
||||
is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
|
||||
|
||||
Warning: all of these interfaces are empty. If you want type definitions for various properties
|
||||
(such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
|
||||
*/
|
||||
|
||||
interface Event {}
|
||||
interface AnimationEvent extends Event {}
|
||||
interface ClipboardEvent extends Event {}
|
||||
interface CompositionEvent extends Event {}
|
||||
interface DragEvent extends Event {}
|
||||
interface FocusEvent extends Event {}
|
||||
interface InputEvent extends Event {}
|
||||
interface KeyboardEvent extends Event {}
|
||||
interface MouseEvent extends Event {}
|
||||
interface TouchEvent extends Event {}
|
||||
interface PointerEvent extends Event {}
|
||||
interface ToggleEvent extends Event {}
|
||||
interface TransitionEvent extends Event {}
|
||||
interface UIEvent extends Event {}
|
||||
interface WheelEvent extends Event {}
|
||||
|
||||
interface EventTarget {}
|
||||
interface Document {}
|
||||
interface DataTransfer {}
|
||||
interface StyleMedia {}
|
||||
|
||||
interface Element {}
|
||||
interface DocumentFragment {}
|
||||
|
||||
interface HTMLElement extends Element {}
|
||||
interface HTMLAnchorElement extends HTMLElement {}
|
||||
interface HTMLAreaElement extends HTMLElement {}
|
||||
interface HTMLAudioElement extends HTMLElement {}
|
||||
interface HTMLBaseElement extends HTMLElement {}
|
||||
interface HTMLBodyElement extends HTMLElement {}
|
||||
interface HTMLBRElement extends HTMLElement {}
|
||||
interface HTMLButtonElement extends HTMLElement {}
|
||||
interface HTMLCanvasElement extends HTMLElement {}
|
||||
interface HTMLDataElement extends HTMLElement {}
|
||||
interface HTMLDataListElement extends HTMLElement {}
|
||||
interface HTMLDetailsElement extends HTMLElement {}
|
||||
interface HTMLDialogElement extends HTMLElement {}
|
||||
interface HTMLDivElement extends HTMLElement {}
|
||||
interface HTMLDListElement extends HTMLElement {}
|
||||
interface HTMLEmbedElement extends HTMLElement {}
|
||||
interface HTMLFieldSetElement extends HTMLElement {}
|
||||
interface HTMLFormElement extends HTMLElement {}
|
||||
interface HTMLHeadingElement extends HTMLElement {}
|
||||
interface HTMLHeadElement extends HTMLElement {}
|
||||
interface HTMLHRElement extends HTMLElement {}
|
||||
interface HTMLHtmlElement extends HTMLElement {}
|
||||
interface HTMLIFrameElement extends HTMLElement {}
|
||||
interface HTMLImageElement extends HTMLElement {}
|
||||
interface HTMLInputElement extends HTMLElement {}
|
||||
interface HTMLModElement extends HTMLElement {}
|
||||
interface HTMLLabelElement extends HTMLElement {}
|
||||
interface HTMLLegendElement extends HTMLElement {}
|
||||
interface HTMLLIElement extends HTMLElement {}
|
||||
interface HTMLLinkElement extends HTMLElement {}
|
||||
interface HTMLMapElement extends HTMLElement {}
|
||||
interface HTMLMetaElement extends HTMLElement {}
|
||||
interface HTMLMeterElement extends HTMLElement {}
|
||||
interface HTMLObjectElement extends HTMLElement {}
|
||||
interface HTMLOListElement extends HTMLElement {}
|
||||
interface HTMLOptGroupElement extends HTMLElement {}
|
||||
interface HTMLOptionElement extends HTMLElement {}
|
||||
interface HTMLOutputElement extends HTMLElement {}
|
||||
interface HTMLParagraphElement extends HTMLElement {}
|
||||
interface HTMLParamElement extends HTMLElement {}
|
||||
interface HTMLPreElement extends HTMLElement {}
|
||||
interface HTMLProgressElement extends HTMLElement {}
|
||||
interface HTMLQuoteElement extends HTMLElement {}
|
||||
interface HTMLSlotElement extends HTMLElement {}
|
||||
interface HTMLScriptElement extends HTMLElement {}
|
||||
interface HTMLSelectElement extends HTMLElement {}
|
||||
interface HTMLSourceElement extends HTMLElement {}
|
||||
interface HTMLSpanElement extends HTMLElement {}
|
||||
interface HTMLStyleElement extends HTMLElement {}
|
||||
interface HTMLTableElement extends HTMLElement {}
|
||||
interface HTMLTableColElement extends HTMLElement {}
|
||||
interface HTMLTableDataCellElement extends HTMLElement {}
|
||||
interface HTMLTableHeaderCellElement extends HTMLElement {}
|
||||
interface HTMLTableRowElement extends HTMLElement {}
|
||||
interface HTMLTableSectionElement extends HTMLElement {}
|
||||
interface HTMLTemplateElement extends HTMLElement {}
|
||||
interface HTMLTextAreaElement extends HTMLElement {}
|
||||
interface HTMLTimeElement extends HTMLElement {}
|
||||
interface HTMLTitleElement extends HTMLElement {}
|
||||
interface HTMLTrackElement extends HTMLElement {}
|
||||
interface HTMLUListElement extends HTMLElement {}
|
||||
interface HTMLVideoElement extends HTMLElement {}
|
||||
interface HTMLWebViewElement extends HTMLElement {}
|
||||
|
||||
interface SVGElement extends Element {}
|
||||
interface SVGSVGElement extends SVGElement {}
|
||||
interface SVGCircleElement extends SVGElement {}
|
||||
interface SVGClipPathElement extends SVGElement {}
|
||||
interface SVGDefsElement extends SVGElement {}
|
||||
interface SVGDescElement extends SVGElement {}
|
||||
interface SVGEllipseElement extends SVGElement {}
|
||||
interface SVGFEBlendElement extends SVGElement {}
|
||||
interface SVGFEColorMatrixElement extends SVGElement {}
|
||||
interface SVGFEComponentTransferElement extends SVGElement {}
|
||||
interface SVGFECompositeElement extends SVGElement {}
|
||||
interface SVGFEConvolveMatrixElement extends SVGElement {}
|
||||
interface SVGFEDiffuseLightingElement extends SVGElement {}
|
||||
interface SVGFEDisplacementMapElement extends SVGElement {}
|
||||
interface SVGFEDistantLightElement extends SVGElement {}
|
||||
interface SVGFEDropShadowElement extends SVGElement {}
|
||||
interface SVGFEFloodElement extends SVGElement {}
|
||||
interface SVGFEFuncAElement extends SVGElement {}
|
||||
interface SVGFEFuncBElement extends SVGElement {}
|
||||
interface SVGFEFuncGElement extends SVGElement {}
|
||||
interface SVGFEFuncRElement extends SVGElement {}
|
||||
interface SVGFEGaussianBlurElement extends SVGElement {}
|
||||
interface SVGFEImageElement extends SVGElement {}
|
||||
interface SVGFEMergeElement extends SVGElement {}
|
||||
interface SVGFEMergeNodeElement extends SVGElement {}
|
||||
interface SVGFEMorphologyElement extends SVGElement {}
|
||||
interface SVGFEOffsetElement extends SVGElement {}
|
||||
interface SVGFEPointLightElement extends SVGElement {}
|
||||
interface SVGFESpecularLightingElement extends SVGElement {}
|
||||
interface SVGFESpotLightElement extends SVGElement {}
|
||||
interface SVGFETileElement extends SVGElement {}
|
||||
interface SVGFETurbulenceElement extends SVGElement {}
|
||||
interface SVGFilterElement extends SVGElement {}
|
||||
interface SVGForeignObjectElement extends SVGElement {}
|
||||
interface SVGGElement extends SVGElement {}
|
||||
interface SVGImageElement extends SVGElement {}
|
||||
interface SVGLineElement extends SVGElement {}
|
||||
interface SVGLinearGradientElement extends SVGElement {}
|
||||
interface SVGMarkerElement extends SVGElement {}
|
||||
interface SVGMaskElement extends SVGElement {}
|
||||
interface SVGMetadataElement extends SVGElement {}
|
||||
interface SVGPathElement extends SVGElement {}
|
||||
interface SVGPatternElement extends SVGElement {}
|
||||
interface SVGPolygonElement extends SVGElement {}
|
||||
interface SVGPolylineElement extends SVGElement {}
|
||||
interface SVGRadialGradientElement extends SVGElement {}
|
||||
interface SVGRectElement extends SVGElement {}
|
||||
interface SVGSetElement extends SVGElement {}
|
||||
interface SVGStopElement extends SVGElement {}
|
||||
interface SVGSwitchElement extends SVGElement {}
|
||||
interface SVGSymbolElement extends SVGElement {}
|
||||
interface SVGTextElement extends SVGElement {}
|
||||
interface SVGTextPathElement extends SVGElement {}
|
||||
interface SVGTSpanElement extends SVGElement {}
|
||||
interface SVGUseElement extends SVGElement {}
|
||||
interface SVGViewElement extends SVGElement {}
|
||||
|
||||
interface FormData {}
|
||||
interface Text {}
|
||||
interface TouchList {}
|
||||
interface WebGLRenderingContext {}
|
||||
interface WebGL2RenderingContext {}
|
||||
|
||||
interface TrustedHTML {}
|
||||
4573
node_modules/@types/react/ts5.0/index.d.ts
generated
vendored
Normal file
4573
node_modules/@types/react/ts5.0/index.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
44
node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts
generated
vendored
Normal file
44
node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
import * as React from "./";
|
||||
export { Fragment } from "./";
|
||||
|
||||
export namespace JSX {
|
||||
interface Element extends React.JSX.Element {}
|
||||
interface ElementClass extends React.JSX.ElementClass {}
|
||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
||||
}
|
||||
|
||||
export interface JSXSource {
|
||||
/**
|
||||
* The source file where the element originates from.
|
||||
*/
|
||||
fileName?: string | undefined;
|
||||
|
||||
/**
|
||||
* The line number where the element was created.
|
||||
*/
|
||||
lineNumber?: number | undefined;
|
||||
|
||||
/**
|
||||
* The column number where the element was created.
|
||||
*/
|
||||
columnNumber?: number | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsxDEV(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key: React.Key | undefined,
|
||||
isStatic: boolean,
|
||||
source?: JSXSource,
|
||||
self?: unknown,
|
||||
): React.ReactElement;
|
||||
35
node_modules/@types/react/ts5.0/jsx-runtime.d.ts
generated
vendored
Normal file
35
node_modules/@types/react/ts5.0/jsx-runtime.d.ts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import * as React from "./";
|
||||
export { Fragment } from "./";
|
||||
|
||||
export namespace JSX {
|
||||
interface Element extends React.JSX.Element {}
|
||||
interface ElementClass extends React.JSX.ElementClass {}
|
||||
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
||||
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
||||
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
||||
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
||||
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
||||
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsx(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key?: React.Key,
|
||||
): React.ReactElement;
|
||||
|
||||
/**
|
||||
* Create a React element.
|
||||
*
|
||||
* You should not use this function directly. Use JSX and a transpiler instead.
|
||||
*/
|
||||
export function jsxs(
|
||||
type: React.ElementType,
|
||||
props: unknown,
|
||||
key?: React.Key,
|
||||
): React.ReactElement;
|
||||
Reference in New Issue
Block a user