From ea5f2a54fb277c2653574781f8dbb3b9efde0eb4 Mon Sep 17 00:00:00 2001 From: mcyph <20507948+mcyph@users.noreply.github.com> Date: Fri, 9 Apr 2021 16:37:00 +1000 Subject: [PATCH] fixes to SVG canvas and made typescript compile --- src/mxgraph/shape/mxShape.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mxgraph/shape/mxShape.ts b/src/mxgraph/shape/mxShape.ts index a7bcdd13b..c59d37c24 100644 --- a/src/mxgraph/shape/mxShape.ts +++ b/src/mxgraph/shape/mxShape.ts @@ -134,7 +134,7 @@ class mxShape { indicatorShape: typeof mxShape | null=null; // Assigned in mxCellHighlight - opacity: number | null=100; + opacity: number=100; isDashed: boolean=false; fill: string | null = null; @@ -143,13 +143,13 @@ class mxShape { gradientDirection: string | null = null; - fillOpacity: number | null = null; + fillOpacity: number = 100; - strokeOpacity: number | null = null; + strokeOpacity: number | null = 100; stroke: string | null = null; - strokewidth: number | null = null; + strokewidth: number | null = 1; spacing: number | null = null; @@ -171,9 +171,9 @@ class mxShape { isRounded: boolean = false; - rotation: number | null = null; + rotation: number = 0; - cursor: string | null = null; + cursor: string = ''; verticalTextRotation: number | null = null;