Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

LexOpt

import type { LexOpt } from "https://raw.githubusercontent.com/ycw/svg-path/main/src/mod.ts";

Lexer options.

interface LexOpt {
allowBeginWithComma?: boolean;
allowCmdFollowedByComma?: boolean;
allowCmdFollowsComma?: boolean;
allowEndWithComma?: boolean;
allowNotBeginWithMoveTo?: boolean;
allowRadiusIsNegative?: boolean;
allowTrailingDot?: boolean;
}

§Properties

§
allowBeginWithComma?: boolean
[src]

Allow path data begins with comma. ,M 0 0 z

§
allowCmdFollowedByComma?: boolean
[src]

Allow command letter followed by comma, ex. M, 0 0 z

§
allowCmdFollowsComma?: boolean
[src]

Allow command letter follows comma, ex. M 0 0, z

§
allowEndWithComma?: boolean
[src]

Allow path data ends with comma. ex. M 0 0 z,

§
allowNotBeginWithMoveTo?: boolean
[src]

Allow path data not begins with command m / M.

§
allowRadiusIsNegative?: boolean
[src]

Allow arc command's rx and ry to be negative.

§
allowTrailingDot?: boolean
[src]

Allow numbers having trailing dot, ex. M 0. 0. z