vue-cesium
Version:
Vue 3.x components for CesiumJS.
1 lines • 4.2 kB
Source Map (JSON)
{"version":3,"file":"spinner-tail.mjs","sources":["../../../../../../packages/components/ui/spinner/spinner-tail.ts"],"sourcesContent":["import { h, defineComponent } from 'vue'\n\nimport useSpinner, { useSpinnerProps } from './use-spinner'\n\nconst svg = [\n h('defs', [\n h(\n 'linearGradient',\n {\n x1: '8.042%',\n y1: '0%',\n x2: '65.682%',\n y2: '23.865%',\n id: 'a'\n },\n [\n h('stop', {\n 'stop-color': 'currentColor',\n 'stop-opacity': '0',\n offset: '0%'\n }),\n h('stop', {\n 'stop-color': 'currentColor',\n 'stop-opacity': '.631',\n offset: '63.146%'\n }),\n h('stop', {\n 'stop-color': 'currentColor',\n offset: '100%'\n })\n ]\n )\n ]),\n h(\n 'g',\n {\n transform: 'translate(1 1)',\n fill: 'none',\n 'fill-rule': 'evenodd'\n },\n [\n h(\n 'path',\n {\n d: 'M36 18c0-9.94-8.06-18-18-18',\n stroke: 'url(#a)',\n 'stroke-width': '2'\n },\n [\n h('animateTransform', {\n attributeName: 'transform',\n type: 'rotate',\n from: '0 18 18',\n to: '360 18 18',\n dur: '0.9s',\n repeatCount: 'indefinite'\n })\n ]\n ),\n h(\n 'circle',\n {\n fill: 'currentColor',\n cx: '36',\n cy: '18',\n r: '1'\n },\n [\n h('animateTransform', {\n attributeName: 'transform',\n type: 'rotate',\n from: '0 18 18',\n to: '360 18 18',\n dur: '0.9s',\n repeatCount: 'indefinite'\n })\n ]\n )\n ]\n )\n]\n\nexport default defineComponent({\n name: 'VcSpinnerTail',\n\n props: useSpinnerProps,\n\n setup(props) {\n const { cSize, classes } = useSpinner(props)\n\n return () =>\n h(\n 'svg',\n {\n class: classes.value,\n width: cSize.value,\n height: cSize.value,\n viewBox: '0 0 38 38',\n xmlns: 'http://www.w3.org/2000/svg'\n },\n svg\n )\n }\n})\n"],"names":[],"mappings":";;;;AAIA,MAAM,GAAM,GAAA;AAAA,EACV,EAAE,MAAQ,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