vue-circle-flags
Version:
A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags
1 lines • 4.89 kB
Source Map (JSON)
{"version":3,"file":"gu-YyRD1g9x.cjs","names":[],"sources":["../src/components/flags/gu.vue","../src/components/flags/gu.vue"],"sourcesContent":["<template>\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"svg-circle-flags\"\r\n :viewBox=\"`${viewBoxOrigin} ${viewBoxOrigin} ${svgSize} ${svgSize}`\"\r\n >\r\n <mask id=\"805cde4e-5b3c-431c-827c-2868e5f89dea\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#805cde4e-5b3c-431c-827c-2868e5f89dea)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M0 0h512v44.6l-41.2 207.2L512 467.6V512H0v-44.4l38-219-38-204z\"\r\n />\r\n <path fill=\"#0052b4\" d=\"M0 44.6h512v423H0z\" />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M241.5 417.7c-3.5-3-85.7-74.5-85.7-161.6 0-87 82.2-158.6 85.7-161.6L256 82.1l14.5 12.4c3.5 3 85.7 74.4 85.7 161.6 0 87.2-82.2 158.6-85.7 161.6L256 430.1z\"\r\n />\r\n <path\r\n fill=\"#338af3\"\r\n d=\"M334 256.1c0-78-78-144.7-78-144.7s-78 66.8-78 144.7a150 150 0 0 0 17.5 66.8h121a150 150 0 0 0 17.4-66.8z\"\r\n />\r\n <path\r\n fill=\"#0052b4\"\r\n d=\"M334 256.1a150 150 0 0 1-17.5 66.8L256 334l-60.5-11a150 150 0 0 1-17.4-66.9h155.8z\"\r\n />\r\n <path\r\n fill=\"#ffda44\"\r\n d=\"M256 400.8s37.5-32.2 60.5-78h-121c23 45.8 60.5 78 60.5 78z\"\r\n />\r\n <path fill=\"#6da544\" d=\"M206 211.6h100l-50 50z\" />\r\n <path fill=\"#a2001d\" d=\"M239.3 245h33.4v100.1h-33.4z\" />\r\n </g>\r\n <g fill=\"none\">\r\n <circle\r\n cx=\"256\"\r\n cy=\"256\"\r\n :r=\"circleStroke\"\r\n fill=\"none\"\r\n :style=\"{ stroke: props.strokeColor, strokeWidth: props.strokeWidth }\"\r\n />\r\n </g>\r\n </svg>\r\n</template>\r\n<script setup lang=\"ts\">\r\n import { computed } from 'vue';\r\n\r\n const props = withDefaults(\r\n defineProps<{\r\n flagName: string | undefined;\r\n strokeColor?: string;\r\n strokeWidth?: number;\r\n }>(),\r\n {\r\n strokeColor: '#000',\r\n strokeWidth: 0\r\n }\r\n );\r\n\r\n const svgSize = computed(() => 512 + 2 * props.strokeWidth),\r\n viewBoxOrigin = computed(() => -props.strokeWidth),\r\n circleStroke = computed(() => 256 + props.strokeWidth / 2);\r\n</script>\r\n","<template>\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"svg-circle-flags\"\r\n :viewBox=\"`${viewBoxOrigin} ${viewBoxOrigin} ${svgSize} ${svgSize}`\"\r\n >\r\n <mask id=\"805cde4e-5b3c-431c-827c-2868e5f89dea\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#805cde4e-5b3c-431c-827c-2868e5f89dea)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M0 0h512v44.6l-41.2 207.2L512 467.6V512H0v-44.4l38-219-38-204z\"\r\n />\r\n <path fill=\"#0052b4\" d=\"M0 44.6h512v423H0z\" />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"M241.5 417.7c-3.5-3-85.7-74.5-85.7-161.6 0-87 82.2-158.6 85.7-161.6L256 82.1l14.5 12.4c3.5 3 85.7 74.4 85.7 161.6 0 87.2-82.2 158.6-85.7 161.6L256 430.1z\"\r\n />\r\n <path\r\n fill=\"#338af3\"\r\n d=\"M334 256.1c0-78-78-144.7-78-144.7s-78 66.8-78 144.7a150 150 0 0 0 17.5 66.8h121a150 150 0 0 0 17.4-66.8z\"\r\n />\r\n <path\r\n fill=\"#0052b4\"\r\n d=\"M334 256.1a150 150 0 0 1-17.5 66.8L256 334l-60.5-11a150 150 0 0 1-17.4-66.9h155.8z\"\r\n />\r\n <path\r\n fill=\"#ffda44\"\r\n d=\"M256 400.8s37.5-32.2 60.5-78h-121c23 45.8 60.5 78 60.5 78z\"\r\n />\r\n <path fill=\"#6da544\" d=\"M206 211.6h100l-50 50z\" />\r\n <path fill=\"#a2001d\" d=\"M239.3 245h33.4v100.1h-33.4z\" />\r\n </g>\r\n <g fill=\"none\">\r\n <circle\r\n cx=\"256\"\r\n cy=\"256\"\r\n :r=\"circleStroke\"\r\n fill=\"none\"\r\n :style=\"{ stroke: props.strokeColor, strokeWidth: props.strokeWidth }\"\r\n />\r\n </g>\r\n </svg>\r\n</template>\r\n<script setup lang=\"ts\">\r\n import { computed } from 'vue';\r\n\r\n const props = withDefaults(\r\n defineProps<{\r\n flagName: string | undefined;\r\n strokeColor?: string;\r\n strokeWidth?: number;\r\n }>(),\r\n {\r\n strokeColor: '#000',\r\n strokeWidth: 0\r\n }\r\n );\r\n\r\n const svgSize = computed(() => 512 + 2 * props.strokeWidth),\r\n viewBoxOrigin = computed(() => -props.strokeWidth),\r\n circleStroke = computed(() => 256 + props.strokeWidth / 2);\r\n</script>\r\n"],"mappings":"otCA6DQ,GAAA,EAAA,EAAA,cAAyB,IAAM,EAAI,EAAM,WAAW,EACxD,GAAA,EAAA,EAAA,cAA+B,CAAC,EAAM,WAAW,EACjD,GAAA,EAAA,EAAA,cAA8B,IAAM,EAAM,YAAc,CAAC"}