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

LexErr

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

Lexer error.

class LexErr extends Error {
constructor(d: string, pos: number);
public col: number;
public line: number;
 
isBeginWithComma(): this is BeginWithCommaErr;
isCmdFollowedByComma(): this is CmdFollowedByCommaErr;
isCmdFollowsComma(): this is CmdFollowsCommaErr;
isConsecutiveCommas(): this is ConsecutiveCommasErr;
isEndWithComma(): this is EndWithCommaErr;
isFlagIsNotZeroOrOne(): this is FlagIsNotZeroOrOneErr;
isNotBeginWithMoveTo(): this is NotBeginWithMoveToErr;
isNumIsNotParam(): this is NumIsNotParamErr;
isRadiusIsNegative(): this is RadiusIsNegativeErr;
isTooFewParams(): this is TooFewParamsErr;
isTrailingDot(): this is TrailingDotErr;
isUnrecognized(): this is UnrecognizedErr;
}

§Extends

§
Error
[src]

§Constructors

§
new LexErr(d: string, pos: number)
[src]

Construct a lexer error.

@param d

The malformed path data source.

@param pos

Source position.

§Properties

§
col: number
[src]

Error column number.

§
line: number
[src]

Error line number.

§Methods

§
isBeginWithComma(): this is BeginWithCommaErr
[src]

Path data begins with comma.

§
isCmdFollowedByComma(): this is CmdFollowedByCommaErr
[src]

Command letter followed by comma.

§
isCmdFollowsComma(): this is CmdFollowsCommaErr
[src]

Command letter follows comma.

§
isConsecutiveCommas(): this is ConsecutiveCommasErr
[src]

Commas in a row.

§
isEndWithComma(): this is EndWithCommaErr
[src]

Path data ends with comma.

§
isFlagIsNotZeroOrOne(): this is FlagIsNotZeroOrOneErr
[src]

Arc command large-arc-flag or sweep-flag is not "0" or "1".

§
isNotBeginWithMoveTo(): this is NotBeginWithMoveToErr
[src]

Path data first command is not m / M.

§
isNumIsNotParam(): this is NumIsNotParamErr
[src]

Number doesn't belong to any command.

§
isRadiusIsNegative(): this is RadiusIsNegativeErr
[src]

Arc command rx (/ ry ) is negative.

§
isTooFewParams(): this is TooFewParamsErr
[src]

Too few command parameters.

§
isTrailingDot(): this is TrailingDotErr
[src]

A number ends with a decimal "dot".

§
isUnrecognized(): this is UnrecognizedErr
[src]

Unregconized content.