Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.8 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * VERSION: 0.6.1
  3. * DATE: 2018-02-15
  4. * UPDATES AND DOCS AT: http://greensock.com
  5. *
  6. * @license Copyright (c) 2008-2019, GreenSock. All rights reserved.
  7. * This work is subject to the terms at http://greensock.com/standard-license or for
  8. * Club GreenSock members, the software agreement that was issued with your membership.
  9. *
  10. * @author: Jack Doyle, jack@greensock.com
  11. */
  12. /* eslint-disable */
  13. var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(global) !== "undefined") ? global : this || window; //helps ensure compatibility with AMD/RequireJS and CommonJS/Node
  14. (_gsScope._gsQueue || (_gsScope._gsQueue = [])).push( function() {
  15. "use strict";
  16. _gsScope._gsDefine.plugin({
  17. propName: "attr",
  18. API: 2,
  19. version: "0.6.1",
  20. //called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.
  21. init: function(target, value, tween, index) {
  22. var p, end;
  23. if (typeof(target.setAttribute) !== "function") {
  24. return false;
  25. }
  26. for (p in value) {
  27. end = value[p];
  28. if (typeof(end) === "function") {
  29. end = end(index, target);
  30. }
  31. this._addTween(target, "setAttribute", target.getAttribute(p) + "", end + "", p, false, p);
  32. this._overwriteProps.push(p);
  33. }
  34. return true;
  35. }
  36. });
  37. }); if (_gsScope._gsDefine) { _gsScope._gsQueue.pop()(); }
  38. //export to AMD/RequireJS and CommonJS/Node (precursor to full modular build system coming at a later date)
  39. (function(name) {
  40. "use strict";
  41. var getGlobal = function() {
  42. return (_gsScope.GreenSockGlobals || _gsScope)[name];
  43. };
  44. if (typeof(module) !== "undefined" && module.exports) { //node
  45. require("../TweenLite.js");
  46. module.exports = getGlobal();
  47. } else if (typeof(define) === "function" && define.amd) { //AMD
  48. define(["TweenLite"], getGlobal);
  49. }
  50. }("AttrPlugin"));