Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: beginPath before drawing drag indicator (#9364)

doouding71272203b0b3
diff --git a/blocksuite/blocks/src/root-block/edgeless/gfx-tool/default-tool-ext/mind-map-ext/indicator-overlay.ts b/blocksuite/blocks/src/root-block/edgeless/gfx-tool/default-tool-ext/mind-map-ext/indicator-overlay.ts
index 6835308381..53632b3429 100644
--- a/blocksuite/blocks/src/root-block/edgeless/gfx-tool/default-tool-ext/mind-map-ext/indicator-overlay.ts
+++ b/blocksuite/blocks/src/root-block/edgeless/gfx-tool/default-tool-ext/mind-map-ext/indicator-overlay.ts
@@ -1,4 +1,3 @@
-/* eslint-disable @typescript-eslint/no-non-null-assertion */
import {
NODE_HORIZONTAL_SPACING,
NODE_VERTICAL_SPACING,
@@ -191,6 +190,7 @@ export class MindMapIndicatorOverlay extends Overlay {
ctx.fillStyle = color;
ctx.lineWidth = 3;
+ ctx.beginPath();
ctx.roundRect(targetPos.x, targetPos.y, targetPos.w, targetPos.h, 4);
ctx.fill();