Skip to content

Commit

Permalink
chore: 0.63.4
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Oct 27, 2021
1 parent 07cba9c commit c5ba929
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
11 changes: 8 additions & 3 deletions index.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,17 +341,22 @@ var STYLE_KEY = {
BORDER_LEFT: 100,
TRANSLATE_PATH: 101
};
var STYLE2LOWER_MAP = {};

function style2Lower(s) {
return s.toLowerCase().replace(/_([a-z])/g, function ($0, $1) {
STYLE2LOWER_MAP[s] = STYLE2LOWER_MAP[s] || s.toLowerCase().replace(/_([a-z])/g, function ($0, $1) {
return $1.toUpperCase();
});
return STYLE2LOWER_MAP[s];
}

var STYLE2UPPER_MAP = {};

function style2Upper(s) {
return s.replace(/([a-z\d_])([A-Z])/g, function ($0, $1, $2) {
STYLE2UPPER_MAP[s] = STYLE2UPPER_MAP[s] || s.replace(/([a-z\d_])([A-Z])/g, function ($0, $1, $2) {
return $1 + '_' + $2;
}).toUpperCase();
return STYLE2UPPER_MAP[s];
}

var STYLE_R_KEY = {};
Expand Down Expand Up @@ -36277,7 +36282,7 @@ var refresh = {
Cache: Cache
};

var version = "0.63.3";
var version = "0.63.4";

Geom$1.register('$line', Line);
Geom$1.register('$polyline', Polyline);
Expand Down
2 changes: 1 addition & 1 deletion index.es.js.map

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,17 +347,22 @@
BORDER_LEFT: 100,
TRANSLATE_PATH: 101
};
var STYLE2LOWER_MAP = {};

function style2Lower(s) {
return s.toLowerCase().replace(/_([a-z])/g, function ($0, $1) {
STYLE2LOWER_MAP[s] = STYLE2LOWER_MAP[s] || s.toLowerCase().replace(/_([a-z])/g, function ($0, $1) {
return $1.toUpperCase();
});
return STYLE2LOWER_MAP[s];
}

var STYLE2UPPER_MAP = {};

function style2Upper(s) {
return s.replace(/([a-z\d_])([A-Z])/g, function ($0, $1, $2) {
STYLE2UPPER_MAP[s] = STYLE2UPPER_MAP[s] || s.replace(/([a-z\d_])([A-Z])/g, function ($0, $1, $2) {
return $1 + '_' + $2;
}).toUpperCase();
return STYLE2UPPER_MAP[s];
}

var STYLE_R_KEY = {};
Expand Down Expand Up @@ -36283,7 +36288,7 @@
Cache: Cache
};

var version = "0.63.3";
var version = "0.63.4";

Geom$1.register('$line', Line);
Geom$1.register('$polyline', Polyline);
Expand Down
2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "karas",
"version": "0.63.3",
"version": "0.63.4",
"description": "A flexible JavaScript framework for RIA on Canvas/Svg/Webgl.",
"maintainers": [
{
Expand Down

0 comments on commit c5ba929

Please sign in to comment.