LayerRecord
One layer of the sample, as ctx.layers.list() and find() return it.
Generated from Plexora 0.0.55View source
Properties
idstringrequiredStable id of the layer within the sample.
kindstringrequiredHow it is drawn: "image", "labels", "points" or "shapes".
labelstringrequiredThe name shown on its card.
visiblebooleanrequiredWhether it is currently drawn.
opacitynumberrequired0 to 1.
transform?number[]requiredAffine placement in image coordinates, or null for the identity.
modality?stringrequiredWhat the data means (for example "transcripts", "he"), set by whoever created the layer.
source?stringrequiredWhere the layer's data came from.
statusstringrequired"ready", "pending" while it is being prepared, or "failed".
unresolvedstring[]requiredQuestions the importer could not answer for this layer yet.
src?stringrequiredTile source URL, for tiled layers.
width?numberrequiredFull-resolution width in pixels.
height?numberrequiredFull-resolution height in pixels.
maxLevel?numberrequiredDeepest pyramid level.
tileWidth?numberrequiredTile width in pixels.
tileHeight?numberrequiredTile height in pixels.