diff --git a/docs/D_OptionsApi.mdx b/docs/D_OptionsApi.mdx
index 4911888..8c5d1ef 100644
--- a/docs/D_OptionsApi.mdx
+++ b/docs/D_OptionsApi.mdx
@@ -256,6 +256,11 @@ When drawing an arrow, you can hold down modifier keys to change the arrow color
- `opacity`: Controls the opacity of arrows when not being drawn
- `activeOpacity`: Controls the opacity of arrows when they are being drawn
+#### Arrow behavior
+
+- `liveDrawArrow`: Controls whether the arrow is drawn live while dragging (`true`) or drawn after the final target is set (`false`)
+- `knightArrow`: Controls whether knight moves are rendered as L-shaped knight arrows (`true`) or direct arrows (`false`)
+
**Default value:**
```tsx
@@ -274,6 +279,8 @@ When drawing an arrow, you can hold down modifier keys to change the arrow color
opacity: 0.65,
activeOpacity: 0.5,
arrowStartOffset: 0,
+ liveDrawArrow: true,
+ knightArrow: true,
}
```
@@ -288,13 +295,15 @@ When drawing an arrow, you can hold down modifier keys to change the arrow color
alt?: string;
meta?: string;
},
- arrowLengthReducerDenominator: number,
- sameTargetArrowLengthReducerDenominator: number,
- arrowWidthDenominator: number,
- activeArrowWidthMultiplier: number,
- opacity: number,
- activeOpacity: number
- arrowStartOffset: number,
+ arrowLengthReducerDenominator?: number,
+ sameTargetArrowLengthReducerDenominator?: number,
+ arrowWidthDenominator?: number,
+ activeArrowWidthMultiplier?: number,
+ opacity?: number,
+ activeOpacity?: number,
+ arrowStartOffset?: number,
+ liveDrawArrow?: boolean,
+ knightArrow?: boolean,
}
```
diff --git a/docs/stories/options/ArrowOptions.stories.tsx b/docs/stories/options/ArrowOptions.stories.tsx
index 215df32..f13f334 100644
--- a/docs/stories/options/ArrowOptions.stories.tsx
+++ b/docs/stories/options/ArrowOptions.stories.tsx
@@ -33,6 +33,8 @@ export const ArrowOptions: Story = {
opacity: 0.65,
activeOpacity: 0.5,
arrowStartOffset: 0,
+ liveDrawArrow: true,
+ knightArrow: true,
};
// arrows
@@ -264,6 +266,42 @@ export const ArrowOptions: Story = {
}
/>
+
+ {/* Toggles */}
+