vue-circle-flags
Version:
A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags
1 lines • 4.36 kB
Source Map (JSON)
{"version":3,"file":"east_african_federation-BJTkk7nl.cjs","names":[],"sources":["../src/components/flags/east_african_federation.vue","../src/components/flags/east_african_federation.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=\"3ae1b258-1234-4afe-86d9-ff65cddb2760\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#3ae1b258-1234-4afe-86d9-ff65cddb2760)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path\r\n fill=\"#338af3\"\r\n d=\"M0 0h512v141l-64 115 64 115v141H0V371l64-115L0 141Z\"\r\n />\r\n <path fill=\"#eee\" d=\"M0 141h512v23l-256 16L0 164Z\" />\r\n <path fill=\"#333\" d=\"M0 164h512v38l-256 16L0 202Z\" />\r\n <path fill=\"#6da544\" d=\"m0 220 256 16 256-16v-18H0Z\" />\r\n <path fill=\"#eee\" d=\"M0 371h512v-23l-256-16L0 348Z\" />\r\n <path fill=\"#ff9811\" d=\"M0 348h512v-38l-256-16L0 310Z\" />\r\n <path fill=\"#6da544\" d=\"m0 292 256-16 256 16v18H0Z\" />\r\n <path fill=\"#ffda44\" d=\"M0 220h512v72H0z\" />\r\n <circle cx=\"256\" cy=\"248\" r=\"64\" fill=\"#eee\" />\r\n <path fill=\"#eee\" d=\"m178 301 78-29 78 29v27H178Z\" />\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=\"3ae1b258-1234-4afe-86d9-ff65cddb2760\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#3ae1b258-1234-4afe-86d9-ff65cddb2760)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path\r\n fill=\"#338af3\"\r\n d=\"M0 0h512v141l-64 115 64 115v141H0V371l64-115L0 141Z\"\r\n />\r\n <path fill=\"#eee\" d=\"M0 141h512v23l-256 16L0 164Z\" />\r\n <path fill=\"#333\" d=\"M0 164h512v38l-256 16L0 202Z\" />\r\n <path fill=\"#6da544\" d=\"m0 220 256 16 256-16v-18H0Z\" />\r\n <path fill=\"#eee\" d=\"M0 371h512v-23l-256-16L0 348Z\" />\r\n <path fill=\"#ff9811\" d=\"M0 348h512v-38l-256-16L0 310Z\" />\r\n <path fill=\"#6da544\" d=\"m0 292 256-16 256 16v18H0Z\" />\r\n <path fill=\"#ffda44\" d=\"M0 220h512v72H0z\" />\r\n <circle cx=\"256\" cy=\"248\" r=\"64\" fill=\"#eee\" />\r\n <path fill=\"#eee\" d=\"m178 301 78-29 78 29v27H178Z\" />\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":"4iCAmDQ,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"}