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:
parent
4aed934b37
commit
0d4a159908
1 changed files with 2 additions and 2 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue