Skip to content

Commit

Permalink
fix: disable editorconfig-checker on svg part
Browse files Browse the repository at this point in the history
Signed-off-by: giac-mysten <[email protected]>
  • Loading branch information
giac-mysten committed Aug 21, 2024
1 parent f2d7e4a commit 1286565
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flatland/move/flatland/sources/flatland.move
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const BASE36: vector<u8> = b"0123456789abcdefghijklmnopqrstuvwxyz";
const VISUALIZATION_SITE: address =
@0x901fb0569e5054eea1bea1500d1fdfefa8b5cc4def4574c0c99c64b3af24a3ab;

// editorconfig-checker-disable
const POINTS_TABLE: vector<vector<u8>> = vector[
b"100.0,50.0 143.30127018922195,125.0 56.698729810778076,125.00000000000001",
b"100.0,50.0 150.0,100.0 100.0,150.0 50.0,100.0",
Expand All @@ -25,6 +26,7 @@ const POINTS_TABLE: vector<vector<u8>> = vector[
b"100.0,50.0 123.23615860218842,55.72719871733951 141.14919329468282,71.5967626634422 149.63544370490268,93.97316598723384 146.75081213427075,117.73024435212677 133.15613291203977,137.42553740855504 111.96578321437791,148.5470908713026 88.03421678562212,148.5470908713026 66.84386708796025,137.42553740855507 53.24918786572926,117.73024435212679 50.364556295097294,93.97316598723388 58.850806705317176,71.59676266344222 76.76384139781155,55.72719871733952",
b"100.0,50.0 121.69418695587791,54.951556604879045 139.0915741234015,68.82550990706332 148.74639560909117,88.87395330218428 148.74639560909117,111.12604669781572 139.0915741234015,131.17449009293668 121.69418695587791,145.04844339512096 100.0,150.0 78.30581304412209,145.04844339512096 60.908425876598514,131.17449009293668 51.25360439090882,111.12604669781572 51.25360439090882,88.87395330218429 60.90842587659851,68.82550990706333 78.30581304412209,54.951556604879045",
];
// editorconfig-checker-enable

public struct Color has store, drop {
r: u8,
Expand Down Expand Up @@ -103,7 +105,9 @@ fun svg(num_sides: u8, color: &Color): String {
b"<polygon fill = 'rgba(", r, b",", g, b",", b, b",1)' ",
b"points = '", table[index],
b"'>",
// editorconfig-checker-disable
b"<animateTransform attributeName='transform' begin='0s' dur='10s' type='rotate' from='0 100 100' to='360 100 100' repeatCount='indefinite'></animateTransform></polygon>",
// editorconfig-checker-enable
b"</svg>",
];
chunks.reverse();
Expand Down

0 comments on commit 1286565

Please sign in to comment.