Files
2026-07-13 13:13:17 +08:00

29 lines
762 B
C#

using T3.Core.DataTypes.DataSet;
using T3.Core.Operator.Slots;
namespace T3.Editor.Gui.OutputUi;
internal sealed class DataSetOutputUi : OutputUi<DataSet>
{
public override IOutputUi Clone()
{
return new DataSetOutputUi()
{
OutputDefinition = OutputDefinition,
PosOnCanvas = PosOnCanvas,
Size = Size
};
}
protected override void DrawTypedValue(ISlot slot, string viewId)
{
if (slot is not Slot<DataSet> dataSetSlot)
return;
//DrawDataSet(dataSetSlot.Value);
_canvas.Draw(dataSetSlot.Value);
}
private readonly DataSetViewCanvas _canvas = new();
}