+
+
+
+ {
+ const selectedFile = event.target.files[0];
+ if (selectedFile) {
+ // newImg.onload = function () {
+ // //DEBUG WORKHEREFIRST: this is not getting triggered when the modal is closed.
+ // cnv_background = newImg;
+ // /*DEBUG*/ console.log('newImg result = ', newImg);
+ // };
+ /*DEBUG*/ console.log('Open Crop Modal');
+ let selectedSrc = URL.createObjectURL(selectedFile);
+ modal.open(MODAL_CROP, { selectedSrc, applyCrop, cnv }); // must not be actually binding the modal-internal references to the {} params being passed in, because $: applyCrop(newImg); is not seeing any change to newImg...
+ }
+ }}
+ />
+
+ {#each config.backgroundImages as imgObj}
+

{
+ voi_imgSrc = base + '/backgrounds/' + imgObj.filename;
+ }}
+ />
+ {/each}
+