Skip to content

Mark type definitions are missing public (?) API #2453

Description

@mwaibel-go

According to https://observablehq.com/@observablehq/read-channels-initialized-by-a-plot-mark we can access the plotted data as transformed by Plot. (I hope this API hasn’t become internal since.)

The initialize function, however, is missing from the type definitions:

plot/src/mark.d.ts

Lines 483 to 492 in 356f579

/** The abstract base class for Mark implementations. */
export class Mark {
constructor(data?: Data, channels?: Record<string, Channel>, options?: MarkOptions, defaults?: MarkOptions);
/**
* Renders a new plot, prepending this mark as the first element of **marks**
* of the specified *options*, and returns the corresponding SVG element, or
* an HTML figure element if a caption or legend is requested.
*/
plot: typeof plot;
}

I also couldn’t find this in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions