Skip to content

Commit 7dce769

Browse files
committed
🐛 fixed #34
1 parent a77e75f commit 7dce769

7 files changed

+11
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ Platform-independent canvas render object model api.
1111
## CDN
1212

1313
```html
14-
<script src="https://s0.ssl.qhres.com/!27f9d761/sprite-core.min.js"></script>
14+
<script src="https://s1.ssl.qhres.com/!f2761d1f/sprite-core.min.js"></script>
1515
```

dist/sprite-core.es6.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5935,7 +5935,8 @@ let BaseSprite = (_dec = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["deprecate"]
59355935

59365936
if (width !== '') {
59375937
width = Math.max(0, width - 2 * borderWidth - paddingLeft - paddingRight);
5938-
}if (width !== '') {
5938+
}
5939+
if (height !== '') {
59395940
height = Math.max(0, height - 2 * borderWidth - paddingTop - paddingBottom);
59405941
}
59415942
}

dist/sprite-core.es6.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sprite-core.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8847,7 +8847,8 @@ var BaseSprite = (_dec = (0, _utils.deprecate)('Instead use sprite.cache = null'
88478847

88488848
if (width !== '') {
88498849
width = Math.max(0, width - 2 * borderWidth - paddingLeft - paddingRight);
8850-
}if (width !== '') {
8850+
}
8851+
if (height !== '') {
88518852
height = Math.max(0, height - 2 * borderWidth - paddingTop - paddingBottom);
88528853
}
88538854
}

dist/sprite-core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/basesprite.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,8 @@ var BaseSprite = (_dec = (0, _utils.deprecate)('Instead use sprite.cache = null'
14221422

14231423
if (width !== '') {
14241424
width = Math.max(0, width - 2 * borderWidth - paddingLeft - paddingRight);
1425-
}if (width !== '') {
1425+
}
1426+
if (height !== '') {
14261427
height = Math.max(0, height - 2 * borderWidth - paddingTop - paddingBottom);
14271428
}
14281429
}

src/basesprite.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ export default class BaseSprite extends BaseNode {
469469

470470
if(width !== '') {
471471
width = Math.max(0, width - 2 * borderWidth - paddingLeft - paddingRight);
472-
} if(width !== '') {
472+
}
473+
if(height !== '') {
473474
height = Math.max(0, height - 2 * borderWidth - paddingTop - paddingBottom);
474475
}
475476
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy