|
|
@ -95,6 +95,7 @@ function drawLabel() {
|
|
|
|
|
|
|
|
|
|
|
|
if (width > minimumSizeX && height > minimumSizeY) {
|
|
|
|
if (width > minimumSizeX && height > minimumSizeY) {
|
|
|
|
new Promise(function (resolve, reject) {
|
|
|
|
new Promise(function (resolve, reject) {
|
|
|
|
|
|
|
|
// TODO: show the modal for text input then if insert and value --> resolve, if cancel --> reject
|
|
|
|
insert.addEventListener("click", (e) => {
|
|
|
|
insert.addEventListener("click", (e) => {
|
|
|
|
if (input.value) {
|
|
|
|
if (input.value) {
|
|
|
|
resolve(input.value);
|
|
|
|
resolve(input.value);
|
|
|
|