Skip to main content

Crate wowlab_wasm

Crate wowlab_wasm 

Source
Expand description

Non-engine browser bindings published in the wowlab-common npm package.

ModulesΒ§

analytics πŸ”’
crypto πŸ”’
dto πŸ”’
Per-export DTO wrappers for the wasm boundary; only parcel needs them, since its canonical types stay free of tsify.
markdown πŸ”’
numeric πŸ”’
Explicit conversions at the JavaScript Number DTO boundary.
parcel πŸ”’
Parcel codec WASM bindings; stateless function API where each call takes a ParcelConfigDto plus the input.
parsing πŸ”’
permutations πŸ”’
scaling πŸ”’
sim_config πŸ”’

StructsΒ§

ParcelConfigDto
ParcelDecodeMetaDto
ParcelDecodedDto
ParcelLimitsDto
ResultExportDto
ResultItemDto
WasmAnalyticsError
Analytics failure converted to a named JavaScript error at the export boundary.
WasmAnalyzeResult
WASM-exposed result of analyzing a spell description: dependencies + parse errors.
WasmCryptoError
Node-authentication crypto failure converted at the JavaScript boundary.
WasmMarkdownDoc
WasmMarkdownTable
WasmSimConfigError
Simulation-configuration failure converted to a named JavaScript error at the export boundary.

EnumsΒ§

ExportKindDto
WasmCommonError
Typed error that converts to a JS Error with a name property.
WasmParcelError
WasmParsingError

FunctionsΒ§

wasm_analyze_spell_desc
Analyze a spell description and return its data dependencies.
wasm_build_permutation_space
wasm_build_sentinel_config
Build a TOML sentinel config string from a JS object.
wasm_build_sign_message
wasm_build_sign_message_bytes
wasm_build_sim_config
Build a TOML sim config string from a JS object.
wasm_build_space_for_selection
wasm_compute_chart_overlay
wasm_compute_cost_analysis
wasm_compute_scatter_overlay
wasm_compute_timeline_metrics
wasm_decode_and_derive
Decode ResultViewV1 + TimelineViewV1 and derive AnalyticsView.
wasm_decode_job_result
Decode the JobResult + JobTimeline envelope and return a tagged view.
wasm_decode_loadout
wasm_encode_minimal_loadout
Encode a minimal loadout string for a spec with no talent selections.
wasm_extract_spec_id_from_loadout
wasm_generate_node_keypair
Generate a new node keypair. Returns { privateKey, publicKey }.
wasm_generate_permutation_rows
Generate permutation rows (item IDs per contested slot) for indices 0..limit.
wasm_pan_timeline_by
wasm_parcel_decode
wasm_parcel_decode_result_export
wasm_parcel_default_limits
wasm_parcel_encode
Encode raw payload bytes into a parcel envelope (contentType null uses the codec default).
wasm_parcel_encode_result_export
wasm_parcel_inspect
Render the inspect summary; a malformed envelope yields a string starting with LibParcel inspect: ERR_....
wasm_parcel_result_export_prefix
wasm_parse_implemented_specs
Parse and validate engine getImplementedSpecs() payload.
wasm_parse_job_meta
wasm_parse_simc
wasm_parse_spell_desc
wasm_render_global_string
wasm_render_spell_desc_with_data
Render a spell description against a resolved character bundle into structured fragments.
wasm_resolve_item
wasm_sha256_hex
wasm_sign_message
Sign a message with a base64-encoded private key. Returns signature as base64.
wasm_tokenize_spell_desc
Tokenize a spell description into fragments for debug display.
wasm_tournament_payload
wasm_verify_signature
wasm_zoom_timeline_at
Compute the new viewport after a cursor-anchored zoom step (local_x is pixels from the track’s left edge).