Skip to content

Commit 11ec800

Browse files
committed
build dist files, bunp version
1 parent b8f2969 commit 11ec800

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

dist/donutty-jquery.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* Donutty ~ Create SVG donut charts with Javascript
3-
* 7/12/2021
3+
* 19/10/2022
44
* @author simeydotme <[email protected]>
5-
* @version 2.3.1
5+
* @version 2.4.0
66
* @license ISC
77
* @link http://simey.me
88
* @preserve
@@ -72,6 +72,7 @@
7272
this.options.title = isDefined( this.options.title ) ? this.options.title : function() { return "Donut Chart Graphic"; };
7373
this.options.desc = isDefined( this.options.desc ) ? this.options.desc : function( v ) { return "A donut chart ranging from " + v.min + " to " + v.max + " with a current value of " + v.value + "."; };
7474
this.options.dir = isDefined( this.options.dir ) ? this.options.dir : false;
75+
this.options.anchor = isDefined( this.options.anchor ) && this.options.anchor === "top" ? "top" : "bottom";
7576

7677
if ( !this.options.dir ) {
7778
this.options.dir = this.$wrapper.dir;
@@ -205,8 +206,10 @@
205206

206207
var viewbox = this.options.radius * 2 + this.options.thickness + 1,
207208
rotateExtra = this.options.round ? this.options.thickness / 3 : 0,
208-
rotate = this.options.circle ? 90 + rotateExtra : -225,
209-
scale = this.options.dir === "rtl" ? "-1, 1" : "1, 1";
209+
rotate = (this.options.circle ? 90 + rotateExtra : -225),
210+
scaleX = this.options.dir === "rtl" ? "-1" : "1",
211+
scaleY = this.options.anchor === "top" ? "-1" : "1",
212+
scale = scaleX + "," + scaleY;
210213

211214
if ( this.options.padding >= 0 ) {
212215
viewbox += this.options.padding;

dist/donutty-jquery.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/donutty.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* Donutty ~ Create SVG donut charts with Javascript
3-
* 7/12/2021
3+
* 19/10/2022
44
* @author simeydotme <[email protected]>
5-
* @version 2.3.1
5+
* @version 2.4.0
66
* @license ISC
77
* @link http://simey.me
88
* @preserve
@@ -72,6 +72,7 @@
7272
this.options.title = isDefined( this.options.title ) ? this.options.title : function() { return "Donut Chart Graphic"; };
7373
this.options.desc = isDefined( this.options.desc ) ? this.options.desc : function( v ) { return "A donut chart ranging from " + v.min + " to " + v.max + " with a current value of " + v.value + "."; };
7474
this.options.dir = isDefined( this.options.dir ) ? this.options.dir : false;
75+
this.options.anchor = isDefined( this.options.anchor ) && this.options.anchor === "top" ? "top" : "bottom";
7576

7677
if ( !this.options.dir ) {
7778
this.options.dir = this.$wrapper.dir;
@@ -205,8 +206,10 @@
205206

206207
var viewbox = this.options.radius * 2 + this.options.thickness + 1,
207208
rotateExtra = this.options.round ? this.options.thickness / 3 : 0,
208-
rotate = this.options.circle ? 90 + rotateExtra : -225,
209-
scale = this.options.dir === "rtl" ? "-1, 1" : "1, 1";
209+
rotate = (this.options.circle ? 90 + rotateExtra : -225),
210+
scaleX = this.options.dir === "rtl" ? "-1" : "1",
211+
scaleY = this.options.anchor === "top" ? "-1" : "1",
212+
scale = scaleX + "," + scaleY;
210213

211214
if ( this.options.padding >= 0 ) {
212215
viewbox += this.options.padding;

0 commit comments

Comments
 (0)