Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@antv/g-lite

Package Overview
Dependencies
Maintainers
61
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-lite - npm Package Compare versions

Comparing version 1.0.17 to 1.0.18

3

dist/Canvas.d.ts

@@ -9,4 +9,3 @@ import type { IRenderer } from './AbstractRenderer';

import type { PointLike } from './shapes';
import type { Cursor, InteractivePointerEvent } from './types';
import type { CanvasConfig } from './types';
import type { Cursor, InteractivePointerEvent, CanvasConfig } from './types';
export declare enum CanvasEvent {

@@ -13,0 +12,0 @@ READY = "ready",

@@ -5,7 +5,7 @@ import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';

*/
export declare type ColorSpace = 'rgb' | 'hsl' | 'hwb' | 'lch' | 'lab';
export declare type CSSColorRGBComp = CSSNumberish | 'none';
export declare type CSSColorPercent = CSSNumberish | 'none';
export declare type CSSColorNumber = CSSNumberish | 'none';
export declare type CSSColorAngle = CSSNumberish | 'none';
export type ColorSpace = 'rgb' | 'hsl' | 'hwb' | 'lch' | 'lab';
export type CSSColorRGBComp = CSSNumberish | 'none';
export type CSSColorPercent = CSSNumberish | 'none';
export type CSSColorNumber = CSSNumberish | 'none';
export type CSSColorAngle = CSSNumberish | 'none';
/**

@@ -12,0 +12,0 @@ * CSSColorValue is the base class used for the various CSS color interfaces.

import type { UnitType } from './types';
export declare type UnitMap = Record<UnitType, number>;
export type UnitMap = Record<UnitType, number>;
export interface Term {

@@ -7,3 +7,3 @@ value: number;

}
export declare type CSSNumericSumValue = Term[];
export type CSSNumericSumValue = Term[];
//# sourceMappingURL=CSSNumericSumValue.d.ts.map
import type { CSSNumericSumValue, UnitMap } from './CSSNumericSumValue';
import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
import { Nested, ParenLess, UnitType } from './types';
export declare type CSSNumberish = number | CSSNumericValue;
declare type CSSNumericBaseType = 'length' | 'angle' | 'time' | 'frequency' | 'resolution' | 'flex' | 'percent';
export type CSSNumberish = number | CSSNumericValue;
type CSSNumericBaseType = 'length' | 'angle' | 'time' | 'frequency' | 'resolution' | 'flex' | 'percent';
interface CSSNumericType {

@@ -155,3 +155,3 @@ length: number;

}
export declare function typeCheck(values: CSSNumericValue[], op: Function, error: boolean): CSSNumericValueType;
export declare function typeCheck(values: CSSNumericValue[], op: (type1: CSSNumericValueType, type2: CSSNumericValueType, error: boolean) => CSSNumericValueType, error: boolean): CSSNumericValueType;
export declare abstract class CSSMathVariadic extends CSSMathValue {

@@ -158,0 +158,0 @@ values: CSSNumericValue[];

import type { DisplayObject } from '../display-objects';
import type { IElement } from '../dom';
import type { StyleValueRegistry } from './interfaces';
export declare type CSSPropertySyntaxFactory = <P, U>(syntax: string) => CSSProperty<P, U>;
export declare type Interpolatable = number | boolean | number[] | boolean[];
declare type CSSPropertyMixer<Parsed = any, T extends Interpolatable = any> = (left: Parsed, right: Parsed, displayObject: IElement | null) => [T, T, (i: T) => string | any] | undefined;
declare type CSSPropertyParser<Parsed> = (value: string | any, object: DisplayObject) => Parsed;
declare type CSSPropertyCalculator<Parsed, Used> = (name: string, oldParsed: Parsed, parsed: Parsed, object: IElement, registry: StyleValueRegistry) => Used;
export type CSSPropertySyntaxFactory = <P, U>(syntax: string) => CSSProperty<P, U>;
export type Interpolatable = number | boolean | number[] | boolean[];
type CSSPropertyMixer<Parsed = any, T extends Interpolatable = any> = (left: Parsed, right: Parsed, displayObject: IElement | null) => [T, T, (i: T) => string | any] | undefined;
type CSSPropertyParser<Parsed> = (value: string | any, object: DisplayObject) => Parsed;
type CSSPropertyCalculator<Parsed, Used> = (name: string, oldParsed: Parsed, parsed: Parsed, object: IElement, registry: StyleValueRegistry) => Used;
/**

@@ -10,0 +10,0 @@ * 1. parser: raw CSS string -> Computed Value

@@ -9,2 +9,3 @@ import type { CSSGradientValue } from '../cssom';

repetition: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
transform: string;
}

@@ -11,0 +12,0 @@ export declare function isPattern(object: any): object is Pattern;

import type { CSSStyleValue } from '../cssom';
export declare type CSSValueParser = (css: string) => CSSStyleValue;
export type CSSValueParser = (css: string) => CSSStyleValue;
//# sourceMappingURL=types.d.ts.map

@@ -5,3 +5,3 @@ import type { DisplayObject } from '../display-objects';

import type { PropertyMetadata, PropertyParseOptions, StyleValueRegistry } from './interfaces';
export declare type CSSGlobalKeywords = 'unset' | 'initial' | 'inherit' | '';
export type CSSGlobalKeywords = 'unset' | 'initial' | 'inherit' | '';
/**

@@ -8,0 +8,0 @@ * Blink used them in code generation(css_properties.json5)

@@ -7,3 +7,3 @@ import RBush from 'rbush';

export * from './components';
export { CSS, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSStyleValue, CSSUnitValue, GradientType, Interpolatable, isPattern, LayoutRegistry, LinearGradient, parseColor, parsePath, parseLength, mergeColors, Pattern, propertyMetadataCache, PropertySyntax, RadialGradient, StyleValueRegistry, UnitType, BUILT_IN_PROPERTIES, } from './css';
export { CSS, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSStyleValue, CSSUnitValue, GradientType, Interpolatable, isPattern, LayoutRegistry, LinearGradient, parseColor, parsePath, parseLength, mergeColors, parseTransform, Pattern, propertyMetadataCache, PropertySyntax, RadialGradient, StyleValueRegistry, UnitType, BUILT_IN_PROPERTIES, } from './css';
export * from './display-objects';

@@ -14,4 +14,4 @@ export * from './dom';

export * from './types';
export { computeLinearGradient, computeRadialGradient, convertToPath, deg2rad, deg2turn, ERROR_MSG_METHOD_NOT_IMPLEMENTED, getEuler, grad2deg, decompose, isBrowser, isFillOrStrokeAffected, rad2deg, setDOMSize, translatePathToString, turn2deg, getAngle, createVec3, fromRotationTranslationScale, findClosestClipPathTarget, getOrCalculatePathTotalLength, definedProps, } from './utils';
export { computeLinearGradient, computeRadialGradient, convertToPath, deg2rad, deg2turn, ERROR_MSG_METHOD_NOT_IMPLEMENTED, getEuler, grad2deg, decompose, isBrowser, isFillOrStrokeAffected, rad2deg, setDOMSize, translatePathToString, turn2deg, getAngle, createVec3, fromRotationTranslationScale, findClosestClipPathTarget, getOrCalculatePathTotalLength, definedProps, parsedTransformToMat4, } from './utils';
export { RBush };
//# sourceMappingURL=index.d.ts.map
import type { CanvasLike } from '../types';
export declare type DataURLType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/bmp';
export type DataURLType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/bmp';
/**

@@ -4,0 +4,0 @@ * The created image data will have a resolution of 96dpi.

@@ -8,4 +8,4 @@ import type { FederatedEvent } from '../dom/FederatedEvent';

import type { CanvasContext, GlobalRuntime } from '..';
declare type Picker = (position: EventPosition) => Promise<IEventTarget | null>;
export declare type EmitterListeners = Record<string, {
type Picker = (position: EventPosition) => Promise<IEventTarget | null>;
export type EmitterListeners = Record<string, {
fn: (...args: any[]) => any;

@@ -12,0 +12,0 @@ context: any;

@@ -1,2 +0,1 @@

/// <reference types="offscreencanvas" />
import type { CanvasLike } from '..';

@@ -3,0 +2,0 @@ /**

@@ -5,6 +5,5 @@ import type { GlobalRuntime } from '../global-runtime';

import type { CanvasContext } from '../dom';
import type { EventPosition, InteractivePointerEvent } from '../types';
import type { CanvasConfig } from '../types';
import type { EventPosition, InteractivePointerEvent, CanvasConfig } from '../types';
import { AsyncParallelHook, AsyncSeriesWaterfallHook, SyncHook, SyncWaterfallHook } from '../utils';
export declare type RenderingPluginContext = CanvasContext & GlobalRuntime;
export type RenderingPluginContext = CanvasContext & GlobalRuntime;
export interface RenderingPlugin {

@@ -11,0 +10,0 @@ apply: (context: RenderingPluginContext) => void;

@@ -21,3 +21,3 @@ import type { vec2, vec3 } from 'gl-matrix';

}
declare type ColorType = string | null;
type ColorType = string | null;
export interface EventPosition {

@@ -31,6 +31,6 @@ clientX: number;

}
export declare type TextTransform = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
export declare type TextOverflow = 'clip' | 'ellipsis' | string;
export declare type TextDecorationLine = string | 'none';
export declare type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed' | 'wavy';
export type TextTransform = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
export type TextOverflow = 'clip' | 'ellipsis' | string;
export type TextDecorationLine = string | 'none';
export type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed' | 'wavy';
export interface BaseStyleProps {

@@ -210,3 +210,3 @@ class?: string;

}
export declare type Cursor = 'auto' | 'default' | 'none' | 'context-menu' | 'help' | 'pointer' | 'progress' | 'wait' | 'cell' | 'crosshair' | 'text' | 'vertical-text' | 'alias' | 'copy' | 'move' | 'no-drop' | 'not-allowed' | 'grab' | 'grabbing' | 'all-scroll' | 'col-resize' | 'row-resize' | 'n-resize' | 'e-resize' | 's-resize' | 'w-resize' | 'ne-resize' | 'nw-resize' | 'se-resize' | 'sw-resize' | 'ew-resize' | 'ns-resize' | 'nesw-resize' | 'nwse-resize' | 'zoom-in' | 'zoom-out';
export type Cursor = 'auto' | 'default' | 'none' | 'context-menu' | 'help' | 'pointer' | 'progress' | 'wait' | 'cell' | 'crosshair' | 'text' | 'vertical-text' | 'alias' | 'copy' | 'move' | 'no-drop' | 'not-allowed' | 'grab' | 'grabbing' | 'all-scroll' | 'col-resize' | 'row-resize' | 'n-resize' | 'e-resize' | 's-resize' | 'w-resize' | 'ne-resize' | 'nw-resize' | 'se-resize' | 'sw-resize' | 'ew-resize' | 'ns-resize' | 'nesw-resize' | 'nwse-resize' | 'zoom-in' | 'zoom-out';
export interface RendererConfig {

@@ -310,16 +310,16 @@ /**

*/
export declare type TypeEasingFunction = (t: number, params?: (string | number)[], duration?: number) => number;
export declare type InteractivePointerEvent = PointerEvent | TouchEvent | MouseEvent | WheelEvent;
export declare type Tuple4<T> = [T, T, T, T];
export declare type Tuple4Number = Tuple4<number>;
export declare type Tuple3<T> = [T, T, T];
export declare type Tuple3Number = Tuple3<number>;
export declare type ComninedValue<T> = T | [T] | [T, T] | [T, T, T] | Tuple4<T>;
export declare type CombinedNumber = ComninedValue<number>;
export declare type Length = number;
declare type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
export declare type Percentage = `${Digit}%` | `${Digit}${Digit}%`;
export declare type LengthOrPercentage = Length | Percentage;
export declare type LengthOrPercentageOrAuto = Length | Percentage | 'auto';
export type TypeEasingFunction = (t: number, params?: (string | number)[], duration?: number) => number;
export type InteractivePointerEvent = PointerEvent | TouchEvent | MouseEvent | WheelEvent;
export type Tuple4<T> = [T, T, T, T];
export type Tuple4Number = Tuple4<number>;
export type Tuple3<T> = [T, T, T];
export type Tuple3Number = Tuple3<number>;
export type ComninedValue<T> = T | [T] | [T, T] | [T, T, T] | Tuple4<T>;
export type CombinedNumber = ComninedValue<number>;
export type Length = number;
type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
export type Percentage = `${Digit}%` | `${Digit}${Digit}%`;
export type LengthOrPercentage = Length | Percentage;
export type LengthOrPercentageOrAuto = Length | Percentage | 'auto';
export {};
//# sourceMappingURL=types.d.ts.map
export declare function DCHECK(bool: boolean): void;
export declare function DCHECK_EQ(a: any, b: any): void;
export declare function DCHECK_NE(a: any, b: any): void;
export declare function isFunction(func: any): func is Function;
export declare const definedProps: (obj: object) => {
[k: string]: any;
export declare function isFunction(func: any): func is (...args: any[]) => any;
export declare const definedProps: (obj: Record<string, unknown>) => {
[k: string]: unknown;
};

@@ -8,0 +8,0 @@ export declare const formatAttributeName: {

@@ -92,4 +92,4 @@ /**

}
export declare type ColorStop = LiteralNode | HexNode | RgbNode | RgbaNode;
export declare type GradientNode = LinearGradientNode | RepeatingLinearGradientNode | RadialGradientNode | RepeatingRadialGradientNode;
export type ColorStop = LiteralNode | HexNode | RgbNode | RgbaNode;
export type GradientNode = LinearGradientNode | RepeatingLinearGradientNode | RadialGradientNode | RepeatingRadialGradientNode;
export declare function colorStopToString(colorStop: ColorStop): string;

@@ -96,0 +96,0 @@ export declare const parseGradient: (code: string) => GradientNode[];

import type { quat, vec2 } from 'gl-matrix';
import { mat3, mat4, vec3, vec4 } from 'gl-matrix';
import { ParsedTransform } from '../css';
import { DisplayObject } from '../display-objects';
export declare function getAngle(angle?: number): number;

@@ -30,2 +32,3 @@ export declare function createVec3(x: number | vec2 | vec3 | vec4, y?: number, z?: number): vec3;

export declare function decomposeMat4(matrix: mat4, translation: vec3, scale: vec3, skew: vec3, perspective: vec4, quaternion: vec4): boolean;
export declare function parsedTransformToMat4(transform: ParsedTransform[], object?: DisplayObject): mat4;
//# sourceMappingURL=math.d.ts.map

@@ -1,3 +0,3 @@

declare type Measure<T extends number> = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ? T : never;
declare type Append<T extends any[], U> = {
type Measure<T extends number> = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ? T : never;
type Append<T extends any[], U> = {
0: [U];

@@ -13,17 +13,17 @@ 1: [T[0], U];

}[Measure<T['length']>];
export declare type AsArray<T> = T extends any[] ? T : [T];
export type AsArray<T> = T extends any[] ? T : [T];
export declare class UnsetAdditionalOptions {
_UnsetAdditionalOptions: true;
}
declare type IfSet<X> = X extends UnsetAdditionalOptions ? {} : X;
declare type Callback<E, T> = (error: E | null, result?: T) => void;
declare type InnerCallback<E, T> = (error?: E | null | false, result?: T) => void;
declare type FullTap = Tap & {
type IfSet<X> = X extends UnsetAdditionalOptions ? Record<string, unknown> : X;
type Callback<E, T> = (error: E | null, result?: T) => void;
type InnerCallback<E, T> = (error?: E | null | false, result?: T) => void;
type FullTap = Tap & {
type: 'sync' | 'async' | 'promise';
fn: Function;
fn: () => any;
};
declare type Tap = TapOptions & {
type Tap = TapOptions & {
name: string;
};
declare type TapOptions = {
type TapOptions = {
before?: string;

@@ -38,4 +38,2 @@ stage?: number;

call(...args: AsArray<T>): R;
tapAsync(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: Append<AsArray<T>, InnerCallback<Error, R>>) => void): void;
tapPromise(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => Promise<R>): void;
private _promise;

@@ -47,2 +45,4 @@ constructor(args?: any[], name?: any);

tap(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => R): void;
tapAsync(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: Append<AsArray<T>, InnerCallback<Error, R>>) => void): void;
tapPromise(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => Promise<R>): void;
_runRegisterInterceptors(options: any): any;

@@ -49,0 +49,0 @@ withOptions(options: TapOptions & IfSet<AdditionalOptions>): Omit<this, 'call' | 'callAsync' | 'promise'>;

{
"name": "@antv/g-lite",
"version": "1.0.17",
"version": "1.0.18",
"description": "A core module for rendering engine implements DOM API.",

@@ -35,3 +35,3 @@ "keywords": [

"dependencies": {
"@antv/g-math": "^1.7.28",
"@antv/g-math": "^1.7.29",
"@antv/util": "^3.3.1",

@@ -55,3 +55,3 @@ "@types/offscreencanvas": "^2019.6.4",

},
"gitHead": "c92278756907344ff54ebc6f6a83630559ef36ff"
"gitHead": "9c99243a29308d12fc22ab4f3290033771e53fcb"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc