UNPKG

676 BTypeScriptView Raw
1import type { CSSProperty } from '../CSSProperty';
2import type { DisplayObject } from '../../display-objects';
3/**
4 * @see /zh/docs/api/basic/display-object#clippath
5 * @example
6 const image = new Image({
7 style: {
8 width: 200,
9 height: 200,
10 clipPath: new Circle({
11 style: {
12 x: 100, // 处于被裁剪图形局部坐标系下
13 y: 100,
14 r: 50,
15 },
16 }),
17 }
18 });
19 */
20export declare class CSSPropertyClipPath implements Partial<CSSProperty<DisplayObject, DisplayObject>> {
21 calculator(name: string, oldClipPath: DisplayObject, newClipPath: DisplayObject, object: DisplayObject): DisplayObject<any, any>;
22}