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

    Variable SymbolGeometryConst

    SymbolGeometry: {
        boundsOf(symbol: TBaseSymbol): TOBB;
        edgesOf(symbol: TBaseSymbol): TSegment[];
        lengthOf(symbol: TBaseSymbol): number;
        of: (symbol: TBaseSymbol) => Geometry2d;
        rawOf: (symbol: TBaseSymbol) => Geometry2d;
        snapPointsOf(symbol: TBaseSymbol): TPoint[];
        verticesOf(symbol: TBaseSymbol): TPoint[];
    } = ...

    Type Declaration

    • boundsOf: function
    • edgesOf: function
    • lengthOf: function
      • Parameters

        Returns number

    • of: (symbol: TBaseSymbol) => Geometry2d
    • rawOf: (symbol: TBaseSymbol) => Geometry2d
    • snapPointsOf: function
      • Snap points come from the util, not from the geometry.

        A Geometry2d describes a shape; where that shape offers to snap is a decision about the symbol, not about its outline — a text snaps on its box, never on its glyphs. Every util already answered this, with the same one line six times over, which is exactly what this used to recompute for itself.

        Parameters

        Returns TPoint[]

    • verticesOf: function