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

refactor(rename-layers-plugin): adapt to type refactor

This commit is contained in:
alonso.torres 2024-09-04 09:14:58 +02:00 committed by Alonso Torres
parent 0d4a159908
commit 23f7dd8c6d
2 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@ import type {
} from '../app/model';
import { filter, fromEvent, map, merge, take } from 'rxjs';
import { FormsModule } from '@angular/forms';
import { PenpotShape } from '@penpot/plugin-types';
import { Shape } from '@penpot/plugin-types';
@Component({
standalone: true,
@ -138,7 +138,7 @@ export class AppComponent {
}, 750);
}
public resultAddText(shape: PenpotShape) {
public resultAddText(shape: Shape) {
return this.addText.replace('[Original layer name]', shape.name);
}

View file

@ -1,4 +1,4 @@
import { PenpotShape } from '@penpot/plugin-types';
import { Shape } from '@penpot/plugin-types';
export interface ReadyPluginEvent {
type: 'ready';
@ -7,14 +7,14 @@ export interface InitPluginEvent {
type: 'init';
content: {
theme: string;
selection: PenpotShape[];
selection: Shape[];
};
}
export interface SelectionPluginEvent {
type: 'selection';
content: {
selection: PenpotShape[];
selection: Shape[];
};
}
export interface ThemePluginEvent {