inline-style-editor 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2280,7 +2280,7 @@ function create_if_block_6(ctx) {
|
|
|
2280
2280
|
// (409:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
|
|
2281
2281
|
function create_each_block_3(ctx) {
|
|
2282
2282
|
let if_block_anchor;
|
|
2283
|
-
let if_block = (/*type*/ ctx[72] !== 'custom' || /*currentRule*/ ctx[
|
|
2283
|
+
let if_block = (/*type*/ ctx[72] !== 'custom' || /*currentRule*/ ctx[16] === 'inline' && /*type*/ ctx[72] === 'custom' && /*hasDisplayedCustom*/ ctx[15]) && create_if_block_6(ctx);
|
|
2284
2284
|
|
|
2285
2285
|
return {
|
|
2286
2286
|
c() {
|
|
@@ -2292,7 +2292,7 @@ function create_each_block_3(ctx) {
|
|
|
2292
2292
|
insert(target, if_block_anchor, anchor);
|
|
2293
2293
|
},
|
|
2294
2294
|
p(ctx, dirty) {
|
|
2295
|
-
if (/*type*/ ctx[72] !== 'custom' || /*currentRule*/ ctx[
|
|
2295
|
+
if (/*type*/ ctx[72] !== 'custom' || /*currentRule*/ ctx[16] === 'inline' && /*type*/ ctx[72] === 'custom' && /*hasDisplayedCustom*/ ctx[15]) {
|
|
2296
2296
|
if (if_block) {
|
|
2297
2297
|
if_block.p(ctx, dirty);
|
|
2298
2298
|
} else {
|
|
@@ -2317,7 +2317,7 @@ function create_if_block(ctx) {
|
|
|
2317
2317
|
let div;
|
|
2318
2318
|
let t;
|
|
2319
2319
|
let current;
|
|
2320
|
-
let each_value = Object.entries(/*propsByType*/ ctx[
|
|
2320
|
+
let each_value = Object.entries(/*propsByType*/ ctx[12]);
|
|
2321
2321
|
let each_blocks = [];
|
|
2322
2322
|
|
|
2323
2323
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -2328,7 +2328,7 @@ function create_if_block(ctx) {
|
|
|
2328
2328
|
each_blocks[i] = null;
|
|
2329
2329
|
});
|
|
2330
2330
|
|
|
2331
|
-
let if_block = /*currentRule*/ ctx[
|
|
2331
|
+
let if_block = /*currentRule*/ ctx[16] === 'inline' && /*bringableToFront*/ ctx[14][/*selectedElemIndex*/ ctx[4]] !== null && create_if_block_1(ctx);
|
|
2332
2332
|
|
|
2333
2333
|
return {
|
|
2334
2334
|
c() {
|
|
@@ -2354,8 +2354,8 @@ function create_if_block(ctx) {
|
|
|
2354
2354
|
current = true;
|
|
2355
2355
|
},
|
|
2356
2356
|
p(ctx, dirty) {
|
|
2357
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType, updateProp, deleteProp*/
|
|
2358
|
-
each_value = Object.entries(/*propsByType*/ ctx[
|
|
2357
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType, updateProp, deleteProp*/ 1323008) {
|
|
2358
|
+
each_value = Object.entries(/*propsByType*/ ctx[12]);
|
|
2359
2359
|
let i;
|
|
2360
2360
|
|
|
2361
2361
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -2381,7 +2381,7 @@ function create_if_block(ctx) {
|
|
|
2381
2381
|
check_outros();
|
|
2382
2382
|
}
|
|
2383
2383
|
|
|
2384
|
-
if (/*currentRule*/ ctx[
|
|
2384
|
+
if (/*currentRule*/ ctx[16] === 'inline' && /*bringableToFront*/ ctx[14][/*selectedElemIndex*/ ctx[4]] !== null) {
|
|
2385
2385
|
if (if_block) {
|
|
2386
2386
|
if_block.p(ctx, dirty);
|
|
2387
2387
|
} else {
|
|
@@ -2436,7 +2436,7 @@ function create_else_block(ctx) {
|
|
|
2436
2436
|
append(span, t);
|
|
2437
2437
|
},
|
|
2438
2438
|
p(ctx, dirty) {
|
|
2439
|
-
if (dirty[0] & /*propsByType*/
|
|
2439
|
+
if (dirty[0] & /*propsByType*/ 4096 && t_value !== (t_value = /*selectedName*/ ctx[63] + "")) set_data(t, t_value);
|
|
2440
2440
|
},
|
|
2441
2441
|
d(detaching) {
|
|
2442
2442
|
if (detaching) detach(span);
|
|
@@ -2486,7 +2486,7 @@ function create_if_block_5(ctx) {
|
|
|
2486
2486
|
p(new_ctx, dirty) {
|
|
2487
2487
|
ctx = new_ctx;
|
|
2488
2488
|
|
|
2489
|
-
if (dirty[0] & /*propsByType*/
|
|
2489
|
+
if (dirty[0] & /*propsByType*/ 4096) {
|
|
2490
2490
|
each_value_2 = /*choices*/ ctx[62].props;
|
|
2491
2491
|
let i;
|
|
2492
2492
|
|
|
@@ -2541,9 +2541,9 @@ function create_each_block_2(ctx) {
|
|
|
2541
2541
|
append(option, t1);
|
|
2542
2542
|
},
|
|
2543
2543
|
p(ctx, dirty) {
|
|
2544
|
-
if (dirty[0] & /*propsByType*/
|
|
2544
|
+
if (dirty[0] & /*propsByType*/ 4096 && t0_value !== (t0_value = /*propName*/ ctx[69] + "")) set_data(t0, t0_value);
|
|
2545
2545
|
|
|
2546
|
-
if (dirty[0] & /*propsByType*/
|
|
2546
|
+
if (dirty[0] & /*propsByType*/ 4096 && option_selected_value !== (option_selected_value = /*i*/ ctx[71] === /*choices*/ ctx[62].selected)) {
|
|
2547
2547
|
option.selected = option_selected_value;
|
|
2548
2548
|
}
|
|
2549
2549
|
},
|
|
@@ -2564,7 +2564,7 @@ function create_if_block_4(ctx) {
|
|
|
2564
2564
|
|
|
2565
2565
|
colorpicker = new ColorPicker$1({
|
|
2566
2566
|
props: {
|
|
2567
|
-
value: /*allCurrentPropDefs*/ ctx[
|
|
2567
|
+
value: /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value,
|
|
2568
2568
|
onChange: func
|
|
2569
2569
|
}
|
|
2570
2570
|
});
|
|
@@ -2580,8 +2580,8 @@ function create_if_block_4(ctx) {
|
|
|
2580
2580
|
p(new_ctx, dirty) {
|
|
2581
2581
|
ctx = new_ctx;
|
|
2582
2582
|
const colorpicker_changes = {};
|
|
2583
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2584
|
-
if (dirty[0] & /*propsByType*/
|
|
2583
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288) colorpicker_changes.value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value;
|
|
2584
|
+
if (dirty[0] & /*propsByType*/ 4096) colorpicker_changes.onChange = func;
|
|
2585
2585
|
colorpicker.$set(colorpicker_changes);
|
|
2586
2586
|
},
|
|
2587
2587
|
i(local) {
|
|
@@ -2604,7 +2604,7 @@ function create_if_block_3(ctx) {
|
|
|
2604
2604
|
let select;
|
|
2605
2605
|
let mounted;
|
|
2606
2606
|
let dispose;
|
|
2607
|
-
let each_value_1 = /*allCurrentPropDefs*/ ctx[
|
|
2607
|
+
let each_value_1 = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].choices();
|
|
2608
2608
|
let each_blocks = [];
|
|
2609
2609
|
|
|
2610
2610
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
@@ -2638,8 +2638,8 @@ function create_if_block_3(ctx) {
|
|
|
2638
2638
|
p(new_ctx, dirty) {
|
|
2639
2639
|
ctx = new_ctx;
|
|
2640
2640
|
|
|
2641
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2642
|
-
each_value_1 = /*allCurrentPropDefs*/ ctx[
|
|
2641
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288) {
|
|
2642
|
+
each_value_1 = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].choices();
|
|
2643
2643
|
let i;
|
|
2644
2644
|
|
|
2645
2645
|
for (i = 0; i < each_value_1.length; i += 1) {
|
|
@@ -2681,7 +2681,7 @@ function create_if_block_2(ctx) {
|
|
|
2681
2681
|
let input_value_value;
|
|
2682
2682
|
let t0;
|
|
2683
2683
|
let span;
|
|
2684
|
-
let t1_value = /*allCurrentPropDefs*/ ctx[
|
|
2684
|
+
let t1_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].displayed + "";
|
|
2685
2685
|
let t1;
|
|
2686
2686
|
let mounted;
|
|
2687
2687
|
let dispose;
|
|
@@ -2697,10 +2697,10 @@ function create_if_block_2(ctx) {
|
|
|
2697
2697
|
span = element("span");
|
|
2698
2698
|
t1 = text(t1_value);
|
|
2699
2699
|
attr(input, "type", "range");
|
|
2700
|
-
attr(input, "min", input_min_value = /*allCurrentPropDefs*/ ctx[
|
|
2701
|
-
attr(input, "max", input_max_value = /*allCurrentPropDefs*/ ctx[
|
|
2702
|
-
attr(input, "step", input_step_value = /*allCurrentPropDefs*/ ctx[
|
|
2703
|
-
input.value = input_value_value = /*allCurrentPropDefs*/ ctx[
|
|
2700
|
+
attr(input, "min", input_min_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].min);
|
|
2701
|
+
attr(input, "max", input_max_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].max);
|
|
2702
|
+
attr(input, "step", input_step_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].step || 1);
|
|
2703
|
+
input.value = input_value_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value;
|
|
2704
2704
|
attr(span, "class", "current-value");
|
|
2705
2705
|
},
|
|
2706
2706
|
m(target, anchor) {
|
|
@@ -2717,23 +2717,23 @@ function create_if_block_2(ctx) {
|
|
|
2717
2717
|
p(new_ctx, dirty) {
|
|
2718
2718
|
ctx = new_ctx;
|
|
2719
2719
|
|
|
2720
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2720
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && input_min_value !== (input_min_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].min)) {
|
|
2721
2721
|
attr(input, "min", input_min_value);
|
|
2722
2722
|
}
|
|
2723
2723
|
|
|
2724
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2724
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && input_max_value !== (input_max_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].max)) {
|
|
2725
2725
|
attr(input, "max", input_max_value);
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2728
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && input_step_value !== (input_step_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].step || 1)) {
|
|
2729
2729
|
attr(input, "step", input_step_value);
|
|
2730
2730
|
}
|
|
2731
2731
|
|
|
2732
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2732
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && input_value_value !== (input_value_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value)) {
|
|
2733
2733
|
input.value = input_value_value;
|
|
2734
2734
|
}
|
|
2735
2735
|
|
|
2736
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2736
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && t1_value !== (t1_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].displayed + "")) set_data(t1, t1_value);
|
|
2737
2737
|
},
|
|
2738
2738
|
i: noop$1,
|
|
2739
2739
|
o: noop$1,
|
|
@@ -2759,7 +2759,7 @@ function create_each_block_1(ctx) {
|
|
|
2759
2759
|
c() {
|
|
2760
2760
|
option = element("option");
|
|
2761
2761
|
t = text(t_value);
|
|
2762
|
-
option.selected = option_selected_value = /*choice*/ ctx[66] == /*allCurrentPropDefs*/ ctx[
|
|
2762
|
+
option.selected = option_selected_value = /*choice*/ ctx[66] == /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value || null;
|
|
2763
2763
|
option.__value = option_value_value = " " + /*choice*/ ctx[66] + " ";
|
|
2764
2764
|
option.value = option.__value;
|
|
2765
2765
|
},
|
|
@@ -2768,13 +2768,13 @@ function create_each_block_1(ctx) {
|
|
|
2768
2768
|
append(option, t);
|
|
2769
2769
|
},
|
|
2770
2770
|
p(ctx, dirty) {
|
|
2771
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2771
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && t_value !== (t_value = /*choice*/ ctx[66] + "")) set_data(t, t_value);
|
|
2772
2772
|
|
|
2773
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2773
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && option_selected_value !== (option_selected_value = /*choice*/ ctx[66] == /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value || null)) {
|
|
2774
2774
|
option.selected = option_selected_value;
|
|
2775
2775
|
}
|
|
2776
2776
|
|
|
2777
|
-
if (dirty[0] & /*allCurrentPropDefs, propsByType*/
|
|
2777
|
+
if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && option_value_value !== (option_value_value = " " + /*choice*/ ctx[66] + " ")) {
|
|
2778
2778
|
option.__value = option_value_value;
|
|
2779
2779
|
option.value = option.__value;
|
|
2780
2780
|
}
|
|
@@ -2937,7 +2937,7 @@ function create_if_block_1(ctx) {
|
|
|
2937
2937
|
div = element("div");
|
|
2938
2938
|
div.textContent = "Bring to front";
|
|
2939
2939
|
attr(div, "class", "btn");
|
|
2940
|
-
toggle_class(div, "active", /*bringableToFront*/ ctx[
|
|
2940
|
+
toggle_class(div, "active", /*bringableToFront*/ ctx[14][/*selectedElemIndex*/ ctx[4]] === true);
|
|
2941
2941
|
},
|
|
2942
2942
|
m(target, anchor) {
|
|
2943
2943
|
insert(target, div, anchor);
|
|
@@ -2948,8 +2948,8 @@ function create_if_block_1(ctx) {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
},
|
|
2950
2950
|
p(ctx, dirty) {
|
|
2951
|
-
if (dirty[0] & /*bringableToFront, selectedElemIndex*/
|
|
2952
|
-
toggle_class(div, "active", /*bringableToFront*/ ctx[
|
|
2951
|
+
if (dirty[0] & /*bringableToFront, selectedElemIndex*/ 16400) {
|
|
2952
|
+
toggle_class(div, "active", /*bringableToFront*/ ctx[14][/*selectedElemIndex*/ ctx[4]] === true);
|
|
2953
2953
|
}
|
|
2954
2954
|
},
|
|
2955
2955
|
d(detaching) {
|
|
@@ -3039,7 +3039,7 @@ function create_fragment(ctx) {
|
|
|
3039
3039
|
t10 = space();
|
|
3040
3040
|
if (if_block1) if_block1.c();
|
|
3041
3041
|
set_style(div0, "position", "absolute");
|
|
3042
|
-
attr(path, "d", /*pathWithHoles*/ ctx[
|
|
3042
|
+
attr(path, "d", /*pathWithHoles*/ ctx[10]);
|
|
3043
3043
|
attr(clipPath, "id", "overlay-clip");
|
|
3044
3044
|
attr(clipPath, "clip-rule", "evenodd");
|
|
3045
3045
|
attr(rect, "y", "0");
|
|
@@ -3051,8 +3051,8 @@ function create_fragment(ctx) {
|
|
|
3051
3051
|
attr(svg, "version", "1.1");
|
|
3052
3052
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
3053
3053
|
attr(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
|
|
3054
|
-
attr(svg, "width", svg_width_value = /*pageDimensions*/ ctx[
|
|
3055
|
-
attr(svg, "height", svg_height_value = /*pageDimensions*/ ctx[
|
|
3054
|
+
attr(svg, "width", svg_width_value = /*pageDimensions*/ ctx[11].width);
|
|
3055
|
+
attr(svg, "height", svg_height_value = /*pageDimensions*/ ctx[11].height);
|
|
3056
3056
|
attr(div1, "class", "close-button");
|
|
3057
3057
|
attr(div2, "class", "select-tab");
|
|
3058
3058
|
attr(div3, "class", "select-tab");
|
|
@@ -3105,15 +3105,15 @@ function create_fragment(ctx) {
|
|
|
3105
3105
|
}
|
|
3106
3106
|
},
|
|
3107
3107
|
p(ctx, dirty) {
|
|
3108
|
-
if (!current || dirty[0] & /*pathWithHoles*/
|
|
3109
|
-
attr(path, "d", /*pathWithHoles*/ ctx[
|
|
3108
|
+
if (!current || dirty[0] & /*pathWithHoles*/ 1024) {
|
|
3109
|
+
attr(path, "d", /*pathWithHoles*/ ctx[10]);
|
|
3110
3110
|
}
|
|
3111
3111
|
|
|
3112
|
-
if (!current || dirty[0] & /*pageDimensions*/
|
|
3112
|
+
if (!current || dirty[0] & /*pageDimensions*/ 2048 && svg_width_value !== (svg_width_value = /*pageDimensions*/ ctx[11].width)) {
|
|
3113
3113
|
attr(svg, "width", svg_width_value);
|
|
3114
3114
|
}
|
|
3115
3115
|
|
|
3116
|
-
if (!current || dirty[0] & /*pageDimensions*/
|
|
3116
|
+
if (!current || dirty[0] & /*pageDimensions*/ 2048 && svg_height_value !== (svg_height_value = /*pageDimensions*/ ctx[11].height)) {
|
|
3117
3117
|
attr(svg, "height", svg_height_value);
|
|
3118
3118
|
}
|
|
3119
3119
|
|
|
@@ -3153,7 +3153,7 @@ function create_fragment(ctx) {
|
|
|
3153
3153
|
each_blocks_1.length = each_value_4.length;
|
|
3154
3154
|
}
|
|
3155
3155
|
|
|
3156
|
-
if (dirty[0] & /*selectedTypeIndex, allTypes, selectedElemIndex, currentRule, hasDisplayedCustom*/
|
|
3156
|
+
if (dirty[0] & /*selectedTypeIndex, allTypes, selectedElemIndex, currentRule, hasDisplayedCustom*/ 98392) {
|
|
3157
3157
|
each_value_3 = /*allTypes*/ ctx[3][/*selectedElemIndex*/ ctx[4]] || [];
|
|
3158
3158
|
let i;
|
|
3159
3159
|
|
|
@@ -3393,8 +3393,6 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3393
3393
|
let allCurrentPropDefs = {}; // propName => selectorDef
|
|
3394
3394
|
let bringableToFront = []; // null = not bringable, true = bringable, false = was bringed
|
|
3395
3395
|
let hasDisplayedCustom = false;
|
|
3396
|
-
|
|
3397
|
-
// $: curType = allTypes[selectedElemIndex]?.[selectedTypeIndex];
|
|
3398
3396
|
let curType;
|
|
3399
3397
|
|
|
3400
3398
|
onMount(() => {
|
|
@@ -3450,7 +3448,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3450
3448
|
}
|
|
3451
3449
|
});
|
|
3452
3450
|
|
|
3453
|
-
$$invalidate(
|
|
3451
|
+
$$invalidate(12, propsByType = Object.entries(_allCurrentPropDefs).reduce(
|
|
3454
3452
|
(byType, [propName, selectorDef]) => {
|
|
3455
3453
|
const selectorType = selectorDef.type;
|
|
3456
3454
|
if (!(selectorType in byType)) byType[selectorType] = { selected: 0, props: [propName] }; else byType[selectorType].props.push(propName);
|
|
@@ -3459,7 +3457,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3459
3457
|
{}
|
|
3460
3458
|
));
|
|
3461
3459
|
|
|
3462
|
-
$$invalidate(
|
|
3460
|
+
$$invalidate(13, allCurrentPropDefs = _allCurrentPropDefs);
|
|
3463
3461
|
updateHelpers();
|
|
3464
3462
|
}
|
|
3465
3463
|
|
|
@@ -3547,17 +3545,17 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3547
3545
|
$$invalidate(4, selectedElemIndex = 0);
|
|
3548
3546
|
$$invalidate(5, selectedRuleIndex = 0);
|
|
3549
3547
|
$$invalidate(6, selectedTypeIndex = 0);
|
|
3550
|
-
$$invalidate(
|
|
3548
|
+
$$invalidate(14, bringableToFront = []);
|
|
3551
3549
|
$$invalidate(3, allTypes = []);
|
|
3552
3550
|
$$invalidate(2, allRules = []);
|
|
3553
3551
|
$$invalidate(1, targetsToSearch = [el, ...getAdditionalElems(el)]);
|
|
3554
3552
|
$$invalidate(3, allTypes = getEditableTypes(targetsToSearch));
|
|
3555
|
-
$$invalidate(
|
|
3553
|
+
$$invalidate(15, hasDisplayedCustom = false);
|
|
3556
3554
|
$$invalidate(2, allRules = getMatchedCSSRules(targetsToSearch));
|
|
3557
3555
|
|
|
3558
3556
|
for (let def of Object.values(customProps)) {
|
|
3559
3557
|
if (def.getter(el) !== null) {
|
|
3560
|
-
$$invalidate(
|
|
3558
|
+
$$invalidate(15, hasDisplayedCustom = true);
|
|
3561
3559
|
break;
|
|
3562
3560
|
}
|
|
3563
3561
|
}
|
|
@@ -3573,9 +3571,9 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3573
3571
|
}
|
|
3574
3572
|
|
|
3575
3573
|
function close() {
|
|
3576
|
-
$$invalidate(
|
|
3577
|
-
$$invalidate(
|
|
3578
|
-
$$invalidate(
|
|
3574
|
+
$$invalidate(8, self.style.display = "none", self);
|
|
3575
|
+
$$invalidate(9, helperElemWrapper.style.display = "none", helperElemWrapper);
|
|
3576
|
+
$$invalidate(10, pathWithHoles = '');
|
|
3579
3577
|
}
|
|
3580
3578
|
|
|
3581
3579
|
function isOpened() {
|
|
@@ -3595,10 +3593,11 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3595
3593
|
? pageDimensions.height - 450
|
|
3596
3594
|
: y + 10;
|
|
3597
3595
|
|
|
3598
|
-
$$invalidate(
|
|
3599
|
-
$$invalidate(
|
|
3600
|
-
$$invalidate(
|
|
3601
|
-
$$invalidate(
|
|
3596
|
+
$$invalidate(8, self.style.left = x + "px", self);
|
|
3597
|
+
$$invalidate(8, self.style.top = y + "px", self);
|
|
3598
|
+
$$invalidate(9, helperElemWrapper.style.display = "block", helperElemWrapper);
|
|
3599
|
+
$$invalidate(8, self.style.display = "block", self);
|
|
3600
|
+
updateHelpers();
|
|
3602
3601
|
}
|
|
3603
3602
|
|
|
3604
3603
|
async function updateHelpers() {
|
|
@@ -3612,7 +3611,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3612
3611
|
}
|
|
3613
3612
|
|
|
3614
3613
|
const boundingBoxes = matching.map(el => getBoundingBoxInfos(el, 10));
|
|
3615
|
-
$$invalidate(
|
|
3614
|
+
$$invalidate(10, pathWithHoles = computeContours(boundingBoxes, pageDimensions));
|
|
3616
3615
|
}
|
|
3617
3616
|
|
|
3618
3617
|
function _updateProp(propName, val, suffix) {
|
|
@@ -3627,8 +3626,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3627
3626
|
}
|
|
3628
3627
|
} else currentRule.style.setProperty(propName, finalValue);
|
|
3629
3628
|
|
|
3630
|
-
$$invalidate(
|
|
3631
|
-
$$invalidate(
|
|
3629
|
+
$$invalidate(13, allCurrentPropDefs[propName].value = val, allCurrentPropDefs);
|
|
3630
|
+
$$invalidate(13, allCurrentPropDefs[propName].displayed = finalValue, allCurrentPropDefs);
|
|
3632
3631
|
onStyleChanged(currentElement, currentRule, propName, finalValue);
|
|
3633
3632
|
updateHelpers();
|
|
3634
3633
|
}
|
|
@@ -3642,7 +3641,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3642
3641
|
const marginTop = parseInt(bodyStyle.marginTop);
|
|
3643
3642
|
const marginBottom = parseInt(bodyStyle.marginBottom);
|
|
3644
3643
|
|
|
3645
|
-
$$invalidate(
|
|
3644
|
+
$$invalidate(11, pageDimensions = {
|
|
3646
3645
|
width: document.body.offsetWidth + marginLeft + marginRight,
|
|
3647
3646
|
height: document.body.offsetHeight + marginTop + marginBottom
|
|
3648
3647
|
});
|
|
@@ -3660,7 +3659,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3660
3659
|
}
|
|
3661
3660
|
|
|
3662
3661
|
function bringToFront() {
|
|
3663
|
-
$$invalidate(
|
|
3662
|
+
$$invalidate(14, bringableToFront[selectedElemIndex] = false, bringableToFront);
|
|
3664
3663
|
currentElement.parentNode.appendChild(currentElement);
|
|
3665
3664
|
}
|
|
3666
3665
|
|
|
@@ -3687,14 +3686,14 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3687
3686
|
function div0_binding($$value) {
|
|
3688
3687
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
3689
3688
|
positionAnchor = $$value;
|
|
3690
|
-
$$invalidate(
|
|
3689
|
+
$$invalidate(7, positionAnchor);
|
|
3691
3690
|
});
|
|
3692
3691
|
}
|
|
3693
3692
|
|
|
3694
3693
|
function svg_binding($$value) {
|
|
3695
3694
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
3696
3695
|
helperElemWrapper = $$value;
|
|
3697
|
-
$$invalidate(
|
|
3696
|
+
$$invalidate(9, helperElemWrapper);
|
|
3698
3697
|
});
|
|
3699
3698
|
}
|
|
3700
3699
|
|
|
@@ -3712,7 +3711,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3712
3711
|
};
|
|
3713
3712
|
|
|
3714
3713
|
const change_handler = async (choices, each_value, each_index, e) => {
|
|
3715
|
-
$$invalidate(
|
|
3714
|
+
$$invalidate(12, each_value[each_index][1].selected = e.target.value, propsByType);
|
|
3716
3715
|
await tick();
|
|
3717
3716
|
};
|
|
3718
3717
|
|
|
@@ -3724,7 +3723,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3724
3723
|
function div4_binding($$value) {
|
|
3725
3724
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
3726
3725
|
self = $$value;
|
|
3727
|
-
$$invalidate(
|
|
3726
|
+
$$invalidate(8, self);
|
|
3728
3727
|
});
|
|
3729
3728
|
}
|
|
3730
3729
|
|
|
@@ -3749,7 +3748,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3749
3748
|
}
|
|
3750
3749
|
|
|
3751
3750
|
if ($$self.$$.dirty[0] & /*allRules, selectedElemIndex, selectedRuleIndex*/ 52) {
|
|
3752
|
-
$$invalidate(
|
|
3751
|
+
$$invalidate(16, currentRule = allRules[selectedElemIndex]?.[selectedRuleIndex]);
|
|
3753
3752
|
}
|
|
3754
3753
|
|
|
3755
3754
|
if ($$self.$$.dirty[0] & /*allTypes, selectedElemIndex, selectedTypeIndex, curType*/ 536871000) {
|
|
@@ -3760,9 +3759,9 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3760
3759
|
}
|
|
3761
3760
|
}
|
|
3762
3761
|
|
|
3763
|
-
if ($$self.$$.dirty[0] & /*curType,
|
|
3762
|
+
if ($$self.$$.dirty[0] & /*curType, selectedRuleIndex, selectedElemIndex*/ 536870960) {
|
|
3764
3763
|
{
|
|
3765
|
-
if (curType
|
|
3764
|
+
if (curType || selectedRuleIndex || selectedElemIndex) {
|
|
3766
3765
|
initAndGroup();
|
|
3767
3766
|
}
|
|
3768
3767
|
}
|
|
@@ -3777,7 +3776,6 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3777
3776
|
selectedElemIndex,
|
|
3778
3777
|
selectedRuleIndex,
|
|
3779
3778
|
selectedTypeIndex,
|
|
3780
|
-
currentRule,
|
|
3781
3779
|
positionAnchor,
|
|
3782
3780
|
self,
|
|
3783
3781
|
helperElemWrapper,
|
|
@@ -3787,6 +3785,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3787
3785
|
allCurrentPropDefs,
|
|
3788
3786
|
bringableToFront,
|
|
3789
3787
|
hasDisplayedCustom,
|
|
3788
|
+
currentRule,
|
|
3790
3789
|
overlayClicked,
|
|
3791
3790
|
updateProp,
|
|
3792
3791
|
bringToFront,
|