viz.vega

package viz.vega

Members list

Packages

package viz.vega.plots

Type members

Classlikes

case class FileSourceInfo(path: String, contentHash: Int) extends SourceInfo

Tracks a filesystem file for staleness detection.

Tracks a filesystem file for staleness detection.

Value parameters

contentHash

Hash of file content at compile time

path

Absolute path to the source file

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SourceInfo
class Object
trait Matchable
class Any
Show all
enum Framework(val stub: String, val ext: String)

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ResourceSourceInfo(resourcePath: String, contentHash: Int) extends SourceInfo

Tracks a classpath resource for staleness detection.

Tracks a classpath resource for staleness detection.

Value parameters

contentHash

Hash of resource content at compile time

resourcePath

Resource path (e.g., "mySpec.vl.json")

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SourceInfo
class Object
trait Matchable
class Any
Show all
sealed trait SourceInfo

Tracks the source for staleness detection.

Tracks the source for staleness detection.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class VegaSpec[M](val rawSpec: Json, val mod: M, val sourceInfo: Option[SourceInfo])

Vega spec wrapper to generate typed accessors inferred from the JSON structure.

Vega spec wrapper to generate typed accessors inferred from the JSON structure.

When created from a file via VegaPlot.pwd or resource via VegaPlot.fromResource, this class tracks the source and automatically uses fresh content if it has changed since compilation. This ensures the output is always correct, even if the typed accessors are stale.

Value parameters

mod

The typed accessor object for modifications

rawSpec

The JSON spec as parsed at compile time

sourceInfo

Optional source tracking for staleness detection

Attributes

Supertypes
class Object
trait Matchable
class Any