UNPKG

ember-snap-svg

Version:

Imports the Snap.svg shim for your Ember CLI project

1 lines 11.2 kB
{"version":3,"sources":["dummy/app.js","dummy/initializers/app-version.js","dummy/initializers/export-application-global.js","dummy/router.js","dummy/templates/application.js","dummy/templates/index.js","dummy/tests/app.jshint.js","dummy/tests/helpers/resolver.js","dummy/tests/helpers/resolver.jshint.js","dummy/tests/helpers/start-app.js","dummy/tests/helpers/start-app.jshint.js","dummy/tests/router.jshint.js","dummy/tests/test-helper.js","dummy/tests/test-helper.jshint.js","dummy/tests/views/index.jshint.js","dummy/views/index.js","vendor/ember-cli/app-suffix.js"],"sourcesContent":["define('dummy/app', ['exports', 'ember', 'ember/resolver', 'ember/load-initializers', 'dummy/config/environment'], function (exports, Ember, Resolver, loadInitializers, config) {\n\n 'use strict';\n\n Ember['default'].MODEL_FACTORY_INJECTIONS = true;\n\n var App = Ember['default'].Application.extend({\n modulePrefix: config['default'].modulePrefix,\n podModulePrefix: config['default'].podModulePrefix,\n Resolver: Resolver['default']\n });\n\n loadInitializers['default'](App, config['default'].modulePrefix);\n\n exports['default'] = App;\n\n});","define('dummy/initializers/app-version', ['exports', 'dummy/config/environment', 'ember'], function (exports, config, Ember) {\n\n 'use strict';\n\n var classify = Ember['default'].String.classify;\n\n exports['default'] = {\n name: \"App Version\",\n initialize: function (container, application) {\n var appName = classify(application.toString());\n Ember['default'].libraries.register(appName, config['default'].APP.version);\n }\n };\n\n});","define('dummy/initializers/export-application-global', ['exports', 'ember', 'dummy/config/environment'], function (exports, Ember, config) {\n\n 'use strict';\n\n exports.initialize = initialize;\n\n function initialize(container, application) {\n var classifiedName = Ember['default'].String.classify(config['default'].modulePrefix);\n\n if (config['default'].exportApplicationGlobal) {\n window[classifiedName] = application;\n }\n };\n\n exports['default'] = {\n name: \"export-application-global\",\n\n initialize: initialize\n };\n\n});","define('dummy/router', ['exports', 'ember', 'dummy/config/environment'], function (exports, Ember, config) {\n\n 'use strict';\n\n var Router = Ember['default'].Router.extend({\n location: config['default'].locationType\n });\n\n Router.map(function () {});\n\n exports['default'] = Router;\n\n});","define('dummy/templates/application', ['exports', 'ember'], function (exports, Ember) {\n\n 'use strict';\n\n exports['default'] = Ember['default'].Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\n helpers = this.merge(helpers, Ember['default'].Handlebars.helpers); data = data || {};\n var buffer = '', stack1;\n\n\n stack1 = helpers._triageMustache.call(depth0, \"outlet\", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:[\"ID\"],data:data});\n if(stack1 || stack1 === 0) { data.buffer.push(stack1); }\n data.buffer.push(\"\\n\");\n return buffer;\n \n });\n\n});","define('dummy/templates/index', ['exports', 'ember'], function (exports, Ember) {\n\n 'use strict';\n\n exports['default'] = Ember['default'].Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {\n this.compilerInfo = [4,'>= 1.0.0'];\n helpers = this.merge(helpers, Ember['default'].Handlebars.helpers); data = data || {};\n var buffer = '', escapeExpression=this.escapeExpression;\n\n\n data.buffer.push(\"<span \");\n data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{\n 'class': (\":morph-shape view.morphShapeOpen:open\")\n },hashTypes:{'class': \"STRING\"},hashContexts:{'class': depth0},contexts:[],types:[],data:data})));\n data.buffer.push(\"\\n \");\n data.buffer.push(escapeExpression(helpers.action.call(depth0, \"toggle\", {hash:{\n 'target': (\"view\")\n },hashTypes:{'target': \"ID\"},hashContexts:{'target': depth0},contexts:[depth0],types:[\"STRING\"],data:data})));\n data.buffer.push(\">\\n <svg width=\\\"100%\\\"\\n height=\\\"100%\\\"\\n viewBox=\\\"0 0 300 300\\\"\\n preserveAspectRatio=\\\"none\\\">\\n <path \");\n data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{\n 'd': (\"view.resetPath\")\n },hashTypes:{'d': \"STRING\"},hashContexts:{'d': depth0},contexts:[],types:[],data:data})));\n data.buffer.push(\" />\\n </svg>\\n</span>\");\n return buffer;\n \n });\n\n});","define('dummy/tests/app.jshint', function () {\n\n 'use strict';\n\n module('JSHint - .');\n test('app.js should pass jshint', function() { \n ok(true, 'app.js should pass jshint.'); \n });\n\n});","define('dummy/tests/helpers/resolver', ['exports', 'ember/resolver', 'dummy/config/environment'], function (exports, Resolver, config) {\n\n 'use strict';\n\n var resolver = Resolver['default'].create();\n\n resolver.namespace = {\n modulePrefix: config['default'].modulePrefix,\n podModulePrefix: config['default'].podModulePrefix\n };\n\n exports['default'] = resolver;\n\n});","define('dummy/tests/helpers/resolver.jshint', function () {\n\n 'use strict';\n\n module('JSHint - helpers');\n test('helpers/resolver.js should pass jshint', function() { \n ok(true, 'helpers/resolver.js should pass jshint.'); \n });\n\n});","define('dummy/tests/helpers/start-app', ['exports', 'ember', 'dummy/app', 'dummy/router', 'dummy/config/environment'], function (exports, Ember, Application, Router, config) {\n\n 'use strict';\n\n\n\n exports['default'] = startApp;\n function startApp(attrs) {\n var application;\n\n var attributes = Ember['default'].merge({}, config['default'].APP);\n attributes = Ember['default'].merge(attributes, attrs); // use defaults, but you can override;\n\n Ember['default'].run(function () {\n application = Application['default'].create(attributes);\n application.setupForTesting();\n application.injectTestHelpers();\n });\n\n return application;\n }\n\n});","define('dummy/tests/helpers/start-app.jshint', function () {\n\n 'use strict';\n\n module('JSHint - helpers');\n test('helpers/start-app.js should pass jshint', function() { \n ok(true, 'helpers/start-app.js should pass jshint.'); \n });\n\n});","define('dummy/tests/router.jshint', function () {\n\n 'use strict';\n\n module('JSHint - .');\n test('router.js should pass jshint', function() { \n ok(true, 'router.js should pass jshint.'); \n });\n\n});","define('dummy/tests/test-helper', ['dummy/tests/helpers/resolver', 'ember-qunit'], function (resolver, ember_qunit) {\n\n\t'use strict';\n\n\tember_qunit.setResolver(resolver['default']);\n\n});","define('dummy/tests/test-helper.jshint', function () {\n\n 'use strict';\n\n module('JSHint - .');\n test('test-helper.js should pass jshint', function() { \n ok(true, 'test-helper.js should pass jshint.'); \n });\n\n});","define('dummy/tests/views/index.jshint', function () {\n\n 'use strict';\n\n module('JSHint - views');\n test('views/index.js should pass jshint', function() { \n ok(false, 'views/index.js should pass jshint.\\nviews/index.js: line 11, col 24, Missing \\'new\\' prefix when invoking a constructor.\\n\\n1 error'); \n });\n\n});","define('dummy/views/index', ['exports', 'ember', 'snap-svg', 'mina'], function (exports, Ember, Snap, mina) {\n\n 'use strict';\n\n exports['default'] = Ember['default'].View.extend({\n open: false,\n\n morphShapeOpen: false,\n\n _setUpSvg: (function () {\n this.set(\"pathEl\", Snap['default'](Ember['default'].$(\"svg\")[0]).select(\"path\"));\n }).on(\"didInsertElement\"),\n\n activePath: \"m 190.64416,111.06359 c 0,54.65063 -37.77607,109.30126 -88.14416,109.30126 -50.368086,0 -88.144155,-54.65063 -88.144155,-109.30126 0,-54.650631 37.776069,-109.3012619 88.144155,-109.3012619 50.36809,0 88.14416,54.6506309 88.14416,109.3012619 z\",\n\n resetPath: \"m 203.24813,111.06359 c 0,50.37407 -50.37407,100.74813 -100.74813,100.74813 -50.374061,0 -100.7481299,-50.37406 -100.7481299,-100.74813 0,-50.374061 50.3740689,-100.748129 100.7481299,-100.748129 50.37406,0 100.74813,50.374068 100.74813,100.748129 z\",\n\n actions: {\n toggle: function () {\n if (this.get(\"open\")) {\n this.set(\"morphShapeOpen\", false);\n } else {\n Ember['default'].run.later(this, function () {\n this.set(\"morphShapeOpen\", true);\n }, 175);\n }\n\n var pathEl = this.get(\"pathEl\"),\n activePath = this.get(\"activePath\"),\n resetPath = this.get(\"resetPath\");\n\n pathEl.stop().animate({ path: activePath }, 150, mina['default'].easeout, function () {\n pathEl.stop().animate({ path: resetPath }, 800, mina['default'].elastic);\n });\n\n this.toggleProperty(\"open\");\n }\n }\n });\n\n});","/* jshint ignore:start */\n\ndefine('dummy/config/environment', ['ember'], function(Ember) {\n var prefix = 'dummy';\n/* jshint ignore:start */\n\ntry {\n var metaName = prefix + '/config/environment';\n var rawConfig = Ember['default'].$('meta[name=\"' + metaName + '\"]').attr('content');\n var config = JSON.parse(unescape(rawConfig));\n\n return { 'default': config };\n}\ncatch(err) {\n throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n/* jshint ignore:end */\n\n});\n\nif (runningTests) {\n require(\"dummy/tests/test-helper\");\n} else {\n require(\"dummy/app\")[\"default\"].create({\"name\":\"ember-snap-svg\",\"version\":\"0.0.4.84ef0065\"});\n}\n\n/* jshint ignore:end */\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;","file":"dummy.js"}