0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-04 13:50:13 -05:00

refactor(create-palette-plugin): adapt to type refactor

This commit is contained in:
alonso.torres 2024-09-04 09:14:45 +02:00 committed by Alonso Torres
parent 4aed934b37
commit 0d4a159908

View file

@ -20,7 +20,7 @@ function createPalette() {
const width = cols * 200 + Math.max(0, cols - 1) * 10 + 20;
const height = rows * 100 + Math.max(0, rows - 1) * 10 + 20;
const frame = penpot.createFrame();
const frame = penpot.createBoard();
frame.name = 'Palette';
const viewport = penpot.viewport;
@ -67,7 +67,7 @@ function createPalette() {
return;
}
const board = penpot.createFrame();
const board = penpot.createBoard();
grid.appendChild(board, row + 1, col + 1);
board.fills = [color.asFill()];
board.strokes = [