@mocanvas/editor · constant
declare const scribbleValidator: ObjectValidator<ObjectValidatorType<{
readonly id: Validator<string>;
readonly points: ArrayOfValidator<ObjectValidatorType<{
readonly x: Validator<number>;
readonly y: Validator<number>;
readonly z: Validator<number | undefined>;
}>>;
readonly size: Validator<number>;
readonly color: Validator<"black" | "white" | "laser" | "accent" | "selection-stroke" | "selection-fill" | "muted-1">;
readonly opacity: Validator<number>;
readonly state: Validator<"starting" | "paused" | "active" | "stopping">;
/** Milliseconds before the tail starts retracting. `0` means "never". */
readonly delay: Validator<number>;
/** How fast the tail retracts, as a fraction of its length per frame. */
readonly shrink: Validator<number>;
/** Whether the stroke narrows towards its tail. */
readonly taper: Validator<boolean>;
}>>This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.