HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/node_modules/vue3-spinners/spinners/vue-spinner-pie.js
import { defineComponent, h } from 'vue';
import useSpinner, { spinnerProps } from '../utils/use-spinner.js';
const svg = [
    h('path', {
        d: 'M0 50A50 50 0 0 1 50 0L50 50L0 50',
        fill: 'currentColor',
        opacity: '0.5',
    }, [
        h('animateTransform', {
            attributeName: 'transform',
            type: 'rotate',
            from: '0 50 50',
            to: '360 50 50',
            dur: '0.8s',
            repeatCount: 'indefinite',
        }),
    ]),
    h('path', {
        d: 'M50 0A50 50 0 0 1 100 50L50 50L50 0',
        fill: 'currentColor',
        opacity: '0.5',
    }, [
        h('animateTransform', {
            attributeName: 'transform',
            type: 'rotate',
            from: '0 50 50',
            to: '360 50 50',
            dur: '1.6s',
            repeatCount: 'indefinite',
        }),
    ]),
    h('path', {
        d: 'M100 50A50 50 0 0 1 50 100L50 50L100 50',
        fill: 'currentColor',
        opacity: '0.5',
    }, [
        h('animateTransform', {
            attributeName: 'transform',
            type: 'rotate',
            from: '0 50 50',
            to: '360 50 50',
            dur: '2.4s',
            repeatCount: 'indefinite',
        }),
    ]),
    h('path', {
        d: 'M50 100A50 50 0 0 1 0 50L50 50L50 100',
        fill: 'currentColor',
        opacity: '0.5',
    }, [
        h('animateTransform', {
            attributeName: 'transform',
            type: 'rotate',
            from: '0 50 50',
            to: '360 50 50',
            dur: '3.2s',
            repeatCount: 'indefinite',
        }),
    ]),
];
export default defineComponent({
    name: 'VueSpinnerPie',
    props: spinnerProps,
    setup(props) {
        const { cSize, classes, style } = useSpinner(props);
        return () => h('svg', {
            style: style.value,
            class: classes.value,
            width: cSize.value,
            height: cSize.value,
            viewBox: '0 0 100 100',
            preserveAspectRatio: 'xMidYMid',
            xmlns: 'http://www.w3.org/2000/svg',
        }, svg);
    },
});