Disable gradients by default. Fixes #150.

pull/151/head
Atul Varma 2021-06-06 19:39:42 -04:00
rodzic c4cf38f1d4
commit 79c0ca6924
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -33,7 +33,7 @@
{ "name": "fill", "type": "int" },
{ "name": "background", "type": "int" },
{ "name": "uniformStrokeWidth", "type": "float" },
{ "name": "disableGradients", "type": "boolean", "default": false }
{ "name": "disableGradients", "type": "boolean", "default": true }
]
}
},

Wyświetl plik

@ -24,7 +24,7 @@ describe("Mandala design serialization/desrialization", () => {
const design = decodeAndDeserialize(
"AgZleWUAAB9DCAEAAIA%2FAAAAAAAAgD8AAAAAAADQlAKCjj3Ij%2F4PAACAPwAAQEABAA%3D%3D"
);
expect(design.baseCompCtx.disableGradients).toBe(false);
expect(design.baseCompCtx.disableGradients).toBe(true);
expect(design.circle1.numSymbols).toBe(4);
});

Wyświetl plik

@ -104,7 +104,7 @@ const DEFAULT_CONTEXT: SvgSymbolContext = {
fill: "#ffffff",
showSpecs: false,
uniformStrokeWidth: DEFAULT_UNIFORM_STROKE_WIDTH,
disableGradients: false,
disableGradients: true,
};
/**