@mocanvas/editor · constant

commentAnchorValidator

declare const commentAnchorValidator: UnionValidator<"type", {
    shape: ObjectValidator<ObjectValidatorType<{
        readonly type: Validator<"shape">;
        readonly shapeId: Validator<ShapeId>;
        readonly pageId: Validator<PageId>;
        readonly x: Validator<number>;
        readonly y: Validator<number>;
    }>>;
    page: ObjectValidator<ObjectValidatorType<{
        readonly type: Validator<"page">;
        readonly pageId: Validator<PageId>;
        readonly x: Validator<number>;
        readonly y: Validator<number>;
    }>>;
    document: ObjectValidator<ObjectValidatorType<{
        readonly type: Validator<"document">;
    }>>;
}, never>

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.