casc-cesium
Version:
Vue 3.x components for CesiumJS.
82 lines (79 loc) • 1.9 kB
JavaScript
import { h, defineComponent } from 'vue';
import useSpinner, { useSpinnerProps } from './use-spinner.mjs';
const svg = [
h("g", {
fill: "none",
"fill-rule": "evenodd",
"stroke-width": "2"
}, [
h("circle", {
cx: "22",
cy: "22",
r: "1"
}, [
h("animate", {
attributeName: "r",
begin: "0s",
dur: "1.8s",
values: "1; 20",
calcMode: "spline",
keyTimes: "0; 1",
keySplines: "0.165, 0.84, 0.44, 1",
repeatCount: "indefinite"
}),
h("animate", {
attributeName: "stroke-opacity",
begin: "0s",
dur: "1.8s",
values: "1; 0",
calcMode: "spline",
keyTimes: "0; 1",
keySplines: "0.3, 0.61, 0.355, 1",
repeatCount: "indefinite"
})
]),
h("circle", {
cx: "22",
cy: "22",
r: "1"
}, [
h("animate", {
attributeName: "r",
begin: "-0.9s",
dur: "1.8s",
values: "1; 20",
calcMode: "spline",
keyTimes: "0; 1",
keySplines: "0.165, 0.84, 0.44, 1",
repeatCount: "indefinite"
}),
h("animate", {
attributeName: "stroke-opacity",
begin: "-0.9s",
dur: "1.8s",
values: "1; 0",
calcMode: "spline",
keyTimes: "0; 1",
keySplines: "0.3, 0.61, 0.355, 1",
repeatCount: "indefinite"
})
])
])
];
var SpinnerPuff = defineComponent({
name: "VcSpinnerPuff",
props: useSpinnerProps,
setup(props) {
const { cSize, classes } = useSpinner(props);
return () => h("svg", {
class: classes.value,
stroke: "currentColor",
width: cSize.value,
height: cSize.value,
viewBox: "0 0 44 44",
xmlns: "http://www.w3.org/2000/svg"
}, svg);
}
});
export { SpinnerPuff as default };
//# sourceMappingURL=spinner-puff.mjs.map