HighlightOutline
Unofficial
Outline representing a PDF text highlight annotation.
Import:
import type { HighlightOutline } from '@obsidian-typings/obsidian-public-latest';Signature:
export class HighlightOutline extends OutlineExtends: Outline
Properties
| Property | Type | Description | |
|---|---|---|---|
| lastPoint | unknown | The last point of the highlight used for directional calculations. | |
| PRECISION | number | Number of decimal places used when rounding SVG coordinates. (Inherited from Outline) |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| _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) | unknown | Rescale coordinates by translation and scale factors. (Inherited from Outline) | |
| _rescaleAndSwap(src, tx, ty, sx, sy, dest) | unknown | Rescale and swap coordinates by translation and scale factors. (Inherited from Outline) | |
| _translate(src, tx, ty, dest) | unknown | Translate 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) | number | Round a number to the configured SVG precision. (Inherited from Outline) | |
| toSVGPath() | string | Converts the outline to an SVG path. (Inherited from Outline) |
Links to this page: