UNPKG

vue-circle-flags

Version:

A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags

1 lines 7.68 kB
{"version":3,"file":"fr-bre-CPNO4hIt.cjs","names":[],"sources":["../src/components/flags/fr-bre.vue","../src/components/flags/fr-bre.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=\"1d95aa2c-2038-4468-88c3-f239036ab8cf\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#1d95aa2c-2038-4468-88c3-f239036ab8cf)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path\r\n fill=\"#eee\"\r\n d=\"M0 0h256l256 57v57l-32 28 32 29v57l-32 28 32 29v56l-32 29 32 28v57l-256 29L0 455v-57l32-28-32-29v-56l32-29-32-28Z\"\r\n />\r\n <path\r\n fill=\"#333\"\r\n d=\"M256 0h256v57H256zm0 114h256v57H256zM0 228h512v57H0zm0 113h512v57H0zm0 114h512v57H0zM16 72l19 14 19-14-19-40z\"\r\n />\r\n <circle cx=\"46.7\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"22.7\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"34.7\" cy=\"20.4\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m109 72 19 14 19-14-19-40z\" />\r\n <circle cx=\"140.4\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"116.4\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"128.4\" cy=\"20.4\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m203 72 19 14 19-14-19-40z\" />\r\n <circle cx=\"234.1\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"210.1\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"222.1\" cy=\"20.4\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m156 138 19 14 19-14-19-40z\" />\r\n <circle cx=\"187.2\" cy=\"98.2\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"163.2\" cy=\"98.2\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"175.2\" cy=\"86.2\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m63 138 19 14 18-14-18-40z\" />\r\n <circle cx=\"93.5\" cy=\"98.2\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"69.5\" cy=\"98.2\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"81.5\" cy=\"86.2\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m16 204 19 14 19-14-19-40z\" />\r\n <circle cx=\"46.7\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"22.7\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"34.7\" cy=\"152\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m109 204 19 14 19-14-19-40z\" />\r\n <circle cx=\"140.4\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"116.4\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"128.4\" cy=\"152\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m203 204 19 14 19-14-19-40z\" />\r\n <circle cx=\"234.1\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"210.1\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"222.1\" cy=\"152\" r=\"6\" fill=\"#333\" />\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=\"1d95aa2c-2038-4468-88c3-f239036ab8cf\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#1d95aa2c-2038-4468-88c3-f239036ab8cf)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path\r\n fill=\"#eee\"\r\n d=\"M0 0h256l256 57v57l-32 28 32 29v57l-32 28 32 29v56l-32 29 32 28v57l-256 29L0 455v-57l32-28-32-29v-56l32-29-32-28Z\"\r\n />\r\n <path\r\n fill=\"#333\"\r\n d=\"M256 0h256v57H256zm0 114h256v57H256zM0 228h512v57H0zm0 113h512v57H0zm0 114h512v57H0zM16 72l19 14 19-14-19-40z\"\r\n />\r\n <circle cx=\"46.7\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"22.7\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"34.7\" cy=\"20.4\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m109 72 19 14 19-14-19-40z\" />\r\n <circle cx=\"140.4\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"116.4\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"128.4\" cy=\"20.4\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m203 72 19 14 19-14-19-40z\" />\r\n <circle cx=\"234.1\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"210.1\" cy=\"32.4\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"222.1\" cy=\"20.4\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m156 138 19 14 19-14-19-40z\" />\r\n <circle cx=\"187.2\" cy=\"98.2\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"163.2\" cy=\"98.2\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"175.2\" cy=\"86.2\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m63 138 19 14 18-14-18-40z\" />\r\n <circle cx=\"93.5\" cy=\"98.2\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"69.5\" cy=\"98.2\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"81.5\" cy=\"86.2\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m16 204 19 14 19-14-19-40z\" />\r\n <circle cx=\"46.7\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"22.7\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"34.7\" cy=\"152\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m109 204 19 14 19-14-19-40z\" />\r\n <circle cx=\"140.4\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"116.4\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"128.4\" cy=\"152\" r=\"6\" fill=\"#333\" />\r\n <path fill=\"#333\" d=\"m203 204 19 14 19-14-19-40z\" />\r\n <circle cx=\"234.1\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"210.1\" cy=\"164\" r=\"6\" fill=\"#333\" />\r\n <circle cx=\"222.1\" cy=\"152\" r=\"6\" fill=\"#333\" />\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":"q5EA6EQ,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"}