MCPcopy Create free account
hub / github.com/neplextech/vectorizer / vectorize

Function vectorize

src/vectorizer.rs:38–51  ·  view source on GitHub ↗
(
  source: Buffer,
  config: Option<Either<JsConfig, Preset>>,
  signal: Option<AbortSignal>,
)

Source from the content-addressed store, hash-verified

36/// Vectorize an encoded image buffer asynchronously.
37#[napi(catch_unwind)]
38pub fn vectorize(
39 source: Buffer,
40 config: Option<Either<JsConfig, Preset>>,
41 signal: Option<AbortSignal>,
42) -> AsyncTask<VectorizeTask> {
43 AsyncTask::with_optional_signal(
44 VectorizeTask {
45 data: source,
46 config,
47 args: None,
48 },
49 signal,
50 )
51}
52
53/// Vectorize a raw RGBA pixel buffer asynchronously.
54#[napi(catch_unwind)]

Callers 1

bench.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…