Zongzi.Curve.Chunk (zongzi v0.3.0)

Copy Markdown

一条曲线段

Summary

Functions

Create a new struct based on the attribute. :id must be provided explicitly.

Modify the properties of an existing struct (modify id is not allowed).

Types

t()

@type t() :: %Zongzi.Curve.Chunk{
  adapter: module(),
  container: struct(),
  extra: map(),
  id: Zongzi.Util.ID.t(),
  rasterized: term() | nil,
  start_tick: non_neg_integer()
}

Functions

new(attrs)

Create a new struct based on the attribute. :id must be provided explicitly.

update(model, attrs)

Modify the properties of an existing struct (modify id is not allowed).