Class OIText

Hierarchy

Accessors

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

  • get label(): string
  • Returns string

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

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

Constructors

  • Parameters

    • chars: TOISymbolChar[]
    • point: TPoint
    • bounds: TBoundingBox
    • Optional style: {
          color?: string;
          fill?: string;
          opacity?: number;
          width?: number;
      }
      • Optional color?: string
      • Optional fill?: string
      • Optional opacity?: number
      • Optional width?: number

    Returns OIText

Methods

  • Parameters

    • partial: {
          bounds?: { x?: number | undefined; y?: number | undefined; width?: number | undefined; height?: number | undefined; readonly xMin?: number | undefined; readonly xMid?: number | undefined; readonly xMax?: number | undefined; ... 9 more ...; overlaps?: {} | undefined; };
          chars?: (undefined | ({ id?: string | undefined; label?: string | undefined; fontSize?: number | undefined; fontWeight?: "normal" | "bold" | undefined; color?: string | undefined; bounds?: { x?: number | undefined; y?: number | undefined; width?: number | undefined; height?: number | undefined; } | undefined; }))[];
          clone?: any;
          creationTime?: number;
          decorators?: (undefined | ({ id?: string | undefined; kind?: DecoratorKind | undefined; style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; } | undefined; clone?: {} | undefined; }))[];
          deleting?: boolean;
          edges: undefined | (undefined | ({ p1?: { x?: number | undefined; y?: number | undefined; } | undefined; p2?: { x?: number | undefined; y?: number | undefined; } | undefined; }))[];
          getCharsOverlaps?: any;
          id?: string;
          isClosed?: true;
          isIntersected?: any;
          label: undefined | string;
          modificationDate?: number;
          overlaps?: any;
          point?: { x?: number | undefined; y?: number | undefined; };
          rotation?: { degree?: number | undefined; center?: { x?: number | undefined; y?: number | undefined; } | undefined; };
          selected?: boolean;
          snapPoints: undefined | (undefined | ({ x?: number | undefined; y?: number | undefined; }))[];
          style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; };
          toJSON?: any;
          transform?: { xx?: number | undefined; yx?: number | undefined; xy?: number | undefined; yy?: number | undefined; tx?: number | undefined; ty?: number | undefined; invert?: {} | undefined; multiply?: {} | undefined; ... 5 more ...; toCssString?: {} | undefined; };
          type?: Text;
          vertices: undefined | (undefined | ({ x?: number | undefined; y?: number | undefined; }))[];
      }
      • Optional bounds?: { x?: number | undefined; y?: number | undefined; width?: number | undefined; height?: number | undefined; readonly xMin?: number | undefined; readonly xMid?: number | undefined; readonly xMax?: number | undefined; ... 9 more ...; overlaps?: {} | undefined; }
      • Optional chars?: (undefined | ({ id?: string | undefined; label?: string | undefined; fontSize?: number | undefined; fontWeight?: "normal" | "bold" | undefined; color?: string | undefined; bounds?: { x?: number | undefined; y?: number | undefined; width?: number | undefined; height?: number | undefined; } | undefined; }))[]
      • Optional creationTime?: number
      • Optional decorators?: (undefined | ({ id?: string | undefined; kind?: DecoratorKind | undefined; style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; } | undefined; clone?: {} | undefined; }))[]
      • Optional deleting?: boolean
      • edges: undefined | (undefined | ({ p1?: { x?: number | undefined; y?: number | undefined; } | undefined; p2?: { x?: number | undefined; y?: number | undefined; } | undefined; }))[]
      • Optional id?: string
      • Optional Readonly isClosed?: true
      • label: undefined | string
      • Optional modificationDate?: number
      • Optional point?: { x?: number | undefined; y?: number | undefined; }
      • Optional rotation?: { degree?: number | undefined; center?: { x?: number | undefined; y?: number | undefined; } | undefined; }
      • Optional selected?: boolean
      • snapPoints: undefined | (undefined | ({ x?: number | undefined; y?: number | undefined; }))[]
      • Optional style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; }
      • Optional transform?: { xx?: number | undefined; yx?: number | undefined; xy?: number | undefined; yy?: number | undefined; tx?: number | undefined; ty?: number | undefined; invert?: {} | undefined; multiply?: {} | undefined; ... 5 more ...; toCssString?: {} | undefined; }
      • Optional Readonly type?: Text
      • vertices: undefined | (undefined | ({ x?: number | undefined; y?: number | undefined; }))[]

    Returns OIText

  • Returns {
        bounds?: { x?: number | undefined; y?: number | undefined; width?: number | undefined; height?: number | undefined; readonly xMin?: number | undefined; readonly xMid?: number | undefined; readonly xMax?: number | undefined; ... 9 more ...; overlaps?: {} | undefined; };
        chars?: (undefined | ({ id?: string | undefined; label?: string | undefined; fontSize?: number | undefined; fontWeight?: "normal" | "bold" | undefined; color?: string | undefined; bounds?: { x?: number | undefined; y?: number | undefined; width?: number | undefined; height?: number | undefined; } | undefined; }))[];
        clone?: any;
        creationTime?: number;
        decorators?: (undefined | ({ id?: string | undefined; kind?: DecoratorKind | undefined; style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; } | undefined; clone?: {} | undefined; }))[];
        deleting?: boolean;
        edges: undefined | (undefined | ({ p1?: { x?: number | undefined; y?: number | undefined; } | undefined; p2?: { x?: number | undefined; y?: number | undefined; } | undefined; }))[];
        getCharsOverlaps?: any;
        id?: string;
        isClosed?: true;
        isIntersected?: any;
        label: undefined | string;
        modificationDate?: number;
        overlaps?: any;
        point?: { x?: number | undefined; y?: number | undefined; };
        rotation?: { degree?: number | undefined; center?: { x?: number | undefined; y?: number | undefined; } | undefined; };
        selected?: boolean;
        snapPoints: undefined | (undefined | ({ x?: number | undefined; y?: number | undefined; }))[];
        style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; };
        toJSON?: any;
        transform?: { xx?: number | undefined; yx?: number | undefined; xy?: number | undefined; yy?: number | undefined; tx?: number | undefined; ty?: number | undefined; invert?: {} | undefined; multiply?: {} | undefined; ... 5 more ...; toCssString?: {} | undefined; };
        type?: Text;
        vertices: undefined | (undefined | ({ x?: number | undefined; y?: number | undefined; }))[];
    }

    • Optional bounds?: { x?: number | undefined; y?: number | undefined; width?: number | undefined; height?: number | undefined; readonly xMin?: number | undefined; readonly xMid?: number | undefined; readonly xMax?: number | undefined; ... 9 more ...; overlaps?: {} | undefined; }
    • Optional chars?: (undefined | ({ id?: string | undefined; label?: string | undefined; fontSize?: number | undefined; fontWeight?: "normal" | "bold" | undefined; color?: string | undefined; bounds?: { x?: number | undefined; y?: number | undefined; width?: number | undefined; height?: number | undefined; } | undefined; }))[]
    • Optional creationTime?: number
    • Optional decorators?: (undefined | ({ id?: string | undefined; kind?: DecoratorKind | undefined; style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; } | undefined; clone?: {} | undefined; }))[]
    • Optional deleting?: boolean
    • edges: undefined | (undefined | ({ p1?: { x?: number | undefined; y?: number | undefined; } | undefined; p2?: { x?: number | undefined; y?: number | undefined; } | undefined; }))[]
    • Optional id?: string
    • Optional Readonly isClosed?: true
    • label: undefined | string
    • Optional modificationDate?: number
    • Optional point?: { x?: number | undefined; y?: number | undefined; }
    • Optional rotation?: { degree?: number | undefined; center?: { x?: number | undefined; y?: number | undefined; } | undefined; }
    • Optional selected?: boolean
    • snapPoints: undefined | (undefined | ({ x?: number | undefined; y?: number | undefined; }))[]
    • Optional style?: { width?: number | undefined; color?: string | undefined; opacity?: number | undefined; fill?: string | undefined; }
    • Optional transform?: { xx?: number | undefined; yx?: number | undefined; xy?: number | undefined; yy?: number | undefined; tx?: number | undefined; ty?: number | undefined; invert?: {} | undefined; multiply?: {} | undefined; ... 5 more ...; toCssString?: {} | undefined; }
    • Optional Readonly type?: Text
    • vertices: undefined | (undefined | ({ x?: number | undefined; y?: number | undefined; }))[]

Properties

bounds: Box
chars: TOISymbolChar[]
creationTime: number
decorators: OIDecorator[]
deleting: boolean
id: string
isClosed: true = true
modificationDate: number
point: TPoint
rotation?: {
    center: TPoint;
    degree: number;
}

Type declaration

selected: boolean
style: TStyle
transform: MatrixTransform
type: Text

Generated using TypeDoc