Skip to content

HighlightOutline

Unofficial

Outline representing a PDF text highlight annotation.

Import:

import type { HighlightOutline } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export class HighlightOutline extends Outline

Extends: Outline

Properties

PropertyTypeDescription
lastPointunknownThe last point of the highlight used for directional calculations.
PRECISIONnumberNumber of decimal places used when rounding SVG coordinates.
(Inherited from Outline)

Methods

MethodReturnsDescription
_normalizePagePoint(x, y, rotation)unknown[]Normalize a point relative to the page with the given rotation.
(Inherited from Outline)
_normalizePoint(x, y, parentWidth, parentHeight, rotation)number[]Normalize a point relative to a parent element with the given dimensions and rotation.
(Inherited from Outline)
_rescale(src, tx, ty, sx, sy, dest)unknownRescale coordinates by translation and scale factors.
(Inherited from Outline)
_rescaleAndSwap(src, tx, ty, sx, sy, dest)unknownRescale and swap coordinates by translation and scale factors.
(Inherited from Outline)
_translate(src, tx, ty, dest)unknownTranslate coordinates by the given offsets.
(Inherited from Outline)
createBezierPoints(x1, y1, x2, y2, x3, y3)number[]Create cubic bezier control points between two endpoints.
(Inherited from Outline)
serialize(bbox, rotation)Array<Array<number>>Serialize the outlines into the PDF page coordinate system.
svgRound(x)numberRound a number to the configured SVG precision.
(Inherited from Outline)
toSVGPath()stringConverts the outline to an SVG path.
(Inherited from Outline)

Links to this page: