getDisplayValues

See source code

Get the resolved display values for a shape, merging the base values with any overrides.

function getDisplayValues<Shape extends TLShape, DisplayValues extends object>(
  util: {
    editor: Editor;
    options: ShapeOptionsWithDisplayValues<Shape, DisplayValues>;
  },
  shape: Shape,
  colorMode?: "dark" | "light",
): DisplayValues;

Parameters

NameDescription

util

{
  editor: Editor;
  options: ShapeOptionsWithDisplayValues<
    Shape,
    DisplayValues
  >;
};

shape

Shape;

colorMode

"dark" | "light";

Returns

DisplayValues;
Prev
getDefaultCrop
Next
getEmbedInfo