MCPcopy
hub / github.com/figma/plugin-samples / resizeAbsolute

Function resizeAbsolute

resizer/code.ts:65–76  ·  view source on GitHub ↗
(parameters: ParameterValues)

Source from the content-addressed store, hash-verified

63}
64
65function resizeAbsolute(parameters: ParameterValues) {
66 // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
67 const width = parseInt(parameters.width)
68 // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
69 const height = parseInt(parameters.height)
70
71 for (const node of figma.currentPage.selection) {
72 if ('resize' in node) {
73 node.resize(width, height)
74 }
75 }
76}

Callers 1

code.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected