compression

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

d2 uses compression for compressing large static assets when its built into WASM for d2.js

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecompressBrotli

func DecompressBrotli(compressed []byte) (string, error)

func UnzipEmbeddedSVGImages

func UnzipEmbeddedSVGImages(svg []byte) []byte

UnzipEmbeddedSVGImages normalizes compressed SVG data URLs emitted by the image bundler so visual tests can decode and compare the embedded images.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL