-
-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
212be59
commit ac91e89
Showing
12 changed files
with
346 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
|
||
/* istanbul ignore next */ | ||
var Burst, Transit, bitsMap, burst, | ||
__hasProp = {}.hasOwnProperty, | ||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | ||
|
||
bitsMap = require('./bitsMap'); | ||
|
||
Transit = require('./transit'); | ||
|
||
Burst = (function(_super) { | ||
__extends(Burst, _super); | ||
|
||
function Burst() { | ||
return Burst.__super__.constructor.apply(this, arguments); | ||
} | ||
|
||
Burst.prototype.defaults = { | ||
burstPoints: 5, | ||
burstRadius: { | ||
50: 75 | ||
}, | ||
burstDegree: 360, | ||
strokeWidth: 2, | ||
strokeOpacity: 1, | ||
strokeDasharray: '', | ||
strokeDashoffset: '', | ||
stroke: '#ff00ff', | ||
fill: 'transparent', | ||
fillOpacity: 'transparent', | ||
strokeLinecap: '', | ||
points: 3, | ||
x: 0, | ||
y: 0, | ||
shiftX: 0, | ||
shiftY: 0, | ||
opacity: 1, | ||
radius: 50, | ||
angle: 0, | ||
size: null, | ||
sizeGap: 0, | ||
onInit: null, | ||
onStart: null, | ||
onComplete: null, | ||
onCompleteChain: null, | ||
onUpdate: null, | ||
duration: 500, | ||
delay: 0, | ||
repeat: 1, | ||
yoyo: false, | ||
easing: 'Linear.None' | ||
}; | ||
|
||
Burst.prototype.render = function() { | ||
return Burst.__super__.render.apply(this, arguments); | ||
}; | ||
|
||
return Burst; | ||
|
||
})(Transit); | ||
|
||
burst = new Burst; | ||
|
||
|
||
/* istanbul ignore next */ | ||
|
||
if ((typeof define === "function") && define.amd) { | ||
define("Burst", [], function() { | ||
return Burst; | ||
}); | ||
} | ||
|
||
if ((typeof module === "object") && (typeof module.exports === "object")) { | ||
module.exports = Burst; | ||
} | ||
|
||
|
||
/* istanbul ignore next */ | ||
|
||
if (typeof window !== "undefined" && window !== null) { | ||
if (window.mojs == null) { | ||
window.mojs = {}; | ||
} | ||
} | ||
|
||
if (typeof window !== "undefined" && window !== null) { | ||
window.mojs.Burst = Burst; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# ignore coffescript sudo code | ||
### istanbul ignore next ### | ||
|
||
bitsMap = require './bitsMap' | ||
Transit = require './transit' | ||
|
||
class Burst extends Transit | ||
defaults: | ||
# burst props | ||
burstPoints: 5 | ||
burstRadius: { 50: 75 } | ||
burstDegree: 360 | ||
# presentation props | ||
strokeWidth: 2 | ||
strokeOpacity: 1 | ||
strokeDasharray: '' | ||
strokeDashoffset: '' | ||
stroke: '#ff00ff' | ||
fill: 'transparent' | ||
fillOpacity: 'transparent' | ||
strokeLinecap: '' | ||
points: 3 | ||
# position props/el props | ||
x: 0 | ||
y: 0 | ||
shiftX: 0 | ||
shiftY: 0 | ||
opacity: 1 | ||
# size props | ||
radius: 50 | ||
angle: 0 | ||
size: null | ||
sizeGap: 0 | ||
# callbacks | ||
onInit: null | ||
onStart: null | ||
onComplete: null | ||
onCompleteChain: null | ||
onUpdate: null | ||
# tween props | ||
duration: 500 | ||
delay: 0 | ||
repeat: 1 | ||
yoyo: false | ||
easing: 'Linear.None' | ||
|
||
render:-> | ||
super | ||
|
||
burst = new Burst | ||
|
||
### istanbul ignore next ### | ||
if (typeof define is "function") and define.amd | ||
define "Burst", [], -> Burst | ||
if (typeof module is "object") and (typeof module.exports is "object") | ||
module.exports = Burst | ||
### istanbul ignore next ### | ||
window?.mojs ?= {} | ||
window?.mojs.Burst = Burst | ||
|
Oops, something went wrong.