kokopu-react 1.6.0 → 1.7.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.
- package/.nycrc.yml +1 -1
- package/CHANGELOG.md +13 -0
- package/README.md +2 -2
- package/dist/lib/Chessboard.js +27 -19
- package/dist/lib/Movetext.js +5 -5
- 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 +30 -24
- package/scripts/{test_graphic/clean-graphic-output.js → clean-graphic-output.js} +1 -1
- package/scripts/docker-compose.yml +14 -0
- 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 +27 -19
- package/src/Movetext.js +5 -5
- 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/3.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
- package/scripts/test_graphic/docker-compose.yml +0 -14
|
@@ -0,0 +1,112 @@
|
|
|
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="fantasy-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="1280"
|
|
39
|
+
inkscape:window-height="997"
|
|
40
|
+
id="namedview12"
|
|
41
|
+
showgrid="false"
|
|
42
|
+
inkscape:zoom="2.6222223"
|
|
43
|
+
inkscape:cx="113.05724"
|
|
44
|
+
inkscape:cy="88.794512"
|
|
45
|
+
inkscape:window-x="1680"
|
|
46
|
+
inkscape:window-y="0"
|
|
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
|
+
gradientTransform="matrix(0.36102856,0,0,0.40114286,-174.38171,-49.760006)"
|
|
76
|
+
inkscape:collect="always"
|
|
77
|
+
xlink:href="#linearGradientBlackPieces-9"
|
|
78
|
+
id="linearGradient5532"
|
|
79
|
+
gradientUnits="userSpaceOnUse"
|
|
80
|
+
x1="559.771"
|
|
81
|
+
y1="313.20999"
|
|
82
|
+
x2="911.98419"
|
|
83
|
+
y2="460.03769" />
|
|
84
|
+
<linearGradient
|
|
85
|
+
id="linearGradientBlackPieces-9">
|
|
86
|
+
<stop
|
|
87
|
+
id="stop2268-7"
|
|
88
|
+
offset="0"
|
|
89
|
+
style="stop-color:#000e1c;stop-opacity:1;" />
|
|
90
|
+
<stop
|
|
91
|
+
id="stop2270-6"
|
|
92
|
+
offset="1"
|
|
93
|
+
style="stop-color:#50506f;stop-opacity:1;" />
|
|
94
|
+
</linearGradient>
|
|
95
|
+
<linearGradient
|
|
96
|
+
gradientTransform="matrix(0.36102856,0,0,0.40114286,-174.38171,-49.760006)"
|
|
97
|
+
inkscape:collect="always"
|
|
98
|
+
xlink:href="#linearGradientBlackPiecesBorder"
|
|
99
|
+
id="linearGradient5534"
|
|
100
|
+
gradientUnits="userSpaceOnUse"
|
|
101
|
+
x1="582.45239"
|
|
102
|
+
y1="373.33334"
|
|
103
|
+
x2="937.54761"
|
|
104
|
+
y2="373.33334" />
|
|
105
|
+
</defs>
|
|
106
|
+
<circle
|
|
107
|
+
cy="100"
|
|
108
|
+
cx="100"
|
|
109
|
+
id="path35272"
|
|
110
|
+
style="fill:url(#linearGradient5532);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient5534);stroke-width:3.6571424;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
111
|
+
r="60.171429" />
|
|
112
|
+
</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="fantasy-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="1280"
|
|
39
|
+
inkscape:window-height="997"
|
|
40
|
+
id="namedview12"
|
|
41
|
+
showgrid="false"
|
|
42
|
+
inkscape:zoom="2.6222223"
|
|
43
|
+
inkscape:cx="83.489535"
|
|
44
|
+
inkscape:cy="51.232168"
|
|
45
|
+
inkscape:window-x="1680"
|
|
46
|
+
inkscape:window-y="0"
|
|
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
|
+
gradientTransform="matrix(0.36102856,0,0,0.40114286,-174.38172,-49.760012)"
|
|
75
|
+
inkscape:collect="always"
|
|
76
|
+
xlink:href="#linearGradientWhitePieces-1"
|
|
77
|
+
id="linearGradient5543"
|
|
78
|
+
gradientUnits="userSpaceOnUse"
|
|
79
|
+
x1="559.771"
|
|
80
|
+
y1="313.20999"
|
|
81
|
+
x2="911.98419"
|
|
82
|
+
y2="460.03769" />
|
|
83
|
+
<linearGradient
|
|
84
|
+
id="linearGradientWhitePieces-1">
|
|
85
|
+
<stop
|
|
86
|
+
id="stop7929-3"
|
|
87
|
+
offset="0"
|
|
88
|
+
style="stop-color:#ede3de;stop-opacity:1;" />
|
|
89
|
+
<stop
|
|
90
|
+
id="stop7931-0"
|
|
91
|
+
offset="1"
|
|
92
|
+
style="stop-color:#8a6737;stop-opacity:1;" />
|
|
93
|
+
</linearGradient>
|
|
94
|
+
<linearGradient
|
|
95
|
+
gradientTransform="matrix(0.36102856,0,0,0.40114286,-174.38172,-49.760012)"
|
|
96
|
+
inkscape:collect="always"
|
|
97
|
+
xlink:href="#linearGradientWhitePiecesBorder"
|
|
98
|
+
id="linearGradient5545"
|
|
99
|
+
gradientUnits="userSpaceOnUse"
|
|
100
|
+
x1="582.45239"
|
|
101
|
+
y1="373.33334"
|
|
102
|
+
x2="937.54761"
|
|
103
|
+
y2="373.33334" />
|
|
104
|
+
</defs>
|
|
105
|
+
<circle
|
|
106
|
+
cy="100"
|
|
107
|
+
cx="100"
|
|
108
|
+
style="fill:url(#linearGradient5543);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient5545);stroke-width:3.6571424;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
109
|
+
id="path7691"
|
|
110
|
+
r="60.171429" />
|
|
111
|
+
</svg>
|