mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-06 14:50:21 -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 width = cols * 200 + Math.max(0, cols - 1) * 10 + 20;
|
||||||
const height = rows * 100 + Math.max(0, rows - 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';
|
frame.name = 'Palette';
|
||||||
|
|
||||||
const viewport = penpot.viewport;
|
const viewport = penpot.viewport;
|
||||||
|
@ -67,7 +67,7 @@ function createPalette() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const board = penpot.createFrame();
|
const board = penpot.createBoard();
|
||||||
grid.appendChild(board, row + 1, col + 1);
|
grid.appendChild(board, row + 1, col + 1);
|
||||||
board.fills = [color.asFill()];
|
board.fills = [color.asFill()];
|
||||||
board.strokes = [
|
board.strokes = [
|
||||||
|
|
Loading…
Reference in a new issue