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-box.js
import { defineComponent, h } from 'vue';
import useSpinner, { spinnerProps } from '../utils/use-spinner.js';
const svg = [
    h('rect', {
        x: '25',
        y: '25',
        width: '50',
        height: '50',
        fill: 'none',
        'stroke-width': '4',
        stroke: 'currentColor',
    }, [
        h('animateTransform', {
            id: 'spinnerBox',
            attributeName: 'transform',
            type: 'rotate',
            from: '0 50 50',
            to: '180 50 50',
            dur: '0.5s',
            begin: 'rectBox.end',
        }),
    ]),
    h('rect', {
        x: '27',
        y: '27',
        width: '46',
        height: '50',
        fill: 'currentColor',
    }, [
        h('animate', {
            id: 'rectBox',
            attributeName: 'height',
            begin: '0s;spinnerBox.end',
            dur: '1.3s',
            from: '50',
            to: '0',
            fill: 'freeze',
        }),
    ]),
];
export default defineComponent({
    name: 'VueSpinnerBox',
    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);
    },
});