LCOV - code coverage report
Current view: top level - packages/design-system/src/components/common - DotSpinner.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 2 2
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1           16 : <template>
       2         2355 :   <div
       3              :     data-testid="dot-spinner"
       4              :     class="inline-flex items-center justify-center"
       5              :     :style="{ width: size + 'px', height: size + 'px' }"
       6              :   >
       7              :     <svg
       8              :       xmlns="http://www.w3.org/2000/svg"
       9              :       :width="size"
      10              :       :height="size"
      11              :       viewBox="0 0 14 14"
      12              :       class="animate-spin fill-foreground"
      13              :       :style="{ animationDuration: duration }"
      14              :     >
      15              :       <g clip-path="url(#clip0_776_9582)">
      16              :         <path
      17              :           class="dot-animation"
      18              :           style="animation-delay: 0s"
      19              :           fill-rule="evenodd"
      20              :           clip-rule="evenodd"
      21              :           d="M7 2.21053C7.61042 2.21053 8.10526 1.71568 8.10526 1.10526C8.10526 0.494843 7.61042 0 7 0C6.38958 0 5.89474 0.494843 5.89474 1.10526C5.89474 1.71568 6.38958 2.21053 7 2.21053Z"
      22              :         />
      23              :         <path
      24              :           class="dot-animation"
      25              :           style="animation-delay: 0.25s"
      26              :           fill-rule="evenodd"
      27              :           clip-rule="evenodd"
      28              :           d="M2.21053 7C2.21053 7.61042 1.71568 8.10526 1.10526 8.10526C0.494843 8.10526 0 7.61042 0 7C0 6.38958 0.494843 5.89474 1.10526 5.89474C1.71568 5.89474 2.21053 6.38958 2.21053 7Z"
      29              :         />
      30              :         <path
      31              :           class="dot-animation"
      32              :           style="animation-delay: 0.5s"
      33              :           fill-rule="evenodd"
      34              :           clip-rule="evenodd"
      35              :           d="M14 7C14 7.61042 13.5052 8.10526 12.8947 8.10526C12.2843 8.10526 11.7895 7.61042 11.7895 7C11.7895 6.38958 12.2843 5.89474 12.8947 5.89474C13.5052 5.89474 14 6.38958 14 7Z"
      36              :         />
      37              :         <path
      38              :           class="dot-animation"
      39              :           style="animation-delay: 0.75s"
      40              :           fill-rule="evenodd"
      41              :           clip-rule="evenodd"
      42              :           d="M8.10526 12.8947C8.10526 13.5052 7.61041 14 6.99999 14C6.38957 14 5.89473 13.5052 5.89473 12.8947C5.89473 12.2843 6.38957 11.7895 6.99999 11.7895C7.61041 11.7895 8.10526 12.2843 8.10526 12.8947Z"
      43              :         />
      44              :         <path
      45              :           class="dot-animation"
      46              :           style="animation-delay: 0.125s"
      47              :           fill-rule="evenodd"
      48              :           clip-rule="evenodd"
      49              :           d="M2.05039 3.61349C2.48203 4.04513 3.18184 4.04513 3.61347 3.61349C4.0451 3.18186 4.0451 2.48205 3.61347 2.05042C3.18184 1.61878 2.48203 1.61878 2.05039 2.05042C1.61876 2.48205 1.61876 3.18186 2.05039 3.61349Z"
      50              :         />
      51              :         <path
      52              :           class="dot-animation"
      53              :           style="animation-delay: 0.625s"
      54              :           fill-rule="evenodd"
      55              :           clip-rule="evenodd"
      56              :           d="M11.9496 11.9496C11.518 12.3812 10.8182 12.3812 10.3865 11.9496C9.9549 11.5179 9.9549 10.8181 10.3865 10.3865C10.8182 9.95485 11.518 9.95485 11.9496 10.3865C12.3812 10.8181 12.3812 11.5179 11.9496 11.9496Z"
      57              :         />
      58              :         <path
      59              :           class="dot-animation"
      60              :           style="animation-delay: 0.875s"
      61              :           fill-rule="evenodd"
      62              :           clip-rule="evenodd"
      63              :           d="M2.05039 11.9496C2.48203 12.3812 3.18184 12.3812 3.61347 11.9496C4.0451 11.5179 4.0451 10.8181 3.61347 10.3865C3.18184 9.95485 2.48203 9.95485 2.05039 10.3865C1.61876 10.8181 1.61876 11.5179 2.05039 11.9496Z"
      64              :         />
      65              :         <path
      66              :           class="dot-animation"
      67              :           style="animation-delay: 0.375s"
      68              :           fill-rule="evenodd"
      69              :           clip-rule="evenodd"
      70              :           d="M11.9496 3.61349C11.518 4.04513 10.8182 4.04513 10.3865 3.61349C9.9549 3.18186 9.9549 2.48205 10.3865 2.05042C10.8182 1.61878 11.518 1.61878 11.9496 2.05042C12.3812 2.48205 12.3812 3.18186 11.9496 3.61349Z"
      71              :         />
      72              :       </g>
      73              :       <defs>
      74              :         <clipPath id="clip0_776_9582">
      75              :           <rect width="14" height="14" fill="white" />
      76              :         </clipPath>
      77              :       </defs>
      78              :     </svg>
      79              :   </div>
      80              : </template>
      81              : 
      82              : <script setup lang="ts">
      83              : const { size = 24, duration = '2s' } = defineProps<{
      84              :   size?: number
      85              :   duration?: string
      86              : }>()
      87              : </script>
      88              : 
      89              : <style scoped>
      90              : .dot-animation {
      91              :   animation: dot-pulse 1s ease-in-out infinite;
      92              : }
      93              : 
      94              : @keyframes dot-pulse {
      95              :   0%,
      96              :   80%,
      97              :   100% {
      98              :     opacity: 0.3;
      99              :   }
     100              : 
     101              :   40% {
     102              :     opacity: 1;
     103              :   }
     104              : }
     105              : </style>
        

Generated by: LCOV version 2.0-1