aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-11-11 01:02:54 -0500
committerbobzel <zzzman@gmail.com>2022-11-11 01:02:54 -0500
commit1e828ba5ed03bc8dd1e0f536ffe485e2c9d6f955 (patch)
tree02aa14b6872b7a3ae2fa4b10ead208a1e60e292a
parent493faff1b3c84d8f31796e8059a3eaa5bd80fbd6 (diff)
made inkMask white.
-rw-r--r--src/client/views/InkingStroke.tsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx
index 1e18e1dff..aa2818e0d 100644
--- a/src/client/views/InkingStroke.tsx
+++ b/src/client/views/InkingStroke.tsx
@@ -124,10 +124,6 @@ export class InkingStroke extends ViewBoxBaseComponent<FieldViewProps>() {
*/
public static toggleMask = action((inkDoc: Doc) => {
inkDoc.isInkMask = !inkDoc.isInkMask;
- inkDoc._backgroundColor = inkDoc.isInkMask ? 'rgba(0,0,0,0.7)' : undefined;
- inkDoc.mixBlendMode = inkDoc.isInkMask ? 'hard-light' : undefined;
- inkDoc.color = '#9b9b9bff';
- inkDoc._stayInCollection = inkDoc.isInkMask ? true : undefined;
});
/**
* Drags the a simple bezier segment of the stroke.
@@ -356,7 +352,7 @@ export class InkingStroke extends ViewBoxBaseComponent<FieldViewProps>() {
const markerScale = NumCast(this.layoutDoc.strokeMarkerScale, 1);
const closed = InkingStroke.IsClosed(inkData);
const isInkMask = BoolCast(this.layoutDoc.isInkMask);
- const fillColor = isInkMask ? '#aaaaaa' : StrCast(this.layoutDoc.fillColor, 'transparent');
+ const fillColor = isInkMask ? Colors.WHITE : StrCast(this.layoutDoc.fillColor, 'transparent');
const strokeColor = !closed && fillColor && fillColor !== 'transparent' ? fillColor : this.props.styleProvider?.(this.layoutDoc, this.props, StyleProp.Color) ?? StrCast(this.layoutDoc.color);
// bcz: Hack!! Not really sure why, but having fractional values for width/height of mask ink strokes causes the dragging clone (see DragManager) to be offset from where it should be.