123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377 |
- declare interface Pen {
- id?: string;
- tags?: string[];
- parentId?: string;
- name?: string;
- lineName?: string;
- borderRadius?: number;
- visible?: boolean;
- close?: boolean;
- length?: number;
- title?: string;
- titleFnJs?: string;
- titleFn?: (pen: Pen) => string;
- lineWidth?: number;
- borderWidth?: number;
- borderColor?: string;
- globalAlpha?: number;
- lineDash?: number[];
- lineDashOffset?: number;
- color?: string;
- background?: string;
- anchorColor?: string;
- hoverAnchorColor?: string;
- hoverColor?: string;
- hoverBackground?: string;
- activeColor?: string;
- activeBackground?: string;
- mouseDownValid?: boolean;
- mouseDownColor?: string;
- mouseDownBackground?: string;
- /**
- * @deprecated 改用 gradientColors
- */
- gradientFromColor?: string;
- /**
- * @deprecated 改用 gradientColors
- */
- gradientToColor?: string;
- /**
- * @deprecated 改用 gradientColors
- */
- gradientAngle?: number;
- gradientRadius?: number;
- /**
- * @deprecated 改用 lineGradientColors
- */
- lineGradientFromColor?: string;
- /**
- * @deprecated 改用 lineGradientColors
- */
- lineGradientToColor?: string;
- /**
- * @deprecated 改用 lineGradientColors
- */
- lineGradientAngle?: number;
- gradientColors?: string;
- switch?: boolean;
- checked?: boolean;
- onBackground?: string;
- onGradientColors?: string;
- lineGradientColors?: string;
- shadowColor?: string;
- shadowBlur?: number;
- shadowOffsetX?: number;
- shadowOffsetY?: number;
- textHasShadow?: boolean;
- text?: string;
- textWidth?: number;
- textHeight?: number;
- textLeft?: number;
- textTop?: number;
- textColor?: string;
- hoverTextColor?: string;
- activeTextColor?: string;
- fontFamily?: string;
- fontSize?: number;
- lineHeight?: number;
- fontStyle?: string;
- fontWeight?: string;
- textBackground?: string;
- ellipsis?: boolean;
- image?: string;
- icon?: string;
- iconRotate?: number;
- iconWidth?: number;
- iconHeight?: number;
- iconTop?: number;
- iconLeft?: number;
- iconColor?: string;
- iconFamily?: string;
- iconWeight?: string;
- iconSize?: number;
- iconAlign?: 'top' | 'bottom' | 'left' | 'right' | 'left-top' | 'right-top' | 'left-bottom' | 'right-bottom' | 'center';
- imageRatio?: boolean;
- disableInput?: boolean;
- disableRotate?: boolean;
- disableSize?: boolean;
- disableAnchor?: boolean;
- paddingTop?: number;
- paddingBottom?: number;
- paddingLeft?: number;
- paddingRight?: number;
- backgroundImage?: string;
- strokeImage?: string;
- children?: string[];
- followers?: string[];
- anchorRadius?: number;
- anchorBackground?: string;
- pathId?: string;
- path?: string;
- fromArrow?: string;
- toArrow?: string;
- fromArrowSize?: number;
- toArrowSize?: number;
- fromArrowColor?: string;
- toArrowColor?: string;
- autoFrom?: boolean;
- autoTo?: boolean;
- animateCycle?: number;
- nextAnimate?: string;
- autoPlay?: boolean;
- playLoop?: boolean;
- duration?: number;
- linear?: boolean;
- scale?: number;
- animateSpan?: number;
- animateColor?: string;
- animateLineDash?: number[];
- animateReverse?: boolean;
- keepAnimateState?: boolean;
- animateName?: string;
- frames?: Pen[];
- animateList?: Pen[][];
- animateInterval?: number;
- animateShadow?: boolean;
- animateShadowColor?: string;
- animateShadowBlur?: number;
- input?: boolean;
- autofocus?: boolean;
- dropdownBackground?: string;
- dropdownColor?: string;
- dropdownHoverColor?: string;
- dropdownHoverBackground?: string;
- iframe?: string;
- video?: string;
- audio?: string;
- progress?: number;
- progressColor?: string;
- verticalProgress?: boolean;
- reverseProgress?: boolean;
- progressGradientColors?: string;
- externElement?: boolean;
- autoPolyline?: boolean;
- affectByTheme?: boolean;
- flipX?: boolean;
- flipY?: boolean;
- fillTexts?: string[];
- hiddenText?: boolean;
- keepDecimal?: number;
- showChild?: number;
- animateDotSize?: number;
- isRuleLine?: boolean;
- /**
- * @deprecated 改用 canvasLayer
- */
- isBottom?: boolean;
- ratio?: boolean;
- animateLineWidth?: number;
- lineSmooth?: number;
- gradientSmooth?: number;
- scrolling?: string;
- animations?: any[];
- currentAnimation?: number;
- crossOrigin?: string;
- imageRadius?: number;
- textFlip?: boolean;
- textRotate?: boolean;
- textAutoAdjust?: boolean;
- dbInput?: boolean;
- operationalRect?: Rect;
- blur?: number;
- blurBackground?: string;
- /**
- * @deprecated 改用 canvasLayer
- */
- template?: boolean;
- thumbImg?: string;
- apiUrl?: string;
- apiMethod?: string;
- apiHeaders?: any;
- apiBody?: any;
- apiEnable?: boolean;
- sql?: string;
- container?: boolean;
- disabled?: boolean;
- disabledColor?: string;
- disabledBackground?: string;
- disabledTextColor?: string;
- inputType?: string;
- productId?: string;
- deviceId?: string;
- noOnBinds?: boolean;
- interaction?: boolean;
- childHover?: boolean;
- childActive?: boolean;
- draw?: boolean;
- copyIndex?: number;
- formId?: string;
- formData?: any;
- formKey?: string;
- formValue?: string;
- formType?: string;
- className?: string;
- styles?: any;
- calculative?: {
- x?: number;
- y?: number;
- width?: number;
- height?: number;
- borderRadius?: number;
- progress?: number;
- progressColor?: string;
- progressGradientColors?: string;
- verticalProgress?: boolean;
- childrenVisible?: any;
- rotate?: number;
- lineWidth?: number;
- borderWidth?: number;
- borderColor?: string;
- globalAlpha?: number;
- lineDash?: number[];
- lineDashOffset?: number;
- color?: string;
- background?: string;
- bkType?: number;
- /**
- * @deprecated 改用 gradientColors
- */
- gradientFromColor?: string;
- /**
- * @deprecated 改用 gradientColors
- */
- gradientToColor?: string;
- /**
- * @deprecated 改用 gradientColors
- */
- gradientAngle?: number;
- gradientRadius?: number;
- /**
- * @deprecated 改用 lineGradientColors
- */
- lineGradientFromColor?: string;
- /**
- * @deprecated 改用 lineGradientColors
- */
- lineGradientToColor?: string;
- /**
- * @deprecated 改用 lineGradientColors
- */
- lineGradientAngle?: number;
- shadowColor?: string;
- shadowBlur?: number;
- shadowOffsetX?: number;
- shadowOffsetY?: number;
- textHasShadow?: boolean;
- tempText?: string;
- text?: string;
- textWidth?: number;
- textHeight?: number;
- textLeft?: number;
- textTop?: number;
- textColor?: string;
- textGradientColors?: string;
- fontFamily?: string;
- fontSize?: number;
- lineHeight?: number;
- fontStyle?: string;
- fontWeight?: string;
- textBackground?: string;
- iconSize?: number;
- icon?: string;
- iconRotate?: number;
- iconWidth?: number;
- iconHeight?: number;
- iconTop?: number;
- iconLeft?: number;
- iconColor?: string;
- iconFamily?: string;
- iconWeight?: string;
- paddingTop?: number;
- paddingBottom?: number;
- paddingLeft?: number;
- paddingRight?: number;
- textLines?: string[];
- textLineWidths?: number[];
- image?: string;
- imgNaturalWidth?: number;
- imgNaturalHeight?: number;
- backgroundImage?: string;
- strokeImage?: string;
- active?: boolean;
- focus?: boolean;
- hover?: boolean;
- mouseDown?: boolean;
- containerHover?: boolean;
- isDock?: boolean;
- pencil?: boolean;
- activeAnchor?: Point;
- patchFlags?: boolean;
- visible?: boolean;
- inView?: boolean;
- drawlineH?: boolean;
- hasImage?: boolean;
- imageDrawed?: boolean;
- /**
- * @deprecated 改用 canvasLayer
- */
- isBottom?: boolean;
- scale?: number;
- start?: number;
- duration?: number;
- end?: number;
- frameIndex?: number;
- frameStart?: number;
- frameEnd?: number;
- frameDuration?: number;
- animatePos?: number;
- cycleIndex?: number;
- pause?: number;
- layer?: number;
- iframe?: string;
- video?: string;
- audio?: string;
- flipX?: boolean;
- flipY?: boolean;
- h?: boolean;
- hiddenText?: boolean;
- keepDecimal?: number;
- showChild?: number;
- animateDotSize?: number;
- zIndex?: number;
- onended?: (pen: Pen) => void;
- singleton?: any;
- gradientColors?: string;
- onBackground?: string;
- onGradientColors?: string;
- checked?: boolean;
- lineGradientColors?: string;
- gradientTimer?: any;
- animateLineWidth?: number;
- lineSmooth?: number;
- gradientSmooth?: number;
- cssDisplay?: string;
- animations?: any[];
- imageRadius?: number;
- disabled?: boolean;
- disabledColor?: string;
- disabledBackground?: string;
- disabledTextColor?: string;
- };
- lastConnected?: any;
- textDecoration?: string;
- textDecorationDash?: number[];
- textDecorationColor?: string;
- textStrickoutColor?: string;
- textStrickoutDash?: number[];
- textStrickout?: boolean;
- prevFrame?: Pen;
- onAdd?: (pen: Pen) => void;
- onValue?: (pen: Pen) => void;
- }
|