LCOV - code coverage report
Current view: top level - packages/mask-editor/src/ui/components - PaintBucketSettingsPanel.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 12.5 % 8 1
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1           16 : <template>
       2            0 :   <div class="flex flex-col gap-3 pb-3">
       3              :     <h3 class="mt-2.5 text-center font-sans text-[15px] text-muted-foreground">
       4              :       {{ t('maskEditor.paintBucketSettings') }}
       5              :     </h3>
       6              : 
       7              :     <SliderControl
       8              :       :label="t('maskEditor.tolerance')"
       9              :       :min="0"
      10              :       :max="255"
      11              :       :step="1"
      12              :       :model-value="store.paintBucketTolerance"
      13              :       @update:model-value="onToleranceChange"
      14              :     />
      15              : 
      16              :     <SliderControl
      17              :       :label="t('maskEditor.fillOpacity')"
      18              :       :min="0"
      19              :       :max="100"
      20              :       :step="1"
      21              :       :model-value="store.fillOpacity"
      22              :       @update:model-value="onFillOpacityChange"
      23              :     />
      24              :   </div>
      25              : </template>
      26              : 
      27              : <script setup lang="ts">
      28              : import { useI18n } from 'vue-i18n'
      29              : 
      30              : import { useMaskEditorStore } from '#/maskEditorStore'
      31              : 
      32              : import SliderControl from './controls/SliderControl.vue'
      33              : 
      34            0 : const { t } = useI18n()
      35            0 : const store = useMaskEditorStore()
      36              : 
      37            0 : const onToleranceChange = (value: number) => {
      38            0 :   store.setPaintBucketTolerance(value)
      39              : }
      40              : 
      41            0 : const onFillOpacityChange = (value: number) => {
      42            0 :   store.setFillOpacity(value)
      43              : }
      44              : </script>
        

Generated by: LCOV version 2.0-1