mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
This commit is contained in:
parent
746e163d01
commit
1c7ea28b46
808 changed files with 316395 additions and 381162 deletions
94
node_modules/chart.js/dist/helpers/helpers.canvas.d.ts
generated
vendored
94
node_modules/chart.js/dist/helpers/helpers.canvas.d.ts
generated
vendored
|
@ -1,85 +1,75 @@
|
|||
/**
|
||||
* Note: typedefs are auto-exported, so use a made-up `canvas` namespace where
|
||||
* necessary to avoid duplicates with `export * from './helpers`; see
|
||||
* https://github.com/microsoft/TypeScript/issues/46011
|
||||
* @typedef { import('../core/core.controller.js').default } canvas.Chart
|
||||
* @typedef { import('../types/index.js').Point } Point
|
||||
*/
|
||||
/**
|
||||
* @namespace Chart.helpers.canvas
|
||||
*/
|
||||
import type { Chart, Point, FontSpec, CanvasFontSpec, PointStyle, RenderTextOpts } from '../types/index.js';
|
||||
import type { TRBL, SplinePoint, RoundedRect, TRBLCorners } from '../types/geometric.js';
|
||||
/**
|
||||
* Converts the given font object into a CSS font string.
|
||||
* @param {object} font - A font object.
|
||||
* @return {string|null} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font
|
||||
* @param font - A font object.
|
||||
* @return The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font
|
||||
* @private
|
||||
*/
|
||||
export function toFontString(font: object): string | null;
|
||||
export declare function toFontString(font: FontSpec): string;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export function _measureText(ctx: any, data: any, gc: any, longest: any, string: any): any;
|
||||
export declare function _measureText(ctx: CanvasRenderingContext2D, data: Record<string, number>, gc: string[], longest: number, string: string): number;
|
||||
type Thing = string | undefined | null;
|
||||
type Things = (Thing | Thing[])[];
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export function _longestText(ctx: any, font: any, arrayOfThings: any, cache: any): number;
|
||||
export declare function _longestText(ctx: CanvasRenderingContext2D, font: string, arrayOfThings: Things, cache?: {
|
||||
data?: Record<string, number>;
|
||||
garbageCollect?: string[];
|
||||
font?: string;
|
||||
}): number;
|
||||
/**
|
||||
* Returns the aligned pixel value to avoid anti-aliasing blur
|
||||
* @param {canvas.Chart} chart - The chart instance.
|
||||
* @param {number} pixel - A pixel value.
|
||||
* @param {number} width - The width of the element.
|
||||
* @returns {number} The aligned pixel value.
|
||||
* @param chart - The chart instance.
|
||||
* @param pixel - A pixel value.
|
||||
* @param width - The width of the element.
|
||||
* @returns The aligned pixel value.
|
||||
* @private
|
||||
*/
|
||||
export function _alignPixel(chart: canvas.Chart, pixel: number, width: number): number;
|
||||
export declare function _alignPixel(chart: Chart, pixel: number, width: number): number;
|
||||
/**
|
||||
* Clears the entire canvas.
|
||||
* @param {HTMLCanvasElement} canvas
|
||||
* @param {CanvasRenderingContext2D} [ctx]
|
||||
*/
|
||||
export function clearCanvas(canvas: HTMLCanvasElement, ctx?: CanvasRenderingContext2D): void;
|
||||
export function drawPoint(ctx: any, options: any, x: any, y: any): void;
|
||||
export function drawPointLegend(ctx: any, options: any, x: any, y: any, w: any): void;
|
||||
export declare function clearCanvas(canvas: HTMLCanvasElement, ctx?: CanvasRenderingContext2D): void;
|
||||
export interface DrawPointOptions {
|
||||
pointStyle: PointStyle;
|
||||
rotation?: number;
|
||||
radius: number;
|
||||
borderWidth: number;
|
||||
}
|
||||
export declare function drawPoint(ctx: CanvasRenderingContext2D, options: DrawPointOptions, x: number, y: number): void;
|
||||
export declare function drawPointLegend(ctx: CanvasRenderingContext2D, options: DrawPointOptions, x: number, y: number, w: number): void;
|
||||
/**
|
||||
* Returns true if the point is inside the rectangle
|
||||
* @param {Point} point - The point to test
|
||||
* @param {object} area - The rectangle
|
||||
* @param {number} [margin] - allowed margin
|
||||
* @returns {boolean}
|
||||
* @param point - The point to test
|
||||
* @param area - The rectangle
|
||||
* @param margin - allowed margin
|
||||
* @private
|
||||
*/
|
||||
export function _isPointInArea(point: Point, area: object, margin?: number): boolean;
|
||||
export function clipArea(ctx: any, area: any): void;
|
||||
export function unclipArea(ctx: any): void;
|
||||
export declare function _isPointInArea(point: Point, area: TRBL, margin?: number): boolean;
|
||||
export declare function clipArea(ctx: CanvasRenderingContext2D, area: TRBL): void;
|
||||
export declare function unclipArea(ctx: CanvasRenderingContext2D): void;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export function _steppedLineTo(ctx: any, previous: any, target: any, flip: any, mode: any): any;
|
||||
export declare function _steppedLineTo(ctx: CanvasRenderingContext2D, previous: Point, target: Point, flip?: boolean, mode?: string): void;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export function _bezierCurveTo(ctx: any, previous: any, target: any, flip: any): any;
|
||||
export declare function _bezierCurveTo(ctx: CanvasRenderingContext2D, previous: SplinePoint, target: SplinePoint, flip?: boolean): void;
|
||||
/**
|
||||
* Render text onto the canvas
|
||||
*/
|
||||
export function renderText(ctx: any, text: any, x: any, y: any, font: any, opts?: {}): void;
|
||||
export declare function renderText(ctx: CanvasRenderingContext2D, text: string | string[], x: number, y: number, font: CanvasFontSpec, opts?: RenderTextOpts): void;
|
||||
/**
|
||||
* Add a path of a rectangle with rounded corners to the current sub-path
|
||||
* @param {CanvasRenderingContext2D} ctx Context
|
||||
* @param {*} rect Bounding rect
|
||||
* @param ctx - Context
|
||||
* @param rect - Bounding rect
|
||||
*/
|
||||
export function addRoundedRectPath(ctx: CanvasRenderingContext2D, rect: any): void;
|
||||
export namespace canvas {
|
||||
/**
|
||||
* Note: typedefs are auto-exported, so use a made-up `canvas` namespace where
|
||||
* necessary to avoid duplicates with `export * from './helpers`; see
|
||||
* https://github.com/microsoft/TypeScript/issues/46011
|
||||
*/
|
||||
type Chart = import('../core/core.controller.js').default;
|
||||
}
|
||||
/**
|
||||
* Note: typedefs are auto-exported, so use a made-up `canvas` namespace where
|
||||
* necessary to avoid duplicates with `export * from './helpers`; see
|
||||
* https://github.com/microsoft/TypeScript/issues/46011
|
||||
*/
|
||||
export type Point = import('../types/index.js').Point;
|
||||
export declare function addRoundedRectPath(ctx: CanvasRenderingContext2D, rect: RoundedRect & {
|
||||
radius: TRBLCorners;
|
||||
}): void;
|
||||
export {};
|
||||
|
|
68
node_modules/chart.js/dist/helpers/helpers.config.d.ts
generated
vendored
68
node_modules/chart.js/dist/helpers/helpers.config.d.ts
generated
vendored
|
@ -1,61 +1,31 @@
|
|||
import type { AnyObject } from '../types/basic.js';
|
||||
import type { ChartMeta } from '../types/index.js';
|
||||
import type { ResolverObjectKey, ResolverCache, ResolverProxy, DescriptorDefaults, Descriptor, ContextProxy } from './helpers.config.types.js';
|
||||
export * from './helpers.config.types.js';
|
||||
/**
|
||||
* Creates a Proxy for resolving raw values for options.
|
||||
* @param {object[]} scopes - The option scopes to look for values, in resolution order
|
||||
* @param {string[]} [prefixes] - The prefixes for values, in resolution order.
|
||||
* @param {object[]} [rootScopes] - The root option scopes
|
||||
* @param {string|boolean} [fallback] - Parent scopes fallback
|
||||
* @param {function} [getTarget] - callback for getting the target for changed values
|
||||
* @param scopes - The option scopes to look for values, in resolution order
|
||||
* @param prefixes - The prefixes for values, in resolution order.
|
||||
* @param rootScopes - The root option scopes
|
||||
* @param fallback - Parent scopes fallback
|
||||
* @param getTarget - callback for getting the target for changed values
|
||||
* @returns Proxy
|
||||
* @private
|
||||
*/
|
||||
export function _createResolver(scopes: object[], prefixes?: string[], rootScopes?: object[], fallback?: string | boolean, getTarget?: Function): {
|
||||
[Symbol.toStringTag]: string;
|
||||
_cacheable: boolean;
|
||||
_scopes: any[];
|
||||
_rootScopes: any[];
|
||||
_fallback: string | boolean;
|
||||
_getTarget: Function;
|
||||
override: (scope: any) => any;
|
||||
};
|
||||
export declare function _createResolver<T extends AnyObject[] = AnyObject[], R extends AnyObject[] = T>(scopes: T, prefixes?: string[], rootScopes?: R, fallback?: ResolverObjectKey, getTarget?: () => AnyObject): any;
|
||||
/**
|
||||
* Returns an Proxy for resolving option values with context.
|
||||
* @param {object} proxy - The Proxy returned by `_createResolver`
|
||||
* @param {object} context - Context object for scriptable/indexable options
|
||||
* @param {object} [subProxy] - The proxy provided for scriptable options
|
||||
* @param {{scriptable: boolean, indexable: boolean, allKeys?: boolean}} [descriptorDefaults] - Defaults for descriptors
|
||||
* @param proxy - The Proxy returned by `_createResolver`
|
||||
* @param context - Context object for scriptable/indexable options
|
||||
* @param subProxy - The proxy provided for scriptable options
|
||||
* @param descriptorDefaults - Defaults for descriptors
|
||||
* @private
|
||||
*/
|
||||
export function _attachContext(proxy: object, context: object, subProxy?: object, descriptorDefaults?: {
|
||||
scriptable: boolean;
|
||||
indexable: boolean;
|
||||
allKeys?: boolean;
|
||||
}): {
|
||||
_cacheable: boolean;
|
||||
_proxy: any;
|
||||
_context: any;
|
||||
_subProxy: any;
|
||||
_stack: Set<any>;
|
||||
_descriptors: {
|
||||
allKeys: any;
|
||||
scriptable: any;
|
||||
indexable: any;
|
||||
isScriptable: (...args: any[]) => any;
|
||||
isIndexable: (...args: any[]) => any;
|
||||
};
|
||||
setContext: (ctx: any) => any;
|
||||
override: (scope: any) => any;
|
||||
};
|
||||
export declare function _attachContext<T extends AnyObject[] = AnyObject[], R extends AnyObject[] = T>(proxy: ResolverProxy<T, R>, context: AnyObject, subProxy?: ResolverProxy<T, R>, descriptorDefaults?: DescriptorDefaults): ContextProxy<T, R>;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export function _descriptors(proxy: any, defaults?: {
|
||||
scriptable: boolean;
|
||||
indexable: boolean;
|
||||
}): {
|
||||
allKeys: any;
|
||||
scriptable: any;
|
||||
indexable: any;
|
||||
isScriptable: (...args: any[]) => any;
|
||||
isIndexable: (...args: any[]) => any;
|
||||
};
|
||||
export function _parseObjectDataRadialScale(meta: any, data: any, start: any, count: any): any[];
|
||||
export declare function _descriptors(proxy: ResolverCache, defaults?: DescriptorDefaults): Descriptor;
|
||||
export declare function _parseObjectDataRadialScale(meta: ChartMeta<'line' | 'scatter'>, data: AnyObject[], start: number, count: number): {
|
||||
r: unknown;
|
||||
}[];
|
||||
|
|
2
node_modules/chart.js/dist/helpers/helpers.core.d.ts
generated
vendored
2
node_modules/chart.js/dist/helpers/helpers.core.d.ts
generated
vendored
|
@ -132,7 +132,7 @@ export declare function _deprecated(scope: string, value: unknown, previous: str
|
|||
* @private
|
||||
*/
|
||||
export declare function _splitKey(key: string): string[];
|
||||
export declare function resolveObjectKey(obj: AnyObject, key: string): AnyObject;
|
||||
export declare function resolveObjectKey(obj: AnyObject, key: string): any;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
|
10
node_modules/chart.js/dist/helpers/helpers.curve.d.ts
generated
vendored
10
node_modules/chart.js/dist/helpers/helpers.curve.d.ts
generated
vendored
|
@ -1,13 +1,5 @@
|
|||
import type { ChartArea } from '../types/index.js';
|
||||
export interface SplinePoint {
|
||||
x: number;
|
||||
y: number;
|
||||
skip?: boolean;
|
||||
cp1x?: number;
|
||||
cp1y?: number;
|
||||
cp2x?: number;
|
||||
cp2y?: number;
|
||||
}
|
||||
import type { SplinePoint } from '../types/geometric.js';
|
||||
export declare function splineCurve(firstPoint: SplinePoint, middlePoint: SplinePoint, afterPoint: SplinePoint, t: number): {
|
||||
previous: SplinePoint;
|
||||
next: SplinePoint;
|
||||
|
|
2
node_modules/chart.js/dist/helpers/helpers.easing.d.ts
generated
vendored
2
node_modules/chart.js/dist/helpers/helpers.easing.d.ts
generated
vendored
|
@ -36,5 +36,5 @@ declare const effects: {
|
|||
readonly easeOutBounce: (t: number) => number;
|
||||
readonly easeInOutBounce: (t: number) => number;
|
||||
};
|
||||
export declare type EasingFunction = keyof typeof effects;
|
||||
export type EasingFunction = keyof typeof effects;
|
||||
export default effects;
|
||||
|
|
3
node_modules/chart.js/dist/helpers/helpers.interpolation.d.ts
generated
vendored
3
node_modules/chart.js/dist/helpers/helpers.interpolation.d.ts
generated
vendored
|
@ -1,5 +1,4 @@
|
|||
import type { Point } from '../types/geometric.js';
|
||||
import type { SplinePoint } from './helpers.curve.js';
|
||||
import type { Point, SplinePoint } from '../types/geometric.js';
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
|
6
node_modules/chart.js/dist/helpers/helpers.options.d.ts
generated
vendored
6
node_modules/chart.js/dist/helpers/helpers.options.d.ts
generated
vendored
|
@ -1,5 +1,4 @@
|
|||
import { Point } from './helpers.canvas.js';
|
||||
import type { ChartArea, FontSpec } from '../types/index.js';
|
||||
import type { ChartArea, FontSpec, Point } from '../types/index.js';
|
||||
import type { TRBL, TRBLCorners } from '../types/geometric.js';
|
||||
/**
|
||||
* @alias Chart.helpers.options
|
||||
|
@ -46,9 +45,6 @@ export declare function toTRBLCorners(value: number | TRBLCorners): Record<"topL
|
|||
* @since 2.7.0
|
||||
*/
|
||||
export declare function toPadding(value?: number | TRBL): ChartArea;
|
||||
export interface CanvasFontSpec extends FontSpec {
|
||||
string: string;
|
||||
}
|
||||
/**
|
||||
* Parses font options and returns the font object.
|
||||
* @param options - A object that contains font options to be parsed.
|
||||
|
|
17
node_modules/chart.js/dist/helpers/types.d.ts
generated
vendored
17
node_modules/chart.js/dist/helpers/types.d.ts
generated
vendored
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* Temporary entry point of the types at the time of the transition.
|
||||
* After transition done need to remove it in favor of index.ts
|
||||
*/
|
||||
export * from './helpers.color.js';
|
||||
export * from './helpers.collection.js';
|
||||
export * from './helpers.core.js';
|
||||
export * from './helpers.curve.js';
|
||||
export * from './helpers.dom.js';
|
||||
export * from './helpers.easing.js';
|
||||
export * from './helpers.extras.js';
|
||||
export * from './helpers.interpolation.js';
|
||||
export * from './helpers.intl.js';
|
||||
export * from './helpers.math.js';
|
||||
export * from './helpers.options.js';
|
||||
export * from './helpers.rtl.js';
|
||||
export * from '../types/helpers/index.js';
|
Loading…
Add table
Add a link
Reference in a new issue