Skip to content

Commit

Permalink
release 1.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Oct 1, 2023
1 parent 59118b4 commit 4370afa
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 234 deletions.
174 changes: 97 additions & 77 deletions dist/bigger-picture.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -698,57 +698,36 @@ const defaultTweenOptions = (duration) => ({

/* src/components/loading.svelte generated by Svelte v3.47.0 */

function create_if_block$2(ctx) {
function create_if_block_1$2(ctx) {
let div;
let div_intro;
let span0;
let span1;
let div_outro;
let current;
let if_block = !/*$closing*/ ctx[2] && create_if_block_1$2();

return {
c() {
div = element("div");
if (if_block) if_block.c();
span0 = element("span");
span1 = element("span");
attr(span0, "class", "bp-bar");
attr(span1, "class", "bp-o");
attr(div, "class", "bp-load");
set_style(div, "background-image", "url(" + /*thumb*/ ctx[0] + ")");
attr(div, "style", /*style*/ ctx[2]);
},
m(target, anchor) {
insert(target, div, anchor);
if (if_block) if_block.m(div, null);
append(div, span0);
append(div, span1);
current = true;
},
p(new_ctx, dirty) {
ctx = new_ctx;

if (!/*$closing*/ ctx[2]) {
if (if_block) ; else {
if_block = create_if_block_1$2();
if_block.c();
if_block.m(div, null);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}

if (!current || dirty & /*thumb*/ 1) {
set_style(div, "background-image", "url(" + /*thumb*/ ctx[0] + ")");
}
},
p: noop,
i(local) {
if (current) return;

add_render_callback(() => {
if (div_outro) div_outro.end(1);
div_intro = create_in_transition(div, fly, { duration: /*loaded*/ ctx[1] ? 400 : 0 });
div_intro.start();
});

if (div_outro) div_outro.end(1);
current = true;
},
o(local) {
if (div_intro) div_intro.invalidate();

if (local) {
div_outro = create_out_transition(div, fly, { duration: 480 });
}
Expand All @@ -757,103 +736,137 @@ function create_if_block$2(ctx) {
},
d(detaching) {
if (detaching) detach(div);
if (if_block) if_block.d();
if (detaching && div_outro) div_outro.end();
}
};
}

// (12:2) {#if !$closing}
function create_if_block_1$2(ctx) {
let span0;
let span1;
// (9:140) {#if $closing}
function create_if_block$2(ctx) {
let div;
let div_intro;

return {
c() {
span0 = element("span");
span1 = element("span");
attr(span0, "class", "bp-bar");
attr(span1, "class", "bp-o");
div = element("div");
attr(div, "class", "bp-load");
attr(div, "style", /*style*/ ctx[2]);
},
m(target, anchor) {
insert(target, span0, anchor);
insert(target, span1, anchor);
insert(target, div, anchor);
},
p: noop,
i(local) {
if (!div_intro) {
add_render_callback(() => {
div_intro = create_in_transition(div, fly, { duration: 480 });
div_intro.start();
});
}
},
o: noop,
d(detaching) {
if (detaching) detach(span0);
if (detaching) detach(span1);
if (detaching) detach(div);
}
};
}

function create_fragment$4(ctx) {
let if_block_anchor;
let if_block = (!/*loaded*/ ctx[1] || /*$closing*/ ctx[2]) && create_if_block$2(ctx);
let if_block0_anchor;
let if_block1_anchor;
let if_block0 = !/*loaded*/ ctx[0] && create_if_block_1$2(ctx);
let if_block1 = /*$closing*/ ctx[1] && create_if_block$2(ctx);

return {
c() {
if (if_block) if_block.c();
if_block_anchor = empty();
if (if_block0) if_block0.c();
if_block0_anchor = empty();
if (if_block1) if_block1.c();
if_block1_anchor = empty();
},
m(target, anchor) {
if (if_block) if_block.m(target, anchor);
insert(target, if_block_anchor, anchor);
if (if_block0) if_block0.m(target, anchor);
insert(target, if_block0_anchor, anchor);
if (if_block1) if_block1.m(target, anchor);
insert(target, if_block1_anchor, anchor);
},
p(ctx, [dirty]) {
if (!/*loaded*/ ctx[1] || /*$closing*/ ctx[2]) {
if (if_block) {
if_block.p(ctx, dirty);
if (!/*loaded*/ ctx[0]) {
if (if_block0) {
if_block0.p(ctx, dirty);

if (dirty & /*loaded, $closing*/ 6) {
transition_in(if_block, 1);
if (dirty & /*loaded*/ 1) {
transition_in(if_block0, 1);
}
} else {
if_block = create_if_block$2(ctx);
if_block.c();
transition_in(if_block, 1);
if_block.m(if_block_anchor.parentNode, if_block_anchor);
if_block0 = create_if_block_1$2(ctx);
if_block0.c();
transition_in(if_block0, 1);
if_block0.m(if_block0_anchor.parentNode, if_block0_anchor);
}
} else if (if_block) {
} else if (if_block0) {
group_outros();

transition_out(if_block, 1, 1, () => {
if_block = null;
transition_out(if_block0, 1, 1, () => {
if_block0 = null;
});

check_outros();
}

if (/*$closing*/ ctx[1]) {
if (if_block1) {
if_block1.p(ctx, dirty);

if (dirty & /*$closing*/ 2) {
transition_in(if_block1, 1);
}
} else {
if_block1 = create_if_block$2(ctx);
if_block1.c();
transition_in(if_block1, 1);
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
}
} else if (if_block1) {
if_block1.d(1);
if_block1 = null;
}
},
i(local) {
transition_in(if_block);
transition_in(if_block0);
transition_in(if_block1);
},
o(local) {
transition_out(if_block);
transition_out(if_block0);
},
d(detaching) {
if (if_block) if_block.d(detaching);
if (detaching) detach(if_block_anchor);
if (if_block0) if_block0.d(detaching);
if (detaching) detach(if_block0_anchor);
if (if_block1) if_block1.d(detaching);
if (detaching) detach(if_block1_anchor);
}
};
}

function instance$4($$self, $$props, $$invalidate) {
let $closing;
component_subscribe($$self, closing, $$value => $$invalidate(2, $closing = $$value));
component_subscribe($$self, closing, $$value => $$invalidate(1, $closing = $$value));
let { thumb } = $$props;
let { loaded } = $$props;
const style = `background-image:url(${thumb})`;

$$self.$$set = $$props => {
if ('thumb' in $$props) $$invalidate(0, thumb = $$props.thumb);
if ('loaded' in $$props) $$invalidate(1, loaded = $$props.loaded);
if ('thumb' in $$props) $$invalidate(3, thumb = $$props.thumb);
if ('loaded' in $$props) $$invalidate(0, loaded = $$props.loaded);
};

return [thumb, loaded, $closing];
return [loaded, $closing, style, thumb];
}

class Loading extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance$4, create_fragment$4, not_equal, { thumb: 0, loaded: 1 });
init(this, options, instance$4, create_fragment$4, not_equal, { thumb: 3, loaded: 0 });
}
}

Expand Down Expand Up @@ -1836,9 +1849,16 @@ function create_if_block(ctx) {
current = true;
},
o(local) {
div0_outro = create_out_transition(div0, fly, { duration: 480 });
if (local) {
div0_outro = create_out_transition(div0, fly, { duration: 480 });
}

transition_out(key_block);
div1_outro = create_out_transition(div1, fly, {});

if (local) {
div1_outro = create_out_transition(div1, fly, {});
}

current = false;
},
d(detaching) {
Expand Down Expand Up @@ -2018,7 +2038,7 @@ function create_if_block_2(ctx) {
};
}

// (308:37) {#key activeItem.i}
// (308:43) {#key activeItem.i}
function create_key_block(ctx) {
let div;
let current_block_type_index;
Expand Down Expand Up @@ -2149,7 +2169,7 @@ function create_key_block(ctx) {
};
}

// (319:509) {#if items.length > 1}
// (319:522) {#if items.length > 1}
function create_if_block_1(ctx) {
let div;
let raw_value = `${/*position*/ ctx[4] + 1} / ${/*items*/ ctx[0].length}` + "";
Expand Down
2 changes: 1 addition & 1 deletion dist/bigger-picture.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bigger-picture.min.mjs

Large diffs are not rendered by default.

Loading

0 comments on commit 4370afa

Please sign in to comment.