Class IIStroke

Hierarchy (View Summary)

Accessors

  • get bounds(): Box
  • Returns Box

  • get edges(): TSegment[]
  • Returns TSegment[]

  • get snapPoints(): TPoint[]
  • Returns TPoint[]

  • get vertices(): TPoint[]
  • Returns TPoint[]

Constructors

  • Parameters

    • Optionalstyle: {
          color?: string;
          fill?: string;
          opacity?: number;
          width?: number;
          [key: string]: undefined | string | number;
      }
    • pointerType: string = "pen"

    Returns IIStroke

Methods

  • Parameters

    Returns void

  • Parameters

    • distance: number

    Returns number

  • Parameters

    • partial: {
          addPointer?: any;
          bounds?: {
              center?: { x?: number; y?: number };
              contains?: any;
              containsPoint?: any;
              corners?: (undefined | { x?: number; y?: number })[];
              height?: number;
              isContained?: any;
              overlaps?: any;
              snapPoints?: (undefined | { x?: number; y?: number })[];
              width?: number;
              x?: number;
              xMax?: number;
              xMid?: number;
              xMin?: number;
              y?: number;
              yMax?: number;
              yMid?: number;
              yMin?: number;
          };
          clone?: any;
          creationTime?: number;
          decorators?: (
              | undefined
              | {
                  clone?: any;
                  id?: string;
                  kind?: DecoratorKind;
                  style?: {
                      color?: string;
                      fill?: string;
                      opacity?: number;
                      width?: number;
                      [key: string]: undefined
                      | string
                      | number;
                  };
              }
          )[];
          deleting?: boolean;
          edges?: (
              | undefined
              | { p1?: { x?: number; y?: number }; p2?: { x?: number; y?: number } }
          )[];
          formatToSend?: any;
          id?: string;
          isClosed?: false;
          isIntersected?: any;
          length?: number;
          modificationDate?: number;
          overlaps?: any;
          pointers?: (undefined | { p?: number; t?: number; x?: number; y?: number })[];
          pointerType?: string;
          selected?: boolean;
          snapPoints?: (undefined | { x?: number; y?: number })[];
          style?: {
              color?: string;
              fill?: string;
              opacity?: number;
              width?: number;
              [key: string]: undefined | string | number;
          };
          toJSON?: any;
          transform?: {
              applyToPoint?: any;
              clone?: any;
              invert?: any;
              multiply?: any;
              rotate?: any;
              scale?: any;
              toCssString?: any;
              translate?: any;
              tx?: number;
              ty?: number;
              xx?: number;
              xy?: number;
              yx?: number;
              yy?: number;
          };
          type?: Stroke;
          vertices?: (undefined | { x?: number; y?: number })[];
      }

    Returns IIStroke

  • Parameters

    Returns boolean

  • Returns {
        addPointer?: any;
        bounds?: {
            center?: { x?: number; y?: number };
            contains?: any;
            containsPoint?: any;
            corners?: (undefined | { x?: number; y?: number })[];
            height?: number;
            isContained?: any;
            overlaps?: any;
            snapPoints?: (undefined | { x?: number; y?: number })[];
            width?: number;
            x?: number;
            xMax?: number;
            xMid?: number;
            xMin?: number;
            y?: number;
            yMax?: number;
            yMid?: number;
            yMin?: number;
        };
        clone?: any;
        creationTime?: number;
        decorators?: (
            | undefined
            | {
                clone?: any;
                id?: string;
                kind?: DecoratorKind;
                style?: {
                    color?: string;
                    fill?: string;
                    opacity?: number;
                    width?: number;
                    [key: string]: undefined
                    | string
                    | number;
                };
            }
        )[];
        deleting?: boolean;
        edges?: (
            | undefined
            | { p1?: { x?: number; y?: number }; p2?: { x?: number; y?: number } }
        )[];
        formatToSend?: any;
        id?: string;
        isClosed?: false;
        isIntersected?: any;
        length?: number;
        modificationDate?: number;
        overlaps?: any;
        pointers?: (undefined | { p?: number; t?: number; x?: number; y?: number })[];
        pointerType?: string;
        selected?: boolean;
        snapPoints?: (undefined | { x?: number; y?: number })[];
        style?: {
            color?: string;
            fill?: string;
            opacity?: number;
            width?: number;
            [key: string]: undefined | string | number;
        };
        toJSON?: any;
        transform?: {
            applyToPoint?: any;
            clone?: any;
            invert?: any;
            multiply?: any;
            rotate?: any;
            scale?: any;
            toCssString?: any;
            translate?: any;
            tx?: number;
            ty?: number;
            xx?: number;
            xy?: number;
            yx?: number;
            yy?: number;
        };
        type?: Stroke;
        vertices?: (undefined | { x?: number; y?: number })[];
    }

Properties

creationTime: number
decorators: IIDecorator[]
deleting: boolean
id: string
isClosed: false
length: number
modificationDate: number
pointers: TPointer[]
pointerType: string
selected: boolean
style: TStyle
transform: MatrixTransform
type: Stroke