Function newPolygonElement
newPolygonElement( currentScope: SupportedMeasures, opts: { sides?: number; type: "polygon" } & Omit< Omit<DucGenericElement, "id" | "isDeleted" | "updated" | "type">, | "roundness" | "blending" | "background" | "stroke" | "opacity" | "scope" | "isVisible" | "width" | "height" | "angle" | "seed" | "version" | "versionNonce" | "isPlot" | "regionIds" | "groupIds" | "blockIds" | "instanceId" | "layerId" | "frameId" | "boundElements" | "index" | "link" | "locked" | "description" | "customData", > & Partial< Pick< Omit<DucGenericElement, "id" | "isDeleted" | "updated" | "type">, | "roundness" | "blending" | "background" | "stroke" | "opacity" | "scope" | "isVisible" | "width" | "height" | "angle" | "seed" | "version" | "versionNonce" | "isPlot" | "regionIds" | "groupIds" | "blockIds" | "instanceId" | "layerId" | "frameId" | "boundElements" | "index" | "link" | "locked" | "description" | "customData", >, >,): NonDeleted<DucPolygonElement> Parameters
- currentScope: SupportedMeasures
- opts: { sides?: number; type: "polygon" } & Omit<
Omit<DucGenericElement, "id" | "isDeleted" | "updated" | "type">,
| "roundness"
| "blending"
| "background"
| "stroke"
| "opacity"
| "scope"
| "isVisible"
| "width"
| "height"
| "angle"
| "seed"
| "version"
| "versionNonce"
| "isPlot"
| "regionIds"
| "groupIds"
| "blockIds"
| "instanceId"
| "layerId"
| "frameId"
| "boundElements"
| "index"
| "link"
| "locked"
| "description"
| "customData",
> & Partial<
Pick<
Omit<DucGenericElement, "id" | "isDeleted" | "updated" | "type">,
| "roundness"
| "blending"
| "background"
| "stroke"
| "opacity"
| "scope"
| "isVisible"
| "width"
| "height"
| "angle"
| "seed"
| "version"
| "versionNonce"
| "isPlot"
| "regionIds"
| "groupIds"
| "blockIds"
| "instanceId"
| "layerId"
| "frameId"
| "boundElements"
| "index"
| "link"
| "locked"
| "description"
| "customData",
>,
>