MCPcopy
hub / github.com/spritejs/spritejs / loadEasingDataWithFlatBuffers

Function loadEasingDataWithFlatBuffers

benchmark/js/cocos2d-js-v3.13.js:65688–65700  ·  view source on GitHub ↗
(frame, options)

Source from the content-addressed store, hash-verified

65686 var blendFunc = options["BlendFunc"];
65687 if(blendFunc && blendFunc["Src"] !== undefined && blendFunc["Dst"] !== undefined)
65688 frame.setBlendFunc(new cc.BlendFunc(blendFunc["Src"], blendFunc["Dst"]));
65689 return frame;
65690 }
65691 }
65692 ];
65693 var loadEasingDataWithFlatBuffers = function(frame, options){
65694 var type = options["Type"];
65695 frame.setTweenType(type);
65696 var points = options["Points"];
65697 var result = [];
65698 if(points){
65699 points.forEach(function(p){
65700 result.push(p["X"]);
65701 result.push(p["Y"]);
65702 });
65703 frame.setEasingParams(result);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected