enso/app/gui2/stories/SelectionBrush.story.vue
Paweł Grabarz b286adaae4
Split ydoc server into separate module (#10735)
# Important Notes
The command to run the gui dev environment has been changed. Invoking the old command will print a message about that.
From now on, use `pnpm dev:gui2` in repository root.
2024-08-08 12:12:05 +00:00

26 lines
701 B
Vue

<script setup lang="ts">
import SelectionBrush from '@/components/SelectionBrush.vue'
import SelectionBrushWrapper from './SelectionBrushWrapper.vue'
</script>
<template>
<Story
title="Selection Brush"
group="graph"
:layout="{ type: 'single', iframe: false }"
responsiveDisabled
autoPropsDisabled
>
<SelectionBrushWrapper>
<template #default="{ scaledMousePos, scaledSelectionAnchor, navigator }">
<SelectionBrush
v-if="scaledMousePos"
:position="scaledMousePos"
:anchor="scaledSelectionAnchor"
:transform="navigator.prescaledTransform"
/>
</template>
</SelectionBrushWrapper>
</Story>
</template>