forked from sveltejs/svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpected.js
67 lines (55 loc) · 1.23 KB
/
expected.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,
element,
init,
insert,
noop,
safe_not_equal,
set_style
} from "svelte/internal";
function create_fragment(ctx) {
var div;
return {
c() {
div = element("div");
set_style(div, "color", ctx.color);
set_style(div, "transform", "translate(" + ctx.x + "px," + ctx.y + "px)");
},
m(target, anchor) {
insert(target, div, anchor);
},
p(changed, ctx) {
if (changed.color) {
set_style(div, "color", ctx.color);
}
if (changed.x || changed.y) {
set_style(div, "transform", "translate(" + ctx.x + "px," + ctx.y + "px)");
}
},
i: noop,
o: noop,
d(detaching) {
if (detaching) {
detach(div);
}
}
};
}
function instance($$self, $$props, $$invalidate) {
let { color, x, y } = $$props;
$$self.$set = $$props => {
if ('color' in $$props) $$invalidate('color', color = $$props.color);
if ('x' in $$props) $$invalidate('x', x = $$props.x);
if ('y' in $$props) $$invalidate('y', y = $$props.y);
};
return { color, x, y };
}
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["color", "x", "y"]);
}
}
export default Component;