Wykres commitów

70 Commity (fe215695b07b41f25d5672304443d9238f1f9bde)

Autor SHA1 Wiadomość Data
Amio fe215695b0 add: support bare badge (without label & icon) 2019-01-02 20:39:28 +08:00
Amio 025adb12a1 fix: render correctly with iconWidth 2018-08-31 13:34:36 +08:00
Amio f847b98972 fix: sanitize text strings 2018-08-30 16:04:44 +08:00
Boris Kubiak 28ebd7038d Edit SVG indentation 2018-08-27 14:10:24 +08:00
Amio a6727789cb chore: slightly refine content layout 2018-08-25 15:01:55 +08:00
Amio db811100d4 fix: iconWidth scale in 10x units 2018-08-24 13:26:08 +08:00
Amio da756fca74 feat: no need to use "emoji=true" flag now
Emojis caculation have nearly the same performance with normal
situation, so this option is needless now.
2018-08-24 10:57:14 +08:00
Amio 303aafd94b fix: accented characters widths caculation 2018-08-24 10:52:42 +08:00
Guillaume Martigny f57d5125c4 tweak: Change saved char widths (#13)
* tweak: Change saved char widths

* tweak: Update json widths file name and reference

* fix: Bad reference
2018-08-23 23:43:34 +08:00
Guillaume Martigny da5795ac13 fix: Accented characters are treated as unknown and fallback to @ width (#14)
* fix: Accented characters are treated as unknown and fallback to @ width

* chore: Improve tests

* chore: Fix linting
2018-08-23 23:29:32 +08:00
Guillaume Martigny 80a2f3b38a perf: Remove dependency and improve performance (#11) 2018-08-23 09:47:55 +08:00
Amio 749f7a6c12 feat: add color black 2018-08-22 15:45:58 +08:00
Amio 0ab8eb9fa8 chore: brighter red, pink, purple 2018-08-22 15:36:29 +08:00
Amio 87dcd1d53c chore: sort svg attributes 2018-08-22 15:21:33 +08:00
Amio 99c6a4a26a chore: use 10x unit for cleaner svg markup 2018-08-22 15:15:55 +08:00
James Harris f48f62fb52 refactor: only include xmlns:xlink for icon badges 2018-08-19 10:11:46 +08:00
Amio 7f01ac1a82 Merge branch 'master' of https://github.com/amio/badgen 2018-08-14 21:38:51 +08:00
Amio dd99690c25 fix: TypeError when running astral on empty string 2018-08-14 21:37:26 +08:00
Jacob Müller e76dfaa370 refactor: modernize codebase and unify code style (#9) 2018-08-10 22:15:58 +08:00
Amio ed1105b32a feat: slightly tweak subject position 2018-08-06 19:26:14 +08:00
Amio e86ac0d3de feat: add textLength to subject text
Insure consistent visual style across all svg render engine.
2018-08-06 14:49:59 +08:00
Amio 5cb3adc2d2 feat: tweak icon right space when empty subject 2018-07-28 18:17:37 +08:00
Amio 903860f6db feat: support iconWidth config 2018-07-28 18:09:29 +08:00
Amio ec91efae27 feat: tweak icon position & size (14 => 13.2) 2018-07-28 10:40:44 +08:00
Amio 6bbec38cde feat: tweak subject text position when icon presented 2018-07-27 00:23:20 +08:00
Amio d0c8c8a548 feat: cyan color "4BA" => "1BC" 2018-07-27 00:20:21 +08:00
Amio 081fdf9eae chore: slightly increase width for unicode & "@" 2018-07-25 15:58:22 +08:00
Amio 72f879e605 chore: tweak icon position 2018-07-25 15:53:33 +08:00
Amio a8a7895702 chore: better warning of input type error 2018-07-25 11:26:44 +08:00
Amio 53ca750fb9 Increase 0.2px width for "@" and unicodes 2018-07-20 17:35:15 +08:00
Amio 3a7a69e622 feat: add icon support 2018-07-20 11:02:00 +08:00
Amio e2a18184da Dependencies are good, eat it 2018-07-19 14:55:10 +08:00
Amio 42c4de58cb Better naming with astral/emoji things 2018-07-19 00:52:48 +08:00
Amio 0a8bb96868 Refine calculation for unicodes 2018-07-19 00:36:06 +08:00
Amio daad4723a4 Experimental multi bytes unicode (emoji) support 2018-07-18 17:57:26 +08:00
Amio 937753c8f9 Add "gray" color as an alias for "grey" 2018-07-18 17:11:45 +08:00
Amio a08ad91d17 Abandon the idea of using 12px font 2018-07-18 16:07:17 +08:00
Amio 0b067b22be Slightly adjust subject text position
Better balance for flat badge
2018-07-18 15:50:57 +08:00
Amio d371712afa Improve error handling 2018-07-18 13:59:40 +08:00
Amio 895d9694d3 Tweak badge shadow 2018-07-16 22:10:56 +08:00
Amio 732aafb370 Tweak red & pink 2018-07-16 22:06:44 +08:00
Amio 4931e0d1a6 Breaking: simplify options arguments 2018-07-16 21:58:23 +08:00
Amio dfe21740a1 Lighter shadow for flat style 2018-07-15 17:30:36 +08:00
Amio 9ddba96348 Add options: {style: 'flat'} 2018-07-15 17:22:56 +08:00
Amio 7e07e75ee0 Refine text position 2018-07-15 02:21:32 +08:00
Amio dc7f562a1c Put widths data to standalone json 2018-07-15 02:14:24 +08:00
Amio fd3a087d48 Optimize svg markup 2018-07-15 02:09:01 +08:00
Amio aeadb70a85 Limit widthTable precision to 2 2018-07-11 13:38:30 +08:00
Amio 66acafbb1b More tweak on text position 2018-07-11 11:04:12 +08:00
Amio cfd9321c1f Refine text position 2018-07-11 02:04:23 +08:00