polymer-core-rails 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/app/assets/components/context-free-parser/context-free-parser.js +27 -4
- data/app/assets/components/core-a11y-keys/core-a11y-keys.html +4 -4
- data/app/assets/components/core-ajax/core-ajax.html +38 -10
- data/app/assets/components/core-ajax/core-xhr.html +1 -1
- data/app/assets/components/core-animated-pages/core-animated-pages.html +25 -2
- data/app/assets/components/core-animation/web-animations.html +1 -1
- data/app/assets/components/core-collapse/core-collapse.html +1 -1
- data/app/assets/components/core-doc-viewer/elements/core-doc-page.css +26 -1
- data/app/assets/components/core-doc-viewer/elements/core-doc-page.html +39 -4
- data/app/assets/components/core-doc-viewer/elements/core-doc-toc.css +3 -3
- data/app/assets/components/core-drawer-panel/core-drawer-panel.css +14 -6
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +32 -8
- data/app/assets/components/core-dropdown/core-dropdown.html +8 -2
- data/app/assets/components/core-elements/core-elements.html +1 -0
- data/app/assets/components/core-icon/core-icon.html +0 -2
- data/app/assets/components/core-icons/av-icons.html +2 -9
- data/app/assets/components/core-icons/communication-icons.html +39 -42
- data/app/assets/components/core-icons/core-icons.html +231 -235
- data/app/assets/components/core-icons/device-icons.html +75 -90
- data/app/assets/components/core-icons/editor-icons.html +52 -52
- data/app/assets/components/core-icons/hardware-icons.html +40 -41
- data/app/assets/components/core-icons/image-icons.html +133 -137
- data/app/assets/components/core-icons/maps-icons.html +55 -57
- data/app/assets/components/core-icons/notification-icons.html +34 -34
- data/app/assets/components/core-icons/social-icons.html +23 -37
- data/app/assets/components/core-image/core-image.html +3 -3
- data/app/assets/components/core-list/core-list.html +50 -27
- data/app/assets/components/core-localstorage/core-localstorage.html +4 -5
- data/app/assets/components/core-menu/core-menu.html +8 -3
- data/app/assets/components/core-menu/core-submenu.html +2 -2
- data/app/assets/components/core-overlay/core-key-helper.html +3 -0
- data/app/assets/components/core-overlay/core-overlay-layer.html +3 -0
- data/app/assets/components/core-overlay/core-overlay.html +20 -4
- data/app/assets/components/core-resizable/core-resizable.html +248 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +14 -3
- data/app/assets/components/core-scroll-threshold/core-scroll-threshold.html +222 -0
- data/app/assets/components/core-scroll-threshold/metadata.html +24 -0
- data/app/assets/components/core-selection/core-selection.html +1 -1
- data/app/assets/components/core-selector/core-selector.html +26 -26
- data/app/assets/components/core-splitter/core-splitter.html +17 -2
- data/app/assets/components/core-style/core-style.html +1 -1
- data/app/assets/components/core-toolbar/core-toolbar.html +1 -1
- data/app/assets/components/core-tooltip/core-tooltip.css +2 -2
- data/app/assets/components/core-tooltip/core-tooltip.html +16 -5
- data/app/assets/components/core-tooltip/metadata.html +1 -1
- data/app/assets/components/google-code-prettify/styles/doxy.css +1 -1
- data/app/assets/components/marked/lib/marked.js +11 -5
- data/app/assets/components/marked/marked.min.js +6 -0
- data/app/assets/components/paper-button/paper-button-base.html +56 -12
- data/app/assets/components/paper-button/paper-button.html +22 -5
- data/app/assets/components/paper-fab/paper-fab.html +2 -2
- data/app/assets/components/paper-ripple/paper-ripple.html +2 -1
- data/app/assets/components/paper-shadow/paper-shadow.css +10 -10
- data/app/assets/components/paper-shadow/paper-shadow.html +8 -1
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/animation-constructor.js +10 -5
- data/app/assets/components/{web-animations-next → web-animations-js}/src/animation-node.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/animation.js +2 -2
- data/app/assets/components/{web-animations-next → web-animations-js}/src/apply-preserving-inline-style.js +2 -3
- data/app/assets/components/{web-animations-next → web-animations-js}/src/apply.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/box-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/color-handler.js +2 -2
- data/app/assets/components/{web-animations-next → web-animations-js}/src/deprecation.js +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/src/dev.js +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/src/dimension-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/effect-callback.js +2 -2
- data/app/assets/components/{web-animations-next → web-animations-js}/src/effect.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/element-animatable.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/font-weight-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/group-constructors.js +2 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/handler-utils.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/interpolation.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/matrix-decomposition.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/matrix-interpolation.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/normalize-keyframes.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/number-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/player.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/position-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/property-interpolation.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/property-names.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/scope.js +2 -2
- data/app/assets/components/{web-animations-next → web-animations-js}/src/shadow-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/shape-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/tick.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/timeline.js +7 -7
- data/app/assets/components/{web-animations-next → web-animations-js}/src/timing-utilities.js +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/src/transform-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/visibility-handler.js +1 -1
- data/app/assets/components/{web-animations-next/src/maxifill-player.js → web-animations-js/src/web-animations-next-player.js} +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next-lite.dev.html +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next-lite.dev.js +0 -0
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +17 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next.dev.html +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next.dev.js +0 -0
- data/app/assets/components/web-animations-js/web-animations-next.min.js +17 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations.dev.html +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations.dev.js +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations.html +1 -3
- data/app/assets/components/web-animations-js/web-animations.min.js +17 -0
- data/app/assets/components/webcomponentsjs/CustomElements.js +634 -0
- data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.js +764 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.js +4277 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +13 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.js +1728 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +11 -0
- data/app/assets/components/webcomponentsjs/webcomponents.js +6114 -0
- data/app/assets/components/webcomponentsjs/webcomponents.min.js +14 -0
- data/lib/polymer-core-rails/version.rb +1 -1
- metadata +60 -76
- data/app/assets/components/context-free-parser/package.json +0 -16
- data/app/assets/components/core-ajax/demo-progress.html +0 -65
- data/app/assets/components/core-dropdown/metadata.html +0 -62
- data/app/assets/components/core-icons/png-icons.html +0 -19
- data/app/assets/components/core-overlay/tests/html/core-overlay-basic.html +0 -127
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning-margin.html +0 -153
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning.html +0 -167
- data/app/assets/components/core-overlay/tests/html/core-overlay-scroll.html +0 -130
- data/app/assets/components/core-overlay/tests/js/htmltests.js +0 -6
- data/app/assets/components/core-overlay/tests/runner.html +0 -14
- data/app/assets/components/core-overlay/tests/tests.json +0 -6
- data/app/assets/components/core-popup-menu/core-popup-menu.css +0 -28
- data/app/assets/components/core-popup-menu/core-popup-menu.html +0 -198
- data/app/assets/components/core-popup-menu/core-popup-overlay.html +0 -111
- data/app/assets/components/core-popup-menu/metadata.html +0 -62
- data/app/assets/components/core-shared-lib/tests/html/core-shared-lib.html +0 -47
- data/app/assets/components/core-shared-lib/tests/js/htmltests.js +0 -3
- data/app/assets/components/core-shared-lib/tests/runner.html +0 -14
- data/app/assets/components/core-shared-lib/tests/tests.json +0 -6
- data/app/assets/components/marked/LICENSE +0 -19
- data/app/assets/components/marked/Makefile +0 -12
- data/app/assets/components/marked/package.json +0 -22
- data/app/assets/components/platform/platform.js +0 -16
- data/app/assets/components/web-animations-js/web-animations.js +0 -5529
- data/app/assets/components/web-animations-next/Gruntfile.js +0 -279
- data/app/assets/components/web-animations-next/History.md +0 -76
- data/app/assets/components/web-animations-next/package.json +0 -33
- data/app/assets/components/web-animations-next/target-config.js +0 -124
- data/app/assets/components/web-animations-next/target-loader.js +0 -13
- data/app/assets/components/web-animations-next/templates/boilerplate +0 -13
- data/app/assets/components/web-animations-next/templates/runner.html +0 -26
- data/app/assets/components/web-animations-next/templates/web-animations.html +0 -18
- data/app/assets/components/web-animations-next/templates/web-animations.js +0 -21
@@ -0,0 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* marked - a markdown parser
|
3
|
+
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
|
4
|
+
* https://github.com/chjj/marked
|
5
|
+
*/
|
6
|
+
(function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:noop,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=replace(block.item,"gm")(/bull/g,block.bullet)();block.list=replace(block.list)(/bull/g,block.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+block.def.source+")")();block.blockquote=replace(block.blockquote)("def",block.def)();block._tag="(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code"+"|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo"+"|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";block.html=replace(block.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,block._tag)();block.paragraph=replace(block.paragraph)("hr",block.hr)("heading",block.heading)("lheading",block.lheading)("blockquote",block.blockquote)("tag","<"+block._tag)("def",block.def)();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/});block.gfm.paragraph=replace(block.paragraph)("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|")();block.tables=merge({},block.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function Lexer(options){this.tokens=[];this.tokens.links={};this.options=options||marked.defaults;this.rules=block.normal;if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top,bq){var src=src.replace(/^ +$/gm,""),next,loose,cap,bull,b,item,space,i,l;while(src){if(cap=this.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this.tokens.push({type:"space"})}}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:!this.options.pedantic?cap.replace(/\n+$/,""):cap});continue}if(cap=this.rules.fences.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"code",lang:cap[2],text:cap[3]});continue}if(cap=this.rules.heading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this.rules.nptable.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/\n$/,"").split("\n")};for(i=0;i<item.align.length;i++){if(/^ *-+: *$/.test(item.align[i])){item.align[i]="right"}else if(/^ *:-+: *$/.test(item.align[i])){item.align[i]="center"}else if(/^ *:-+ *$/.test(item.align[i])){item.align[i]="left"}else{item.align[i]=null}}for(i=0;i<item.cells.length;i++){item.cells[i]=item.cells[i].split(/ *\| */)}this.tokens.push(item);continue}if(cap=this.rules.lheading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[2]==="="?1:2,text:cap[1]});continue}if(cap=this.rules.hr.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"hr"});continue}if(cap=this.rules.blockquote.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"blockquote_start"});cap=cap[0].replace(/^ *> ?/gm,"");this.token(cap,top,true);this.tokens.push({type:"blockquote_end"});continue}if(cap=this.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];this.tokens.push({type:"list_start",ordered:bull.length>1});cap=cap[0].match(this.rules.item);next=false;l=cap.length;i=0;for(;i<l;i++){item=cap[i];space=item.length;item=item.replace(/^ *([*+-]|\d+\.) +/,"");if(~item.indexOf("\n ")){space-=item.length;item=!this.options.pedantic?item.replace(new RegExp("^ {1,"+space+"}","gm"),""):item.replace(/^ {1,4}/gm,"")}if(this.options.smartLists&&i!==l-1){b=block.bullet.exec(cap[i+1])[0];if(bull!==b&&!(bull.length>1&&b.length>1)){src=cap.slice(i+1).join("\n")+src;i=l-1}}loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==="\n";if(!loose)loose=next}this.tokens.push({type:loose?"loose_item_start":"list_item_start"});this.token(item,false,bq);this.tokens.push({type:"list_item_end"})}this.tokens.push({type:"list_end"});continue}if(cap=this.rules.html.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:cap[1]==="pre"||cap[1]==="script"||cap[1]==="style",text:cap[0]});continue}if(!bq&&top&&(cap=this.rules.def.exec(src))){src=src.substring(cap[0].length);this.tokens.links[cap[1].toLowerCase()]={href:cap[2],title:cap[3]};continue}if(top&&(cap=this.rules.table.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(i=0;i<item.align.length;i++){if(/^ *-+: *$/.test(item.align[i])){item.align[i]="right"}else if(/^ *:-+: *$/.test(item.align[i])){item.align[i]="center"}else if(/^ *:-+ *$/.test(item.align[i])){item.align[i]="left"}else{item.align[i]=null}}for(i=0;i<item.cells.length;i++){item.cells[i]=item.cells[i].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */)}this.tokens.push(item);continue}if(top&&(cap=this.rules.paragraph.exec(src))){src=src.substring(cap[0].length);this.tokens.push({type:"paragraph",text:cap[1].charAt(cap[1].length-1)==="\n"?cap[1].slice(0,-1):cap[1]});continue}if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"text",text:cap[0]});continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return this.tokens};var inline={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:noop,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:noop,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};inline._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/;inline._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/;inline.link=replace(inline.link)("inside",inline._inside)("href",inline._href)();inline.reflink=replace(inline.reflink)("inside",inline._inside)();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});inline.gfm=merge({},inline.normal,{escape:replace(inline.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:replace(inline.text)("]|","~]|")("|","|https?://|")()});inline.breaks=merge({},inline.gfm,{br:replace(inline.br)("{2,}","*")(),text:replace(inline.gfm.text)("{2,}","*")()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer;this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks}else{this.rules=inline.gfm}}else if(this.options.pedantic){this.rules=inline.pedantic}}InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src)};InlineLexer.prototype.output=function(src){var out="",link,text,href,cap;while(src){if(cap=this.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue}if(cap=this.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==="@"){text=cap[1].charAt(6)===":"?this.mangle(cap[1].substring(7)):this.mangle(cap[1]);href=this.mangle("mailto:")+text}else{text=escape(cap[1]);href=text}out+=this.renderer.link(href,null,text);continue}if(!this.inLink&&(cap=this.rules.url.exec(src))){src=src.substring(cap[0].length);text=escape(cap[1]);href=text;out+=this.renderer.link(href,null,text);continue}if(cap=this.rules.tag.exec(src)){if(!this.inLink&&/^<a /i.test(cap[0])){this.inLink=true}else if(this.inLink&&/^<\/a>/i.test(cap[0])){this.inLink=false}src=src.substring(cap[0].length);out+=this.options.sanitize?escape(cap[0]):cap[0];continue}if(cap=this.rules.link.exec(src)){src=src.substring(cap[0].length);this.inLink=true;out+=this.outputLink(cap,{href:cap[2],title:cap[3]});this.inLink=false;continue}if((cap=this.rules.reflink.exec(src))||(cap=this.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g," ");link=this.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue}this.inLink=true;out+=this.outputLink(cap,link);this.inLink=false;continue}if(cap=this.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.strong(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.em.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.em(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.codespan(escape(cap[2],true));continue}if(cap=this.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.br();continue}if(cap=this.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.del(this.output(cap[1]));continue}if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);out+=escape(this.smartypants(cap[0]));continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return out};InlineLexer.prototype.outputLink=function(cap,link){var href=escape(link.href),title=link.title?escape(link.title):null;return cap[0].charAt(0)!=="!"?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants)return text;return text.replace(/--/g,"—").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")};InlineLexer.prototype.mangle=function(text){var out="",l=text.length,i=0,ch;for(;i<l;i++){ch=text.charCodeAt(i);if(Math.random()>.5){ch="x"+ch.toString(16)}out+="&#"+ch+";"}return out};function Renderer(options){this.options=options||{}}Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out}}if(!lang){return"<pre><code>"+(escaped?code:escape(code,true))+"\n</code></pre>"}return'<pre><code class="'+this.options.langPrefix+escape(lang,true)+'">'+(escaped?code:escape(code,true))+"\n</code></pre>\n"};Renderer.prototype.blockquote=function(quote){return"<blockquote>\n"+quote+"</blockquote>\n"};Renderer.prototype.html=function(html){return html};Renderer.prototype.heading=function(text,level,raw){return"<h"+level+' id="'+this.options.headerPrefix+raw.toLowerCase().replace(/[^\w]+/g,"-")+'">'+text+"</h"+level+">\n"};Renderer.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"};Renderer.prototype.list=function(body,ordered){var type=ordered?"ol":"ul";return"<"+type+">\n"+body+"</"+type+">\n"};Renderer.prototype.listitem=function(text){return"<li>"+text+"</li>\n"};Renderer.prototype.paragraph=function(text){return"<p>"+text+"</p>\n"};Renderer.prototype.table=function(header,body){return"<table>\n"+"<thead>\n"+header+"</thead>\n"+"<tbody>\n"+body+"</tbody>\n"+"</table>\n"};Renderer.prototype.tablerow=function(content){return"<tr>\n"+content+"</tr>\n"};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td";var tag=flags.align?"<"+type+' style="text-align:'+flags.align+'">':"<"+type+">";return tag+content+"</"+type+">\n"};Renderer.prototype.strong=function(text){return"<strong>"+text+"</strong>"};Renderer.prototype.em=function(text){return"<em>"+text+"</em>"};Renderer.prototype.codespan=function(text){return"<code>"+text+"</code>"};Renderer.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"};Renderer.prototype.del=function(text){return"<del>"+text+"</del>"};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(prot.indexOf("javascript:")===0){return""}}var out='<a href="'+href+'"';if(title){out+=' title="'+title+'"'}out+=">"+text+"</a>";return out};Renderer.prototype.image=function(href,title,text){var out='<img src="'+href+'" alt="'+text+'"';if(title){out+=' title="'+title+'"'}out+=this.options.xhtml?"/>":">";return out};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer;this.renderer=this.options.renderer;this.renderer.options=this.options}Parser.parse=function(src,options,renderer){var parser=new Parser(options,renderer);return parser.parse(src)};Parser.prototype.parse=function(src){this.inline=new InlineLexer(src.links,this.options,this.renderer);this.tokens=src.reverse();var out="";while(this.next()){out+=this.tok()}return out};Parser.prototype.next=function(){return this.token=this.tokens.pop()};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};Parser.prototype.parseText=function(){var body=this.token.text;while(this.peek().type==="text"){body+="\n"+this.next().text}return this.inline.output(body)};Parser.prototype.tok=function(){switch(this.token.type){case"space":{return""}case"hr":{return this.renderer.hr()}case"heading":{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text)}case"code":{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case"table":{var header="",body="",i,row,cell,flags,j;cell="";for(i=0;i<this.token.header.length;i++){flags={header:true,align:this.token.align[i]};cell+=this.renderer.tablecell(this.inline.output(this.token.header[i]),{header:true,align:this.token.align[i]})}header+=this.renderer.tablerow(cell);for(i=0;i<this.token.cells.length;i++){row=this.token.cells[i];cell="";for(j=0;j<row.length;j++){cell+=this.renderer.tablecell(this.inline.output(row[j]),{header:false,align:this.token.align[j]})}body+=this.renderer.tablerow(cell)}return this.renderer.table(header,body)}case"blockquote_start":{var body="";while(this.next().type!=="blockquote_end"){body+=this.tok()}return this.renderer.blockquote(body)}case"list_start":{var body="",ordered=this.token.ordered;while(this.next().type!=="list_end"){body+=this.tok()}return this.renderer.list(body,ordered)}case"list_item_start":{var body="";while(this.next().type!=="list_item_end"){body+=this.token.type==="text"?this.parseText():this.tok()}return this.renderer.listitem(body)}case"loose_item_start":{var body="";while(this.next().type!=="list_item_end"){body+=this.tok()}return this.renderer.listitem(body)}case"html":{var html=!this.token.pre&&!this.options.pedantic?this.inline.output(this.token.text):this.token.text;return this.renderer.html(html)}case"paragraph":{return this.renderer.paragraph(this.inline.output(this.token.text))}case"text":{return this.renderer.paragraph(this.parseText())}}};function escape(html,encode){return html.replace(!encode?/&(?!#?\w+;)/g:/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function unescape(html){return html.replace(/&([#\w]+);/g,function(_,n){n=n.toLowerCase();if(n==="colon")return":";if(n.charAt(0)==="#"){return n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1))}return""})}function replace(regex,opt){regex=regex.source;opt=opt||"";return function self(name,val){if(!name)return new RegExp(regex,opt);val=val.source||val;val=val.replace(/(^|[^\[])\^/g,"$1");regex=regex.replace(name,val);return self}}function noop(){}noop.exec=noop;function merge(obj){var i=1,target,key;for(;i<arguments.length;i++){target=arguments[i];for(key in target){if(Object.prototype.hasOwnProperty.call(target,key)){obj[key]=target[key]}}}return obj}function marked(src,opt,callback){if(callback||typeof opt==="function"){if(!callback){callback=opt;opt=null}opt=merge({},marked.defaults,opt||{});var highlight=opt.highlight,tokens,pending,i=0;try{tokens=Lexer.lex(src,opt)}catch(e){return callback(e)}pending=tokens.length;var done=function(err){if(err){opt.highlight=highlight;return callback(err)}var out;try{out=Parser.parse(tokens,opt)}catch(e){err=e}opt.highlight=highlight;return err?callback(err):callback(null,out)};if(!highlight||highlight.length<3){return done()}delete opt.highlight;if(!pending)return done();for(;i<tokens.length;i++){(function(token){if(token.type!=="code"){return--pending||done()}return highlight(token.text,token.lang,function(err,code){if(err)return done(err);if(code==null||code===token.text){return--pending||done()}token.text=code;token.escaped=true;--pending||done()})})(tokens[i])}return}try{if(opt)opt=merge({},marked.defaults,opt);return Parser.parse(Lexer.lex(src,opt),opt)}catch(e){e.message+="\nPlease report this to https://github.com/chjj/marked.";if((opt||marked.defaults).silent){return"<p>An error occured:</p><pre>"+escape(e.message+"",true)+"</pre>"}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=="undefined"&&typeof exports==="object"){module.exports=marked}else if(typeof define==="function"&&define.amd){define(function(){return marked})}else{this.marked=marked}}).call(function(){return this||(typeof window!=="undefined"?window:global)}());
|
@@ -13,12 +13,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
13
13
|
`paper-button-base` is the base class for button-like elements with ripple and optional shadow.
|
14
14
|
|
15
15
|
@element paper-button-base
|
16
|
-
@mixins Polymer.CoreFocusable
|
16
|
+
@mixins Polymer.CoreFocusable https://github.com/polymer/core-focusable
|
17
17
|
@status unstable
|
18
18
|
-->
|
19
19
|
|
20
20
|
<link href="../polymer/polymer.html" rel="import">
|
21
21
|
<link href="../core-focusable/core-focusable.html" rel="import">
|
22
|
+
<link href="../paper-ripple/paper-ripple.html" rel="import">
|
22
23
|
|
23
24
|
<polymer-element name="paper-button-base" tabindex="0">
|
24
25
|
|
@@ -29,22 +30,48 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
29
30
|
var p = {
|
30
31
|
|
31
32
|
eventDelegates: {
|
32
|
-
down: 'downAction'
|
33
|
+
down: 'downAction',
|
34
|
+
up: 'upAction'
|
35
|
+
},
|
36
|
+
|
37
|
+
toggleBackground: function() {
|
38
|
+
if (this.active) {
|
39
|
+
|
40
|
+
if (!this.$.bg) {
|
41
|
+
var bg = document.createElement('div');
|
42
|
+
bg.setAttribute('id', 'bg');
|
43
|
+
bg.setAttribute('fit', '');
|
44
|
+
bg.style.opacity = 0.25;
|
45
|
+
this.$.bg = bg;
|
46
|
+
this.shadowRoot.insertBefore(bg, this.shadowRoot.firstChild);
|
47
|
+
}
|
48
|
+
this.$.bg.style.backgroundColor = getComputedStyle(this).color;
|
49
|
+
|
50
|
+
} else {
|
51
|
+
|
52
|
+
if (this.$.bg) {
|
53
|
+
this.$.bg.style.backgroundColor = '';
|
54
|
+
}
|
55
|
+
}
|
33
56
|
},
|
34
57
|
|
35
58
|
activeChanged: function() {
|
36
59
|
this.super();
|
37
60
|
|
38
|
-
if (this
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
61
|
+
if (this.toggle && (!this.lastEvent || this.matches(':host-context([noink])'))) {
|
62
|
+
this.toggleBackground();
|
63
|
+
}
|
64
|
+
},
|
65
|
+
|
66
|
+
pressedChanged: function() {
|
67
|
+
this.super();
|
68
|
+
|
69
|
+
if (!this.lastEvent) {
|
70
|
+
return;
|
71
|
+
}
|
72
|
+
|
73
|
+
if (this.$.ripple && !this.hasAttribute('noink')) {
|
74
|
+
if (this.pressed) {
|
48
75
|
this.$.ripple.downAction(this.lastEvent);
|
49
76
|
} else {
|
50
77
|
this.$.ripple.upAction();
|
@@ -54,6 +81,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
54
81
|
this.adjustZ();
|
55
82
|
},
|
56
83
|
|
84
|
+
focusedChanged: function() {
|
85
|
+
this.adjustZ();
|
86
|
+
},
|
87
|
+
|
57
88
|
disabledChanged: function() {
|
58
89
|
this._disabledChanged();
|
59
90
|
this.adjustZ();
|
@@ -79,6 +110,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
79
110
|
this.$.shadow.setZ(2);
|
80
111
|
} else if (this.disabled) {
|
81
112
|
this.$.shadow.setZ(0);
|
113
|
+
} else if (this.focused) {
|
114
|
+
this.$.shadow.setZ(3);
|
82
115
|
} else {
|
83
116
|
this.$.shadow.setZ(1);
|
84
117
|
}
|
@@ -107,6 +140,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
107
140
|
// No need to forward the event to the ripple because the ripple
|
108
141
|
// is triggered in activeChanged
|
109
142
|
}
|
143
|
+
},
|
144
|
+
|
145
|
+
upAction: function() {
|
146
|
+
this._upAction();
|
147
|
+
|
148
|
+
if (this.toggle) {
|
149
|
+
this.toggleBackground();
|
150
|
+
if (this.$.ripple) {
|
151
|
+
this.$.ripple.cancel();
|
152
|
+
}
|
153
|
+
}
|
110
154
|
}
|
111
155
|
|
112
156
|
};
|
@@ -30,8 +30,7 @@ create a button with an icon and some text:
|
|
30
30
|
custom button content
|
31
31
|
</paper-button>
|
32
32
|
|
33
|
-
Styling
|
34
|
-
-------
|
33
|
+
## Styling
|
35
34
|
|
36
35
|
Style the button with CSS as you would a normal DOM element.
|
37
36
|
|
@@ -57,8 +56,8 @@ The opacity of the ripple is not customizable via CSS.
|
|
57
56
|
-->
|
58
57
|
|
59
58
|
<link href="../polymer/polymer.html" rel="import">
|
60
|
-
<link href="../paper-ripple/paper-ripple.html" rel="import">
|
61
59
|
<link href="../paper-shadow/paper-shadow.html" rel="import">
|
60
|
+
<link href="../core-a11y-keys/core-a11y-keys.html" rel="import">
|
62
61
|
|
63
62
|
<link href="paper-button-base.html" rel="import">
|
64
63
|
|
@@ -100,7 +99,7 @@ role="button">
|
|
100
99
|
text-transform: inherit;
|
101
100
|
}
|
102
101
|
|
103
|
-
#shadow {
|
102
|
+
#bg, #shadow {
|
104
103
|
border-radius: inherit;
|
105
104
|
}
|
106
105
|
|
@@ -117,6 +116,7 @@ role="button">
|
|
117
116
|
::content > a {
|
118
117
|
height: 100%;
|
119
118
|
padding: 0.7em 0.57em;
|
119
|
+
margin: -0.7em -0.57em;
|
120
120
|
/* flex */
|
121
121
|
-ms-flex: 1 1 0.000000001px;
|
122
122
|
-webkit-flex: 1;
|
@@ -134,9 +134,10 @@ role="button">
|
|
134
134
|
<!-- this div is needed to position the ripple behind text content -->
|
135
135
|
<div class="button-content" relative layout horizontal center-center>
|
136
136
|
<content></content>
|
137
|
-
{{label}}
|
138
137
|
</div>
|
139
138
|
|
139
|
+
<core-a11y-keys keys="space enter" target="{{}}" on-keys-pressed="{{_activate}}"></core-a11y-keys>
|
140
|
+
|
140
141
|
</template>
|
141
142
|
|
142
143
|
<script>
|
@@ -173,6 +174,22 @@ role="button">
|
|
173
174
|
*/
|
174
175
|
fill: true
|
175
176
|
|
177
|
+
},
|
178
|
+
|
179
|
+
_activate: function() {
|
180
|
+
this.click();
|
181
|
+
this.fire('tap');
|
182
|
+
if (!this.pressed) {
|
183
|
+
var bcr = this.getBoundingClientRect();
|
184
|
+
var x = bcr.left + (bcr.width / 2);
|
185
|
+
var y = bcr.top + (bcr.height / 2);
|
186
|
+
this.downAction({x: x, y: y});
|
187
|
+
var fn = function fn() {
|
188
|
+
this.upAction();
|
189
|
+
this.removeEventListener('keyup', fn);
|
190
|
+
}.bind(this);
|
191
|
+
this.addEventListener('keyup', fn);
|
192
|
+
}
|
176
193
|
}
|
177
194
|
|
178
195
|
});
|
@@ -44,7 +44,8 @@ Styling ripple effect:
|
|
44
44
|
Note that CSS color property is inherited so it is not required to set it on
|
45
45
|
the `paper-ripple` element directly.
|
46
46
|
|
47
|
-
|
47
|
+
By default, the ripple is centered on the point of contact. Apply `recenteringTouch`
|
48
|
+
class to have the ripple grow toward the center of its container.
|
48
49
|
|
49
50
|
<paper-ripple class="recenteringTouch"></paper-ripple>
|
50
51
|
|
@@ -26,41 +26,41 @@ html /deep/ paper-shadow::shadow #shadow-top[animated] {
|
|
26
26
|
}
|
27
27
|
|
28
28
|
html /deep/ .paper-shadow-top-z-1 {
|
29
|
-
box-shadow:
|
29
|
+
box-shadow: none;
|
30
30
|
}
|
31
31
|
|
32
32
|
html /deep/ .paper-shadow-bottom-z-1 {
|
33
|
-
box-shadow: 0
|
33
|
+
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
|
34
34
|
}
|
35
35
|
|
36
36
|
html /deep/ .paper-shadow-top-z-2 {
|
37
|
-
box-shadow: 0
|
37
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
38
38
|
}
|
39
39
|
|
40
40
|
html /deep/ .paper-shadow-bottom-z-2 {
|
41
|
-
box-shadow: 0
|
41
|
+
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3);
|
42
42
|
}
|
43
43
|
|
44
44
|
html /deep/ .paper-shadow-top-z-3 {
|
45
|
-
box-shadow: 0
|
45
|
+
box-shadow: 0 11px 7px 0 rgba(0, 0, 0, 0.19);
|
46
46
|
}
|
47
47
|
|
48
48
|
html /deep/ .paper-shadow-bottom-z-3 {
|
49
|
-
box-shadow: 0
|
49
|
+
box-shadow: 0 13px 25px 0 rgba(0, 0, 0, 0.3);
|
50
50
|
}
|
51
51
|
|
52
52
|
html /deep/ .paper-shadow-top-z-4 {
|
53
|
-
box-shadow: 0
|
53
|
+
box-shadow: 0 14px 12px 0 rgba(0, 0, 0, 0.17);
|
54
54
|
}
|
55
55
|
|
56
56
|
html /deep/ .paper-shadow-bottom-z-4 {
|
57
|
-
box-shadow: 0
|
57
|
+
box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.3);
|
58
58
|
}
|
59
59
|
|
60
60
|
html /deep/ .paper-shadow-top-z-5 {
|
61
|
-
box-shadow: 0
|
61
|
+
box-shadow: 0 17px 17px 0 rgba(0, 0, 0, 0.15);
|
62
62
|
}
|
63
63
|
|
64
64
|
html /deep/ .paper-shadow-bottom-z-5 {
|
65
|
-
box-shadow: 0 27px
|
65
|
+
box-shadow: 0 27px 55px 0 rgba(0, 0, 0, 0.3);
|
66
66
|
}
|
@@ -64,6 +64,13 @@ Example:
|
|
64
64
|
|
65
65
|
},
|
66
66
|
|
67
|
+
/**
|
68
|
+
* Set the z-depth of the shadow. This should be used after element
|
69
|
+
* creation instead of setting the z property directly.
|
70
|
+
*
|
71
|
+
* @method setZ
|
72
|
+
* @param {Number} newZ
|
73
|
+
*/
|
67
74
|
setZ: function(newZ) {
|
68
75
|
if (this.z !== newZ) {
|
69
76
|
this.$['shadow-bottom'].classList.remove('paper-shadow-bottom-z-' + this.z);
|
@@ -76,4 +83,4 @@ Example:
|
|
76
83
|
|
77
84
|
});
|
78
85
|
</script>
|
79
|
-
</polymer-element>
|
86
|
+
</polymer-element>
|
@@ -63,7 +63,7 @@ polyfill-next-selector { content: 'core-menu#menu core-item.core-selected'; }
|
|
63
63
|
/* card */
|
64
64
|
#card {
|
65
65
|
display: block;
|
66
|
-
margin: 64px 120px 60px
|
66
|
+
margin: 64px 120px 60px 0;
|
67
67
|
background-color: #fff;
|
68
68
|
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
|
69
69
|
border-radius: 2px;
|
data/app/assets/components/{web-animations-next → web-animations-js}/src/animation-constructor.js
RENAMED
@@ -51,7 +51,7 @@
|
|
51
51
|
return scope.timeline.play(new scope.Animation(this, effect, timing));
|
52
52
|
};
|
53
53
|
|
54
|
-
var nullTarget = document.
|
54
|
+
var nullTarget = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
|
55
55
|
scope.newUnderlyingPlayerForAnimation = function(animation) {
|
56
56
|
var target = animation.target || nullTarget;
|
57
57
|
var effect = animation._effect;
|
@@ -98,7 +98,7 @@
|
|
98
98
|
|
99
99
|
// TODO: Call into this less frequently.
|
100
100
|
scope.Player.prototype._updateChildren = function() {
|
101
|
-
if (this.
|
101
|
+
if (this.paused || !this.source || !this._isGroup)
|
102
102
|
return;
|
103
103
|
var offset = this.source._timing.delay;
|
104
104
|
for (var i = 0; i < this.source.children.length; i++) {
|
@@ -107,14 +107,19 @@
|
|
107
107
|
|
108
108
|
if (i >= this._childPlayers.length) {
|
109
109
|
childPlayer = window.document.timeline.play(child);
|
110
|
-
child.player = this.source.player;
|
111
110
|
this._childPlayers.push(childPlayer);
|
112
111
|
} else {
|
113
112
|
childPlayer = this._childPlayers[i];
|
114
113
|
}
|
114
|
+
child.player = this.source.player;
|
115
115
|
|
116
116
|
if (childPlayer.startTime != this.startTime + offset) {
|
117
|
-
|
117
|
+
if (this.startTime === null) {
|
118
|
+
childPlayer.currentTime = this.source.player.currentTime - offset;
|
119
|
+
childPlayer._startTime = null;
|
120
|
+
} else {
|
121
|
+
childPlayer.startTime = this.startTime + offset;
|
122
|
+
}
|
118
123
|
childPlayer._updateChildren();
|
119
124
|
}
|
120
125
|
|
@@ -136,4 +141,4 @@
|
|
136
141
|
|
137
142
|
scope.groupChildDuration = groupChildDuration;
|
138
143
|
|
139
|
-
}(webAnimationsShared,
|
144
|
+
}(webAnimationsShared, webAnimationsNext, webAnimationsTesting));
|
@@ -59,7 +59,7 @@
|
|
59
59
|
};
|
60
60
|
|
61
61
|
if (WEB_ANIMATIONS_TESTING) {
|
62
|
-
testing.
|
62
|
+
testing.webAnimations1Animation = scope.Animation;
|
63
63
|
}
|
64
64
|
|
65
|
-
})(webAnimationsShared,
|
65
|
+
})(webAnimationsShared, webAnimations1, webAnimationsTesting);
|
@@ -47,8 +47,7 @@
|
|
47
47
|
// Stores the inline style of the element on its behalf while the
|
48
48
|
// polyfill uses the element's inline style to simulate web animations.
|
49
49
|
// This is needed to fake regular inline style CSSOM access on the element.
|
50
|
-
this.
|
51
|
-
this._surrogateStyle = this._surrogateElement.style;
|
50
|
+
this._surrogateStyle = document.createElementNS('http://www.w3.org/1999/xhtml', 'div').style;
|
52
51
|
this._style = element.style;
|
53
52
|
this._length = 0;
|
54
53
|
this._isAnimatedProperty = {};
|
@@ -189,4 +188,4 @@
|
|
189
188
|
if (WEB_ANIMATIONS_TESTING)
|
190
189
|
testing.ensureStyleIsPatched = ensureStyleIsPatched;
|
191
190
|
|
192
|
-
})(
|
191
|
+
})(webAnimations1, webAnimationsTesting);
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
(function(scope, testing) {
|
16
16
|
|
17
|
-
var canvas = document.
|
17
|
+
var canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
|
18
18
|
canvas.width = canvas.height = 1;
|
19
19
|
var context = canvas.getContext('2d');
|
20
20
|
|
@@ -59,4 +59,4 @@
|
|
59
59
|
testing.parseColor = parseColor;
|
60
60
|
}
|
61
61
|
|
62
|
-
})(
|
62
|
+
})(webAnimations1, webAnimationsTesting);
|
File without changes
|
File without changes
|
@@ -13,7 +13,7 @@
|
|
13
13
|
// limitations under the License.
|
14
14
|
(function(shared, scope, testing) {
|
15
15
|
|
16
|
-
var nullTarget = document.
|
16
|
+
var nullTarget = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
|
17
17
|
|
18
18
|
var sequenceNumber = 0;
|
19
19
|
scope.bindPlayerForCustomEffect = function(player) {
|
@@ -83,4 +83,4 @@
|
|
83
83
|
register(this._callback);
|
84
84
|
};
|
85
85
|
|
86
|
-
})(webAnimationsShared,
|
86
|
+
})(webAnimationsShared, webAnimationsNext, webAnimationsTesting);
|
data/app/assets/components/{web-animations-next → web-animations-js}/src/group-constructors.js
RENAMED
@@ -75,7 +75,8 @@
|
|
75
75
|
player._player._wrapper = player;
|
76
76
|
player._isGroup = true;
|
77
77
|
scope.awaitStartTime(player);
|
78
|
+
player._updateChildren();
|
78
79
|
};
|
79
80
|
|
80
81
|
|
81
|
-
})(webAnimationsShared,
|
82
|
+
})(webAnimationsShared, webAnimationsNext, webAnimationsTesting);
|
@@ -13,8 +13,8 @@
|
|
13
13
|
// limitations under the License.
|
14
14
|
|
15
15
|
var webAnimationsShared = {};
|
16
|
-
var
|
17
|
-
var
|
16
|
+
var webAnimations1 = {};
|
17
|
+
var webAnimationsNext = {};
|
18
18
|
|
19
19
|
if (!WEB_ANIMATIONS_TESTING)
|
20
20
|
var webAnimationsTesting = null;
|