sdfsdfs
This commit is contained in:
21
node_modules/@types/css-font-loading-module/LICENSE
generated
vendored
Normal file
21
node_modules/@types/css-font-loading-module/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/css-font-loading-module/README.md
generated
vendored
Normal file
15
node_modules/@types/css-font-loading-module/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/css-font-loading-module`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for css-font-loading-module (https://drafts.csswg.org/css-font-loading/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-font-loading-module.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by [slikts](https://github.com/slikts).
|
110
node_modules/@types/css-font-loading-module/index.d.ts
generated
vendored
Normal file
110
node_modules/@types/css-font-loading-module/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,110 @@
|
||||
export type FontFaceLoadStatus = "unloaded" | "loading" | "loaded" | "error";
|
||||
export type FontFaceSetLoadStatus = "loading" | "loaded";
|
||||
export type BinaryData = ArrayBuffer | ArrayBufferView;
|
||||
|
||||
export interface FontFaceSetLoadEventInit extends EventInit {
|
||||
fontfaces?: FontFace[] | undefined;
|
||||
}
|
||||
|
||||
export interface FontFaceSetCallbackMap {
|
||||
loading: (this: FontFaceSet, event: FontFaceSetLoadEvent) => any;
|
||||
loadingdone: (this: FontFaceSet, event: FontFaceSetLoadEvent) => any;
|
||||
loadingerror: (this: FontFaceSet, event: FontFaceSetLoadEvent) => any;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface FontFaceDescriptors {
|
||||
display?: FontDisplay | undefined;
|
||||
featureSettings?: string | undefined;
|
||||
stretch?: string | undefined;
|
||||
style?: string | undefined;
|
||||
unicodeRange?: string | undefined;
|
||||
variant?: string | undefined;
|
||||
weight?: string | undefined;
|
||||
}
|
||||
|
||||
interface FontFace {
|
||||
load(): Promise<FontFace>;
|
||||
|
||||
family: string;
|
||||
style: string;
|
||||
weight: string;
|
||||
stretch: string;
|
||||
unicodeRange: string;
|
||||
variant: string;
|
||||
featureSettings: string;
|
||||
variationSettings: string;
|
||||
display: FontDisplay;
|
||||
readonly status: FontFaceLoadStatus;
|
||||
readonly loaded: Promise<FontFace>;
|
||||
}
|
||||
|
||||
interface FontFaceSet extends Set<FontFace>, EventTarget {
|
||||
// events for when loading state changes
|
||||
onloading: ((this: FontFaceSet, event: Event) => any) | null;
|
||||
onloadingdone: ((this: FontFaceSet, event: Event) => any) | null;
|
||||
onloadingerror: ((this: FontFaceSet, event: Event) => any) | null;
|
||||
|
||||
// EventTarget
|
||||
addEventListener<K extends keyof FontFaceSetCallbackMap>(
|
||||
type: K,
|
||||
listener: FontFaceSetCallbackMap[K],
|
||||
options?: boolean | AddEventListenerOptions,
|
||||
): void;
|
||||
addEventListener(
|
||||
type: string,
|
||||
listener: EventListenerOrEventListenerObject,
|
||||
options?: boolean | AddEventListenerOptions,
|
||||
): void;
|
||||
removeEventListener<K extends keyof FontFaceSetCallbackMap>(
|
||||
type: K,
|
||||
listener: FontFaceSetCallbackMap[K],
|
||||
options?: boolean | EventListenerOptions,
|
||||
): void;
|
||||
removeEventListener(
|
||||
type: string,
|
||||
listener: EventListenerOrEventListenerObject,
|
||||
options?: boolean | EventListenerOptions,
|
||||
): void;
|
||||
|
||||
// check and start loads if appropriate
|
||||
// and fulfill promise when all loads complete
|
||||
load(font: string, text?: string): Promise<FontFace[]>;
|
||||
// return whether all fonts in the fontlist are loaded
|
||||
// (does not initiate load if not available)
|
||||
check(font: string, text?: string): boolean;
|
||||
|
||||
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
|
||||
|
||||
// async notification that font loading and layout operations are done
|
||||
readonly ready: Promise<FontFaceSet>;
|
||||
|
||||
// loading state, "loading" while one or more fonts loading, "loaded" otherwise
|
||||
readonly status: FontFaceSetLoadStatus;
|
||||
}
|
||||
|
||||
var FontFace: {
|
||||
prototype: FontFace;
|
||||
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
|
||||
};
|
||||
|
||||
interface FontFaceSetLoadEvent extends Event {
|
||||
readonly fontfaces: readonly FontFace[];
|
||||
}
|
||||
|
||||
var FontFaceSetLoadEvent: {
|
||||
prototype: FontFaceSetLoadEvent;
|
||||
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
|
||||
};
|
||||
|
||||
interface Document {
|
||||
fonts: FontFaceSet;
|
||||
}
|
||||
|
||||
interface WorkerGlobalScope {
|
||||
fonts: FontFaceSet;
|
||||
}
|
||||
}
|
||||
|
||||
type FontFaceSetCopy = FontFaceSet;
|
||||
export { FontFaceSetCopy as FontFaceSet };
|
25
node_modules/@types/css-font-loading-module/package.json
generated
vendored
Normal file
25
node_modules/@types/css-font-loading-module/package.json
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "@types/css-font-loading-module",
|
||||
"version": "0.0.12",
|
||||
"description": "TypeScript definitions for css-font-loading-module",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-font-loading-module",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "slikts",
|
||||
"githubUsername": "slikts",
|
||||
"url": "https://github.com/slikts"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/css-font-loading-module"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "1846725ec18e12269102f83c365daae5fea943dfb3908d071ee47379f3cc6637",
|
||||
"typeScriptVersion": "5.0"
|
||||
}
|
21
node_modules/@types/earcut/LICENSE
generated
vendored
Normal file
21
node_modules/@types/earcut/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/earcut/README.md
generated
vendored
Normal file
15
node_modules/@types/earcut/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/earcut`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for earcut (https://github.com/mapbox/earcut#readme).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/earcut.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Adrian Leonhard](https://github.com/NaridaL).
|
48
node_modules/@types/earcut/index.d.ts
generated
vendored
Normal file
48
node_modules/@types/earcut/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
interface EarcutStatic {
|
||||
/**
|
||||
* Triangulate an outline.
|
||||
*
|
||||
* @param vertices A flat array of vertice coordinates like [x0,y0, x1,y1, x2,y2, ...].
|
||||
* @param holes An array of hole indices if any (e.g. [5, 8] for a 12-vertice input would mean one hole with vertices 5–7 and another with 8–11).
|
||||
* @param dimensions The number of coordinates per vertice in the input array (2 by default).
|
||||
* @return A flat array with each group of three numbers indexing a triangle in the `vertices` array.
|
||||
* @example earcut([10,0, 0,50, 60,60, 70,10]); // returns [1,0,3, 3,2,1]
|
||||
* @example with a hole: earcut([0,0, 100,0, 100,100, 0,100, 20,20, 80,20, 80,80, 20,80], [4]); // [3,0,4, 5,4,0, 3,4,7, 5,0,1, 2,3,7, 6,5,1, 2,7,6, 6,1,2]
|
||||
* @example with 3d coords: earcut([10,0,1, 0,50,2, 60,60,3, 70,10,4], null, 3); // [1,0,3, 3,2,1]
|
||||
*/
|
||||
(vertices: ArrayLike<number>, holes?: ArrayLike<number>, dimensions?: number): number[];
|
||||
|
||||
/**
|
||||
* Transforms multi-dimensional array (e.g. GeoJSON Polygon) into the format expected by earcut.
|
||||
* @example Transforming GeoJSON data.
|
||||
* const data = earcut.flatten(geojson.geometry.coordinates);
|
||||
* const triangles = earcut(data.vertices, data.holes, data.dimensions);
|
||||
* @example Transforming simple triangle with hole:
|
||||
* const data = earcut.flatten([[[0, 0], [100, 0], [0, 100]], [[10, 10], [0, 10], [10, 0]]]);
|
||||
* const triangles = earcut(data.vertices, data.holes, data.dimensions);
|
||||
* @param data Arrays of rings, with the first being the outline and the rest holes. A ring is an array points, each point being an array of numbers.
|
||||
*/
|
||||
flatten(data: ArrayLike<ArrayLike<ArrayLike<number>>>): { vertices: number[]; holes: number[]; dimensions: number };
|
||||
|
||||
/**
|
||||
* Returns the relative difference between the total area of triangles and the area of the input polygon. 0 means the triangulation is fully correct.
|
||||
* @param vertices same as earcut
|
||||
* @param holes same as earcut
|
||||
* @param dimensions same as earcut
|
||||
* @param triangles see return value of earcut
|
||||
* @example
|
||||
* const triangles = earcut(vertices, holes, dimensions);
|
||||
* const deviation = earcut.deviation(vertices, holes, dimensions, triangles);
|
||||
*/
|
||||
deviation(
|
||||
vertices: ArrayLike<number>,
|
||||
holes: ArrayLike<number> | undefined,
|
||||
dimensions: number,
|
||||
triangles: ArrayLike<number>,
|
||||
): number;
|
||||
|
||||
default: EarcutStatic;
|
||||
}
|
||||
declare const exports: EarcutStatic;
|
||||
export = exports;
|
||||
export as namespace earcut;
|
25
node_modules/@types/earcut/package.json
generated
vendored
Normal file
25
node_modules/@types/earcut/package.json
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "@types/earcut",
|
||||
"version": "2.1.4",
|
||||
"description": "TypeScript definitions for earcut",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/earcut",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Adrian Leonhard",
|
||||
"githubUsername": "NaridaL",
|
||||
"url": "https://github.com/NaridaL"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/earcut"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "f18d2ca8b1c48564f6a04700333034eedffa8ee069836cdd3fa2e3652e78a5f7",
|
||||
"typeScriptVersion": "4.5"
|
||||
}
|
Reference in New Issue
Block a user