Socket
Socket
Sign inDemoInstall

@antv/g-lite

Package Overview
Dependencies
Maintainers
64
Versions
138
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.2.20 to 1.2.21

7

dist/css/CSSProperty.d.ts

@@ -25,2 +25,9 @@ import type { DisplayObject } from '../display-objects';

parser: CSSPropertyParser<Parsed>;
/**
* Don't use memoize, eg. during animation.
*/
parserUnmemoize: CSSPropertyParser<Parsed>;
/**
* Ignore CSS syntax.
*/
parserWithCSSDisabled: CSSPropertyParser<Parsed>;

@@ -27,0 +34,0 @@ /**

5

dist/css/interfaces.d.ts

@@ -121,2 +121,3 @@ import type { BaseStyleProps } from '..';

usedAttributes: string[];
memoize: boolean;
}

@@ -130,4 +131,4 @@ export interface StyleValueRegistry {

processProperties: (object: DisplayObject, attributes: BaseStyleProps, options?: Partial<PropertyParseOptions>) => void;
parseProperty: (name: string, value: any, object: DisplayObject) => CSSStyleValue;
computeProperty: (name: string, computed: CSSStyleValue, object: DisplayObject) => any;
parseProperty: (name: string, value: any, object: DisplayObject, memoized: boolean) => CSSStyleValue;
computeProperty: (name: string, computed: CSSStyleValue, object: DisplayObject, memoized: boolean) => any;
}

@@ -134,0 +135,0 @@ export interface LayoutRegistry {

10

dist/css/parser/dimension.d.ts

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

*/
export declare const parseLengthUnmemoize: (css: string) => CSSStyleValue;
export declare const parseLength: {

@@ -20,2 +21,3 @@ (...args: any[]): any;

*/
export declare const parserPercentageUnmemoize: (css: string) => CSSStyleValue;
export declare const parserPercentage: {

@@ -31,3 +33,8 @@ (...args: any[]): any;

*/
export declare const parseLengthOrPercentage: (css: string) => CSSUnitValue;
export declare const parseLengthOrPercentageUnmemoize: (css: string) => CSSUnitValue;
export declare const parseLengthOrPercentage: {
(...args: any[]): any;
cache: Map<any, any>;
};
export declare const parseAngleUnmemoize: (css: string) => CSSUnitValue;
export declare const parseAngle: {

@@ -49,2 +56,3 @@ (...args: any[]): any;

export declare function parseDimensionArray(string: string | (string | number)[]): CSSUnitValue[];
export declare function parseDimensionArrayUnmemoize(string: string | (string | number)[]): CSSUnitValue[];
export declare function convertPercentUnit(valueWithUnit: CSSUnitValue, vec3Index: number, target: DisplayObject): number;

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

import type { CSSUnitValue } from '../cssom';
export declare function numberToString(x: number): string;

@@ -9,2 +10,3 @@ /**

*/
export declare const parseNumberUnmemoize: (string: string | number) => CSSUnitValue;
export declare const parseNumber: {

@@ -19,2 +21,3 @@ (...args: any[]): any;

*/
export declare const parseNumberListUnmemoize: (string: string | number[]) => CSSUnitValue[];
export declare const parseNumberList: {

@@ -21,0 +24,0 @@ (...args: any[]): any;

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

import type { CSSUnitValue } from '../cssom';
/**

@@ -9,1 +10,2 @@ * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin

};
export declare const parseTransformOriginUnmemoize: (value: string | number[]) => [CSSUnitValue, CSSUnitValue];

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

export declare function parseTransform(string: string): ParsedTransform[];
export declare function parseTransformUnmemoize(string: string): ParsedTransform[];
export declare function convertItemToMatrix(item: ParsedTransform): number[];
export declare const composeMatrix: (translate: any, scale: any, skew: any, quat: any, perspective: any) => number[];
export declare function mergeTransforms(left: ParsedTransform[], right: ParsedTransform[], target: DisplayObject | null): [number[][], number[][], (d: number[][]) => string];

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

};
parserUnmemoize: (css: string) => CSSUnitValue;
parserWithCSSDisabled: any;

@@ -12,0 +13,0 @@ mixer: typeof mergeNumbers;

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

export declare class CSSPropertyLengthOrPercentage implements Partial<CSSProperty<CSSUnitValue, number>> {
parser: (css: string) => CSSUnitValue;
parser: {
(...args: any[]): any;
cache: Map<any, any>;
};
parserUnmemoize: (css: string) => CSSUnitValue;
parserWithCSSDisabled: any;

@@ -13,0 +17,0 @@ mixer: typeof mergeNumbers;

@@ -10,4 +10,5 @@ import type { CSSUnitValue } from '../cssom';

};
parserUnmemoize: (string: string | number) => CSSUnitValue;
parserWithCSSDisabled: any;
calculator(name: string, oldParsed: CSSUnitValue, computed: CSSUnitValue): number;
}

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

};
parserUnmemoize: (string: string | number) => CSSUnitValue;
parserWithCSSDisabled: any;

@@ -11,0 +12,0 @@ calculator(name: string, oldParsed: CSSUnitValue, computed: CSSUnitValue): number;

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

};
parserUnmemoize: (string: string | number) => CSSUnitValue;
parserWithCSSDisabled: any;

@@ -13,0 +14,0 @@ calculator(name: string, oldParsed: CSSUnitValue, computed: CSSUnitValue): number;

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

import type { ParsedTransform } from '../parser/transform';
import { mergeTransforms, parseTransform } from '../parser/transform';
import { mergeTransforms, parseTransform, parseTransformUnmemoize } from '../parser/transform';
/**

@@ -39,3 +39,4 @@ * @see /zh/docs/api/animation#支持变换的属性

parser: typeof parseTransform;
parserWithCSSDisabled: typeof parseTransform;
parserUnmemoize: typeof parseTransformUnmemoize;
parserWithCSSDisabled: typeof parseTransformUnmemoize;
calculator(name: string, oldParsed: CSSKeywordValue | ParsedTransform[], parsed: CSSKeywordValue | ParsedTransform[], object: DisplayObject): ParsedTransform[];

@@ -42,0 +43,0 @@ mixer: typeof mergeTransforms;

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

};
parserUnmemoize: (value: string | number[]) => [CSSUnitValue, CSSUnitValue];
}

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

};
parserUnmemoize: (string: string | number) => CSSUnitValue;
calculator(name: string, oldParsed: CSSUnitValue, computed: CSSUnitValue, object: DisplayObject): number;
postProcessor(object: DisplayObject): void;
}

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

*/
parseProperty(name: string, value: any, object: DisplayObject): CSSStyleValue;
parseProperty(name: string, value: any, object: DisplayObject, memoized: boolean): CSSStyleValue;
/**
* computed value -> used value
*/
computeProperty(name: string, computed: CSSStyleValue, object: DisplayObject): any;
computeProperty(name: string, computed: CSSStyleValue, object: DisplayObject, memoized: boolean): any;
postProcessProperty(name: string, object: DisplayObject, attributes: string[]): void;

@@ -41,0 +41,0 @@ /**

@@ -49,3 +49,3 @@ import type { mat3, vec2 } from 'gl-matrix';

private initAttributes;
setAttribute<Key extends keyof StyleProps>(name: Key, value: StyleProps[Key], force?: boolean): void;
setAttribute<Key extends keyof StyleProps>(name: Key, value: StyleProps[Key], force?: boolean, memoize?: boolean): void;
/**

@@ -52,0 +52,0 @@ * called when attributes get changed or initialized

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

@@ -5,0 +5,0 @@ "keywords": [

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 too big to display

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 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