enso/app/gui2/stories/SelectionBrush.story.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
712 B
Vue
Raw Normal View History

<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"
:style="{ transform: navigator.prescaledTransform }"
/>
</template>
</SelectionBrushWrapper>
</Story>
</template>