Browse Source

add ability to set position of NiceSprite at create time

develop
Rob Colbert 2 years ago
parent
commit
df663966a3
  1. 4
      lib/nice-sprite.js
  2. 17
      release

4
lib/nice-sprite.js

@ -8,8 +8,8 @@ import NiceImage from './nice-image.js';
export default class NiceSprite {
constructor ( ) {
this.position = { x: 0, y: 0 };
constructor (position = { x: 0, y: 0 }) {
this.position = position;
}
async load (url, width, height) {

17
release

@ -0,0 +1,17 @@
#!/bin/bash
if [ -z "$1" ]
then
echo "Must specify the release type: major, minor, patch"
exit;
fi
git checkout develop
yarn version --$1
git push origin develop
git checkout master
git pull . develop
git push origin master
git checkout develop
Loading…
Cancel
Save