kokopu-react 1.6.0 → 1.7.0
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/.nycrc.yml +1 -1
- package/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/dist/lib/Chessboard.js +21 -13
- package/dist/lib/impl/colorsets.js +44 -44
- package/dist/lib/impl/util.js +1 -1
- package/dist/lib/markers.js +7 -7
- package/doc_src/demo/PageChessboardInteraction.js +4 -3
- package/doc_src/demo/PageChessboardMove.js +36 -5
- package/doc_src/demo/demo.css +4 -0
- package/{graphic_test_app → graphic_test_src}/01_marker_icons.js +0 -0
- package/{graphic_test_app → graphic_test_src}/02_chessboard_simple.js +0 -0
- package/{graphic_test_app → graphic_test_src}/03_chessboard_flipped.js +0 -0
- package/{graphic_test_app → graphic_test_src}/04_chessboard_annotations.js +8 -8
- package/{graphic_test_app → graphic_test_src}/05_chessboard_move.js +4 -4
- package/{graphic_test_app → graphic_test_src}/06_chessboard_theme.js +2 -2
- package/{graphic_test_app → graphic_test_src}/07_chessboard_click_squares.js +0 -0
- package/{graphic_test_app → graphic_test_src}/08_chessboard_move_pieces.js +1 -1
- package/{graphic_test_app → graphic_test_src}/09_chessboard_edit_arrows.js +0 -0
- package/{graphic_test_app → graphic_test_src}/10_chessboard_play_moves.js +1 -1
- package/{graphic_test_app → graphic_test_src}/11_chessboard_play_promotions.js +0 -0
- package/{graphic_test_app → graphic_test_src}/12_movetext_simple.js +0 -0
- package/{graphic_test_app → graphic_test_src}/13_movetext_error.js +0 -0
- package/{graphic_test_app → graphic_test_src}/14_movetext_html.js +0 -0
- package/{graphic_test_app → graphic_test_src}/15_movetext_options.js +0 -4
- package/{graphic_test_app → graphic_test_src}/16_movetext_interaction.js +0 -0
- package/{graphic_test_app → graphic_test_src}/common/dummy.pgn +0 -0
- package/{graphic_test_app → graphic_test_src}/common/games.pgn +0 -0
- package/{graphic_test_app → graphic_test_src}/common/heartbeat.txt +0 -0
- package/{graphic_test_app → graphic_test_src}/common/smiley.png +0 -0
- package/{graphic_test_app → graphic_test_src}/common/test_app.css +0 -0
- package/{graphic_test_app → graphic_test_src}/common/test_app.js +3 -2
- package/graphics/chess_sprites/cburnett/bb.svg +45 -0
- package/graphics/chess_sprites/cburnett/bk.svg +47 -0
- package/graphics/chess_sprites/cburnett/bn.svg +37 -0
- package/graphics/chess_sprites/cburnett/bp.svg +19 -0
- package/graphics/chess_sprites/cburnett/bq.svg +58 -0
- package/graphics/chess_sprites/cburnett/br.svg +60 -0
- package/graphics/chess_sprites/cburnett/bx.svg +56 -0
- package/graphics/chess_sprites/cburnett/wb.svg +48 -0
- package/graphics/chess_sprites/cburnett/wk.svg +26 -0
- package/graphics/chess_sprites/cburnett/wn.svg +37 -0
- package/graphics/chess_sprites/cburnett/wp.svg +19 -0
- package/graphics/chess_sprites/cburnett/wq.svg +60 -0
- package/graphics/chess_sprites/cburnett/wr.svg +44 -0
- package/graphics/chess_sprites/cburnett/wx.svg +56 -0
- package/graphics/chess_sprites/generate_sprites.sh +135 -0
- package/graphics/chess_sprites/mmonge/celtic-bx.svg +112 -0
- package/graphics/chess_sprites/mmonge/celtic-wx.svg +111 -0
- package/graphics/chess_sprites/mmonge/celtic.svg +1576 -0
- package/graphics/chess_sprites/mmonge/eyes-spatial-bx.svg +101 -0
- package/graphics/chess_sprites/mmonge/eyes-spatial-wx.svg +100 -0
- package/graphics/chess_sprites/mmonge/eyes.svg +2538 -0
- package/graphics/chess_sprites/mmonge/fantasy-bx.svg +112 -0
- package/graphics/chess_sprites/mmonge/fantasy-wx.svg +111 -0
- package/graphics/chess_sprites/mmonge/fantasy.svg +5497 -0
- package/graphics/chess_sprites/mmonge/fantasy_alt.svg +3742 -0
- package/graphics/chess_sprites/mmonge/freak.svg +3479 -0
- package/graphics/chess_sprites/mmonge/prmi.svg +6776 -0
- package/graphics/chess_sprites/mmonge/skulls-bx.svg +124 -0
- package/graphics/chess_sprites/mmonge/skulls-wx.svg +111 -0
- package/graphics/chess_sprites/mmonge/skulls.svg +12978 -0
- package/graphics/chess_sprites/mmonge/spatial.svg +1223 -0
- package/package.json +21 -19
- package/scripts/{test_graphic/clean-graphic-output.js → clean-graphic-output.js} +1 -1
- package/scripts/{test_graphic/docker-compose.yml → docker-compose.yml} +3 -3
- package/scripts/{test_graphic/webpack-config.js → test-graphic.webpack.config.js} +7 -6
- package/scripts/{test_headless.webpack-config.js → test-headless.webpack.config.js} +2 -1
- package/src/Chessboard.js +21 -13
- package/src/impl/colorsets.js +44 -44
- package/src/impl/util.js +1 -1
- package/src/markers.js +7 -7
- package/test/1_markers.js +14 -14
- package/test/common/graphic.js +2 -2
- package/test/references/04_chessboard_annotations/0.png +0 -0
- package/test/references/04_chessboard_annotations/1.png +0 -0
- package/test/references/04_chessboard_annotations/2.png +0 -0
- package/test/references/04_chessboard_annotations/3.png +0 -0
- package/test/references/04_chessboard_annotations/4.png +0 -0
- package/test/references/04_chessboard_annotations/5.png +0 -0
- package/test/references/05_chessboard_move/4.png +0 -0
- package/test/references/05_chessboard_move/5.png +0 -0
- package/test/references/05_chessboard_move/6.png +0 -0
- package/test/references/06_chessboard_theme/0.png +0 -0
- package/test/references/06_chessboard_theme/1.png +0 -0
- package/test/references/06_chessboard_theme/2.png +0 -0
- package/test/references/06_chessboard_theme/3.png +0 -0
- package/test/references/06_chessboard_theme/4.png +0 -0
- package/test/references/06_chessboard_theme/5.png +0 -0
- package/test/references/06_chessboard_theme/6.png +0 -0
- package/test/references/06_chessboard_theme/7.png +0 -0
- package/test/references/06_chessboard_theme/8.png +0 -0
- package/test/references/08_chessboard_move_pieces/over_arrow_marker.png +0 -0
- package/test/references/08_chessboard_move_pieces/over_square_marker.png +0 -0
- package/test/references/08_chessboard_move_pieces/over_text_marker.png +0 -0
- package/test/references/09_chessboard_edit_arrows/base_1.png +0 -0
- package/test/references/09_chessboard_edit_arrows/base_2.png +0 -0
- package/test/references/09_chessboard_edit_arrows/null_vector.png +0 -0
- package/test/references/09_chessboard_edit_arrows/over_arrow_marker.png +0 -0
- package/test/references/09_chessboard_edit_arrows/over_square_marker.png +0 -0
- package/test/references/10_chessboard_play_moves/castling_move.png +0 -0
- package/test/references/10_chessboard_play_moves/regular_move_2.png +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg
|
|
3
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
4
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
5
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
6
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
9
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
10
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
11
|
+
version="1.1"
|
|
12
|
+
width="200"
|
|
13
|
+
height="200"
|
|
14
|
+
id="svg3128"
|
|
15
|
+
inkscape:version="0.91 r"
|
|
16
|
+
sodipodi:docname="skulls-bx.svg">
|
|
17
|
+
<metadata
|
|
18
|
+
id="metadata14">
|
|
19
|
+
<rdf:RDF>
|
|
20
|
+
<cc:Work
|
|
21
|
+
rdf:about="">
|
|
22
|
+
<dc:format>image/svg+xml</dc:format>
|
|
23
|
+
<dc:type
|
|
24
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
25
|
+
<dc:title />
|
|
26
|
+
</cc:Work>
|
|
27
|
+
</rdf:RDF>
|
|
28
|
+
</metadata>
|
|
29
|
+
<sodipodi:namedview
|
|
30
|
+
pagecolor="#ffffff"
|
|
31
|
+
bordercolor="#666666"
|
|
32
|
+
borderopacity="1"
|
|
33
|
+
objecttolerance="10"
|
|
34
|
+
gridtolerance="10"
|
|
35
|
+
guidetolerance="10"
|
|
36
|
+
inkscape:pageopacity="0"
|
|
37
|
+
inkscape:pageshadow="2"
|
|
38
|
+
inkscape:window-width="1680"
|
|
39
|
+
inkscape:window-height="973"
|
|
40
|
+
id="namedview12"
|
|
41
|
+
showgrid="false"
|
|
42
|
+
inkscape:zoom="1.8541912"
|
|
43
|
+
inkscape:cx="86.359286"
|
|
44
|
+
inkscape:cy="99.943384"
|
|
45
|
+
inkscape:window-x="0"
|
|
46
|
+
inkscape:window-y="25"
|
|
47
|
+
inkscape:window-maximized="1"
|
|
48
|
+
inkscape:current-layer="svg3128"
|
|
49
|
+
showguides="true" />
|
|
50
|
+
<defs
|
|
51
|
+
id="defs3130">
|
|
52
|
+
<linearGradient
|
|
53
|
+
id="linearGradientBlackPieces">
|
|
54
|
+
<stop
|
|
55
|
+
id="stop2268"
|
|
56
|
+
offset="0"
|
|
57
|
+
style="stop-color:#000000;stop-opacity:1;" />
|
|
58
|
+
<stop
|
|
59
|
+
id="stop2270"
|
|
60
|
+
offset="1"
|
|
61
|
+
style="stop-color:#505070;stop-opacity:1;" />
|
|
62
|
+
</linearGradient>
|
|
63
|
+
<linearGradient
|
|
64
|
+
id="linearGradientBlackPiecesBorder">
|
|
65
|
+
<stop
|
|
66
|
+
style="stop-color:#808080;stop-opacity:1;"
|
|
67
|
+
offset="0"
|
|
68
|
+
id="stop7192" />
|
|
69
|
+
<stop
|
|
70
|
+
style="stop-color:#808080;stop-opacity:1;"
|
|
71
|
+
offset="1"
|
|
72
|
+
id="stop7194" />
|
|
73
|
+
</linearGradient>
|
|
74
|
+
<linearGradient
|
|
75
|
+
id="linearGradientBlackPieces-7">
|
|
76
|
+
<stop
|
|
77
|
+
style="stop-color:#a08060;stop-opacity:1"
|
|
78
|
+
offset="0"
|
|
79
|
+
id="stop5177" />
|
|
80
|
+
<stop
|
|
81
|
+
style="stop-color:#000000;stop-opacity:1;"
|
|
82
|
+
offset="1"
|
|
83
|
+
id="stop5179" />
|
|
84
|
+
</linearGradient>
|
|
85
|
+
<linearGradient
|
|
86
|
+
id="linearGradientBlackPiecesBorder-2">
|
|
87
|
+
<stop
|
|
88
|
+
style="stop-color:#000000;stop-opacity:1;"
|
|
89
|
+
offset="0"
|
|
90
|
+
id="stop4006" />
|
|
91
|
+
<stop
|
|
92
|
+
style="stop-color:#000000;stop-opacity:1;"
|
|
93
|
+
offset="1"
|
|
94
|
+
id="stop4008" />
|
|
95
|
+
</linearGradient>
|
|
96
|
+
<linearGradient
|
|
97
|
+
inkscape:collect="always"
|
|
98
|
+
xlink:href="#linearGradientBlackPieces-7"
|
|
99
|
+
id="linearGradient4171"
|
|
100
|
+
x1="76.558533"
|
|
101
|
+
y1="22.129723"
|
|
102
|
+
x2="140.09683"
|
|
103
|
+
y2="178.60112"
|
|
104
|
+
gradientUnits="userSpaceOnUse"
|
|
105
|
+
gradientTransform="matrix(1.1953261,0,0,1.4609542,-13.505326,8.3808307)" />
|
|
106
|
+
<linearGradient
|
|
107
|
+
inkscape:collect="always"
|
|
108
|
+
xlink:href="#linearGradientBlackPiecesBorder-2"
|
|
109
|
+
id="linearGradient4179"
|
|
110
|
+
x1="42.790146"
|
|
111
|
+
y1="62.711868"
|
|
112
|
+
x2="145.84895"
|
|
113
|
+
y2="63.233932"
|
|
114
|
+
gradientUnits="userSpaceOnUse"
|
|
115
|
+
gradientTransform="matrix(1.1953261,0,0,1.4609542,-13.505326,8.3808307)" />
|
|
116
|
+
</defs>
|
|
117
|
+
<ellipse
|
|
118
|
+
style="opacity:1;fill:url(#linearGradient4171);fill-opacity:1;stroke:url(#linearGradient4179);stroke-width:3.65700006;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
119
|
+
id="path4163"
|
|
120
|
+
ry="60.171501"
|
|
121
|
+
rx="60.171497"
|
|
122
|
+
cy="100"
|
|
123
|
+
cx="100" />
|
|
124
|
+
</svg>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg
|
|
3
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
4
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
5
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
6
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
9
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
10
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
11
|
+
version="1.1"
|
|
12
|
+
width="200"
|
|
13
|
+
height="200"
|
|
14
|
+
id="svg3128"
|
|
15
|
+
inkscape:version="0.91 r"
|
|
16
|
+
sodipodi:docname="skulls-wx.svg">
|
|
17
|
+
<metadata
|
|
18
|
+
id="metadata14">
|
|
19
|
+
<rdf:RDF>
|
|
20
|
+
<cc:Work
|
|
21
|
+
rdf:about="">
|
|
22
|
+
<dc:format>image/svg+xml</dc:format>
|
|
23
|
+
<dc:type
|
|
24
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
25
|
+
<dc:title />
|
|
26
|
+
</cc:Work>
|
|
27
|
+
</rdf:RDF>
|
|
28
|
+
</metadata>
|
|
29
|
+
<sodipodi:namedview
|
|
30
|
+
pagecolor="#ffffff"
|
|
31
|
+
bordercolor="#666666"
|
|
32
|
+
borderopacity="1"
|
|
33
|
+
objecttolerance="10"
|
|
34
|
+
gridtolerance="10"
|
|
35
|
+
guidetolerance="10"
|
|
36
|
+
inkscape:pageopacity="0"
|
|
37
|
+
inkscape:pageshadow="2"
|
|
38
|
+
inkscape:window-width="1680"
|
|
39
|
+
inkscape:window-height="973"
|
|
40
|
+
id="namedview12"
|
|
41
|
+
showgrid="false"
|
|
42
|
+
inkscape:zoom="1.3111112"
|
|
43
|
+
inkscape:cx="-52.115367"
|
|
44
|
+
inkscape:cy="148.82583"
|
|
45
|
+
inkscape:window-x="0"
|
|
46
|
+
inkscape:window-y="25"
|
|
47
|
+
inkscape:window-maximized="1"
|
|
48
|
+
inkscape:current-layer="svg3128" />
|
|
49
|
+
<defs
|
|
50
|
+
id="defs3130">
|
|
51
|
+
<linearGradient
|
|
52
|
+
id="linearGradientWhitePieces">
|
|
53
|
+
<stop
|
|
54
|
+
id="stop7929"
|
|
55
|
+
offset="0"
|
|
56
|
+
style="stop-color:#ede3de;stop-opacity:1;" />
|
|
57
|
+
<stop
|
|
58
|
+
id="stop7931"
|
|
59
|
+
offset="1"
|
|
60
|
+
style="stop-color:#d0b090;stop-opacity:1;" />
|
|
61
|
+
</linearGradient>
|
|
62
|
+
<linearGradient
|
|
63
|
+
id="linearGradientWhitePiecesBorder">
|
|
64
|
+
<stop
|
|
65
|
+
style="stop-color:#000000;stop-opacity:1;"
|
|
66
|
+
offset="0"
|
|
67
|
+
id="stop7935" />
|
|
68
|
+
<stop
|
|
69
|
+
style="stop-color:#000000;stop-opacity:1;"
|
|
70
|
+
offset="1"
|
|
71
|
+
id="stop7937" />
|
|
72
|
+
</linearGradient>
|
|
73
|
+
<linearGradient
|
|
74
|
+
id="linearGradientWhitePieces-1">
|
|
75
|
+
<stop
|
|
76
|
+
style="stop-color:#ffffff;stop-opacity:1;"
|
|
77
|
+
offset="0"
|
|
78
|
+
id="stop5177-6" />
|
|
79
|
+
<stop
|
|
80
|
+
style="stop-color:#000000;stop-opacity:1;"
|
|
81
|
+
offset="1"
|
|
82
|
+
id="stop5179-8" />
|
|
83
|
+
</linearGradient>
|
|
84
|
+
<linearGradient
|
|
85
|
+
inkscape:collect="always"
|
|
86
|
+
xlink:href="#linearGradientWhitePieces-1"
|
|
87
|
+
id="linearGradient4168"
|
|
88
|
+
x1="85.548141"
|
|
89
|
+
y1="-9.2394581"
|
|
90
|
+
x2="138.93095"
|
|
91
|
+
y2="97.946091"
|
|
92
|
+
gradientUnits="userSpaceOnUse"
|
|
93
|
+
gradientTransform="matrix(1.6228285,0,0,2.3123206,-68.261388,61.230555)" />
|
|
94
|
+
<linearGradient
|
|
95
|
+
inkscape:collect="always"
|
|
96
|
+
xlink:href="#linearGradientWhitePiecesBorder"
|
|
97
|
+
id="linearGradient4176"
|
|
98
|
+
x1="85.548141"
|
|
99
|
+
y1="-9.2394581"
|
|
100
|
+
x2="138.93095"
|
|
101
|
+
y2="97.946091"
|
|
102
|
+
gradientUnits="userSpaceOnUse"
|
|
103
|
+
gradientTransform="matrix(1.6228285,0,0,2.3123206,-68.261388,61.230555)" />
|
|
104
|
+
</defs>
|
|
105
|
+
<circle
|
|
106
|
+
style="opacity:1;fill:url(#linearGradient4168);fill-opacity:1;stroke:url(#linearGradient4176);stroke-width:3.65700006;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
107
|
+
id="path4160"
|
|
108
|
+
r="60.171501"
|
|
109
|
+
cy="100"
|
|
110
|
+
cx="100" />
|
|
111
|
+
</svg>
|