iink-ts - v4.0.0
    Preparing search index...

    Variable MathOpsConst

    MathOps: {
        create(
            elements: TMathElement[],
            point: TPoint,
            boundsBox: TBox,
            style?: {
                color?: string;
                fill?: string;
                opacity?: number;
                width?: number;
                [key: string]: string | number | undefined;
            },
        ): TMath;
        createFromPartial(
            partial: {
                bounds?: {
                    angle?: number;
                    center?: { x?: number; y?: number };
                    height?: number;
                    width?: number;
                };
                creationTime?: number;
                decorators?: (
                    | {
                        baseline?: number;
                        bounds?: {
                            angle?: number;
                            center?: { x?: (...)
                            | (...); y?: (...) | (...) };
                            height?: number;
                            width?: number;
                        };
                        creationTime?: number;
                        edges?: ({ p1?: (...) | (...); p2?: (...) | (...) } | undefined)[];
                        hasBounds?: boolean;
                        id?: string;
                        kind?: DecoratorKind;
                        modificationDate?: number;
                        snapPoints?: ({ x?: (...) | (...); y?: (...) | (...) } | undefined)[];
                        style?: {
                            color?: string;
                            fill?: string;
                            opacity?: number;
                            width?: number;
                            [key: string]: string | number | undefined;
                        };
                        targetIds?: (string | undefined)[];
                        type?: Decorator;
                        vertices?: ({ x?: (...) | (...); y?: (...) | (...) } | undefined)[];
                        xHeight?: number;
                    }
                    | undefined
                )[];
                edges?: (
                    | {
                        p1?: { x?: number; y?: number };
                        p2?: { x?: number; y?: number };
                    }
                    | undefined
                )[];
                elements?: (
                    | {
                        bounds?: { height?: number; width?: number; x?: number; y?: number };
                        color?: string;
                        fontFamily?: string;
                        fontSize?: number;
                        fontWeight?: "bold" | "normal";
                        id?: string;
                        label?: string;
                        position?: "normal" | "superscript" | "subscript";
                    }
                    | undefined
                )[];
                id?: string;
                modificationDate?: number;
                point?: { x?: number; y?: number };
                rotation?: { center?: { x?: number; y?: number }; degree?: number };
                snapPoints?: ({ x?: number; y?: number } | undefined)[];
                style?: {
                    color?: string;
                    fill?: string;
                    opacity?: number;
                    width?: number;
                    [key: string]: string | number | undefined;
                };
                type?: Math;
                vertices?: ({ x?: number; y?: number } | undefined)[];
            },
        ): TMath;
        getChildrenOverlaps(math: TMath, points: TPoint[]): TMathElement[];
        getLabel(math: TMath): string;
        overlaps(math: TMath, box: TBox): boolean;
        toJSON(
            math: TMath,
        ): {
            bounds?: {
                angle?: number;
                center?: { x?: number; y?: number };
                height?: number;
                width?: number;
            };
            creationTime?: number;
            decorators?: (
                | {
                    baseline?: number;
                    bounds?: {
                        angle?: number;
                        center?: { x?: (...)
                        | (...); y?: (...) | (...) };
                        height?: number;
                        width?: number;
                    };
                    creationTime?: number;
                    edges?: ({ p1?: (...) | (...); p2?: (...) | (...) } | undefined)[];
                    hasBounds?: boolean;
                    id?: string;
                    kind?: DecoratorKind;
                    modificationDate?: number;
                    snapPoints?: ({ x?: (...) | (...); y?: (...) | (...) } | undefined)[];
                    style?: {
                        color?: string;
                        fill?: string;
                        opacity?: number;
                        width?: number;
                        [key: string]: string | number | undefined;
                    };
                    targetIds?: (string | undefined)[];
                    type?: Decorator;
                    vertices?: ({ x?: (...) | (...); y?: (...) | (...) } | undefined)[];
                    xHeight?: number;
                }
                | undefined
            )[];
            edges?: (
                | { p1?: { x?: number; y?: number }; p2?: { x?: number; y?: number } }
                | undefined
            )[];
            elements?: (
                | {
                    bounds?: { height?: number; width?: number; x?: number; y?: number };
                    color?: string;
                    fontFamily?: string;
                    fontSize?: number;
                    fontWeight?: "bold" | "normal";
                    id?: string;
                    label?: string;
                    position?: "normal" | "superscript" | "subscript";
                }
                | undefined
            )[];
            id?: string;
            modificationDate?: number;
            point?: { x?: number; y?: number };
            rotation?: { center?: { x?: number; y?: number }; degree?: number };
            snapPoints?: ({ x?: number; y?: number } | undefined)[];
            style?: {
                color?: string;
                fill?: string;
                opacity?: number;
                width?: number;
                [key: string]: string | number | undefined;
            };
            type?: Math;
            vertices?: ({ x?: number; y?: number } | undefined)[];
        };
        updateChildrenFont(
            math: TMath,
            __namedParameters: {
                fontFamily?: string;
                fontSize?: number;
                fontWeight?: "bold" | "normal";
            },
        ): void;
        updateChildrenStyle(math: TMath): void;
        updateDerivedFields(math: TMath): void;
    } = ...

    Type Declaration

    • create: function
      • Parameters

        • elements: TMathElement[]
        • point: TPoint
        • boundsBox: TBox
        • Optionalstyle: {
              color?: string;
              fill?: string;
              opacity?: number;
              width?: number;
              [key: string]: string | number | undefined;
          }

        Returns TMath

    • createFromPartial: function
      • Parameters

        • partial: {
              bounds?: {
                  angle?: number;
                  center?: { x?: number; y?: number };
                  height?: number;
                  width?: number;
              };
              creationTime?: number;
              decorators?: (
                  | {
                      baseline?: number;
                      bounds?: {
                          angle?: number;
                          center?: { x?: (...)
                          | (...); y?: (...) | (...) };
                          height?: number;
                          width?: number;
                      };
                      creationTime?: number;
                      edges?: ({ p1?: (...) | (...); p2?: (...) | (...) } | undefined)[];
                      hasBounds?: boolean;
                      id?: string;
                      kind?: DecoratorKind;
                      modificationDate?: number;
                      snapPoints?: ({ x?: (...) | (...); y?: (...) | (...) } | undefined)[];
                      style?: {
                          color?: string;
                          fill?: string;
                          opacity?: number;
                          width?: number;
                          [key: string]: string | number | undefined;
                      };
                      targetIds?: (string | undefined)[];
                      type?: Decorator;
                      vertices?: ({ x?: (...) | (...); y?: (...) | (...) } | undefined)[];
                      xHeight?: number;
                  }
                  | undefined
              )[];
              edges?: (
                  | { p1?: { x?: number; y?: number }; p2?: { x?: number; y?: number } }
                  | undefined
              )[];
              elements?: (
                  | {
                      bounds?: { height?: number; width?: number; x?: number; y?: number };
                      color?: string;
                      fontFamily?: string;
                      fontSize?: number;
                      fontWeight?: "bold" | "normal";
                      id?: string;
                      label?: string;
                      position?: "normal" | "superscript" | "subscript";
                  }
                  | undefined
              )[];
              id?: string;
              modificationDate?: number;
              point?: { x?: number; y?: number };
              rotation?: { center?: { x?: number; y?: number }; degree?: number };
              snapPoints?: ({ x?: number; y?: number } | undefined)[];
              style?: {
                  color?: string;
                  fill?: string;
                  opacity?: number;
                  width?: number;
                  [key: string]: string | number | undefined;
              };
              type?: Math;
              vertices?: ({ x?: number; y?: number } | undefined)[];
          }

        Returns TMath

    • getChildrenOverlaps: function
    • getLabel: function
      • Parameters

        Returns string

    • overlaps: function
      • Parameters

        Returns boolean

    • toJSON: function
      • Parameters

        Returns {
            bounds?: {
                angle?: number;
                center?: { x?: number; y?: number };
                height?: number;
                width?: number;
            };
            creationTime?: number;
            decorators?: (
                | {
                    baseline?: number;
                    bounds?: {
                        angle?: number;
                        center?: { x?: (...)
                        | (...); y?: (...) | (...) };
                        height?: number;
                        width?: number;
                    };
                    creationTime?: number;
                    edges?: ({ p1?: (...) | (...); p2?: (...) | (...) } | undefined)[];
                    hasBounds?: boolean;
                    id?: string;
                    kind?: DecoratorKind;
                    modificationDate?: number;
                    snapPoints?: ({ x?: (...) | (...); y?: (...) | (...) } | undefined)[];
                    style?: {
                        color?: string;
                        fill?: string;
                        opacity?: number;
                        width?: number;
                        [key: string]: string | number | undefined;
                    };
                    targetIds?: (string | undefined)[];
                    type?: Decorator;
                    vertices?: ({ x?: (...) | (...); y?: (...) | (...) } | undefined)[];
                    xHeight?: number;
                }
                | undefined
            )[];
            edges?: (
                | { p1?: { x?: number; y?: number }; p2?: { x?: number; y?: number } }
                | undefined
            )[];
            elements?: (
                | {
                    bounds?: { height?: number; width?: number; x?: number; y?: number };
                    color?: string;
                    fontFamily?: string;
                    fontSize?: number;
                    fontWeight?: "bold" | "normal";
                    id?: string;
                    label?: string;
                    position?: "normal" | "superscript" | "subscript";
                }
                | undefined
            )[];
            id?: string;
            modificationDate?: number;
            point?: { x?: number; y?: number };
            rotation?: { center?: { x?: number; y?: number }; degree?: number };
            snapPoints?: ({ x?: number; y?: number } | undefined)[];
            style?: {
                color?: string;
                fill?: string;
                opacity?: number;
                width?: number;
                [key: string]: string | number | undefined;
            };
            type?: Math;
            vertices?: ({ x?: number; y?: number } | undefined)[];
        }

    • updateChildrenFont: function
      • Parameters

        • math: TMath
        • __namedParameters: { fontFamily?: string; fontSize?: number; fontWeight?: "bold" | "normal" }

        Returns void

    • updateChildrenStyle: function
      • Parameters

        Returns void

    • updateDerivedFields: function
      • Parameters

        Returns void