CesiumGS / CesiumGS/cesium

Update lerc version

Open
#11,034 0 comments 0 reactions 0 assignees View on GitHub
category - packaging & tooling dependencies
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

The `lerc` package is still an outstanding direct dependency update and is pinned on 2.x.

The latest versions requires using wasm. It looks like, despite the fact that the wasm file included with the package is built to support multiple ways of loading the module, [the lerc API only exposes one way to load wasm files](https://github.com/Esri/lerc/blob/master/OtherLanguages/js/src/Lerc.ts#L153) and that way does not easily fit within our current worker architecture due to assumptions about the file structure, throwing errors when loading for `createVerticesFromHeightmap`.

Ideally, we'd be able to initialize the wasm module directly as we do with other third part wasm-based libraries.

Contributor guide

Open the contributing guide

Research direction

Start with the lerc API's wasm-loading path in OtherLanguages/js/src/Lerc.ts and compare it with the existing worker architecture and other third-party wasm integrations. The work is done when the current lerc version can initialize wasm directly and createVerticesFromHeightmap loads without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wasm
Domain
web-dev
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.