Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to change the empty star SVG independenly of star SVG #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoseVte
Copy link

@JoseVte JoseVte commented Nov 24, 2017

{ starWidth: "22px", spacing: "4px", fullStar: true, ratedFill: "#000000", starSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 18 18\">\n" + " <path fill-rule=\"evenodd\" d=\"M10,15 L5.01486676,17.6208396 C4.52183151,17.8800436 4.19930626,17.6402997 4.29264169,17.0961124 L5.24471742,11.545085 L1.21165991,7.61382551 C0.812786016,7.22501956 0.941130193,6.84419488 1.48752534,6.76479902 L7.06107374,5.95491503 L9.55364036,0.90442342 C9.80015798,0.404924158 10.2020043,0.409305426 10.4463596,0.90442342 L12.9389263,5.95491503 L18.5124747,6.76479902 C19.0637048,6.84489745 19.1837153,7.2284299 18.7883401,7.61382551 L14.7552826,11.545085 L15.7073583,17.0961124 C15.8015197,17.6451152 15.4738439,17.87777 14.9851332,17.6208396 L10,15 Z\" transform=\"translate(-1)\"/>\n" + "</svg>" }

image

{ starWidth: "22px", spacing: "4px", fullStar: true, ratedFill: "#000000", starSvgEmpty: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"19\" viewBox=\"0 0 20 19\">\n" + " <path fill=\"none\" stroke=\"#000\" d=\"M111.333333,15 L106.3482,17.6208396 C105.855165,17.8800436 105.53264,17.6402997 105.625975,17.0961124 L106.578051,11.545085 L102.544993,7.61382551 C102.146119,7.22501956 102.274464,6.84419488 102.820859,6.76479902 L108.394407,5.95491503 L110.886974,0.90442342 C111.133491,0.404924158 111.535338,0.409305426 111.779693,0.90442342 L114.27226,5.95491503 L119.845808,6.76479902 C120.397038,6.84489745 120.517049,7.2284299 120.121673,7.61382551 L116.088616,11.545085 L117.040692,17.0961124 C117.134853,17.6451152 116.807177,17.87777 116.318467,17.6208396 L111.333333,15 Z\" transform=\"translate(-101)\"/>\n" + "</svg>", starSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 18 18\">\n" + " <path fill-rule=\"evenodd\" d=\"M10,15 L5.01486676,17.6208396 C4.52183151,17.8800436 4.19930626,17.6402997 4.29264169,17.0961124 L5.24471742,11.545085 L1.21165991,7.61382551 C0.812786016,7.22501956 0.941130193,6.84419488 1.48752534,6.76479902 L7.06107374,5.95491503 L9.55364036,0.90442342 C9.80015798,0.404924158 10.2020043,0.409305426 10.4463596,0.90442342 L12.9389263,5.95491503 L18.5124747,6.76479902 C19.0637048,6.84489745 19.1837153,7.2284299 18.7883401,7.61382551 L14.7552826,11.545085 L15.7073583,17.0961124 C15.8015197,17.6451152 15.4738439,17.87777 14.9851332,17.6208396 L10,15 Z\" transform=\"translate(-1)\"/>\n" + "</svg>" }

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant