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-core.js
import { defineComponent, h } from 'vue';
import useSpinner, { spinnerProps } from '../utils/use-spinner.js';
const svg = [
    h('rect', {
        x: '0',
        y: '0',
        width: '100',
        height: '100',
        fill: 'none',
    }),
    h('g', {
        transform: 'translate(25 25)',
    }, [
        h('rect', {
            x: '-20',
            y: '-20',
            width: '40',
            height: '40',
            fill: 'currentColor',
            opacity: '0.9',
        }, [
            h('animateTransform', {
                attributeName: 'transform',
                type: 'scale',
                from: '1.5',
                to: '1',
                repeatCount: 'indefinite',
                begin: '0s',
                dur: '1s',
                calcMode: 'spline',
                keySplines: '0.2 0.8 0.2 0.8',
                keyTimes: '0;1',
            }),
        ]),
    ]),
    h('g', {
        transform: 'translate(75 25)',
    }, [
        h('rect', {
            x: '-20',
            y: '-20',
            width: '40',
            height: '40',
            fill: 'currentColor',
            opacity: '0.8',
        }, [
            h('animateTransform', {
                attributeName: 'transform',
                type: 'scale',
                from: '1.5',
                to: '1',
                repeatCount: 'indefinite',
                begin: '0.1s',
                dur: '1s',
                calcMode: 'spline',
                keySplines: '0.2 0.8 0.2 0.8',
                keyTimes: '0;1',
            }),
        ]),
    ]),
    h('g', {
        transform: 'translate(25 75)',
    }, [
        h('rect', {
            x: '-20',
            y: '-20',
            width: '40',
            height: '40',
            fill: 'currentColor',
            opacity: '0.7',
        }, [
            h('animateTransform', {
                attributeName: 'transform',
                type: 'scale',
                from: '1.5',
                to: '1',
                repeatCount: 'indefinite',
                begin: '0.3s',
                dur: '1s',
                calcMode: 'spline',
                keySplines: '0.2 0.8 0.2 0.8',
                keyTimes: '0;1',
            }),
        ]),
    ]),
    h('g', {
        transform: 'translate(75 75)',
    }, [
        h('rect', {
            x: '-20',
            y: '-20',
            width: '40',
            height: '40',
            fill: 'currentColor',
            opacity: '0.6',
        }, [
            h('animateTransform', {
                attributeName: 'transform',
                type: 'scale',
                from: '1.5',
                to: '1',
                repeatCount: 'indefinite',
                begin: '0.2s',
                dur: '1s',
                calcMode: 'spline',
                keySplines: '0.2 0.8 0.2 0.8',
                keyTimes: '0;1',
            }),
        ]),
    ]),
];
export default defineComponent({
    name: 'VueSpinnerCube',
    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,
            xmlns: 'http://www.w3.org/2000/svg',
            viewBox: '0 0 100 100',
            preserveAspectRatio: 'xMidYMid',
        }, svg);
    },
});