Socket
Socket
Sign inDemoInstall

@antv/g-gesture

Package Overview
Dependencies
Maintainers
61
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-gesture - npm Package Compare versions

Comparing version 0.0.43 to 0.0.44

2

dist/packages/g-components/src/Arrow.d.ts

@@ -43,3 +43,3 @@ import type { BaseStyleProps, DisplayObject, DisplayObjectConfig, Line, Polyline } from '@antv/g-lite';

private handleBodyAttributeChanged;
getBody(): Line | Path | Polyline;
getBody(): Path | Line | Polyline;
getStartHead(): DisplayObject<any, any>;

@@ -46,0 +46,0 @@ getEndHead(): DisplayObject<any, any>;

@@ -66,2 +66,3 @@ import { Syringe } from 'mana-syringe';

CLIP_PATH = "<clip-path>",
TEXT_PATH = "<text-path>",
MARKER = "<marker>",

@@ -68,0 +69,0 @@ TRANSFORM = "<transform>",

@@ -1,6 +0,7 @@

import type { CSSGlobalKeywords } from '../css';
import type { CSSGlobalKeywords, CSSRGB } from '../css';
import type { DisplayObjectConfig } from '../dom/interfaces';
import type { TextMetrics } from '../services';
import type { BaseStyleProps, ParsedBaseStyleProps, TextOverflow } from '../types';
import type { BaseStyleProps, ParsedBaseStyleProps, TextDecorationStyle, TextOverflow, TextDecorationLine } from '../types';
import { DisplayObject } from './DisplayObject';
import type { Path } from './Path';
export interface TextStyleProps extends BaseStyleProps {

@@ -31,2 +32,28 @@ x?: number | string;

/**
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath
*/
textPath?: Path;
/**
* The side attribute determines the side of a path the text is placed on (relative to the path direction).
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/side
*/
textPathSide?: 'left' | 'right';
/**
* The startOffset attribute defines an offset from the start of the path for the initial current text position along the path after converting the path to the \<textPath\> element's coordinate system.
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/startOffset
*/
textPathStartOffset?: number | string;
/**
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-line
*/
textDecorationLine?: TextDecorationLine;
/**
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-color
*/
textDecorationColor?: string;
/**
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-style
*/
textDecorationStyle?: TextDecorationStyle;
/**
* The font-style property sets whether a font should be styled with a normal, italic, or oblique face from its font-family.

@@ -118,2 +145,8 @@ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-style

isOverflowing?: boolean;
textPath?: Path;
textDecorationLine?: TextDecorationLine;
textDecorationColor?: CSSRGB;
textDecorationStyle?: TextDecorationStyle | string;
textPathSide?: 'left' | 'right';
textPathStartOffset?: number;
metrics?: TextMetrics;

@@ -120,0 +153,0 @@ dx?: number;

@@ -21,8 +21,18 @@ import type { CanvasLike } from '..';

}
/**
* Borrow from pixi/packages/text/src/TextMetrics.ts
*/
export declare class TextService {
private offscreenCanvas;
private cache;
/**
* font metrics cache
*/
private fontMetricsCache;
constructor(offscreenCanvas: OffscreenCanvasCreator);
/**
* Calculates the ascent, descent and fontSize of a given font-style.
*/
measureFont(font: string, offscreenCanvas: CanvasLike): IFontMetrics;
measureText(text: string, parsedStyle: ParsedTextStyleProps, offscreenCanvas: CanvasLike): TextMetrics;
private setGraphemeOnPath;
private wordWrap;

@@ -29,0 +39,0 @@ private isBreakingSpace;

@@ -33,2 +33,4 @@ import { Syringe } from 'mana-syringe';

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

@@ -85,2 +87,7 @@ class?: string;

fillOpacity?: number | string;
/**
* The fill-rule attribute is a presentation attribute defining the algorithm to use to determine the inside part of a shape.
* @see https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/fill-rule
*/
fillRule?: 'nonzero' | 'evenodd';
/** 整体透明度 */

@@ -87,0 +94,0 @@ opacity?: number | string;

@@ -24,2 +24,3 @@ import type { DisplayObject } from '@antv/g-lite';

getSelectedDisplayObjects(): DisplayObject<any, any>[];
markSelectableUIAsDirty(object: DisplayObject): void;
addEventListener(eventName: string, fn: (...args: any[]) => void): void;

@@ -26,0 +27,0 @@ removeEventListener(eventName: string, fn: (...args: any[]) => void): void;

@@ -47,2 +47,6 @@ import type { Canvas, DisplayObject, Rect, RenderingPlugin, RenderingService } from '@antv/g-lite';

deselectDisplayObject(displayObject: DisplayObject): void;
/**
* Need re-create SelectableUI for object since its definition was already changed.
*/
markSelectableUIAsDirty(object: DisplayObject): void;
private deselectAllDisplayObjects;

@@ -49,0 +53,0 @@ getOrCreateSelectableUI(object: DisplayObject): Selectable;

@@ -14,2 +14,4 @@ import type { ICamera, LinearGradient, RadialGradient, RenderingPlugin, RenderingService } from '@antv/g-lite';

export declare const G_SVG_PREFIX = "g_svg";
export declare const CLIP_PATH_PREFIX = "clip-path-";
export declare const TEXT_PATH_PREFIX = "text-path-";
export declare class SVGRendererPlugin implements RenderingPlugin {

@@ -51,3 +53,3 @@ private canvasConfig;

private createOrUpdateInnerHTML;
private createOrUpdateClipPath;
private createOrUpdateClipOrTextPath;
/**

@@ -54,0 +56,0 @@ * the origin is bounding box's top left corner

{
"name": "@antv/g-gesture",
"version": "0.0.43",
"version": "0.0.44",
"description": "G Gesture",

@@ -34,4 +34,4 @@ "keywords": [

"devDependencies": {
"@antv/g-mobile-canvas": "^0.8.17",
"@antv/g-mobile-canvas-element": "^0.6.20"
"@antv/g-mobile-canvas": "^0.8.18",
"@antv/g-mobile-canvas-element": "^0.6.21"
},

@@ -41,3 +41,3 @@ "publishConfig": {

},
"gitHead": "0475e6c71d65b5d7214e6f2053d46e2670f8192b"
"gitHead": "f544c40d7f0c7ef712e81bd5311fc70530dc43e7"
}

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

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