mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
saving with title and buttons and forcing
This commit is contained in:
parent
fc1bac528a
commit
1ecc2d2a92
8 changed files with 98 additions and 21 deletions
|
@ -195,10 +195,12 @@ export class Editor {
|
|||
|
||||
startEditing = () => {
|
||||
this.poly.poly.enableEdit();
|
||||
this.stickers.startEditing();
|
||||
};
|
||||
|
||||
stopEditing = () => {
|
||||
this.poly.poly.disableEdit();
|
||||
this.stickers.stopEditing();
|
||||
};
|
||||
|
||||
dumpData = () => ({
|
||||
|
|
|
@ -129,9 +129,13 @@ export class Sticker {
|
|||
angle: this.angle,
|
||||
latlng: this.latlng,
|
||||
sticker: this.sticker,
|
||||
})
|
||||
|
||||
stopEditing = () => ({
|
||||
|
||||
});
|
||||
|
||||
stopEditing = () => {
|
||||
this.element.className = 'sticker-container inactive';
|
||||
};
|
||||
|
||||
startEditing = () => {
|
||||
this.element.className = 'sticker-container';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -53,4 +53,12 @@ export class Stickers {
|
|||
};
|
||||
|
||||
dumpData = () => this.stickers.map(sticker => sticker.dumpData());
|
||||
|
||||
startEditing = () => {
|
||||
this.stickers.map(sticker => sticker.startEditing());
|
||||
}
|
||||
|
||||
stopEditing = () => {
|
||||
this.stickers.map(sticker => sticker.stopEditing());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue