@antv/g 5.0.22-alpha.2 → 5.0.22-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Canvas.d.ts +0 -3
- package/es/css/CSSProperty.d.ts +1 -1
- package/es/css/StyleValueRegistry.d.ts +2 -1
- package/es/css/StyleValueRegistry.js +5 -4
- package/es/css/parser/dimension.d.ts +2 -1
- package/es/css/parser/path.d.ts +1 -1
- package/es/css/parser/transform-origin.d.ts +1 -1
- package/es/css/parser/transform-origin.js +2 -2
- package/es/css/properties/CSSPropertyAnchor.d.ts +4 -2
- package/es/css/properties/CSSPropertyAnchor.js +2 -1
- package/es/css/properties/CSSPropertyClipPath.d.ts +2 -1
- package/es/css/properties/CSSPropertyClipPath.js +1 -1
- package/es/css/properties/CSSPropertyColor.d.ts +3 -2
- package/es/css/properties/CSSPropertyColor.js +1 -1
- package/es/css/properties/CSSPropertyFilter.d.ts +3 -2
- package/es/css/properties/CSSPropertyFilter.js +1 -1
- package/es/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
- package/es/css/properties/CSSPropertyLengthOrPercentage.js +2 -1
- package/es/css/properties/CSSPropertyLineDash.d.ts +4 -2
- package/es/css/properties/CSSPropertyLineDash.js +1 -1
- package/es/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
- package/es/css/properties/CSSPropertyLocalPosition.js +1 -1
- package/es/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
- package/es/css/properties/CSSPropertyOffsetDistance.js +2 -1
- package/es/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
- package/es/css/properties/CSSPropertyOpacity.d.ts +3 -2
- package/es/css/properties/CSSPropertyOpacity.js +1 -1
- package/es/css/properties/CSSPropertyPath.d.ts +3 -2
- package/es/css/properties/CSSPropertyPath.js +3 -1
- package/es/css/properties/CSSPropertyPoints.d.ts +3 -2
- package/es/css/properties/CSSPropertyPoints.js +1 -1
- package/es/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
- package/es/css/properties/CSSPropertyShadowBlur.js +1 -1
- package/es/css/properties/CSSPropertyText.d.ts +3 -2
- package/es/css/properties/CSSPropertyText.js +1 -1
- package/es/css/properties/CSSPropertyTextTransform.d.ts +2 -1
- package/es/css/properties/CSSPropertyTextTransform.js +1 -1
- package/es/css/properties/CSSPropertyTransform.d.ts +3 -2
- package/es/css/properties/CSSPropertyTransform.js +1 -1
- package/es/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
- package/es/css/properties/CSSPropertyTransformOrigin.js +1 -1
- package/es/css/properties/CSSPropertyVisibility.d.ts +3 -1
- package/es/css/properties/CSSPropertyZIndex.d.ts +4 -2
- package/es/css/properties/CSSPropertyZIndex.js +1 -1
- package/es/dom/Element.js +1 -1
- package/es/dom/MutationEvent.d.ts +1 -1
- package/es/dom/MutationObserver.d.ts +2 -1
- package/es/dom/MutationObserver.js +1 -1
- package/es/dom/MutationRecord.d.ts +1 -1
- package/es/dom/Node.js +1 -1
- package/es/dom/interfaces.d.ts +2 -1
- package/es/plugins/FrustumCullingStrategy.js +1 -1
- package/es/plugins/PrepareRendererPlugin.d.ts +1 -1
- package/es/services/RenderingService.d.ts +2 -2
- package/es/services/TextService.d.ts +2 -2
- package/es/services/TextService.js +2 -1
- package/es/services/aabb/TextUpdater.d.ts +1 -2
- package/es/types.d.ts +1 -2
- package/es/utils/path.d.ts +1 -1
- package/lib/Canvas.d.ts +0 -3
- package/lib/css/CSSProperty.d.ts +1 -1
- package/lib/css/StyleValueRegistry.d.ts +2 -1
- package/lib/css/StyleValueRegistry.js +14 -8
- package/lib/css/parser/dimension.d.ts +2 -1
- package/lib/css/parser/path.d.ts +1 -1
- package/lib/css/parser/transform-origin.d.ts +1 -1
- package/lib/css/parser/transform-origin.js +5 -3
- package/lib/css/properties/CSSPropertyAnchor.d.ts +4 -2
- package/lib/css/properties/CSSPropertyAnchor.js +5 -3
- package/lib/css/properties/CSSPropertyClipPath.d.ts +2 -1
- package/lib/css/properties/CSSPropertyClipPath.js +2 -2
- package/lib/css/properties/CSSPropertyColor.d.ts +3 -2
- package/lib/css/properties/CSSPropertyColor.js +3 -3
- package/lib/css/properties/CSSPropertyFilter.d.ts +3 -2
- package/lib/css/properties/CSSPropertyFilter.js +2 -2
- package/lib/css/properties/CSSPropertyLengthOrPercentage.d.ts +4 -2
- package/lib/css/properties/CSSPropertyLengthOrPercentage.js +11 -9
- package/lib/css/properties/CSSPropertyLineDash.d.ts +4 -2
- package/lib/css/properties/CSSPropertyLineDash.js +3 -3
- package/lib/css/properties/CSSPropertyLocalPosition.d.ts +4 -2
- package/lib/css/properties/CSSPropertyLocalPosition.js +3 -3
- package/lib/css/properties/CSSPropertyOffsetDistance.d.ts +4 -2
- package/lib/css/properties/CSSPropertyOffsetDistance.js +6 -4
- package/lib/css/properties/CSSPropertyOffsetPath.d.ts +2 -1
- package/lib/css/properties/CSSPropertyOpacity.d.ts +3 -2
- package/lib/css/properties/CSSPropertyOpacity.js +3 -3
- package/lib/css/properties/CSSPropertyPath.d.ts +3 -2
- package/lib/css/properties/CSSPropertyPath.js +9 -5
- package/lib/css/properties/CSSPropertyPoints.d.ts +3 -2
- package/lib/css/properties/CSSPropertyPoints.js +2 -2
- package/lib/css/properties/CSSPropertyShadowBlur.d.ts +1 -1
- package/lib/css/properties/CSSPropertyShadowBlur.js +2 -2
- package/lib/css/properties/CSSPropertyText.d.ts +3 -2
- package/lib/css/properties/CSSPropertyText.js +2 -2
- package/lib/css/properties/CSSPropertyTextTransform.d.ts +2 -1
- package/lib/css/properties/CSSPropertyTextTransform.js +5 -5
- package/lib/css/properties/CSSPropertyTransform.d.ts +3 -2
- package/lib/css/properties/CSSPropertyTransform.js +22 -22
- package/lib/css/properties/CSSPropertyTransformOrigin.d.ts +3 -2
- package/lib/css/properties/CSSPropertyTransformOrigin.js +2 -2
- package/lib/css/properties/CSSPropertyVisibility.d.ts +3 -1
- package/lib/css/properties/CSSPropertyZIndex.d.ts +4 -2
- package/lib/css/properties/CSSPropertyZIndex.js +2 -2
- package/lib/dom/Element.js +3 -3
- package/lib/dom/MutationEvent.d.ts +1 -1
- package/lib/dom/MutationObserver.d.ts +2 -1
- package/lib/dom/MutationObserver.js +11 -11
- package/lib/dom/MutationRecord.d.ts +1 -1
- package/lib/dom/Node.js +4 -4
- package/lib/dom/interfaces.d.ts +2 -1
- package/lib/plugins/FrustumCullingStrategy.js +2 -2
- package/lib/plugins/PrepareRendererPlugin.d.ts +1 -1
- package/lib/services/RenderingService.d.ts +2 -2
- package/lib/services/TextService.d.ts +2 -2
- package/lib/services/TextService.js +5 -3
- package/lib/services/aabb/TextUpdater.d.ts +1 -2
- package/lib/types.d.ts +1 -2
- package/lib/utils/path.d.ts +1 -1
- package/package.json +1 -1
package/es/Canvas.d.ts
CHANGED
package/es/css/CSSProperty.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IElement } from '
|
|
1
|
+
import type { IElement } from '../dom';
|
|
2
2
|
import type { StyleValueRegistry } from './StyleValueRegistry';
|
|
3
3
|
export declare type Interpolatable = number | boolean | number[] | boolean[];
|
|
4
4
|
declare type CSSPropertyMixer<Parsed = any, T extends Interpolatable = any> = (left: Parsed, right: Parsed, displayObject: IElement | null) => [T, T, (i: T) => string | any] | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { DisplayObject
|
|
1
|
+
import type { DisplayObject } from '../display-objects';
|
|
2
|
+
import type { BaseStyleProps } from '../types';
|
|
2
3
|
import { CSSStyleValue } from './cssom';
|
|
3
4
|
export declare type CSSGlobalKeywords = 'unset' | 'initial' | 'inherit' | '';
|
|
4
5
|
export interface PropertyParseOptions {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { __decorate, __metadata, __read, __spreadArray } from "tslib";
|
|
2
2
|
import { postConstruct, singleton, GlobalContainer } from 'mana-syringe';
|
|
3
3
|
import { vec3 } from 'gl-matrix';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { CSSKeywordValue } from './cssom';
|
|
4
|
+
import { dirtifyToRoot, GeometryUpdaterFactory } from '../services';
|
|
5
|
+
import { ElementEvent } from '../dom';
|
|
6
|
+
import { Shape } from '../types';
|
|
7
|
+
import { CSSKeywordValue, CSSStyleValue, CSSUnitValue } from './cssom';
|
|
8
8
|
import { convertPercentUnit } from './parser';
|
|
9
9
|
import { CSSPropertyLocalPosition, CSSPropertyOpacity, CSSPropertyColor, CSSPropertyFilter, CSSPropertyLengthOrPercentage, CSSPropertyLineDash, CSSPropertyShadowBlur, CSSPropertyOffsetPath, CSSPropertyOffsetDistance, CSSPropertyAnchor, CSSPropertyZIndex, CSSPropertyTransform, CSSPropertyTransformOrigin, CSSPropertyPath, CSSPropertyClipPath, CSSPropertyPoints, CSSPropertyText, CSSPropertyTextTransform } from './properties';
|
|
10
10
|
import { formatAttribute } from '../utils';
|
|
11
|
+
import { AABB } from '../shapes';
|
|
11
12
|
/**
|
|
12
13
|
* Blink used them in code generation(css_properties.json5)
|
|
13
14
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IElement } from '../../dom';
|
|
2
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
3
|
import type { CSSStyleValue } from '../cssom';
|
|
3
4
|
import { CSSUnitValue } from '../cssom';
|
|
4
5
|
import type { CSSValueParser } from './types';
|
package/es/css/parser/path.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PathCommand } from '../../types';
|
|
2
2
|
import type { ParsedPathStyleProps } from '../../display-objects';
|
|
3
|
-
import type { IElement } from '
|
|
3
|
+
import type { IElement } from '../../dom';
|
|
4
4
|
export declare function parsePath(path: string): ParsedPathStyleProps;
|
|
5
5
|
export declare function mergePaths(left: ParsedPathStyleProps, right: ParsedPathStyleProps, object: IElement): [PathCommand[], PathCommand[], (b: PathCommand[]) => PathCommand[]];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isString } from '@antv/util';
|
|
2
|
-
import { CSSUnitValue } from '
|
|
3
|
-
import { parseLengthOrPercentage } from '
|
|
2
|
+
import { CSSUnitValue } from '../cssom';
|
|
3
|
+
import { parseLengthOrPercentage } from './dimension';
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
|
|
6
6
|
* eg. 'center' 'top left' '50px 50px'
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { DisplayObject } from '../../display-objects';
|
|
3
|
+
import { CSSUnitValue } from '../cssom';
|
|
4
|
+
import { parseNumberList } from '../parser';
|
|
3
5
|
export declare class CSSPropertyAnchor implements Partial<CSSProperty<CSSUnitValue[], CSSUnitValue[]>> {
|
|
4
6
|
parser: typeof parseNumberList;
|
|
5
7
|
calculator(name: string, oldParsed: CSSUnitValue[], parsed: CSSUnitValue[], object: DisplayObject): CSSUnitValue[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { CSSUnitValue
|
|
3
|
+
import { CSSUnitValue } from '../cssom';
|
|
4
|
+
import { parseNumberList } from '../parser';
|
|
4
5
|
|
|
5
6
|
var CSSPropertyAnchor = function () {
|
|
6
7
|
function CSSPropertyAnchor() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { DisplayObject } from '../../display-objects';
|
|
3
|
+
import { parseColor, mergeColors } from '../parser';
|
|
3
4
|
import type { CSSGradientValue } from '../cssom';
|
|
4
5
|
import { CSSKeywordValue, CSSRGB } from '../cssom';
|
|
5
6
|
import type { StyleValueRegistry } from '../StyleValueRegistry';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { ParsedFilterStyleProperty } from '../parser';
|
|
3
|
+
import { parseFilter } from '../parser';
|
|
3
4
|
export declare class CSSPropertyFilter implements Partial<CSSProperty<ParsedFilterStyleProperty[], ParsedFilterStyleProperty[]>> {
|
|
4
5
|
parser: typeof parseFilter;
|
|
5
6
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { CSSUnitValue
|
|
1
|
+
import { CSSUnitValue } from '../cssom';
|
|
2
|
+
import { mergeDimensions } from '../parser';
|
|
2
3
|
import type { StyleValueRegistry } from '../StyleValueRegistry';
|
|
3
|
-
import type { DisplayObject
|
|
4
|
+
import type { DisplayObject } from '../../display-objects';
|
|
5
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
4
6
|
/**
|
|
5
7
|
* <length> & <percentage>
|
|
6
8
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { UnitType, CSSUnitValue
|
|
3
|
+
import { UnitType, CSSUnitValue } from '../cssom';
|
|
4
|
+
import { parseLengthOrPercentage, mergeDimensions } from '../parser';
|
|
4
5
|
/**
|
|
5
6
|
* <length> & <percentage>
|
|
6
7
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import type { CSSUnitValue } from '../cssom';
|
|
4
|
+
import { parseDimensionArray, mergeDimensionList } from '../parser';
|
|
3
5
|
export declare class CSSPropertyLineDash implements Partial<CSSProperty<CSSUnitValue[], CSSUnitValue[]>> {
|
|
4
6
|
parser: typeof parseDimensionArray;
|
|
5
7
|
mixer: typeof mergeDimensionList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { parseDimensionArray, mergeDimensionList } from '
|
|
3
|
+
import { parseDimensionArray, mergeDimensionList } from '../parser';
|
|
4
4
|
|
|
5
5
|
var CSSPropertyLineDash = function () {
|
|
6
6
|
function CSSPropertyLineDash() {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import type { CSSUnitValue } from '../cssom';
|
|
4
|
+
import { mergeDimensions } from '../parser';
|
|
3
5
|
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
4
6
|
/**
|
|
5
7
|
* local position
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __extends } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { mergeDimensions, parseLengthOrPercentage } from '
|
|
3
|
+
import { mergeDimensions, parseLengthOrPercentage } from '../parser';
|
|
4
4
|
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
5
5
|
/**
|
|
6
6
|
* local position
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import type { CSSUnitValue } from '../cssom';
|
|
4
|
+
import { parseNumber } from '../parser';
|
|
3
5
|
export declare class CSSPropertyOffsetDistance implements Partial<CSSProperty<CSSUnitValue, CSSUnitValue>> {
|
|
4
6
|
parser: typeof parseNumber;
|
|
5
7
|
mixer: (left: CSSUnitValue, right: CSSUnitValue) => [number, number, (i: number) => string];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import {
|
|
3
|
+
import { Shape } from '../../types';
|
|
4
|
+
import { parseNumber, clampedMergeNumbers } from '../parser';
|
|
4
5
|
|
|
5
6
|
var CSSPropertyOffsetDistance = function () {
|
|
6
7
|
function CSSPropertyOffsetDistance() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
3
|
export declare class CSSPropertyOffsetPath implements Partial<CSSProperty<DisplayObject, DisplayObject>> {
|
|
3
4
|
calculator(name: string, oldOffsetPath: DisplayObject, newOffsetPath: DisplayObject, object: DisplayObject): DisplayObject<any, any>;
|
|
4
5
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { DisplayObject,
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject, ParsedPathStyleProps } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { parsePath, mergePaths } from '../parser';
|
|
3
4
|
export declare class CSSPropertyPath implements Partial<CSSProperty<ParsedPathStyleProps, ParsedPathStyleProps>> {
|
|
4
5
|
/**
|
|
5
6
|
* path2Curve
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import {
|
|
3
|
+
import { Rectangle } from '../../shapes';
|
|
4
|
+
import { CSSKeywordValue } from '../cssom';
|
|
5
|
+
import { parsePath, mergePaths } from '../parser';
|
|
4
6
|
|
|
5
7
|
var CSSPropertyPath = function () {
|
|
6
8
|
function CSSPropertyPath() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { parsePoints } from '../parser';
|
|
3
4
|
export declare class CSSPropertyPoints implements Partial<CSSProperty<{
|
|
4
5
|
points: [number, number][];
|
|
5
6
|
totalLength: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
2
2
|
export declare class CSSPropertyShadowBlur extends CSSPropertyLengthOrPercentage {
|
|
3
|
-
mixer: (left: import("
|
|
3
|
+
mixer: (left: import("..").CSSUnitValue, right: import("..").CSSUnitValue) => [number, number, (i: number) => string];
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __extends } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { clampedMergeNumbers } from '
|
|
3
|
+
import { clampedMergeNumbers } from '../parser';
|
|
4
4
|
import { CSSPropertyLengthOrPercentage } from './CSSPropertyLengthOrPercentage';
|
|
5
5
|
|
|
6
6
|
var CSSPropertyShadowBlur = function (_super) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import { CSSKeywordValue } from '
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import { CSSKeywordValue } from '../cssom';
|
|
3
|
+
import { DisplayObject } from '../../display-objects';
|
|
3
4
|
export declare class CSSPropertyText implements Partial<CSSProperty<CSSKeywordValue | string, string>> {
|
|
4
5
|
calculator(name: string, oldParsed: CSSKeywordValue | string, parsed: CSSKeywordValue | string, object: DisplayObject): string;
|
|
5
6
|
postProcessor(object: DisplayObject): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import { DisplayObject, ParsedPathStyleProps } from '../../display-objects';
|
|
2
3
|
export declare class CSSPropertyTextTransform implements Partial<CSSProperty<ParsedPathStyleProps, ParsedPathStyleProps>> {
|
|
3
4
|
postProcessor(o: DisplayObject): void;
|
|
4
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { TextTransform, Shape } from '
|
|
3
|
+
import { TextTransform, Shape } from '../../types';
|
|
4
4
|
|
|
5
5
|
var CSSPropertyTextTransform = function () {
|
|
6
6
|
function CSSPropertyTextTransform() {}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { DisplayObject } from '../../display-objects';
|
|
2
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
3
|
+
import { parseTransform, mergeTransforms } from '../parser';
|
|
3
4
|
/**
|
|
4
5
|
* @see /zh/docs/api/animation#支持变换的属性
|
|
5
6
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib"; // import { uniq } from '@antv/util';
|
|
2
2
|
|
|
3
3
|
import { singleton } from 'mana-syringe';
|
|
4
|
-
import { Opx, Odeg, parseTransform, mergeTransforms } from '../..';
|
|
5
4
|
import { CSSKeywordValue } from '../cssom';
|
|
5
|
+
import { Opx, Odeg, parseTransform, mergeTransforms } from '../parser';
|
|
6
6
|
/**
|
|
7
7
|
* @see /zh/docs/api/animation#支持变换的属性
|
|
8
8
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { CSSUnitValue } from '../cssom';
|
|
3
|
+
import { parseTransformOrigin } from '../parser';
|
|
3
4
|
/**
|
|
4
5
|
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
|
|
5
6
|
* @example
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { singleton } from 'mana-syringe';
|
|
3
|
-
import { parseTransformOrigin } from '
|
|
3
|
+
import { parseTransformOrigin } from '../parser';
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
|
|
6
6
|
* @example
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { CSSProperty
|
|
2
|
-
import {
|
|
1
|
+
import type { CSSProperty } from '../CSSProperty';
|
|
2
|
+
import type { CSSUnitValue } from '../cssom';
|
|
3
|
+
import type { DisplayObject } from '../../display-objects';
|
|
4
|
+
import { parseNumber } from '../parser';
|
|
3
5
|
export declare class CSSPropertyZIndex implements Partial<CSSProperty<CSSUnitValue, CSSUnitValue>> {
|
|
4
6
|
parser: typeof parseNumber;
|
|
5
7
|
postProcessor(object: DisplayObject): void;
|
package/es/dom/Element.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Cullable, Geometry, Renderable, Transform, Sortable } from '../componen
|
|
|
6
6
|
import { Node } from './Node';
|
|
7
7
|
import { ElementEvent } from './interfaces';
|
|
8
8
|
import { formatAttribute } from '../utils';
|
|
9
|
-
import { MutationEvent } from '
|
|
9
|
+
import { MutationEvent } from './MutationEvent';
|
|
10
10
|
var entityCounter = 0;
|
|
11
11
|
/**
|
|
12
12
|
* Has following capabilities:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { IElement
|
|
1
|
+
import type { IElement } from './interfaces';
|
|
2
|
+
import type { DisplayObject } from '../display-objects';
|
|
2
3
|
import { MutationEvent } from './MutationEvent';
|
|
3
4
|
import { MutationRecord } from './MutationRecord';
|
|
4
5
|
export declare class Registration {
|
package/es/dom/Node.js
CHANGED
package/es/dom/interfaces.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import type { AnimationTimeline } from './AnimationTimeline';
|
|
|
3
3
|
import type { BaseStyleProps, Shape } from '../types';
|
|
4
4
|
import type { FederatedEvent } from './FederatedEvent';
|
|
5
5
|
import type { CustomElementRegistry } from './CustomElementRegistry';
|
|
6
|
-
import type { CanvasConfig,
|
|
6
|
+
import type { CanvasConfig, InteractivePointerEvent } from '../types';
|
|
7
|
+
import type { DisplayObject } from '../display-objects';
|
|
7
8
|
import type { PointLike } from '../shapes';
|
|
8
9
|
import type { Camera } from '../camera';
|
|
9
10
|
import type { ContextService, EventService, RenderingService } from '../services';
|
|
@@ -4,7 +4,7 @@ import { vec3 } from 'gl-matrix';
|
|
|
4
4
|
import { CullingStrategyContribution } from './CullingPlugin';
|
|
5
5
|
import { AABB, Mask } from '../shapes';
|
|
6
6
|
import { DefaultCamera, Camera } from '../camera/Camera';
|
|
7
|
-
import { Shape } from '
|
|
7
|
+
import { Shape } from '../types'; // group is not a 2d shape
|
|
8
8
|
|
|
9
9
|
var shape2D = [Shape.CIRCLE, Shape.ELLIPSE, Shape.IMAGE, Shape.RECT, Shape.LINE, Shape.POLYLINE, Shape.POLYGON, Shape.TEXT, Shape.PATH, Shape.HTML];
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RenderingService, RenderingPlugin } from '../services
|
|
1
|
+
import type { RenderingService, RenderingPlugin } from '../services';
|
|
2
2
|
export declare class PrepareRendererPlugin implements RenderingPlugin {
|
|
3
3
|
static tag: string;
|
|
4
4
|
private renderingContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Syringe } from 'mana-syringe';
|
|
2
2
|
import { SyncHook, SyncWaterfallHook, AsyncParallelHook, AsyncSeriesWaterfallHook } from 'tapable';
|
|
3
|
-
import type {
|
|
4
|
-
import type { EventPosition, InteractivePointerEvent } from '../types';
|
|
3
|
+
import type { DisplayObject } from '../display-objects';
|
|
4
|
+
import type { CanvasConfig, EventPosition, InteractivePointerEvent } from '../types';
|
|
5
5
|
export interface RenderingPlugin {
|
|
6
6
|
apply: (renderer: RenderingService) => void;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="offscreencanvas" />
|
|
2
|
-
import type { ParsedTextStyleProps } from '
|
|
3
|
-
import { Rectangle } from '
|
|
2
|
+
import type { ParsedTextStyleProps } from '../display-objects';
|
|
3
|
+
import { Rectangle } from '../shapes';
|
|
4
4
|
export interface TextMetrics {
|
|
5
5
|
font: string;
|
|
6
6
|
width: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata, __read, __spreadArray } from "tslib";
|
|
2
2
|
import { singleton, inject } from 'mana-syringe';
|
|
3
|
-
import { toFontString
|
|
3
|
+
import { toFontString } from '../utils';
|
|
4
|
+
import { Rectangle } from '../shapes';
|
|
4
5
|
import { OffscreenCanvasCreator } from './OffscreenCanvasCreator';
|
|
5
6
|
var TEXT_METRICS = {
|
|
6
7
|
MetricsString: '|ÉqÅ',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GeometryAABBUpdater } from './interfaces';
|
|
2
|
-
import type { ParsedTextStyleProps } from '../../display-objects
|
|
3
|
-
import type { DisplayObject } from '../..';
|
|
2
|
+
import type { DisplayObject, ParsedTextStyleProps } from '../../display-objects';
|
|
4
3
|
export declare class TextUpdater implements GeometryAABBUpdater<ParsedTextStyleProps> {
|
|
5
4
|
private textService;
|
|
6
5
|
private isReadyToMeasure;
|
package/es/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="offscreencanvas" />
|
|
2
2
|
import type { vec2, vec3 } from 'gl-matrix';
|
|
3
|
-
import type { ParsedPathStyleProps, ParsedPolylineStyleProps } from './display-objects';
|
|
4
|
-
import type { DisplayObject } from './display-objects';
|
|
3
|
+
import type { DisplayObject, ParsedPathStyleProps, ParsedPolylineStyleProps } from './display-objects';
|
|
5
4
|
import type { IRenderer } from './AbstractRenderer';
|
|
6
5
|
import type { CSSGlobalKeywords, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSUnitValue } from './css';
|
|
7
6
|
import { Syringe } from 'mana-syringe';
|
package/es/utils/path.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DisplayObject } from '../display-objects
|
|
1
|
+
import type { DisplayObject } from '../display-objects';
|
|
2
2
|
import type { PathCommand } from '../types';
|
|
3
3
|
export declare function equalizeSegments(path1: PathCommand[], path2: PathCommand[], TL?: number): PathCommand[][];
|
|
4
4
|
export declare function getDrawDirection(pathArray: PathCommand[]): boolean;
|
package/lib/Canvas.d.ts
CHANGED
package/lib/css/CSSProperty.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IElement } from '
|
|
1
|
+
import type { IElement } from '../dom';
|
|
2
2
|
import type { StyleValueRegistry } from './StyleValueRegistry';
|
|
3
3
|
export declare type Interpolatable = number | boolean | number[] | boolean[];
|
|
4
4
|
declare type CSSPropertyMixer<Parsed = any, T extends Interpolatable = any> = (left: Parsed, right: Parsed, displayObject: IElement | null) => [T, T, (i: T) => string | any] | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { DisplayObject
|
|
1
|
+
import type { DisplayObject } from '../display-objects';
|
|
2
|
+
import type { BaseStyleProps } from '../types';
|
|
2
3
|
import { CSSStyleValue } from './cssom';
|
|
3
4
|
export declare type CSSGlobalKeywords = 'unset' | 'initial' | 'inherit' | '';
|
|
4
5
|
export interface PropertyParseOptions {
|