vasille 2.0.0 → 2.0.4
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.
- package/README.md +195 -129
- package/cdn/es2015.js +3234 -0
- package/cdn/es5.js +3678 -0
- package/flow-typed/vasille.js +46 -38
- package/lib/core/core.js +11 -3
- package/lib/node/app.js +1 -0
- package/lib/node/interceptor.js +2 -2
- package/lib/node/node.js +30 -8
- package/lib/node/watch.js +3 -3
- package/lib/views/array-view.js +3 -6
- package/lib/views/base-view.js +4 -4
- package/lib/views/map-view.js +3 -4
- package/lib/views/object-view.js +3 -4
- package/lib/views/set-view.js +3 -4
- package/package.json +13 -7
- package/types/core/core.d.ts +15 -11
- package/types/core/slot.d.ts +4 -4
- package/types/node/app.d.ts +5 -0
- package/types/node/interceptor.d.ts +3 -3
- package/types/node/node.d.ts +4 -1
- package/types/node/watch.d.ts +3 -3
- package/types/views/array-view.d.ts +1 -1
- package/types/views/base-view.d.ts +2 -3
- package/types/views/map-view.d.ts +1 -1
- package/types/views/object-view.d.ts +1 -1
- package/types/views/repeat-node.d.ts +1 -1
- package/types/views/set-view.d.ts +1 -1
- package/img/favicon.svg +0 -254
- package/img/getLocus.svg +0 -18
- package/img/logo.png +0 -0
- package/img/logo.svg +0 -550
- package/img/scores-o-log.png +0 -0
- package/img/scores-o.png +0 -0
- package/img/scores-wo-log.png +0 -0
- package/img/scores-wo.png +0 -0
- package/img/x1-x32.png +0 -0
package/types/node/app.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Executor } from "../core/executor";
|
|
2
2
|
import { INode } from "./node";
|
|
3
3
|
declare type AppOptions = {
|
|
4
|
+
debugUi?: boolean;
|
|
4
5
|
freezeUi?: boolean;
|
|
5
6
|
executor?: Executor;
|
|
6
7
|
};
|
|
@@ -15,6 +16,10 @@ export declare class AppNode extends INode {
|
|
|
15
16
|
* @type {Executor}
|
|
16
17
|
*/
|
|
17
18
|
$run: Executor;
|
|
19
|
+
/**
|
|
20
|
+
* Enables debug comments
|
|
21
|
+
*/
|
|
22
|
+
$debugUi: boolean;
|
|
18
23
|
/**
|
|
19
24
|
* @param options {Object} Application options
|
|
20
25
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment } from "./node";
|
|
2
2
|
import { Destroyable } from "../core/destroyable";
|
|
3
3
|
import { Signal } from "../core/signal";
|
|
4
4
|
import { Slot } from "../core/slot";
|
|
@@ -35,7 +35,7 @@ export declare class Interceptor<t1 = void, t2 = void, t3 = void, t4 = void, t5
|
|
|
35
35
|
* @class InterceptorNode
|
|
36
36
|
* @extends Extension
|
|
37
37
|
*/
|
|
38
|
-
export declare class InterceptorNode<t1 = void, t2 = void, t3 = void, t4 = void, t5 = void, t6 = void, t7 = void, t8 = void, t9 = void> extends
|
|
38
|
+
export declare class InterceptorNode<t1 = void, t2 = void, t3 = void, t4 = void, t5 = void, t6 = void, t7 = void, t8 = void, t9 = void> extends Fragment {
|
|
39
39
|
/**
|
|
40
40
|
* Internal interceptor
|
|
41
41
|
* @type Interceptor
|
|
@@ -45,6 +45,6 @@ export declare class InterceptorNode<t1 = void, t2 = void, t3 = void, t4 = void,
|
|
|
45
45
|
* The default slot of node
|
|
46
46
|
* @type Slot
|
|
47
47
|
*/
|
|
48
|
-
slot: Slot<Interceptor<t1, t2, t3, t4, t5, t6, t7, t8, t9>>;
|
|
48
|
+
slot: Slot<Fragment, Interceptor<t1, t2, t3, t4, t5, t6, t7, t8, t9>>;
|
|
49
49
|
$compose(): void;
|
|
50
50
|
}
|
package/types/node/node.d.ts
CHANGED
|
@@ -127,8 +127,9 @@ export declare class Fragment extends Reactive {
|
|
|
127
127
|
* Defines a custom element
|
|
128
128
|
* @param node {Fragment} vasille element to insert
|
|
129
129
|
* @param callback {function($ : *)}
|
|
130
|
+
* @param callback1 {function($ : *)}
|
|
130
131
|
*/
|
|
131
|
-
$create<T extends Fragment>(node: T, callback?: ($: T) => void): this;
|
|
132
|
+
$create<T extends Fragment>(node: T, callback?: ($: T) => void, callback1?: ($: T) => void): this;
|
|
132
133
|
/**
|
|
133
134
|
* Defines an if node
|
|
134
135
|
* @param cond {IValue} condition
|
|
@@ -636,6 +637,7 @@ export declare class Tag extends INode {
|
|
|
636
637
|
constructor();
|
|
637
638
|
$preinit(app: AppNode, parent: Fragment, tagName?: string): void;
|
|
638
639
|
protected $$findFirstChild(): Node;
|
|
640
|
+
$$insertAdjacent(node: Node): void;
|
|
639
641
|
$$appendNode(node: Node): void;
|
|
640
642
|
/**
|
|
641
643
|
* Mount/Unmount a node
|
|
@@ -665,6 +667,7 @@ export declare class Extension extends INode {
|
|
|
665
667
|
export declare class Component extends Extension {
|
|
666
668
|
constructor();
|
|
667
669
|
$mounted(): void;
|
|
670
|
+
$preinit(app: AppNode, parent: Fragment): void;
|
|
668
671
|
}
|
|
669
672
|
/**
|
|
670
673
|
* Private part of switch node
|
package/types/node/watch.d.ts
CHANGED
|
@@ -6,17 +6,17 @@ import { IValue } from "../core/ivalue";
|
|
|
6
6
|
* @class Watch
|
|
7
7
|
* @extends Fragment
|
|
8
8
|
*/
|
|
9
|
-
export declare class Watch extends Fragment {
|
|
9
|
+
export declare class Watch<T> extends Fragment {
|
|
10
10
|
/**
|
|
11
11
|
* Default slot
|
|
12
12
|
* @type Slot
|
|
13
13
|
*/
|
|
14
|
-
slot: Slot
|
|
14
|
+
slot: Slot<Fragment, T>;
|
|
15
15
|
/**
|
|
16
16
|
* iValue to watch
|
|
17
17
|
* @type IValue
|
|
18
18
|
*/
|
|
19
|
-
model: IValue<
|
|
19
|
+
model: IValue<T>;
|
|
20
20
|
constructor();
|
|
21
21
|
$createWatchers(): void;
|
|
22
22
|
$compose(): void;
|
|
@@ -7,7 +7,7 @@ import { Fragment } from "../node/node";
|
|
|
7
7
|
* @extends BaseView
|
|
8
8
|
*/
|
|
9
9
|
export declare class ArrayView<T> extends BaseView<T, T, ArrayModel<T>> {
|
|
10
|
-
constructor();
|
|
10
|
+
constructor(model: ArrayModel<T>);
|
|
11
11
|
createChild(id: T, item: T, before?: Fragment): any;
|
|
12
12
|
$ready(): void;
|
|
13
13
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RepeatNode, RepeatNodePrivate } from "./repeat-node";
|
|
2
|
-
import { IValue } from "../core/ivalue";
|
|
3
2
|
import { IModel } from "../models/model";
|
|
4
3
|
/**
|
|
5
4
|
* Private part of BaseView
|
|
@@ -29,9 +28,9 @@ export declare class BaseView<K, T, Model extends IModel<K, T>> extends RepeatNo
|
|
|
29
28
|
protected $: BaseViewPrivate<K, T>;
|
|
30
29
|
/**
|
|
31
30
|
* Property which will contain a model
|
|
32
|
-
* @type {
|
|
31
|
+
* @type {IModel}
|
|
33
32
|
*/
|
|
34
|
-
model:
|
|
33
|
+
model: Model;
|
|
35
34
|
constructor($1?: BaseViewPrivate<K, T>);
|
|
36
35
|
/**
|
|
37
36
|
* Handle ready event
|
package/img/favicon.svg
DELETED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<svg
|
|
3
|
-
width="128"
|
|
4
|
-
height="128"
|
|
5
|
-
viewBox="0 0 33.866666 33.866668"
|
|
6
|
-
version="1.1"
|
|
7
|
-
id="svg8"
|
|
8
|
-
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
|
9
|
-
sodipodi:docname="favicon.svg"
|
|
10
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
11
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
12
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
14
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
15
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
16
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
17
|
-
<defs
|
|
18
|
-
id="defs2">
|
|
19
|
-
<meshgradient
|
|
20
|
-
inkscape:collect="always"
|
|
21
|
-
id="meshgradient3565"
|
|
22
|
-
gradientUnits="userSpaceOnUse"
|
|
23
|
-
x="6.3500004"
|
|
24
|
-
y="5.291667"
|
|
25
|
-
gradientTransform="matrix(1.1360104,0,0,0.85216127,-2.3031084,-1.6743098)">
|
|
26
|
-
<meshrow
|
|
27
|
-
id="meshrow7447">
|
|
28
|
-
<meshpatch
|
|
29
|
-
id="meshpatch7449">
|
|
30
|
-
<stop
|
|
31
|
-
path="c 1.37143,0.64823 10.1115,10.0675 10.5833,10.5833"
|
|
32
|
-
style="stop-color:#be1f00;stop-opacity:1"
|
|
33
|
-
id="stop7451" />
|
|
34
|
-
<stop
|
|
35
|
-
path="c -1.19405e-05,10.5833 3.24005e-05,10.5834 3.31685e-05,21.1667"
|
|
36
|
-
style="stop-color:#ff5a8c;stop-opacity:1"
|
|
37
|
-
id="stop7453" />
|
|
38
|
-
<stop
|
|
39
|
-
path="c -0.855487,-0.330918 -9.89978,-9.988 -10.583,-10.5832"
|
|
40
|
-
style="stop-color:#9218c5;stop-opacity:1"
|
|
41
|
-
id="stop7455" />
|
|
42
|
-
<stop
|
|
43
|
-
path="c 0.000311319,-10.5833 8.5239e-05,-10.5833 -0.000333169,-21.1668"
|
|
44
|
-
style="stop-color:#e31818;stop-opacity:1"
|
|
45
|
-
id="stop7457" />
|
|
46
|
-
</meshpatch>
|
|
47
|
-
</meshrow>
|
|
48
|
-
</meshgradient>
|
|
49
|
-
<meshgradient
|
|
50
|
-
inkscape:collect="always"
|
|
51
|
-
id="meshgradient3579"
|
|
52
|
-
gradientUnits="userSpaceOnUse"
|
|
53
|
-
x="16.933334"
|
|
54
|
-
y="15.875"
|
|
55
|
-
gradientTransform="matrix(1.1360104,0,0,0.85216127,-2.3031084,-1.6743098)">
|
|
56
|
-
<meshrow
|
|
57
|
-
id="meshrow8911">
|
|
58
|
-
<meshpatch
|
|
59
|
-
id="meshpatch8913">
|
|
60
|
-
<stop
|
|
61
|
-
path="c 1.23913,-1.1377 7.05587,-10.5834 10.5833,-10.5833"
|
|
62
|
-
style="stop-color:#916fd0;stop-opacity:1"
|
|
63
|
-
id="stop8915" />
|
|
64
|
-
<stop
|
|
65
|
-
path="c 0.000261772,10.5833 7.92909e-05,10.5834 3.26994e-05,21.1666"
|
|
66
|
-
style="stop-color:#0356f9;stop-opacity:1"
|
|
67
|
-
id="stop8917" />
|
|
68
|
-
<stop
|
|
69
|
-
path="c -0.657012,0.635168 -7.05506,10.5835 -10.583,10.5836"
|
|
70
|
-
style="stop-color:#00acba;stop-opacity:1"
|
|
71
|
-
id="stop8919" />
|
|
72
|
-
<stop
|
|
73
|
-
path="c 5.79413e-05,-10.5833 -0.000541904,-10.5835 -0.000332699,-21.1669"
|
|
74
|
-
style="stop-color:#6d02ad;stop-opacity:1"
|
|
75
|
-
id="stop8921" />
|
|
76
|
-
</meshpatch>
|
|
77
|
-
</meshrow>
|
|
78
|
-
</meshgradient>
|
|
79
|
-
<meshgradient
|
|
80
|
-
inkscape:collect="always"
|
|
81
|
-
id="meshgradient8933"
|
|
82
|
-
gradientUnits="userSpaceOnUse"
|
|
83
|
-
x="16.933334"
|
|
84
|
-
y="15.875"
|
|
85
|
-
gradientTransform="matrix(1.4185027,0,0,1.0640687,-7.0866471,-6.3014847)">
|
|
86
|
-
<meshrow
|
|
87
|
-
id="meshrow8945">
|
|
88
|
-
<meshpatch
|
|
89
|
-
id="meshpatch8943">
|
|
90
|
-
<stop
|
|
91
|
-
path="c 1.23913,-1.1377 7.05587,-10.5834 10.5833,-10.5833"
|
|
92
|
-
style="stop-color:#916fd0;stop-opacity:1"
|
|
93
|
-
id="stop8935" />
|
|
94
|
-
<stop
|
|
95
|
-
path="c 0.000261772,10.5833 7.92909e-05,10.5834 3.26994e-05,21.1666"
|
|
96
|
-
style="stop-color:#0356f9;stop-opacity:1"
|
|
97
|
-
id="stop8937" />
|
|
98
|
-
<stop
|
|
99
|
-
path="c -0.657012,0.635168 -7.05506,10.5835 -10.583,10.5836"
|
|
100
|
-
style="stop-color:#00acba;stop-opacity:1"
|
|
101
|
-
id="stop8939" />
|
|
102
|
-
<stop
|
|
103
|
-
path="c 5.79413e-05,-10.5833 -0.000541904,-10.5835 -0.000332699,-21.1669"
|
|
104
|
-
style="stop-color:#6d02ad;stop-opacity:1"
|
|
105
|
-
id="stop8941" />
|
|
106
|
-
</meshpatch>
|
|
107
|
-
</meshrow>
|
|
108
|
-
</meshgradient>
|
|
109
|
-
<meshgradient
|
|
110
|
-
inkscape:collect="always"
|
|
111
|
-
id="meshgradient8949"
|
|
112
|
-
gradientUnits="userSpaceOnUse"
|
|
113
|
-
x="6.3500004"
|
|
114
|
-
y="5.291667"
|
|
115
|
-
gradientTransform="matrix(1.4185029,0,0,1.0640688,-7.0866474,-6.3014848)">
|
|
116
|
-
<meshrow
|
|
117
|
-
id="meshrow8961">
|
|
118
|
-
<meshpatch
|
|
119
|
-
id="meshpatch8959">
|
|
120
|
-
<stop
|
|
121
|
-
path="c 1.37143,0.64823 10.1115,10.0675 10.5833,10.5833"
|
|
122
|
-
style="stop-color:#be1f00;stop-opacity:1"
|
|
123
|
-
id="stop8951" />
|
|
124
|
-
<stop
|
|
125
|
-
path="c -1.19405e-05,10.5833 3.24005e-05,10.5834 3.31685e-05,21.1667"
|
|
126
|
-
style="stop-color:#ff5a8c;stop-opacity:1"
|
|
127
|
-
id="stop8953" />
|
|
128
|
-
<stop
|
|
129
|
-
path="c -0.855487,-0.330918 -9.89978,-9.988 -10.583,-10.5832"
|
|
130
|
-
style="stop-color:#9218c5;stop-opacity:1"
|
|
131
|
-
id="stop8955" />
|
|
132
|
-
<stop
|
|
133
|
-
path="c 0.000311319,-10.5833 8.5239e-05,-10.5833 -0.000333169,-21.1668"
|
|
134
|
-
style="stop-color:#e31818;stop-opacity:1"
|
|
135
|
-
id="stop8957" />
|
|
136
|
-
</meshpatch>
|
|
137
|
-
</meshrow>
|
|
138
|
-
</meshgradient>
|
|
139
|
-
</defs>
|
|
140
|
-
<sodipodi:namedview
|
|
141
|
-
id="base"
|
|
142
|
-
pagecolor="#ffffff"
|
|
143
|
-
bordercolor="#666666"
|
|
144
|
-
borderopacity="1.0"
|
|
145
|
-
inkscape:pageopacity="0"
|
|
146
|
-
inkscape:pageshadow="2"
|
|
147
|
-
inkscape:zoom="2.8284271"
|
|
148
|
-
inkscape:cx="61.871843"
|
|
149
|
-
inkscape:cy="42.77996"
|
|
150
|
-
inkscape:document-units="px"
|
|
151
|
-
inkscape:current-layer="layer1"
|
|
152
|
-
inkscape:document-rotation="0"
|
|
153
|
-
showgrid="false"
|
|
154
|
-
units="px"
|
|
155
|
-
inkscape:window-width="2560"
|
|
156
|
-
inkscape:window-height="1407"
|
|
157
|
-
inkscape:window-x="0"
|
|
158
|
-
inkscape:window-y="1070"
|
|
159
|
-
inkscape:window-maximized="1"
|
|
160
|
-
inkscape:snap-smooth-nodes="true"
|
|
161
|
-
showguides="false"
|
|
162
|
-
inkscape:guide-bbox="true"
|
|
163
|
-
inkscape:snap-global="false"
|
|
164
|
-
inkscape:pagecheckerboard="1">
|
|
165
|
-
<inkscape:grid
|
|
166
|
-
type="axonomgrid"
|
|
167
|
-
id="grid833"
|
|
168
|
-
gridanglex="45"
|
|
169
|
-
gridanglez="45"
|
|
170
|
-
spacingy="2.1166667"
|
|
171
|
-
originx="1.0583333"
|
|
172
|
-
units="px" />
|
|
173
|
-
<sodipodi:guide
|
|
174
|
-
position="0.92604165,12.898438"
|
|
175
|
-
orientation="1,0"
|
|
176
|
-
id="guide9091" />
|
|
177
|
-
<sodipodi:guide
|
|
178
|
-
position="19.413802,23.977866"
|
|
179
|
-
orientation="0,-1"
|
|
180
|
-
id="guide9093" />
|
|
181
|
-
<sodipodi:guide
|
|
182
|
-
position="18.289323,1.0914064"
|
|
183
|
-
orientation="0,-1"
|
|
184
|
-
id="guide9095" />
|
|
185
|
-
<sodipodi:guide
|
|
186
|
-
position="30.923176,7.0776045"
|
|
187
|
-
orientation="1,0"
|
|
188
|
-
id="guide9097" />
|
|
189
|
-
</sodipodi:namedview>
|
|
190
|
-
<metadata
|
|
191
|
-
id="metadata5">
|
|
192
|
-
<rdf:RDF>
|
|
193
|
-
<cc:Work
|
|
194
|
-
rdf:about="">
|
|
195
|
-
<dc:format>image/svg+xml</dc:format>
|
|
196
|
-
<dc:type
|
|
197
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
198
|
-
<dc:title />
|
|
199
|
-
</cc:Work>
|
|
200
|
-
</rdf:RDF>
|
|
201
|
-
</metadata>
|
|
202
|
-
<g
|
|
203
|
-
inkscape:label="Слой 1"
|
|
204
|
-
inkscape:groupmode="layer"
|
|
205
|
-
id="layer1">
|
|
206
|
-
<path
|
|
207
|
-
style="fill:url(#meshgradient8933);fill-opacity:1;stroke:none;stroke-width:0.650118"
|
|
208
|
-
d="M 18.434582,9.4644669 28.943323,1.5814914 c 1.501249,-1.12613947 3.002497,1e-7 3.002497,2.2522786 v 13.513672 c 0,2.25228 -1.501248,5.630699 -3.002497,6.756838 l -10.508741,7.882976 c -1.501248,1.126139 -1.501248,1.126139 -1.501248,-1.126139 V 12.842886 c 0,-2.252279 0,-2.252279 1.501248,-3.3784191 z"
|
|
209
|
-
id="path8931"
|
|
210
|
-
sodipodi:nodetypes="ccccccccc" />
|
|
211
|
-
<path
|
|
212
|
-
style="fill:#000000;fill-opacity:0.624225;stroke:none;stroke-width:0.660328"
|
|
213
|
-
d="M 18.458157,9.3471812 29.131921,1.340415 c 1.524824,-1.14382381 3.049647,1e-7 3.049647,2.2876471 V 17.353945 c 0,2.287649 -1.524823,5.71912 -3.049647,6.862942 l -10.673764,8.006767 c -1.524823,1.143823 -1.524823,1.143823 -1.524823,-1.143823 V 12.778652 c 0,-2.287648 0,-2.287648 1.524823,-3.4314708 z"
|
|
214
|
-
id="path8963"
|
|
215
|
-
sodipodi:nodetypes="ccccccccc" />
|
|
216
|
-
<path
|
|
217
|
-
style="fill:url(#meshgradient8949);fill-opacity:1;stroke:none;stroke-width:0.650118"
|
|
218
|
-
d="M 4.9233433,1.5814915 15.432083,9.4644679 c 1.501251,1.1261391 1.501251,1.1261391 1.501251,3.3784181 v 18.018231 c 0,2.252279 0,2.252279 -1.501251,1.126139 L 4.9233433,24.10428 C 3.4220943,22.978141 1.9208456,19.599722 1.9208456,17.347442 V 3.83377 c 0,-2.2522785 1.5012487,-3.37841797 3.0024977,-2.2522785 z"
|
|
219
|
-
id="path8947"
|
|
220
|
-
sodipodi:nodetypes="ccccccccc" />
|
|
221
|
-
<path
|
|
222
|
-
style="fill:#000000;fill-opacity:0.624225;stroke:none;stroke-width:0.660328"
|
|
223
|
-
d="M 4.7347454,1.3404151 15.408509,9.3471822 c 1.524825,1.1438218 1.524825,1.1438218 1.524825,3.4314698 v 18.301179 c 0,2.287647 0,2.287647 -1.524825,1.143823 L 4.7347454,24.216887 C 3.2099217,23.073065 1.685098,19.641594 1.685098,17.353945 V 3.6280621 c 0,-2.287647 1.5248237,-3.43147083 3.0496474,-2.287647 z"
|
|
224
|
-
id="path8965"
|
|
225
|
-
sodipodi:nodetypes="ccccccccc" />
|
|
226
|
-
<path
|
|
227
|
-
style="fill:url(#meshgradient3565);fill-opacity:1;stroke:none;stroke-width:0.520649"
|
|
228
|
-
d="m 7.3151129,4.638785 8.4159431,6.313094 c 1.202278,0.901871 1.202278,0.901871 1.202278,2.705612 v 14.429932 c 0,1.80374 0,1.80374 -1.202278,0.90187 L 7.3151129,22.676198 C 6.112835,21.774327 4.9105572,19.068716 4.9105572,17.264973 V 6.4425265 c 0,-1.8037415 1.2022778,-2.7056122 2.4045557,-1.8037415 z"
|
|
229
|
-
id="path3561"
|
|
230
|
-
sodipodi:nodetypes="ccccccccc" />
|
|
231
|
-
<path
|
|
232
|
-
style="fill:url(#meshgradient3579);fill-opacity:1;stroke:none;stroke-width:0.520649"
|
|
233
|
-
d="m 18.135611,10.951879 8.415944,-6.313094 c 1.202276,-0.9018707 2.404555,0 2.404555,1.8037415 V 17.264973 c 0,1.803743 -1.202279,4.509354 -2.404555,5.411225 l -8.415944,6.313095 c -1.202277,0.90187 -1.202277,0.90187 -1.202277,-0.90187 V 13.657491 c 0,-1.803741 0,-1.803741 1.202277,-2.705612 z"
|
|
234
|
-
id="path3563"
|
|
235
|
-
sodipodi:nodetypes="ccccccccc" />
|
|
236
|
-
<circle
|
|
237
|
-
style="fill:#ffffff;fill-opacity:0.624225;stroke:none;stroke-width:1.80374;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
238
|
-
id="circle9065"
|
|
239
|
-
cx="10.051114"
|
|
240
|
-
cy="14.986923"
|
|
241
|
-
r="2.5349329" />
|
|
242
|
-
<circle
|
|
243
|
-
style="fill:#ffffff;fill-opacity:0.624225;stroke:none;stroke-width:1.80374;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
244
|
-
id="circle9069"
|
|
245
|
-
cx="23.815554"
|
|
246
|
-
cy="15.029778"
|
|
247
|
-
r="2.5349329" />
|
|
248
|
-
</g>
|
|
249
|
-
<script
|
|
250
|
-
id="mesh_polyfill"
|
|
251
|
-
type="text/javascript">
|
|
252
|
-
!function(){const t="http://www.w3.org/2000/svg",e="http://www.w3.org/1999/xlink",s="http://www.w3.org/1999/xhtml",r=2;if(document.createElementNS(t,"meshgradient").x)return;const n=(t,e,s,r)=>{let n=new x(.5*(e.x+s.x),.5*(e.y+s.y)),o=new x(.5*(t.x+e.x),.5*(t.y+e.y)),i=new x(.5*(s.x+r.x),.5*(s.y+r.y)),a=new x(.5*(n.x+o.x),.5*(n.y+o.y)),h=new x(.5*(n.x+i.x),.5*(n.y+i.y)),l=new x(.5*(a.x+h.x),.5*(a.y+h.y));return[[t,o,a,l],[l,h,i,r]]},o=t=>{let e=t[0].distSquared(t[1]),s=t[2].distSquared(t[3]),r=.25*t[0].distSquared(t[2]),n=.25*t[1].distSquared(t[3]),o=e>s?e:s,i=r>n?r:n;return 18*(o>i?o:i)},i=(t,e)=>Math.sqrt(t.distSquared(e)),a=(t,e)=>t.scale(2/3).add(e.scale(1/3)),h=t=>{let e,s,r,n,o,i,a,h=new g;return t.match(/(\w+\(\s*[^)]+\))+/g).forEach(t=>{let l=t.match(/[\w.-]+/g),d=l.shift();switch(d){case"translate":2===l.length?e=new g(1,0,0,1,l[0],l[1]):(console.error("mesh.js: translate does not have 2 arguments!"),e=new g(1,0,0,1,0,0)),h=h.append(e);break;case"scale":1===l.length?s=new g(l[0],0,0,l[0],0,0):2===l.length?s=new g(l[0],0,0,l[1],0,0):(console.error("mesh.js: scale does not have 1 or 2 arguments!"),s=new g(1,0,0,1,0,0)),h=h.append(s);break;case"rotate":if(3===l.length&&(e=new g(1,0,0,1,l[1],l[2]),h=h.append(e)),l[0]){r=l[0]*Math.PI/180;let t=Math.cos(r),e=Math.sin(r);Math.abs(t)<1e-16&&(t=0),Math.abs(e)<1e-16&&(e=0),a=new g(t,e,-e,t,0,0),h=h.append(a)}else console.error("math.js: No argument to rotate transform!");3===l.length&&(e=new g(1,0,0,1,-l[1],-l[2]),h=h.append(e));break;case"skewX":l[0]?(r=l[0]*Math.PI/180,n=Math.tan(r),o=new g(1,0,n,1,0,0),h=h.append(o)):console.error("math.js: No argument to skewX transform!");break;case"skewY":l[0]?(r=l[0]*Math.PI/180,n=Math.tan(r),i=new g(1,n,0,1,0,0),h=h.append(i)):console.error("math.js: No argument to skewY transform!");break;case"matrix":6===l.length?h=h.append(new g(...l)):console.error("math.js: Incorrect number of arguments for matrix!");break;default:console.error("mesh.js: Unhandled transform type: "+d)}}),h},l=t=>{let e=[],s=t.split(/[ ,]+/);for(let t=0,r=s.length-1;t<r;t+=2)e.push(new x(parseFloat(s[t]),parseFloat(s[t+1])));return e},d=(t,e)=>{for(let s in e)t.setAttribute(s,e[s])},c=(t,e,s,r,n)=>{let o,i,a=[0,0,0,0];for(let h=0;h<3;++h)e[h]<t[h]&&e[h]<s[h]||t[h]<e[h]&&s[h]<e[h]?a[h]=0:(a[h]=.5*((e[h]-t[h])/r+(s[h]-e[h])/n),o=Math.abs(3*(e[h]-t[h])/r),i=Math.abs(3*(s[h]-e[h])/n),a[h]>o?a[h]=o:a[h]>i&&(a[h]=i));return a},u=[[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],[-3,3,0,0,-2,-1,0,0,0,0,0,0,0,0,0,0],[2,-2,0,0,1,1,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,-3,3,0,0,-2,-1,0,0],[0,0,0,0,0,0,0,0,2,-2,0,0,1,1,0,0],[-3,0,3,0,0,0,0,0,-2,0,-1,0,0,0,0,0],[0,0,0,0,-3,0,3,0,0,0,0,0,-2,0,-1,0],[9,-9,-9,9,6,3,-6,-3,6,-6,3,-3,4,2,2,1],[-6,6,6,-6,-3,-3,3,3,-4,4,-2,2,-2,-2,-1,-1],[2,0,-2,0,0,0,0,0,1,0,1,0,0,0,0,0],[0,0,0,0,2,0,-2,0,0,0,0,0,1,0,1,0],[-6,6,6,-6,-4,-2,4,2,-3,3,-3,3,-2,-1,-2,-1],[4,-4,-4,4,2,2,-2,-2,2,-2,2,-2,1,1,1,1]],f=t=>{let e=[];for(let s=0;s<16;++s){e[s]=0;for(let r=0;r<16;++r)e[s]+=u[s][r]*t[r]}return e},p=(t,e,s)=>{const r=e*e,n=s*s,o=e*e*e,i=s*s*s;return t[0]+t[1]*e+t[2]*r+t[3]*o+t[4]*s+t[5]*s*e+t[6]*s*r+t[7]*s*o+t[8]*n+t[9]*n*e+t[10]*n*r+t[11]*n*o+t[12]*i+t[13]*i*e+t[14]*i*r+t[15]*i*o},y=t=>{let e=[],s=[],r=[];for(let s=0;s<4;++s)e[s]=[],e[s][0]=n(t[0][s],t[1][s],t[2][s],t[3][s]),e[s][1]=[],e[s][1].push(...n(...e[s][0][0])),e[s][1].push(...n(...e[s][0][1])),e[s][2]=[],e[s][2].push(...n(...e[s][1][0])),e[s][2].push(...n(...e[s][1][1])),e[s][2].push(...n(...e[s][1][2])),e[s][2].push(...n(...e[s][1][3]));for(let t=0;t<8;++t){s[t]=[];for(let r=0;r<4;++r)s[t][r]=[],s[t][r][0]=n(e[0][2][t][r],e[1][2][t][r],e[2][2][t][r],e[3][2][t][r]),s[t][r][1]=[],s[t][r][1].push(...n(...s[t][r][0][0])),s[t][r][1].push(...n(...s[t][r][0][1])),s[t][r][2]=[],s[t][r][2].push(...n(...s[t][r][1][0])),s[t][r][2].push(...n(...s[t][r][1][1])),s[t][r][2].push(...n(...s[t][r][1][2])),s[t][r][2].push(...n(...s[t][r][1][3]))}for(let t=0;t<8;++t){r[t]=[];for(let e=0;e<8;++e)r[t][e]=[],r[t][e][0]=s[t][0][2][e],r[t][e][1]=s[t][1][2][e],r[t][e][2]=s[t][2][2][e],r[t][e][3]=s[t][3][2][e]}return r};class x{constructor(t,e){this.x=t||0,this.y=e||0}toString(){return`(x=${this.x}, y=${this.y})`}clone(){return new x(this.x,this.y)}add(t){return new x(this.x+t.x,this.y+t.y)}scale(t){return void 0===t.x?new x(this.x*t,this.y*t):new x(this.x*t.x,this.y*t.y)}distSquared(t){let e=this.x-t.x,s=this.y-t.y;return e*e+s*s}transform(t){let e=this.x*t.a+this.y*t.c+t.e,s=this.x*t.b+this.y*t.d+t.f;return new x(e,s)}}class g{constructor(t,e,s,r,n,o){void 0===t?(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0):(this.a=t,this.b=e,this.c=s,this.d=r,this.e=n,this.f=o)}toString(){return`affine: ${this.a} ${this.c} ${this.e} \n ${this.b} ${this.d} ${this.f}`}append(t){t instanceof g||console.error("mesh.js: argument to Affine.append is not affine!");let e=this.a*t.a+this.c*t.b,s=this.b*t.a+this.d*t.b,r=this.a*t.c+this.c*t.d,n=this.b*t.c+this.d*t.d,o=this.a*t.e+this.c*t.f+this.e,i=this.b*t.e+this.d*t.f+this.f;return new g(e,s,r,n,o,i)}}class w{constructor(t,e){this.nodes=t,this.colors=e}paintCurve(t,e){if(o(this.nodes)>r){const s=n(...this.nodes);let r=[[],[]],o=[[],[]];for(let t=0;t<4;++t)r[0][t]=this.colors[0][t],r[1][t]=(this.colors[0][t]+this.colors[1][t])/2,o[0][t]=r[1][t],o[1][t]=this.colors[1][t];let i=new w(s[0],r),a=new w(s[1],o);i.paintCurve(t,e),a.paintCurve(t,e)}else{let s=Math.round(this.nodes[0].x);if(s>=0&&s<e){let r=4*(~~this.nodes[0].y*e+s);t[r]=Math.round(this.colors[0][0]),t[r+1]=Math.round(this.colors[0][1]),t[r+2]=Math.round(this.colors[0][2]),t[r+3]=Math.round(this.colors[0][3])}}}}class m{constructor(t,e){this.nodes=t,this.colors=e}split(){let t=[[],[],[],[]],e=[[],[],[],[]],s=[[[],[]],[[],[]]],r=[[[],[]],[[],[]]];for(let s=0;s<4;++s){const r=n(this.nodes[0][s],this.nodes[1][s],this.nodes[2][s],this.nodes[3][s]);t[0][s]=r[0][0],t[1][s]=r[0][1],t[2][s]=r[0][2],t[3][s]=r[0][3],e[0][s]=r[1][0],e[1][s]=r[1][1],e[2][s]=r[1][2],e[3][s]=r[1][3]}for(let t=0;t<4;++t)s[0][0][t]=this.colors[0][0][t],s[0][1][t]=this.colors[0][1][t],s[1][0][t]=(this.colors[0][0][t]+this.colors[1][0][t])/2,s[1][1][t]=(this.colors[0][1][t]+this.colors[1][1][t])/2,r[0][0][t]=s[1][0][t],r[0][1][t]=s[1][1][t],r[1][0][t]=this.colors[1][0][t],r[1][1][t]=this.colors[1][1][t];return[new m(t,s),new m(e,r)]}paint(t,e){let s,n=!1;for(let t=0;t<4;++t)if((s=o([this.nodes[0][t],this.nodes[1][t],this.nodes[2][t],this.nodes[3][t]]))>r){n=!0;break}if(n){let s=this.split();s[0].paint(t,e),s[1].paint(t,e)}else{new w([...this.nodes[0]],[...this.colors[0]]).paintCurve(t,e)}}}class b{constructor(t){this.readMesh(t),this.type=t.getAttribute("type")||"bilinear"}readMesh(t){let e=[[]],s=[[]],r=Number(t.getAttribute("x")),n=Number(t.getAttribute("y"));e[0][0]=new x(r,n);let o=t.children;for(let t=0,r=o.length;t<r;++t){e[3*t+1]=[],e[3*t+2]=[],e[3*t+3]=[],s[t+1]=[];let r=o[t].children;for(let n=0,o=r.length;n<o;++n){let o=r[n].children;for(let r=0,i=o.length;r<i;++r){let i=r;0!==t&&++i;let h,d=o[r].getAttribute("path"),c="l";null!=d&&(c=(h=d.match(/\s*([lLcC])\s*(.*)/))[1]);let u=l(h[2]);switch(c){case"l":0===i?(e[3*t][3*n+3]=u[0].add(e[3*t][3*n]),e[3*t][3*n+1]=a(e[3*t][3*n],e[3*t][3*n+3]),e[3*t][3*n+2]=a(e[3*t][3*n+3],e[3*t][3*n])):1===i?(e[3*t+3][3*n+3]=u[0].add(e[3*t][3*n+3]),e[3*t+1][3*n+3]=a(e[3*t][3*n+3],e[3*t+3][3*n+3]),e[3*t+2][3*n+3]=a(e[3*t+3][3*n+3],e[3*t][3*n+3])):2===i?(0===n&&(e[3*t+3][3*n+0]=u[0].add(e[3*t+3][3*n+3])),e[3*t+3][3*n+1]=a(e[3*t+3][3*n],e[3*t+3][3*n+3]),e[3*t+3][3*n+2]=a(e[3*t+3][3*n+3],e[3*t+3][3*n])):(e[3*t+1][3*n]=a(e[3*t][3*n],e[3*t+3][3*n]),e[3*t+2][3*n]=a(e[3*t+3][3*n],e[3*t][3*n]));break;case"L":0===i?(e[3*t][3*n+3]=u[0],e[3*t][3*n+1]=a(e[3*t][3*n],e[3*t][3*n+3]),e[3*t][3*n+2]=a(e[3*t][3*n+3],e[3*t][3*n])):1===i?(e[3*t+3][3*n+3]=u[0],e[3*t+1][3*n+3]=a(e[3*t][3*n+3],e[3*t+3][3*n+3]),e[3*t+2][3*n+3]=a(e[3*t+3][3*n+3],e[3*t][3*n+3])):2===i?(0===n&&(e[3*t+3][3*n+0]=u[0]),e[3*t+3][3*n+1]=a(e[3*t+3][3*n],e[3*t+3][3*n+3]),e[3*t+3][3*n+2]=a(e[3*t+3][3*n+3],e[3*t+3][3*n])):(e[3*t+1][3*n]=a(e[3*t][3*n],e[3*t+3][3*n]),e[3*t+2][3*n]=a(e[3*t+3][3*n],e[3*t][3*n]));break;case"c":0===i?(e[3*t][3*n+1]=u[0].add(e[3*t][3*n]),e[3*t][3*n+2]=u[1].add(e[3*t][3*n]),e[3*t][3*n+3]=u[2].add(e[3*t][3*n])):1===i?(e[3*t+1][3*n+3]=u[0].add(e[3*t][3*n+3]),e[3*t+2][3*n+3]=u[1].add(e[3*t][3*n+3]),e[3*t+3][3*n+3]=u[2].add(e[3*t][3*n+3])):2===i?(e[3*t+3][3*n+2]=u[0].add(e[3*t+3][3*n+3]),e[3*t+3][3*n+1]=u[1].add(e[3*t+3][3*n+3]),0===n&&(e[3*t+3][3*n+0]=u[2].add(e[3*t+3][3*n+3]))):(e[3*t+2][3*n]=u[0].add(e[3*t+3][3*n]),e[3*t+1][3*n]=u[1].add(e[3*t+3][3*n]));break;case"C":0===i?(e[3*t][3*n+1]=u[0],e[3*t][3*n+2]=u[1],e[3*t][3*n+3]=u[2]):1===i?(e[3*t+1][3*n+3]=u[0],e[3*t+2][3*n+3]=u[1],e[3*t+3][3*n+3]=u[2]):2===i?(e[3*t+3][3*n+2]=u[0],e[3*t+3][3*n+1]=u[1],0===n&&(e[3*t+3][3*n+0]=u[2])):(e[3*t+2][3*n]=u[0],e[3*t+1][3*n]=u[1]);break;default:console.error("mesh.js: "+c+" invalid path type.")}if(0===t&&0===n||r>0){let e=window.getComputedStyle(o[r]).stopColor.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),a=window.getComputedStyle(o[r]).stopOpacity,h=255;a&&(h=Math.floor(255*a)),e&&(0===i?(s[t][n]=[],s[t][n][0]=Math.floor(e[1]),s[t][n][1]=Math.floor(e[2]),s[t][n][2]=Math.floor(e[3]),s[t][n][3]=h):1===i?(s[t][n+1]=[],s[t][n+1][0]=Math.floor(e[1]),s[t][n+1][1]=Math.floor(e[2]),s[t][n+1][2]=Math.floor(e[3]),s[t][n+1][3]=h):2===i?(s[t+1][n+1]=[],s[t+1][n+1][0]=Math.floor(e[1]),s[t+1][n+1][1]=Math.floor(e[2]),s[t+1][n+1][2]=Math.floor(e[3]),s[t+1][n+1][3]=h):3===i&&(s[t+1][n]=[],s[t+1][n][0]=Math.floor(e[1]),s[t+1][n][1]=Math.floor(e[2]),s[t+1][n][2]=Math.floor(e[3]),s[t+1][n][3]=h))}}e[3*t+1][3*n+1]=new x,e[3*t+1][3*n+2]=new x,e[3*t+2][3*n+1]=new x,e[3*t+2][3*n+2]=new x,e[3*t+1][3*n+1].x=(-4*e[3*t][3*n].x+6*(e[3*t][3*n+1].x+e[3*t+1][3*n].x)+-2*(e[3*t][3*n+3].x+e[3*t+3][3*n].x)+3*(e[3*t+3][3*n+1].x+e[3*t+1][3*n+3].x)+-1*e[3*t+3][3*n+3].x)/9,e[3*t+1][3*n+2].x=(-4*e[3*t][3*n+3].x+6*(e[3*t][3*n+2].x+e[3*t+1][3*n+3].x)+-2*(e[3*t][3*n].x+e[3*t+3][3*n+3].x)+3*(e[3*t+3][3*n+2].x+e[3*t+1][3*n].x)+-1*e[3*t+3][3*n].x)/9,e[3*t+2][3*n+1].x=(-4*e[3*t+3][3*n].x+6*(e[3*t+3][3*n+1].x+e[3*t+2][3*n].x)+-2*(e[3*t+3][3*n+3].x+e[3*t][3*n].x)+3*(e[3*t][3*n+1].x+e[3*t+2][3*n+3].x)+-1*e[3*t][3*n+3].x)/9,e[3*t+2][3*n+2].x=(-4*e[3*t+3][3*n+3].x+6*(e[3*t+3][3*n+2].x+e[3*t+2][3*n+3].x)+-2*(e[3*t+3][3*n].x+e[3*t][3*n+3].x)+3*(e[3*t][3*n+2].x+e[3*t+2][3*n].x)+-1*e[3*t][3*n].x)/9,e[3*t+1][3*n+1].y=(-4*e[3*t][3*n].y+6*(e[3*t][3*n+1].y+e[3*t+1][3*n].y)+-2*(e[3*t][3*n+3].y+e[3*t+3][3*n].y)+3*(e[3*t+3][3*n+1].y+e[3*t+1][3*n+3].y)+-1*e[3*t+3][3*n+3].y)/9,e[3*t+1][3*n+2].y=(-4*e[3*t][3*n+3].y+6*(e[3*t][3*n+2].y+e[3*t+1][3*n+3].y)+-2*(e[3*t][3*n].y+e[3*t+3][3*n+3].y)+3*(e[3*t+3][3*n+2].y+e[3*t+1][3*n].y)+-1*e[3*t+3][3*n].y)/9,e[3*t+2][3*n+1].y=(-4*e[3*t+3][3*n].y+6*(e[3*t+3][3*n+1].y+e[3*t+2][3*n].y)+-2*(e[3*t+3][3*n+3].y+e[3*t][3*n].y)+3*(e[3*t][3*n+1].y+e[3*t+2][3*n+3].y)+-1*e[3*t][3*n+3].y)/9,e[3*t+2][3*n+2].y=(-4*e[3*t+3][3*n+3].y+6*(e[3*t+3][3*n+2].y+e[3*t+2][3*n+3].y)+-2*(e[3*t+3][3*n].y+e[3*t][3*n+3].y)+3*(e[3*t][3*n+2].y+e[3*t+2][3*n].y)+-1*e[3*t][3*n].y)/9}}this.nodes=e,this.colors=s}paintMesh(t,e){let s=(this.nodes.length-1)/3,r=(this.nodes[0].length-1)/3;if("bilinear"===this.type||s<2||r<2){let n;for(let o=0;o<s;++o)for(let s=0;s<r;++s){let r=[];for(let t=3*o,e=3*o+4;t<e;++t)r.push(this.nodes[t].slice(3*s,3*s+4));let i=[];i.push(this.colors[o].slice(s,s+2)),i.push(this.colors[o+1].slice(s,s+2)),(n=new m(r,i)).paint(t,e)}}else{let n,o,a,h,l,d,u;const x=s,g=r;s++,r++;let w=new Array(s);for(let t=0;t<s;++t){w[t]=new Array(r);for(let e=0;e<r;++e)w[t][e]=[],w[t][e][0]=this.nodes[3*t][3*e],w[t][e][1]=this.colors[t][e]}for(let t=0;t<s;++t)for(let e=0;e<r;++e)0!==t&&t!==x&&(n=i(w[t-1][e][0],w[t][e][0]),o=i(w[t+1][e][0],w[t][e][0]),w[t][e][2]=c(w[t-1][e][1],w[t][e][1],w[t+1][e][1],n,o)),0!==e&&e!==g&&(n=i(w[t][e-1][0],w[t][e][0]),o=i(w[t][e+1][0],w[t][e][0]),w[t][e][3]=c(w[t][e-1][1],w[t][e][1],w[t][e+1][1],n,o));for(let t=0;t<r;++t){w[0][t][2]=[],w[x][t][2]=[];for(let e=0;e<4;++e)n=i(w[1][t][0],w[0][t][0]),o=i(w[x][t][0],w[x-1][t][0]),w[0][t][2][e]=n>0?2*(w[1][t][1][e]-w[0][t][1][e])/n-w[1][t][2][e]:0,w[x][t][2][e]=o>0?2*(w[x][t][1][e]-w[x-1][t][1][e])/o-w[x-1][t][2][e]:0}for(let t=0;t<s;++t){w[t][0][3]=[],w[t][g][3]=[];for(let e=0;e<4;++e)n=i(w[t][1][0],w[t][0][0]),o=i(w[t][g][0],w[t][g-1][0]),w[t][0][3][e]=n>0?2*(w[t][1][1][e]-w[t][0][1][e])/n-w[t][1][3][e]:0,w[t][g][3][e]=o>0?2*(w[t][g][1][e]-w[t][g-1][1][e])/o-w[t][g-1][3][e]:0}for(let s=0;s<x;++s)for(let r=0;r<g;++r){let n=i(w[s][r][0],w[s+1][r][0]),o=i(w[s][r+1][0],w[s+1][r+1][0]),c=i(w[s][r][0],w[s][r+1][0]),x=i(w[s+1][r][0],w[s+1][r+1][0]),g=[[],[],[],[]];for(let t=0;t<4;++t){(d=[])[0]=w[s][r][1][t],d[1]=w[s+1][r][1][t],d[2]=w[s][r+1][1][t],d[3]=w[s+1][r+1][1][t],d[4]=w[s][r][2][t]*n,d[5]=w[s+1][r][2][t]*n,d[6]=w[s][r+1][2][t]*o,d[7]=w[s+1][r+1][2][t]*o,d[8]=w[s][r][3][t]*c,d[9]=w[s+1][r][3][t]*x,d[10]=w[s][r+1][3][t]*c,d[11]=w[s+1][r+1][3][t]*x,d[12]=0,d[13]=0,d[14]=0,d[15]=0,u=f(d);for(let e=0;e<9;++e){g[t][e]=[];for(let s=0;s<9;++s)g[t][e][s]=p(u,e/8,s/8),g[t][e][s]>255?g[t][e][s]=255:g[t][e][s]<0&&(g[t][e][s]=0)}}h=[];for(let t=3*s,e=3*s+4;t<e;++t)h.push(this.nodes[t].slice(3*r,3*r+4));l=y(h);for(let s=0;s<8;++s)for(let r=0;r<8;++r)(a=new m(l[s][r],[[[g[0][s][r],g[1][s][r],g[2][s][r],g[3][s][r]],[g[0][s][r+1],g[1][s][r+1],g[2][s][r+1],g[3][s][r+1]]],[[g[0][s+1][r],g[1][s+1][r],g[2][s+1][r],g[3][s+1][r]],[g[0][s+1][r+1],g[1][s+1][r+1],g[2][s+1][r+1],g[3][s+1][r+1]]]])).paint(t,e)}}}transform(t){if(t instanceof x)for(let e=0,s=this.nodes.length;e<s;++e)for(let s=0,r=this.nodes[0].length;s<r;++s)this.nodes[e][s]=this.nodes[e][s].add(t);else if(t instanceof g)for(let e=0,s=this.nodes.length;e<s;++e)for(let s=0,r=this.nodes[0].length;s<r;++s)this.nodes[e][s]=this.nodes[e][s].transform(t)}scale(t){for(let e=0,s=this.nodes.length;e<s;++e)for(let s=0,r=this.nodes[0].length;s<r;++s)this.nodes[e][s]=this.nodes[e][s].scale(t)}}document.querySelectorAll("rect,circle,ellipse,path,text").forEach((r,n)=>{let o=r.getAttribute("id");o||(o="patchjs_shape"+n,r.setAttribute("id",o));const i=r.style.fill.match(/^url\(\s*"?\s*#([^\s"]+)"?\s*\)/),a=r.style.stroke.match(/^url\(\s*"?\s*#([^\s"]+)"?\s*\)/);if(i&&i[1]){const a=document.getElementById(i[1]);if(a&&"meshgradient"===a.nodeName){const i=r.getBBox();let l=document.createElementNS(s,"canvas");d(l,{width:i.width,height:i.height});const c=l.getContext("2d");let u=c.createImageData(i.width,i.height);const f=new b(a);"objectBoundingBox"===a.getAttribute("gradientUnits")&&f.scale(new x(i.width,i.height));const p=a.getAttribute("gradientTransform");null!=p&&f.transform(h(p)),"userSpaceOnUse"===a.getAttribute("gradientUnits")&&f.transform(new x(-i.x,-i.y)),f.paintMesh(u.data,l.width),c.putImageData(u,0,0);const y=document.createElementNS(t,"image");d(y,{width:i.width,height:i.height,x:i.x,y:i.y});let g=l.toDataURL();y.setAttributeNS(e,"xlink:href",g),r.parentNode.insertBefore(y,r),r.style.fill="none";const w=document.createElementNS(t,"use");w.setAttributeNS(e,"xlink:href","#"+o);const m="patchjs_clip"+n,M=document.createElementNS(t,"clipPath");M.setAttribute("id",m),M.appendChild(w),r.parentElement.insertBefore(M,r),y.setAttribute("clip-path","url(#"+m+")"),u=null,l=null,g=null}}if(a&&a[1]){const o=document.getElementById(a[1]);if(o&&"meshgradient"===o.nodeName){const i=parseFloat(r.style.strokeWidth.slice(0,-2))*(parseFloat(r.style.strokeMiterlimit)||parseFloat(r.getAttribute("stroke-miterlimit"))||1),a=r.getBBox(),l=Math.trunc(a.width+i),c=Math.trunc(a.height+i),u=Math.trunc(a.x-i/2),f=Math.trunc(a.y-i/2);let p=document.createElementNS(s,"canvas");d(p,{width:l,height:c});const y=p.getContext("2d");let g=y.createImageData(l,c);const w=new b(o);"objectBoundingBox"===o.getAttribute("gradientUnits")&&w.scale(new x(l,c));const m=o.getAttribute("gradientTransform");null!=m&&w.transform(h(m)),"userSpaceOnUse"===o.getAttribute("gradientUnits")&&w.transform(new x(-u,-f)),w.paintMesh(g.data,p.width),y.putImageData(g,0,0);const M=document.createElementNS(t,"image");d(M,{width:l,height:c,x:0,y:0});let S=p.toDataURL();M.setAttributeNS(e,"xlink:href",S);const k="pattern_clip"+n,A=document.createElementNS(t,"pattern");d(A,{id:k,patternUnits:"userSpaceOnUse",width:l,height:c,x:u,y:f}),A.appendChild(M),o.parentNode.appendChild(A),r.style.stroke="url(#"+k+")",g=null,p=null,S=null}}})}();
|
|
253
|
-
</script>
|
|
254
|
-
</svg>
|
package/img/getLocus.svg
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<svg width="232" height="70" viewBox="0 0 232 89" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M33.1706 1.93434C37.6807 -0.642827 43.2386 -0.642827 47.7486 1.93434C55.0751 6.12169 66.3059 12.5362 73.6325 16.7235C78.1425 19.3007 80.9192 24.0612 80.9192 29.2156V58.7895C80.9192 63.9439 78.1425 68.7044 73.6325 71.2816C66.3059 75.4689 55.0751 81.8834 47.7486 86.0708C43.2386 88.6479 37.6807 88.6479 33.1706 86.0708C25.8441 81.8834 14.6133 75.4689 7.28675 71.2816C2.77675 68.7044 0 63.9439 0 58.7895V29.2112C0 24.0612 2.77675 19.2963 7.28675 16.7191C14.6133 12.5362 25.8441 6.11732 33.1706 1.93434Z" fill="#FFD200"/>
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.1072 59.3319L17.9561 56.3697V38.2901C17.9561 33.3458 20.6223 28.7734 24.951 26.3013C31.6585 22.4683 40.7714 17.2615 40.7714 17.2615C40.7714 17.2615 49.8842 22.4683 56.5918 26.3013C60.9205 28.7734 63.5867 33.3458 63.5867 38.2901V56.3697C63.5867 56.3697 54.5357 61.5415 47.8371 65.3701C43.4641 67.8685 38.0786 67.8729 33.6969 65.3876" fill="white"/>
|
|
4
|
-
<path d="M40.7535 69.6491C37.8971 69.6491 35.0364 68.9228 32.4851 67.4745C31.3222 66.8138 30.9199 65.3392 31.5875 64.1885C32.2552 63.0377 33.7453 62.6395 34.9081 63.3002C38.5206 65.3567 43.0085 65.348 46.6209 63.2871L61.159 54.9824V38.2899C61.159 34.2163 58.9438 30.4228 55.38 28.3838L40.7711 20.0397L26.1667 28.3882C22.6029 30.4228 20.3877 34.2207 20.3877 38.2943V54.9912L24.3273 57.2577C25.4902 57.9271 25.8837 59.3973 25.2072 60.5481C24.5307 61.6988 23.0451 62.0882 21.8822 61.4188L16.731 58.4566C15.9838 58.0278 15.5195 57.2314 15.5195 56.3738V38.2899C15.5195 32.5011 18.6677 27.1105 23.7304 24.2183L39.5508 15.1785C40.3025 14.7497 41.231 14.7497 41.9827 15.1785L57.8031 24.2183C62.8658 27.1105 66.0139 32.5011 66.0139 38.2899V56.3695C66.0139 57.2271 65.5497 58.0234 64.798 58.4522L49.0483 67.4526C46.4971 68.914 43.6231 69.6447 40.7535 69.6491Z" fill="black"/>
|
|
5
|
-
<path d="M63.2373 57.6384C62.9941 57.6384 62.7465 57.5771 62.521 57.4459L40.0815 44.6257C39.635 44.3719 39.3652 43.9037 39.3652 43.3962V17.7514C39.3652 16.9682 40.0108 16.3293 40.8022 16.3293C41.5937 16.3293 42.2393 16.9682 42.2393 17.7514V42.5736L63.9624 54.9869C64.6478 55.3806 64.8866 56.247 64.4886 56.9296C64.2145 57.3846 63.7325 57.6384 63.2373 57.6384Z" fill="black"/>
|
|
6
|
-
<path d="M18.3625 57.6383C17.8673 57.6383 17.3809 57.3845 17.1156 56.9251C16.7177 56.2469 16.952 55.3762 17.6418 54.9824L40.0813 42.1622C40.7666 41.7684 41.6465 42.0003 42.0445 42.6829C42.4424 43.3611 42.2081 44.2318 41.5183 44.6256L19.0788 57.4458C18.8533 57.5771 18.6057 57.6383 18.3625 57.6383Z" fill="black"/>
|
|
7
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M27.3039 60.0231L35.046 64.438L27.4586 67.7634L19.5617 67.6277L16.1836 64.5518L24.9737 59.3931L27.3039 60.0231Z" fill="white"/>
|
|
8
|
-
<path d="M15.6438 66.0305C15.1485 66.0305 14.6622 65.7768 14.3969 65.3173C13.9989 64.6391 14.2333 63.7684 14.923 63.3746L23.9519 58.2159C24.6372 57.8221 25.5171 58.054 25.9151 58.7366C26.313 59.4148 26.0787 60.2855 25.3889 60.6793L16.3601 65.838C16.1346 65.9693 15.8869 66.0305 15.6438 66.0305Z" fill="black"/>
|
|
9
|
-
<path d="M24.4906 70.4806C22.8413 70.4806 21.4088 70.2312 20.237 69.903C16.7396 68.9186 14.7454 67.0327 14.5288 66.8227C13.5737 65.8863 13.5693 64.3637 14.5111 63.4186C15.4529 62.4778 16.9828 62.4691 17.9378 63.3879C18.1943 63.6286 23.5311 68.4591 32.3035 63.2654C33.4575 62.5828 34.9476 62.9547 35.6374 64.0968C36.3271 65.2388 35.9513 66.7133 34.7973 67.3959C30.8488 69.7412 27.3425 70.4806 24.4906 70.4806Z" fill="black"/>
|
|
10
|
-
<path d="M110.326 53.8886C110.15 54.7112 109.769 55.4813 109.186 56.1945C108.602 56.9077 107.758 57.5071 106.652 58.0016C105.547 58.496 104.07 58.7454 102.213 58.7454C101.421 58.7454 100.612 58.6491 99.7898 58.4522C98.9674 58.2553 98.2157 57.9534 97.5392 57.5378C96.8627 57.1221 96.3012 56.5926 95.8502 55.9451C95.4036 55.2975 95.1472 54.5187 95.0853 53.6086H99.4936C99.7014 54.4312 100.108 55.0043 100.714 55.3238C101.32 55.6432 102.014 55.8007 102.81 55.8007C104.061 55.8007 104.972 55.4288 105.542 54.6893C106.113 53.9455 106.391 53.0091 106.369 51.8759V49.7712H106.307C105.83 50.6157 105.144 51.2414 104.26 51.644C103.376 52.0465 102.443 52.2478 101.461 52.2478C100.254 52.2478 99.2106 52.0378 98.3351 51.6133C97.4597 51.1889 96.7389 50.6113 96.1774 49.8806C95.6159 49.1499 95.2047 48.2923 94.9438 47.3122C94.6829 46.3321 94.5547 45.2951 94.5547 44.2056C94.5547 43.173 94.705 42.1798 95.0101 41.2215C95.3108 40.2633 95.7529 39.4188 96.3366 38.6837C96.9202 37.953 97.6454 37.3711 98.5076 36.9379C99.3698 36.5047 100.369 36.2903 101.492 36.2903C102.553 36.2903 103.486 36.4872 104.291 36.8767C105.091 37.2705 105.763 37.9268 106.307 38.8544H106.369V36.7191H110.587V51.6877C110.592 52.3353 110.503 53.066 110.326 53.8886ZM104.247 48.5724C104.724 48.323 105.122 47.9948 105.436 47.5835C105.75 47.1722 105.984 46.704 106.139 46.1746C106.294 45.6495 106.374 45.0982 106.374 44.5207C106.374 43.86 106.312 43.2386 106.188 42.6479C106.064 42.0616 105.856 41.5409 105.564 41.0859C105.273 40.6308 104.888 40.272 104.406 40.0051C103.928 39.7382 103.323 39.6026 102.593 39.6026C101.97 39.6026 101.43 39.7251 100.984 39.9745C100.537 40.2239 100.161 40.5565 99.8606 40.9809C99.5599 41.4053 99.3388 41.8866 99.2062 42.4335C99.0691 42.9805 99.0028 43.5537 99.0028 44.1487C99.0028 44.7263 99.0603 45.2995 99.1752 45.8639C99.2902 46.4327 99.4892 46.9403 99.7677 47.3954C100.051 47.8504 100.418 48.2179 100.878 48.5067C101.337 48.7955 101.908 48.9399 102.598 48.9399C103.217 48.9399 103.769 48.8174 104.247 48.5724Z" fill="black"/>
|
|
11
|
-
<path d="M118.904 48.8787C119.572 49.5175 120.527 49.8369 121.778 49.8369C122.676 49.8369 123.445 49.6138 124.091 49.1718C124.736 48.7299 125.134 48.2617 125.28 47.7629H129.185C128.561 49.6794 127.602 51.0533 126.311 51.8759C125.019 52.6985 123.454 53.1142 121.624 53.1142C120.35 53.1142 119.205 52.9129 118.188 52.5103C117.167 52.1078 116.305 51.5346 115.593 50.7951C114.885 50.0513 114.337 49.1675 113.952 48.1348C113.568 47.1022 113.373 45.969 113.373 44.7307C113.373 43.5362 113.572 42.4204 113.966 41.3922C114.359 40.3596 114.925 39.4714 115.655 38.7188C116.384 37.9662 117.255 37.3755 118.263 36.9423C119.276 36.5091 120.394 36.2947 121.624 36.2947C122.999 36.2947 124.197 36.5573 125.218 37.0823C126.24 37.6074 127.08 38.3162 127.734 39.2001C128.389 40.0883 128.862 41.099 129.154 42.2323C129.445 43.3655 129.547 44.5513 129.468 45.7896H117.812C117.874 47.2116 118.237 48.2398 118.904 48.8787ZM123.923 40.469C123.392 39.8914 122.583 39.6026 121.5 39.6026C120.792 39.6026 120.204 39.7208 119.736 39.957C119.267 40.1933 118.891 40.4865 118.613 40.8365C118.33 41.1865 118.135 41.5585 118.02 41.9479C117.905 42.3417 117.839 42.6917 117.817 42.998H125.037C124.82 41.891 124.453 41.0465 123.923 40.469Z" fill="black"/>
|
|
12
|
-
<path d="M140.968 36.7279V39.6639H137.718V47.5791C137.718 48.323 137.842 48.8174 138.094 49.0624C138.346 49.3118 138.846 49.4344 139.593 49.4344C139.845 49.4344 140.084 49.4256 140.314 49.4037C140.544 49.3819 140.76 49.3512 140.968 49.3118V52.7116C140.592 52.7729 140.177 52.8166 139.717 52.8341C139.257 52.856 138.811 52.8647 138.373 52.8647C137.687 52.8647 137.033 52.8166 136.418 52.7247C135.804 52.6328 135.264 52.4535 134.796 52.1822C134.327 51.9153 133.956 51.5346 133.686 51.0358C133.416 50.5414 133.279 49.8894 133.279 49.0887V39.6639H130.591V36.7279H133.279V31.9324H137.718V36.7279H140.968Z" fill="black"/>
|
|
13
|
-
<path d="M149.718 30.6328V48.6336H160.595V52.716H144.814V30.6328H149.718Z" fill="black"/>
|
|
14
|
-
<path d="M162.342 41.2565C162.735 40.2152 163.301 39.3269 164.031 38.5962C164.76 37.8655 165.636 37.2967 166.657 36.8942C167.678 36.4916 168.824 36.2903 170.093 36.2903C171.362 36.2903 172.516 36.4916 173.546 36.8942C174.576 37.2967 175.456 37.8655 176.185 38.5962C176.915 39.3269 177.477 40.2152 177.875 41.2565C178.268 42.2979 178.467 43.4574 178.467 44.7351C178.467 46.0127 178.268 47.1678 177.875 48.2005C177.477 49.2331 176.915 50.1125 176.185 50.8433C175.456 51.574 174.576 52.1384 173.546 52.5278C172.516 52.9172 171.362 53.1141 170.093 53.1141C168.819 53.1141 167.674 52.9172 166.657 52.5278C165.636 52.1384 164.76 51.574 164.031 50.8433C163.301 50.1125 162.739 49.2287 162.342 48.2005C161.944 47.1678 161.749 46.0171 161.749 44.7351C161.749 43.4574 161.948 42.2979 162.342 41.2565ZM166.374 46.6078C166.498 47.216 166.714 47.7629 167.015 48.2486C167.316 48.7343 167.718 49.1193 168.218 49.4081C168.717 49.6969 169.341 49.8413 170.093 49.8413C170.844 49.8413 171.472 49.6969 171.985 49.4081C172.493 49.1193 172.9 48.7343 173.205 48.2486C173.506 47.7629 173.723 47.216 173.846 46.6078C173.97 45.9996 174.032 45.3739 174.032 44.7351C174.032 44.0962 173.97 43.4662 173.846 42.8492C173.723 42.2323 173.506 41.6853 173.205 41.2084C172.905 40.7359 172.498 40.3464 171.985 40.0489C171.472 39.7514 170.844 39.5982 170.093 39.5982C169.341 39.5982 168.717 39.747 168.218 40.0489C167.718 40.3464 167.316 40.7359 167.015 41.2084C166.714 41.681 166.498 42.2279 166.374 42.8492C166.25 43.4662 166.188 44.0962 166.188 44.7351C166.188 45.3739 166.25 45.9996 166.374 46.6078Z" fill="black"/>
|
|
15
|
-
<path d="M189.061 39.6026C188.354 39.6026 187.757 39.7645 187.279 40.0839C186.802 40.4033 186.408 40.8146 186.107 41.3222C185.807 41.8297 185.59 42.3854 185.466 42.9936C185.342 43.6018 185.281 44.2056 185.281 44.8007C185.281 45.3782 185.342 45.9646 185.466 46.564C185.59 47.1634 185.793 47.7016 186.076 48.1873C186.359 48.673 186.74 49.0668 187.217 49.3775C187.695 49.6881 188.278 49.8413 188.968 49.8413C190.029 49.8413 190.847 49.5481 191.422 48.9618C191.992 48.3755 192.355 47.5879 192.501 46.5946H196.781C196.489 48.7168 195.658 50.3357 194.283 51.4514C192.908 52.5628 191.148 53.1229 189.003 53.1229C187.796 53.1229 186.687 52.9216 185.674 52.5191C184.662 52.1165 183.804 51.5564 183.096 50.8345C182.389 50.1125 181.836 49.2506 181.438 48.2529C181.04 47.251 180.846 46.1571 180.846 44.9582C180.846 43.7199 181.027 42.5736 181.394 41.5103C181.757 40.4471 182.296 39.5326 183.003 38.7581C183.711 37.9837 184.578 37.3798 185.599 36.951C186.62 36.5222 187.788 36.3035 189.101 36.3035C190.06 36.3035 190.98 36.426 191.869 36.6754C192.753 36.9248 193.544 37.2967 194.243 37.8043C194.942 38.3118 195.508 38.9375 195.945 39.6901C196.383 40.4427 196.631 41.3353 196.697 42.3635H192.355C192.05 40.5214 190.958 39.6026 189.061 39.6026Z" fill="black"/>
|
|
16
|
-
<path d="M210.219 52.716V50.4888H210.126C209.564 51.4165 208.835 52.0859 207.937 52.4972C207.04 52.9085 206.124 53.1141 205.187 53.1141C203.998 53.1141 203.025 52.961 202.264 52.6503C201.504 52.3397 200.902 51.9021 200.469 51.3377C200.031 50.7733 199.722 50.0819 199.549 49.2637C199.373 48.4499 199.284 47.5485 199.284 46.5597V36.7279H203.723V45.7589C203.723 47.0803 203.931 48.0648 204.347 48.7124C204.763 49.36 205.505 49.6881 206.567 49.6881C207.774 49.6881 208.649 49.3337 209.193 48.6205C209.732 47.9117 210.006 46.739 210.006 45.1114V36.7279H214.446V52.716H210.219Z" fill="black"/>
|
|
17
|
-
<path d="M221.547 48.743C221.746 49.0843 221.998 49.36 222.312 49.5787C222.626 49.7975 222.984 49.955 223.391 50.0601C223.797 50.1651 224.217 50.2132 224.655 50.2132C224.969 50.2132 225.296 50.1782 225.641 50.1038C225.986 50.0338 226.295 49.92 226.578 49.7625C226.861 49.6094 227.096 49.4037 227.281 49.1456C227.467 48.8874 227.564 48.5636 227.564 48.1698C227.564 47.5091 227.122 47.0147 226.238 46.6865C225.354 46.3584 224.12 46.0258 222.533 45.6977C221.887 45.5533 221.255 45.3826 220.64 45.1857C220.026 44.9889 219.477 44.7307 219 44.4113C218.522 44.0919 218.133 43.6893 217.841 43.2036C217.55 42.718 217.404 42.1273 217.404 41.4272C217.404 40.3946 217.607 39.5501 218.014 38.8938C218.421 38.2375 218.956 37.7124 219.623 37.3317C220.291 36.9511 221.038 36.6842 221.874 36.5266C222.705 36.3735 223.563 36.2947 224.434 36.2947C225.305 36.2947 226.158 36.3779 226.981 36.5441C227.803 36.7104 228.537 36.9861 229.183 37.3799C229.828 37.7737 230.363 38.29 230.792 38.9419C231.221 39.5939 231.473 40.4121 231.557 41.4009H227.339C227.277 40.5565 226.954 39.9833 226.371 39.6857C225.787 39.3882 225.097 39.2394 224.306 39.2394C224.058 39.2394 223.784 39.257 223.492 39.2876C223.2 39.3182 222.935 39.3838 222.696 39.4889C222.458 39.5939 222.254 39.7426 222.086 39.9352C221.918 40.132 221.834 40.3946 221.834 40.7227C221.834 41.1165 221.98 41.4316 222.272 41.681C222.564 41.9304 222.944 42.1317 223.413 42.2848C223.881 42.4379 224.416 42.578 225.022 42.7005C225.628 42.823 226.242 42.9586 226.866 43.103C227.511 43.2474 228.139 43.4224 228.758 43.6281C229.373 43.8337 229.921 44.1094 230.399 44.4463C230.876 44.7876 231.265 45.2076 231.557 45.7152C231.849 46.2227 231.995 46.8441 231.995 47.5879C231.995 48.638 231.783 49.5219 231.354 50.2307C230.925 50.9395 230.368 51.5127 229.682 51.9459C228.997 52.3791 228.21 52.681 227.321 52.856C226.437 53.031 225.535 53.1185 224.62 53.1185C223.682 53.1185 222.767 53.0266 221.869 52.8385C220.972 52.6547 220.176 52.3441 219.477 51.9109C218.779 51.4777 218.204 50.9045 217.757 50.1957C217.311 49.4869 217.063 48.5943 217.023 47.5223H221.242C221.25 47.9948 221.348 48.4017 221.547 48.743Z" fill="black"/>
|
|
18
|
-
</svg>
|
package/img/logo.png
DELETED
|
Binary file
|