diff --git a/badges.svg b/badges.svg index bdd84a45..1c03e1a8 100644 --- a/badges.svg +++ b/badges.svg @@ -1,5 +1,5 @@ - - coverage: 86.91% + + coverage: 86.27% @@ -13,8 +13,8 @@ \ No newline at end of file diff --git a/coverage-summary.json b/coverage-summary.json index 025a2812..d0e6d7ab 100644 --- a/coverage-summary.json +++ b/coverage-summary.json @@ -1,7 +1,7 @@ -{"total": {"lines":{"total":280,"covered":248,"skipped":0,"pct":88.57},"statements":{"total":298,"covered":259,"skipped":0,"pct":86.91},"functions":{"total":67,"covered":60,"skipped":0,"pct":89.55},"branches":{"total":181,"covered":121,"skipped":0,"pct":66.85},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}} +{"total": {"lines":{"total":285,"covered":252,"skipped":0,"pct":88.42},"statements":{"total":306,"covered":264,"skipped":0,"pct":86.27},"functions":{"total":68,"covered":61,"skipped":0,"pct":89.7},"branches":{"total":189,"covered":124,"skipped":0,"pct":65.6},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}} ,"/home/runner/work/svgtofont/svgtofont/src/cli.ts": {"lines":{"total":11,"covered":0,"skipped":0,"pct":0},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":11,"covered":0,"skipped":0,"pct":0},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}} ,"/home/runner/work/svgtofont/svgtofont/src/generate.ts": {"lines":{"total":36,"covered":35,"skipped":0,"pct":97.22},"functions":{"total":11,"covered":11,"skipped":0,"pct":100},"statements":{"total":41,"covered":40,"skipped":0,"pct":97.56},"branches":{"total":27,"covered":17,"skipped":0,"pct":62.96}} -,"/home/runner/work/svgtofont/svgtofont/src/index.ts": {"lines":{"total":98,"covered":94,"skipped":0,"pct":95.91},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":103,"covered":98,"skipped":0,"pct":95.14},"branches":{"total":87,"covered":71,"skipped":0,"pct":81.6}} -,"/home/runner/work/svgtofont/svgtofont/src/log.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":7,"covered":4,"skipped":0,"pct":57.14},"statements":{"total":12,"covered":8,"skipped":0,"pct":66.66},"branches":{"total":6,"covered":3,"skipped":0,"pct":50}} +,"/home/runner/work/svgtofont/svgtofont/src/index.ts": {"lines":{"total":100,"covered":96,"skipped":0,"pct":96},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":106,"covered":100,"skipped":0,"pct":94.33},"branches":{"total":91,"covered":73,"skipped":0,"pct":80.21}} +,"/home/runner/work/svgtofont/svgtofont/src/log.ts": {"lines":{"total":13,"covered":10,"skipped":0,"pct":76.92},"functions":{"total":8,"covered":5,"skipped":0,"pct":62.5},"statements":{"total":17,"covered":11,"skipped":0,"pct":64.7},"branches":{"total":10,"covered":4,"skipped":0,"pct":40}} ,"/home/runner/work/svgtofont/svgtofont/src/utils.ts": {"lines":{"total":125,"covered":111,"skipped":0,"pct":88.8},"functions":{"total":43,"covered":41,"skipped":0,"pct":95.34},"statements":{"total":131,"covered":113,"skipped":0,"pct":86.25},"branches":{"total":55,"covered":30,"skipped":0,"pct":54.54}} } diff --git a/example/index.html b/example/index.html index 30a69ee0..9db03044 100644 --- a/example/index.html +++ b/example/index.html @@ -74,12 +74,12 @@ /* IE9*/ src: url("svgtofont.eot#iefix") format("embedded-opentype"), /* IE6-IE8 */ - url("svgtofont.woff2?1666605679954") format("woff2"), - url("svgtofont.woff?1666605679954") format("woff"), + url("svgtofont.woff2?1666606152330") format("woff2"), + url("svgtofont.woff?1666606152330") format("woff"), /* chrome, firefox */ - url("svgtofont.ttf?1666605679954") format("truetype"), + url("svgtofont.ttf?1666606152330") format("truetype"), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url("svgtofont.svg#svgtofont?1666605679954") format("svg"); + url("svgtofont.svg#svgtofont?1666606152330") format("svg"); /* iOS 4.1- */ } .iconfont { diff --git a/example/svgtofont.css b/example/svgtofont.css index 53bba3b4..18d3b52d 100644 --- a/example/svgtofont.css +++ b/example/svgtofont.css @@ -1,11 +1,11 @@ @font-face { font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.eot b/example/svgtofont.eot index 79565f89..10a6409e 100644 Binary files a/example/svgtofont.eot and b/example/svgtofont.eot differ diff --git a/example/svgtofont.less b/example/svgtofont.less index 8f74baed..b69fab95 100644 --- a/example/svgtofont.less +++ b/example/svgtofont.less @@ -1,10 +1,10 @@ @font-face {font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.module.less b/example/svgtofont.module.less index 2d8a072c..38091382 100644 --- a/example/svgtofont.module.less +++ b/example/svgtofont.module.less @@ -1,10 +1,10 @@ @font-face {font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.scss b/example/svgtofont.scss index ce261ebc..c890f92c 100644 --- a/example/svgtofont.scss +++ b/example/svgtofont.scss @@ -1,10 +1,10 @@ @font-face {font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.styl b/example/svgtofont.styl index 8f74baed..b69fab95 100644 --- a/example/svgtofont.styl +++ b/example/svgtofont.styl @@ -1,10 +1,10 @@ @font-face {font-family: "svgtofont"; - src: url('svgtofont.eot?t=1666605679936'); /* IE9*/ - src: url('svgtofont.eot?t=1666605679936#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url("svgtofont.woff2?t=1666605679936") format("woff2"), - url("svgtofont.woff?t=1666605679936") format("woff"), - url('svgtofont.ttf?t=1666605679936') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('svgtofont.svg?t=1666605679936#svgtofont') format('svg'); /* iOS 4.1- */ + src: url('svgtofont.eot?t=1666606152307'); /* IE9*/ + src: url('svgtofont.eot?t=1666606152307#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url("svgtofont.woff2?t=1666606152307") format("woff2"), + url("svgtofont.woff?t=1666606152307") format("woff"), + url('svgtofont.ttf?t=1666606152307') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ + url('svgtofont.svg?t=1666606152307#svgtofont') format('svg'); /* iOS 4.1- */ } [class^="svgtofont-"], [class*=" svgtofont-"] { diff --git a/example/svgtofont.ttf b/example/svgtofont.ttf index ebe0b086..b0fda2b2 100644 Binary files a/example/svgtofont.ttf and b/example/svgtofont.ttf differ diff --git a/example/svgtofont.woff b/example/svgtofont.woff index fcaa468e..f5e262bb 100644 Binary files a/example/svgtofont.woff and b/example/svgtofont.woff differ diff --git a/example/svgtofont.woff2 b/example/svgtofont.woff2 index 3181dc1f..9398043f 100644 Binary files a/example/svgtofont.woff2 and b/example/svgtofont.woff2 differ diff --git a/index.html b/index.html index 2510283b..935cecee 100644 --- a/index.html +++ b/index.html @@ -413,14 +413,16 @@

log

Type: Boolean

A value of false disables logging

+

logger

+
+

Type: (msg) => void

+
+

log callback function

dist

Type: String
Default value: dist => fonts

diff --git a/lcov-report/cli.ts.html b/lcov-report/cli.ts.html index 195945fd..60ad0bac 100644 --- a/lcov-report/cli.ts.html +++ b/lcov-report/cli.ts.html @@ -241,7 +241,7 @@

All files cli.ts