├── ace.js ├── bas.js ├── index.html └── static ├── css ├── app.0c013f87b0f8af174940e0cae8803318.css └── app.0c013f87b0f8af174940e0cae8803318.css.map ├── fonts └── element-icons.6f0a763.ttf └── js ├── app.59cdc076d0e91f934349.js ├── app.59cdc076d0e91f934349.js.map ├── manifest.829e00d890121509e22e.js ├── manifest.829e00d890121509e22e.js.map ├── vendor.bd436b93bd90786303c7.js └── vendor.bd436b93bd90786303c7.js.map /bas.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("BasDanmaku",[],t):"object"==typeof exports?exports.BasDanmaku=t():e.BasDanmaku=t()}(window,(function(){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t,r){e.exports=function(){ 2 | return r(5)('!function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);var a=function(e,t){var r={};for(var a in e)e.hasOwnProperty(a)&&(r[a]=e[a]);for(var a in t)t.hasOwnProperty(a)&&(r[a]=t[a]);return r},n=function(e,t,r){return r||(e=e.replace(/&/g,"").replace(//g,"").replace(/"/g,"").replace(/\'/g,"").replace(/\\//g,"").replace(/:/g,"").replace(/;/g,"")),e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/\'/g,"'").replace(/\\//g,"/").replace(/ /g,t?" ":" ").replace(/\\n/g,"
")};function i(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function o(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var a,n,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var s=function(){function e(){this.class_names=["text","button","path"],this.variableTable={},this.varibaleRegOrder=0,this.templateTable={},this.tpl_name_id=0,this.obj_name_id=0,this.allowsVariable=[]}return e.prototype.on_String_value=function(e){var t,r,a=[];try{for(var n=i(e),o=n.next();!o.done;o=n.next()){var s=o.value;switch(s.type){case"char":var u=null;switch(s.value.charAt(1)){case"n":u="\\n";break;case"r":u="\\r";break;case"t":u="\\t";break;case"\\\\":u="\\\\";break;case"\'":u="\'";break;case\'"\':u=\'"\';break;default:u=s.charAt(1)}a.push(u);break;case"unicode":case"ascii":var p=s.value.substr(2);a.push(String.fromCharCode(parseInt(p,16)));break;case"seg":a.push(s.value)}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return new l({type:"String",value:a.join("")})},e.prototype.on_Num_value=function(e,t,r){return t=t,new l({type:"Num",value:{numType:(r="%"===r)?"percent":"number",value:(e="+"===e?1:-1)*parseFloat(t)}})},e.prototype.on_Time_value=function(e){for(var t=!0,r=0,a=0,n="",i=null;null!=(i=t?e.match(/^(\\d*\\.?\\d+(?:[eE][\\+\\-]?\\d+)?)(.*)$/):e.match(/^([hms]+)(.*)$/));){if(n=i[1],t)a=parseFloat(n);else switch(n){case"h":r+=3600*a*1e3;break;case"m":r+=60*a*1e3;break;case"s":r+=1e3*a;break;case"ms":r+=a}e=i[2],t=!t}return new l({type:"Time",value:r})},e.prototype.on_Hex_value=function(e){return new l({type:"Hex",value:parseInt(e.substr(2),16)})},e.prototype.on_Object_value=function(e,t){return new l({type:"Object",value:t})},e.prototype.on_Array_value=function(e){return new l({type:"Array",value:e})},e.prototype.on_Variable_value=function(e){return new l({type:"Variable",value:e})},e.prototype.on_KeyValue_list=function(e,t,r){return void 0===r&&(r=null),null==r&&(r=this.peek_allows_varable()),t},e.prototype.on_let_object_binding=function(e,t){t.obj_type;var r=t.name;return this.unregister_variable(r),t.name=e,this.register_variable(e,t),t},e.prototype.on_def_object=function(e,t,r){var a={type:"Def"+this.capitalization_str(e),obj_type:e,name:t,attrs:{}},n=this.on_KeyValue_list(e,r,!1);return this.fill_kv_obj(a.attrs,n),this.register_variable(t,a),a},e.prototype.on_def_template=function(e,t,r,a){var n={type:"template",\nobj_type:e,name:t,attrs:{},tpl_list:[]},i=this.on_KeyValue_list(e,a,!0);return this.check_variables_on_template_body(r,i),this.fill_kv_obj(n.attrs,a),n.tpl_list=r,this.register_template(t,n),n},e.prototype.on_object_modification=function(e,t){if(!this.has_variable_obj(e)){if(-1!==this.class_names.indexOf(e)){var r=this.new_variable_name_of_template_application(e);return this.on_def_object(e,r,t)}return null}var a=this.get_variable_obj(e),n=a.obj_type,i=this.new_variable_name_of_variable_modification(e),o={type:"Def"+this.capitalization_str(n),obj_type:n,name:i,attrs:{}},s=this.on_KeyValue_list(n,t,!1),l=this.merge_list(a.attrs,s);return this.fill_kv_obj(o.attrs,l),this.register_variable(i,o),o},e.prototype.on_tmp_object_modification=function(e,t){var r=e.name,a=this.on_object_modification(r,t);return this.unregister_variable(r),a},e.prototype.on_template_application=function(e,t){var r=this.get_template_obj(e);if(null==r)return null;var a=r.obj_type,n=this.new_variable_name_of_template_application(e),i={type:"Def"+this.capitalization_str(a),obj_type:a,name:n,attrs:{}},o=this.evaluation_template(r.attrs,r.tpl_list,t);return this.fill_kv_obj(i.attrs,o),this.register_variable(n,i),i},e.prototype.on_ArgList=function(e){var t,r,a=[],n=[];try{for(var s=i(e),l=s.next();!l.done;l=s.next()){var u=o(l.value,2),p=u[0],h=u[1];null==p?a.push(h):n.push([p,h])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return{naked_params:a,named_params:n}},e.prototype.on_unit_set_expr=function(e,t,r){var a=o(r,2),n={type:"Unit",duration:a[0],default_easing:a[1],target_name:e,attrs:{}},i=this.get_variable_type(e),s=this.on_KeyValue_list(i,t,!1);return this.fill_kv_obj(n.attrs,s),n},e.prototype.on_temporary_target_set_expr=function(e,t,r){var a=e.obj_type,n=e.name,i=o(r,2),s={type:"Unit",duration:i[0],default_easing:i[1],target_name:n,attrs:{}},l=this.on_KeyValue_list(a,t,!1);return this.fill_kv_obj(s.attrs,l),s},e.prototype.on_then_set_expr=function(e,t){return"Serial"===e.type?(e.items.push(t),e):{type:"Serial",items:[e,t]}},e.prototype.on_group_set_expr=function(e){return{type:"Parallel",items:e}},e.prototype.has_variable_obj=function(e){return this.variableTable.hasOwnProperty(e)},e.prototype.get_variable_obj=function(e){return this.variableTable.hasOwnProperty(e)?this.variableTable[e]:(console.error("var "+e+" is not defined."),null)},e.prototype.get_template_obj=function(e){return this.templateTable.hasOwnProperty(e)?this.templateTable[e]:(console.error("tpl "+e+" is not defined."),null)},e.prototype.get_variable_type=function(e){return this.get_variable_obj(e).obj_type},e.prototype.get_template_type=function(e){return this.get_template_obj(e).obj_type},e.prototype.fill_kv_obj=function(e,t){var r,a;try{for(var n=i(t),s=n.next();!s.done;s=n.next()){var l=o(s.value,2),u=l[0],p=l[1];e[u]=p}}catch(e){r={error:e}}finally{try{s&&!s.done&&(a=n.return)&&a.call(n)}finally{if(r)throw r.error}}},e.prototype.merge_list=function(e,t){var r,a,n={};this.fill_kv_obj(n,t);var s=[];for(var l in e)n.hasOwnProperty(l)?s.push([l,n[l]]):s.push([l,e[l]]);try{for(var u=i(t),p=u.next();!p.done;p=u.next()){var h=o(p.value,2),c=(l=h[0],h[1]);e.hasOwnProperty(l)||s.push([l,c])}}catch(e){r={error:e}}finally{try{p&&!p.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return s},e.prototype.evaluation_template=function(e,t,r){var a,n,s,l,u=r.naked_params,p=r.named_params,h={},c=t.map((function(e,t){var r=o(e,2),a=r[0];r[1];return h[a]=t,{key:a,matched:!1}})),_={};try{for(var b=i(p),f=b.next();!f.done;f=b.next()){var y=o(f.value,2),v=y[0],g=y[1];_[v]=g,h.hasOwnProperty(v)?c[h[v]].matched=!0:console.error("看看命名参数是不是没有在定义参数里面..")}}catch(e){a={error:e}}finally{try{f&&!f.done&&(n=b.return)&&n.call(b)}finally{if(a)throw a.error}}var d=c.filter((function(e){return!e.matched}));d.length0&&this.allowsVariable[this.allowsVariable.length-1]},e.prototype.check_variables_on_template_body=function(e,t){var r,a,n={};this.fill_kv_obj(n,t);try{for(var s=i(e),l=s.next();!l.done;l=s.next()){var u=o(l.value,2),p=(u[0],u[1]);if("Variable"===p.type){var h=p.value;n.hasOwnProperty(h)||console.error("varibale "+h+" in template\'s body is not present at arguments.")}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}},e.prototype.on_Result=function(e){var t=[];for(var r in this.variableTable)t.push(this.variableTable[r]);return t.sort((function(e,t){return e.obj_name_id-t.obj_name_id})),{sets:e.filter((function(e){return"SetExpr"===e.type})).map((function(e){return e.params})),defs:t}},e}(),l=function(){function e(e){this.type=e.type,this.value=e.value}return e.prototype.as_string=function(){if("String"===this.type)return this.value},e.prototype.as_integer=function(){return"Hex"===this.type?this.value:"Num"===this.type?Math.floor(this.value.value):void 0},e.prototype.as_number=function(){if("Num"===this.type)return this.value},e.prototype.as_time=function(){if("Time"===this.type)return this.value},e.prototype.as_object=function(){if("Object"===this.type)return this.value},e}(),u=function(){function e(){\nthis.transTable=[[!1,[4294967295,2,1],[[0,42,0],[43,43,1],[44,44,2]]],[!1,[4294967295,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3],[[0,2,0],[3,3,1],[4,4,2],[5,5,3],[6,6,4],[7,7,5],[8,8,6],[9,9,7],[10,10,8],[11,11,9],[12,12,10],[13,13,11],[14,14,12],[15,15,13],[16,16,14],[17,17,15],[18,18,16],[19,19,17],[20,20,18],[21,21,19],[22,22,20],[23,37,21],[38,38,22],[39,39,23],[40,41,24],[42,42,25],[43,44,0]]],[!1,[30,28,29,4294967295],[[0,0,0],[1,20,1],[21,21,2],[22,39,1],[40,40,3],[41,42,1],[43,44,3]]],[!1,[4294967295,31],[[0,41,0],[42,42,1],[43,44,0]]],[!1,[4294967295,4],[[0,39,0],[40,41,1],[42,44,0]]],[!1,[4294967295,14,37,36,35,34,33,32],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,4],[35,35,5],[36,37,6],[38,38,7],[39,39,1],[40,44,0]]],[!1,[4294967295,38],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!1,[4294967295,7,39],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,40],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,14,37,36,34,33,32],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,37,5],[38,38,6],[39,39,1],[40,44,0]]],[!1,[4294967295,7,41],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,31,1],[32,32,2],[33,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,42],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!0],[!1,[4294967295,7,43],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,30,1],[31,31,2],[32,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,44],[[0,6,0],[7,8,1],[9,13,0],[14,16,1],[17,17,2],[18,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!0],[!0],[!1,[45,4294967295,47,46],[[0,0,0],[1,1,1],[2,2,0],[3,14,1],[15,15,0],[16,20,1],[21,21,0],[22,27,1],[28,28,2],[29,30,0],[31,33,1],[34,34,3],[35,44,1]]],[!1,[31,48,4294967295],[[0,39,0],[40,40,1],[41,42,0],[43,44,2]]],[!1,[4294967295,38],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,49,50],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,51,53,52],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,37,0],[38,38,3],[39,39,1],[40,44,0]]],[!1,[4294967295,54],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,55,56],[[0,15,0],[16,16,1],[17,37,0],[38,38,2],[39,39,1],[40,44,0]]],[!1,[4294967295,57,58],[[0,15,0],[16,16,1],[17,37,0],[38,38,2],[39,39,1],[40,44,0]]],[!1,[4294967295,38,37,36,34,33],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,37,5],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,59],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,2],[16,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,60],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,2],[16,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,61],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,62],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,26,1],[27,27,2],[28,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,63],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,30,1],[31,31,2],[32,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,64],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,24,1],[25,25,2],[26,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,65],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,66],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,48],[[0,39,0],[40,40,1],[41,44,0]]],[!1,[4294967295,49,37,36,34],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,49],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,51,37,68,67,52],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,5],[39,39,1],[40,44,0]]],[!1,[4294967295,69],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,54],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,55,37,34,70,56],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,5],[39,39,1],[40,44,0]]],[!1,[4294967295,71],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,57,68,72,58],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,37,3],[38,38,4],[39,39,1],[40,44,0]]],[!1,[4294967295,73],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,74],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,29,1],[30,30,2],[31,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,75],[[0,6,0],[7,8,1],[9,13,0],[14,16,1],[17,17,2],[18,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,76],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,29,1],[30,30,2],[31,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,77],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,78],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79,80],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,53],[[0,17,0],[18,18,1],[19,44,0]]],[!1,[4294967295,69,37,68,67],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81,82],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,71,37,34,70],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83,84],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,73,68,72],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,37,3],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,85],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,23,1],[24,24,2],[25,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,86],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,87],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79,37,68],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81,37,34],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83,68],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,88],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0]],\nthis.finalTable={4:1,5:3,6:26,7:30,8:5,9:7,10:6,11:27,12:30,13:30,14:3,15:30,16:30,17:19,18:22,19:23,20:29,21:20,22:30,23:30,24:24,25:28,26:21,27:25,28:12,29:11,31:0,34:2,36:2,37:2,38:3,39:30,40:30,41:30,42:30,43:30,44:30,45:8,48:0,49:3,53:2,54:4,59:13,60:14,61:30,62:15,63:30,64:30,74:18,75:30,76:30,77:10,85:16,86:17,88:9},this.inputTable=[[0,8,1],[9,9,41],[10,10,40],[11,11,1],[12,12,41],[13,13,40],[14,31,1],[32,32,41],[33,33,1],[34,34,21],[35,35,1],[36,36,23],[37,37,10],[38,38,1],[39,39,2],[40,40,9],[41,41,4],[42,42,1],[43,43,22],[44,44,19],[45,45,20],[46,46,38],[47,47,42],[48,48,39],[49,57,16],[58,58,1],[59,59,5],[60,60,1],[61,61,13],[62,63,1],[64,64,23],[65,68,26],[69,69,37],[70,70,26],[71,87,23],[88,88,33],[89,90,23],[91,91,12],[92,92,0],[93,93,11],[94,94,1],[95,95,23],[96,96,1],[97,97,8],[98,98,26],[99,99,7],[100,100,14],[101,101,36],[102,102,27],[103,103,23],[104,104,32],[105,107,23],[108,108,17],[109,109,35],[110,110,30],[111,111,25],[112,112,31],[113,113,23],[114,114,29],[115,115,18],[116,116,15],[117,117,28],[118,119,23],[120,120,34],[121,121,24],[122,122,23],[123,123,6],[124,124,1],[125,125,3],[126,65535,1]],this.initialTable={STRING:1,INITIAL:2}}return e.lexSeq=function(t){var r=new e;r.source=t;for(var a=[],n=r.token;"<$>"!==n;)a.push({token:n,text:r.yytext,start:r.startIdx,end:r.endIdx}),r.advance(),n=r.token;return a},e.prototype.yyrestart=function(e){void 0===e&&(e=null),null!=e&&(this.sourceString=e),this.ended=!1,this.start=0,this.oldStart=0,this.line=1,this.col=0,this.advanced=!0,this.tokenNameString=null,this.yyObject={},this.initialState="INITIAL"},Object.defineProperty(e.prototype,"source",{set:function(e){this.sourceString=e,this.yyrestart()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"token",{get:function(){return this.advanced&&(this.tokenNameString=this.next(),this.advanced=!1),this.tokenNameString},enumerable:!0,configurable:!0}),e.prototype.advance=function(){this.advanced=!0},Object.defineProperty(e.prototype,"startIdx",{get:function(){return this.oldStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endIdx",{get:function(){return this.start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return[this.line,this.col]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"positionInfo",{get:function(){return this.token+"@row:"+this.position.join("col:")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yytext",{get:function(){return this.yyText},set:function(e){this.yyText=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yyleng",{get:function(){return this.endIdx-this.startIdx},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yy",{get:function(){return this.yyObject},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenName",{get:function(){return this.tokenNameString},enumerable:!0,configurable:!0}),e.prototype.next=function(){for(var e,t,r,a,n,i,o,s,l;;)for(e=null,t=null,r=0,a=this.start,n=this.start,i=4294967295,s=4294967295,l=this.start,o=this.transTable[0][1][this.initialInput];;){if(r=this.sourceString.charCodeAt(n),4294967295!==i&&(13===r?(this.col=0,this.line++):10===r?13!==i&&(this.col=0,this.line++):this.col++),i=r,4294967295===(t=this.trans(o,r))){if(a===l){if(this.start===this.sourceString.length){if(this.ended)throw new Error("已经到达末尾.");return this.ended=!0,"<$>"}throw new Error("意外的字符,line:"+this.position.join(",col:")+"of "+this.sourceString.substr(a,20))}switch(e=this.finalTable[s],this.start=l,this.oldStart=a,this.yyText=this.sourceString.substring(this.startIdx,this.endIdx),e){case 2:return"time";case 3:return"number";case 4:return"hex";case 5:return"+";case 6:return"-";case 7:return this.begin("STRING"),"str_start";case 8:return"str_esc_char";case 9:return"str_esc_unicode";case 10:return"str_esc_ascii";case 11:return this.begin("INITIAL"),"str_end";case 12:return"str_seg";case 13:return"set";case 14:return"let";case 15:return"def";case 16:return"apply";case 17:return"clone";case 18:return"then"\n;case 19:return"=";case 20:return"(";case 21:return")";case 22:return"[";case 23:return"]";case 24:return"{";case 25:return"}";case 26:return".";case 27:return",";case 28:return";";case 29:return"%";case 30:return"id"}break}null!=(e=this.finalTable[t])&&(s=t,l=n+1),n+=1,o=t}},e.prototype.trans=function(e,t){if(isNaN(t))return 4294967295;if(tthis.inputTable[this.inputTable.length-1][1])throw new Error("输入超出有效范围,line:"+this.position.join(",col:"));if(!0===this.transTable[e][0])return 4294967295;var r=this.find(t,this.inputTable),a=this.find(r,this.transTable[e][2]);return this.transTable[e][1][a]},e.prototype.find=function(e,t){var r,a,n;for(r=0,a=t.length-1;;){if(t[n=r+a>>>1][0]<=e&&t[n][1]>=e)return t[n][2];t[n][0]>e?a=n-1:r=n+1}},e.prototype.begin=function(e){void 0===e&&(e=null),this.initialState=null!=e?e:"INITIAL"},Object.defineProperty(e.prototype,"initialState",{get:function(){return this.initialStateString},set:function(e){if(void 0===this.initialTable[e])throw new Error("未定义的起始状态:"+e);this.initialStateString=e,this.initialInput=this.initialTable[e]},enumerable:!0,configurable:!0}),e}(),p=function(){function e(){this.ast_helper=new s,this.actionTable=[null,{0:6,1:1,2:2,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{0:6,2:9,67:54,4:22,69:20,70:16,8:4,9:8,10:10,76:12,77:32,14:9,73:148,18:9,85:52,78:50,24:28,25:9,90:150,74:44,29:18,68:36,89:14,36:26,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{3:25,5:33,6:35,7:37,12:43,16:57,19:68,21:43,23:68,26:68,28:43,30:87,31:68,32:95,35:87,38:87,39:68,40:68,44:66,45:87,47:104,48:106,53:102,54:98,61:96,62:100,64:132,65:134,66:68,71:87,72:87,75:187,79:68,80:201,82:140,86:95,87:112,88:87,92:64,93:94,94:70,95:90,96:92,98:87,101:120,106:239,107:138,109:110,110:108,113:46,114:72,117:136,121:68,122:87},{0:6,2:11,67:54,4:22,69:20,70:16,8:4,9:8,10:10,11:41,68:36,13:49,14:11,73:148,18:11,20:65,77:32,78:50,124:150,24:28,25:11,90:150,27:81,92:161,29:18,33:135,34:30,91:229,36:26,74:44,85:52,76:12,41:150,89:14,43:36,101:120,46:161,47:104,112:40,115:34,99:161,120:56,116:38,125:42},{19:68,23:68,24:28,25:24,29:18,30:89,31:68,35:139,36:26,37:141,39:68,43:36,44:66,45:159,47:104,48:106,53:102,54:98,61:96,62:100,64:132,65:134,66:68,68:36,69:20,70:16,71:183,76:12,77:32,79:68,82:140,87:112,88:225,89:14,92:64,93:94,94:70,95:90,96:92,98:237,101:120,107:138,109:110,110:108,113:46,114:72,115:34,116:38,117:136,121:68,122:48,123:251},{0:6,2:13,67:54,4:22,69:20,70:16,8:4,9:8,10:10,76:12,77:32,14:13,73:148,18:13,85:52,78:50,24:28,25:13,90:150,74:44,29:18,68:36,89:14,36:26,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{3:27,20:67,21:45,27:83,12:45,28:45,15:55},{64:132,65:134,67:54,94:70,117:136,72:185,120:56,111:243,78:50,82:140,85:52,22:71,87:112,26:68,92:64,93:94,86:80,95:90,32:80,33:137,100:84,101:120,38:143,40:68,107:138,44:66,109:110,110:108,47:104,48:106,96:92,114:72,108:76,53:102,54:98,55:173,56:74,57:78,58:82,59:86,60:88,61:96,62:100},{36:39,69:20,70:16,10:39,43:36,76:12,77:32,47:104,115:34,116:38,68:36,101:120,24:39,89:14,29:18},{64:132,65:134,117:136,118:144,77:197,82:140,83:146,84:215,87:112,92:64,93:94,94:231,95:90,96:92,100:84,101:120,107:138,109:110,110:108,47:104,48:106,53:102,54:98,119:142,57:175,58:82,59:86,60:88,61:96,62:100},{0:6,2:15,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{0:6,2:17,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{17:59,42:153,46:163},{32:97,75:97,52:97,86:97,80:97,106:97,43:97,68:97},{32:99,80:99,106:99,75:99,52:99,86:99},{32:118,49:114,50:116,52:118,86:118,80:118,106:118,75:118,63:177},{87:221},{32:101,80:101,106:101,75:101,52:101,86:101},{32:103,80:103,106:103,75:103,52:103,86:103},{32:105,97:105,52:105,86:105,80:105,106:105,75:105},{\n104:126,81:205,105:128,51:130,102:122,103:124},{104:126,81:207,105:128,51:130,102:122,103:124},{104:126,81:209,105:128,51:130,102:122,103:124},{104:126,81:211,105:128,51:130,102:122,103:124},{104:126,81:213,105:128,51:130,102:122,103:124},{32:107,80:107,75:107,86:107},{101:120,118:144,109:110,110:108,47:104,48:106,83:146,52:167,53:102,54:98,87:112,84:217,61:96,62:100,119:142},{67:54,85:52,120:56,41:149,90:149,124:149,78:50}],this.gotoTable={64:{52:171},29:{0:5},30:{0:7},31:{2:19},32:{2:21},33:{25:75,18:61,2:23,14:51},34:{79:199,23:73,19:63,39:145,40:147,121:247,26:79,66:179,31:93},35:{68:181,43:155},36:{3:29},37:{4:31},38:{14:53},39:{25:77},40:{12:47,21:69,28:85},41:{32:109,75:109,52:109,86:109,80:109,106:109,43:157,68:157},42:{97:233},43:{32:111,97:235,52:111,86:111,80:111,106:111,75:111},44:{124:253,41:151,90:227},45:{113:245},46:{122:249},47:{32:113},49:{75:189},50:{88:91,98:91,35:91,38:91,71:91,72:91,122:91,45:91,30:91},51:{75:191},52:{32:115,86:219},53:{32:117,86:117},54:{32:119,80:203,86:119},55:{32:121,80:121,106:241,75:193,52:169,86:121},56:{32:123,80:123,75:195,86:123},57:{32:125,80:125,106:125,75:125,52:125,86:125},58:{32:127,80:127,106:127,75:127,52:127,86:127},59:{32:129,80:129,106:129,75:129,52:129,86:129},60:{87:223},61:{51:165},62:{32:131,80:131,75:131,86:131},63:{32:133,80:133,75:133,86:133}},this.prodList=[[65,2],[29,1],[30,2],[30,0],[31,1],[31,1],[33,6],[33,6],[33,5],[33,3],[33,5],[37,0],[39,0],[38,2],[38,1],[36,3],[35,1],[35,3],[35,0],[42,1],[32,7],[32,12],[32,5],[45,0],[46,0],[40,4],[40,4],[40,3],[40,6],[48,3],[48,1],[48,0],[49,1],[34,2],[34,0],[50,3],[50,4],[47,1],[52,3],[52,1],[52,0],[53,1],[53,3],[54,1],[54,1],[51,1],[51,1],[51,1],[55,1],[55,1],[55,1],[55,1],[41,1],[58,1],[57,3],[60,1],[60,0],[59,1],[59,1],[59,0],[43,3],[61,2],[61,2],[61,2],[61,2],[61,0],[56,1],[56,1],[63,4],[62,3],[62,2],[64,3],[64,3],[64,1],[44,1],[44,0]],this.inputTable={"<$>":1,set:2,id:3,"{":4,"}":5,apply:6,"(":7,")":8,then:9,",":10,def:11,let:12,"=":13,time:14,hex:15,number:16,"%":17,"+":18,"-":19,str_start:20,str_end:21,str_esc_char:22,str_esc_unicode:23,str_esc_ascii:24,str_seg:25,"[":26,"]":27,";":28}}return e.parse=function(t){var r=new u;return r.source=t,(new e).parseLexer(r)},e.prototype.parseLexer=function(e){for(var t,r,a,n=[0],i=[];;){if(r=e.token,t=n[n.length-1],null==this.actionTable[this.inputTable[r]][t])throw new Error("Parse Error:"+e.positionInfo);if(1===(a=this.actionTable[this.inputTable[r]][t]))return i.pop();if(1==(1&a))i.push(e.yytext),n.push((a>>>1)-1),e.advance();else if(0==(1&a)){var o=a>>>1,s=this.prodList[o][1],l=null;switch(s>0&&(l=i[i.length-s]),o){case 1:l=this.ast_helper.on_Result(i[i.length-1]);break;case 2:(l=i[i.length-2]).push(i[i.length-1]);break;case 3:l=[];break;case 4:break;case 5:l={type:"SetExpr",params:i[i.length-1]};break;case 6:l=this.ast_helper.on_unit_set_expr(i[i.length-5],i[i.length-3],i[i.length-1]);break;case 7:l=this.ast_helper.on_temporary_target_set_expr(i[i.length-5],i[i.length-3],i[i.length-1]);break;case 8:l={type:"ApplyExpr",params:[i[i.length-4],i[i.length-2]]};break;case 9:l=this.ast_helper.on_then_set_expr(i[i.length-3],i[i.length-1]);break;case 10:l=this.ast_helper.on_group_set_expr(i[i.length-3]);break;case 11:this.ast_helper.on_enter_scope();break;case 12:this.ast_helper.on_leave_scope();break;case 13:(l=i[i.length-2]).push(i[i.length-1]);break;case 14:l=[i[i.length-1]];break;case 15:l=i[i.length-2];break;case 16:l=[i[i.length-1]];break;case 17:l=[i[i.length-3],i[i.length-1]];break;case 18:l=[];break;case 19:break;case 20:l=this.ast_helper.on_def_object(i[i.length-6],i[i.length-5],i[i.length-3]);break;case 21:l=this.ast_helper.on_def_template(i[i.length-11],i[i.length-10],i[i.length-8],i[i.length-4]);break;case 22:l=this.ast_helper.on_let_object_binding(i[i.length-4],i[i.length-2]);break;case 23:this.ast_helper.on_enter_tpl();break;case 24:this.ast_helper.on_leave_tpl();break;case 25:l=this.ast_helper.on_object_modification(i[i.length-4],i[i.length-2]);break;case 26:l=this.ast_helper.on_template_application(i[i.length-4],i[i.length-2]);break;case 27:\nl=i[i.length-2];break;case 28:l=this.ast_helper.on_tmp_object_modification(i[i.length-5],i[i.length-3]);break;case 29:(l=i[i.length-3]).push(i[i.length-1]);break;case 30:l=[i[i.length-1]];break;case 31:l=[];break;case 32:l=this.ast_helper.on_Variable_value(i[i.length-1]);break;case 33:(l=i[i.length-2]).push(i[i.length-1]);break;case 34:l=[];break;case 35:l=[i[i.length-3],i[i.length-1]];break;case 36:l=[i[i.length-4],i[i.length-2]];break;case 37:l=this.ast_helper.on_ArgList(i[i.length-1]);break;case 38:(l=i[i.length-1]).unshift(i[i.length-3]);break;case 39:l=[i[i.length-1]];break;case 40:l=[];break;case 41:l=[null,i[i.length-1]];break;case 42:l=[i[i.length-3],i[i.length-1]];break;case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:break;case 52:l=this.ast_helper.on_Time_value(i[i.length-1]);break;case 53:l=this.ast_helper.on_Hex_value(i[i.length-1]);break;case 54:l=this.ast_helper.on_Num_value(i[i.length-3],i[i.length-2],i[i.length-1]);break;case 55:case 56:case 57:case 58:break;case 59:l="+";break;case 60:l=this.ast_helper.on_String_value(i[i.length-2]);break;case 61:(l=i[i.length-2]).push({type:"char",value:i[i.length-1]});break;case 62:(l=i[i.length-2]).push({type:"unicode",value:i[i.length-1]});break;case 63:(l=i[i.length-2]).push({type:"ascii",value:i[i.length-1]});break;case 64:(l=i[i.length-2]).push({type:"seg",value:i[i.length-1]});break;case 65:l=[];break;case 66:case 67:break;case 68:l=this.ast_helper.on_Object_value(i[i.length-4],this.ast_helper.on_KeyValue_list(i[i.length-4],i[i.length-2]));break;case 69:l=this.ast_helper.on_Array_value(i[i.length-2]);break;case 70:l=this.ast_helper.on_Array_value([]);break;case 71:case 72:(l=i[i.length-3]).push(i[i.length-1]);break;case 73:l=[i[i.length-1]]}for(var u=0;u>>1)-1),i.push(l)}}},e}();var h=function(e,t){void 0===t&&(t=!0);var r={x:{numType:"number",value:0},y:{numType:"number",value:0},zIndex:{numType:"number",value:0},scale:{numType:"number",value:1},duration:void 0},i={content:"请输入内容",alpha:{numType:"number",value:1},color:16777215,anchorX:{numType:"number",value:0},anchorY:{numType:"number",value:0},fontSize:{numType:"number",value:25},fontFamily:"SimHei",bold:{numType:"number",value:1},textShadow:{numType:"number",value:1},strokeWidth:{numType:"number",value:0},strokeColor:16777215,rotateX:{numType:"number",value:0},rotateY:{numType:"number",value:0},rotateZ:{numType:"number",value:0},parent:void 0},o={text:"请输入内容",fontSize:{numType:"number",value:25},textColor:0,textAlpha:{numType:"number",value:1},fillColor:16777215,fillAlpha:{numType:"number",value:1},target:void 0},s={d:void 0,viewBox:void 0,borderColor:0,borderAlpha:{numType:"number",value:1},borderWidth:{numType:"number",value:0},fillColor:16777215,fillAlpha:{numType:"number",value:1}};function l(e){for(var t in e)if(e.hasOwnProperty(t))switch(void 0!==e[t].value&&void 0!==e[t].value.numType&&void 0===e[t].easing?e[t]=e[t].value:void 0!==e[t].value&&void 0!==e[t].type&&(e[t]=e[t].value),t){case"content":e[t]=n(e[t],!1,!0);break;case"fontFamily":e[t]=n(e[t],!0,!1);break;case"parent":e[t]=n(e[t],!1,!1);break;case"text":e[t]=n(e[t],!1,!0);break;case"d":case"viewBox":e[t]=n(e[t],!0,!1);break;default:"string"==typeof e[t]&&(e[t]=n(e[t],!1,!1))}}function u(e){l(e.attrs),e.duration=e.duration.value,e.defaultEasing=e.default_easing&&e.default_easing.value,e.targetName=e.target_name}try{var h=p.parse(e),c={};c.defs=h.defs;for(var _=0;_canvas{pointer-events:auto}.bas-danmaku-item{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards;line-height:1;-webkit-transform-origin:0 0;transform-origin:0 0}.bas-danmaku-item .bas-danmaku-item{position:absolute;left:0;top:0}.bas-danmaku-item.bas-danmaku-item-button{pointer-events:auto;padding:10px 20px;border-radius:3px}.bas-danmaku-item-wrap{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;left:0;right:0;top:0;height:100%;z-index:10}.bas-danmaku-item-inner{border:0;-webkit-transform-origin:0 0;transform-origin:0 0}.bas-danmaku-item-text .bas-danmaku-item-inner{pointer-events:none;border-style:solid}",""])},function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",a=e[3];if(!a)return r;if(t&&"function"==typeof btoa){var n=(s=a,o=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(l," */")),i=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot).concat(e," */")}));return[r].concat(i).concat([n]).join("\n")}var s,o,l;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(r,"}"):r})).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var a={},n=0;n/g,"").replace(/"/g,"").replace(/'/g,"").replace(/\//g,"").replace(/:/g,"").replace(/;/g,"")),e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/ /g,t?" ":" ").replace(/\n/g,"
")},browser:{get version(){var e=navigator.userAgent.toLowerCase(),t=/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.test(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.test(e),r=/(chrome)[ \/]([\w.]+)/.exec(e)||"",a={browser:r[5]||r[3]||r[1]||"",version:r[4]||r[2]||"0"},n=0;return a.browser&&(n=parseInt(a.version,10)),{browser:a.browser,version:n,linux:/Linux/i.test(e),webKit:/AppleWebKit/i.test(e),gecko:/Gecko/i.test(e)&&!/KHTML/i.test(e),trident:/Trident/i.test(e),presto:/Presto/i.test(e),mobile:/AppleWebKit.*Mobile.*/i.test(e),iOS:/Mac OS X[\s_\-\/](\d+[.\-_]\d+[.\-_]?\d*)/i.test(e),iPhone:/iPhone/i.test(e),iPad:/iPad/i.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,webApp:!/Safari/i.test(e),android:/Android/i.test(e),windowsPhone:/Windows Phone/i.test(e),microMessenger:/MicroMessenger/i.test(e),msie:/msie [\w.]+/i.test(e),edge:/edge/i.test(e),edgeBuild16299:/(\s|^)edge\/16.16299(\s|$)/i.test(e),safari:t,safariSupportMSE:t&&/Version\/1\d/i.test(e)}}}},n=function(){function e(e){this.prefix=["","-webkit-"],this.endProgress={},this.xProportion=e.container.offsetWidth/100,this.yProportion=e.container.offsetHeight/100,this.container=e.container,this.dm=e.dm,this.percentObj2Num(this.dm),this.defs=this.dm.defs,this.sets=this.dm.sets,this.startTime=e.startTime,this.player=e.player,this.animationEndCallback=e.animationEndCallback,this.init()}return e.prototype.init=function(){var e=this.itemsTemplate();if(e){var t=100*this.xProportion/2/Math.tan(Math.PI/180*27.5) 5 | ;this.ele=a.string2DOM('
'+this.animationTemplate()+e+"
");for(var r=0;r=12?this.ele.querySelector(".bas-danmaku-item--"+e+" .bas-danmaku-item-inner").style.fontSize=a+"px":(this.ele.querySelector(".bas-danmaku-item--"+e+" .bas-danmaku-item-inner").style.fontSize="12px",this.ele.querySelector(".bas-danmaku-item--"+e+" .bas-danmaku-item-inner").style.transform="scale("+a/12+")")}},e.prototype.percentObj2Num=function(e){for(var t=this,r=function(e){for(var r in e)if(e.hasOwnProperty(r)){var a=void 0;if(e[r].numType)a=e[r];else{if(!e[r].value||!e[r].value.numType)continue;a=e[r].value}if("number"===a.numType)switch(r){case"x":a=a.value/t.xProportion;break;case"y":a=a.value/t.yProportion;break;default:a=a.value}else if("percent"===a.numType)switch(r){case"fontSize":case"width":a=a.value*t.xProportion;break;case"height":a=a.value*t.yProportion;break;default:a=a.value}e[r].numType?e[r]=a:e[r].value&&e[r].value.numType&&(e[r].value=a)}},a=0;a
'+o.content+c+"
";case"DefButton":return u+="transform:translate("+o.x*t+"px, "+o.y*r+"px) scale("+o.scale+");color:"+a.rgbaFormat(o.textColor,o.textAlpha)+";background-color:"+a.rgbaFormat(o.fillColor,o.fillAlpha)+";",i=this.getStyleIn(o),'
'+o.text+"
";case"DefPath": 6 | u+="transform:translate("+o.x*t+"px, "+o.y*r+"px);",i=this.getStyleIn(o);var f=void 0;o.viewBox?f=o.width||o.height?'viewBox="'+o.viewBox+'" '+(o.width?'width="'+o.width*(o.scale||1)+'"':"")+" "+(o.height?'height="'+o.height*(o.scale||1)+'"':""):'viewBox="'+o.viewBox+'" width="'+parseInt(o.viewBox.split(" ")[2],10)*(o.scale||1)+'"':o.scale&&(f='style="transform:scale('+o.scale+');transform-origin: 0 0;overflow:visible;"');var d='fill="'+a.rgbaFormat(o.fillColor,o.fillAlpha)+'" stroke="'+a.rgbaFormat(o.borderColor,o.borderAlpha)+'" stroke-width="'+o.borderWidth+'" d="'+o.d+'"';return'
"}},e.prototype.findParent=function(e){for(var t=0;t=12?t+="font-size:"+e.fontSize+"px;":(t+="font-size:12px;",r+="scale("+e.fontSize/12+") ")),e.hasOwnProperty("anchorX")&&e.hasOwnProperty("anchorY")&&(r+="translate("+100*-e.anchorX+"%,"+100*-e.anchorY+"%)"),r&&(t+="transform:"+r+";"),t},e.prototype.getStyleOut=function(e,t){switch(e){case"alpha":return"opacity:"+t+";";case"color":return"color:"+a.colorFromInt(t)+";";case"zIndex":return"z-index:"+t+";";default:return""}},e.prototype.animationTemplate=function(){for(var e="",t=0;t"+e+""},e.prototype.keyframesTemplate=function(e,t,r,a,n,i){void 0===n&&(n=this.xProportion),void 0===i&&(i=this.yProportion);var s="",o="";if(r&&(void 0!==r.x||void 0!==r.y||void 0!==r.rotateX||void 0!==r.rotateY||void 0!==r.rotateZ||void 0!==r.scale)||a&&(void 0!==a.x||void 0!==a.y||void 0!==a.rotateX||void 0!==a.rotateY||void 0!==a.rotateZ||void 0!==a.scale)){var l=function(t){return a&&void 0!==a[t]?a[t]:r&&void 0!==r[t]?r[t]:e.attrs[t]?e.attrs[t]:0},u=l("x")*n,h=l("y")*i,p=l("rotateX"),c=l("rotateY"),f=l("rotateZ"),d="DefPath"===e.type?1:l("scale"),b=function(t){return r&&void 0!==r[t]?r[t]:void 0!==e.attrs[t]?e.attrs[t]:0},m=b("x")*n,v=b("y")*i,y=b("rotateX"),g=b("rotateY"),_=b("rotateZ"),k="DefPath"===e.type?1:b("scale");switch(e.type){case"DefText":s+="transform:translate("+m+"px, "+v+"px) rotateX("+y+"deg) rotateY("+g+"deg) rotateZ("+_+"deg) scale("+k+");",o+="transform:translate("+u+"px, "+h+"px) rotateX("+p+"deg) rotateY("+c+"deg) rotateZ("+f+"deg) scale("+d+");";break;case"DefButton":case"DefPath":s+="transform:translate("+m+"px, "+v+"px);",o+="transform:translate("+u+"px, "+h+"px);"}}for(var w in r)r.hasOwnProperty(w)&&(s+=this.getStyleOut(w,r[w]));for(var w in a)a.hasOwnProperty(w)&&(o+=this.getStyleOut(w,a[w])) 7 | ;return o||(o="line-height:1;"),s?"\n@-webkit-keyframes "+t+" {\n 0% { "+s+" }\n 100% { "+o+" }\n}\n@keyframes "+t+" {\n 0% { "+s+" }\n 100% { "+o+" }\n}":"\n@-webkit-keyframes "+t+" {\n 100% { "+o+" }\n}\n@keyframes "+t+" {\n 100% { "+o+" }\n}"},e.prototype.prefixCSS=function(e,t){for(var r="",a=0;a/g,"").replace(/"/g,"").replace(/'/g,"").replace(/\//g,"").replace(/:/g,"").replace(/;/g,"")),e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/ /g,t?" ":" ").replace(/\n/g,"
")};function o(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var a,n,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}var u=function(){function e(){this.class_names=["text","button","path"],this.variableTable={},this.varibaleRegOrder=0,this.templateTable={},this.tpl_name_id=0,this.obj_name_id=0,this.allowsVariable=[]}return e.prototype.on_String_value=function(e){var t,r,a=[];try{for(var n=o(e),i=n.next();!i.done;i=n.next()){var s=i.value;switch(s.type){case"char":var l=null;switch(s.value.charAt(1)){case"n":l="\n";break;case"r":l="\r";break;case"t":l="\t";break;case"\\":l="\\";break;case"'":l="'";break;case'"':l='"';break;default:l=s.charAt(1)}a.push(l);break;case"unicode":case"ascii":var u=s.value.substr(2);a.push(String.fromCharCode(parseInt(u,16)));break;case"seg":a.push(s.value)}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return new h({type:"String",value:a.join("")})},e.prototype.on_Num_value=function(e,t,r){return t=t,new h({type:"Num",value:{numType:(r="%"===r)?"percent":"number",value:(e="+"===e?1:-1)*parseFloat(t)}})},e.prototype.on_Time_value=function(e){for(var t=!0,r=0,a=0,n="",i=null;null!=(i=t?e.match(/^(\d*\.?\d+(?:[eE][\+\-]?\d+)?)(.*)$/):e.match(/^([hms]+)(.*)$/));){if(n=i[1],t)a=parseFloat(n);else switch(n){case"h":r+=3600*a*1e3;break;case"m":r+=60*a*1e3;break;case"s":r+=1e3*a;break;case"ms":r+=a}e=i[2],t=!t}return new h({type:"Time",value:r})},e.prototype.on_Hex_value=function(e){return new h({type:"Hex",value:parseInt(e.substr(2),16)})},e.prototype.on_Object_value=function(e,t){return new h({type:"Object",value:t})},e.prototype.on_Array_value=function(e){return new h({type:"Array",value:e})},e.prototype.on_Variable_value=function(e){return new h({type:"Variable",value:e}) 8 | },e.prototype.on_KeyValue_list=function(e,t,r){return void 0===r&&(r=null),null==r&&(r=this.peek_allows_varable()),t},e.prototype.on_let_object_binding=function(e,t){t.obj_type;var r=t.name;return this.unregister_variable(r),t.name=e,this.register_variable(e,t),t},e.prototype.on_def_object=function(e,t,r){var a={type:"Def"+this.capitalization_str(e),obj_type:e,name:t,attrs:{}},n=this.on_KeyValue_list(e,r,!1);return this.fill_kv_obj(a.attrs,n),this.register_variable(t,a),a},e.prototype.on_def_template=function(e,t,r,a){var n={type:"template",obj_type:e,name:t,attrs:{},tpl_list:[]},i=this.on_KeyValue_list(e,a,!0);return this.check_variables_on_template_body(r,i),this.fill_kv_obj(n.attrs,a),n.tpl_list=r,this.register_template(t,n),n},e.prototype.on_object_modification=function(e,t){if(!this.has_variable_obj(e)){if(-1!==this.class_names.indexOf(e)){var r=this.new_variable_name_of_template_application(e);return this.on_def_object(e,r,t)}return null}var a=this.get_variable_obj(e),n=a.obj_type,i=this.new_variable_name_of_variable_modification(e),s={type:"Def"+this.capitalization_str(n),obj_type:n,name:i,attrs:{}},o=this.on_KeyValue_list(n,t,!1),l=this.merge_list(a.attrs,o);return this.fill_kv_obj(s.attrs,l),this.register_variable(i,s),s},e.prototype.on_tmp_object_modification=function(e,t){var r=e.name,a=this.on_object_modification(r,t);return this.unregister_variable(r),a},e.prototype.on_template_application=function(e,t){var r=this.get_template_obj(e);if(null==r)return null;var a=r.obj_type,n=this.new_variable_name_of_template_application(e),i={type:"Def"+this.capitalization_str(a),obj_type:a,name:n,attrs:{}},s=this.evaluation_template(r.attrs,r.tpl_list,t);return this.fill_kv_obj(i.attrs,s),this.register_variable(n,i),i},e.prototype.on_ArgList=function(e){var t,r,a=[],n=[];try{for(var i=o(e),s=i.next();!s.done;s=i.next()){var u=l(s.value,2),h=u[0],p=u[1];null==h?a.push(p):n.push([h,p])}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return{naked_params:a,named_params:n}},e.prototype.on_unit_set_expr=function(e,t,r){var a=l(r,2),n={type:"Unit",duration:a[0],default_easing:a[1],target_name:e,attrs:{}},i=this.get_variable_type(e),s=this.on_KeyValue_list(i,t,!1);return this.fill_kv_obj(n.attrs,s),n},e.prototype.on_temporary_target_set_expr=function(e,t,r){var a=e.obj_type,n=e.name,i=l(r,2),s={type:"Unit",duration:i[0],default_easing:i[1],target_name:n,attrs:{}},o=this.on_KeyValue_list(a,t,!1);return this.fill_kv_obj(s.attrs,o),s},e.prototype.on_then_set_expr=function(e,t){return"Serial"===e.type?(e.items.push(t),e):{type:"Serial",items:[e,t]}},e.prototype.on_group_set_expr=function(e){return{type:"Parallel",items:e}},e.prototype.has_variable_obj=function(e){return this.variableTable.hasOwnProperty(e)},e.prototype.get_variable_obj=function(e){return this.variableTable.hasOwnProperty(e)?this.variableTable[e]:(console.error("var "+e+" is not defined."),null)},e.prototype.get_template_obj=function(e){return this.templateTable.hasOwnProperty(e)?this.templateTable[e]:(console.error("tpl "+e+" is not defined."),null)},e.prototype.get_variable_type=function(e){return this.get_variable_obj(e).obj_type},e.prototype.get_template_type=function(e){return this.get_template_obj(e).obj_type},e.prototype.fill_kv_obj=function(e,t){var r,a;try{for(var n=o(t),i=n.next();!i.done;i=n.next()){var s=l(i.value,2),u=s[0],h=s[1];e[u]=h}}catch(e){r={error:e}}finally{try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(r)throw r.error}}},e.prototype.merge_list=function(e,t){var r,a,n={};this.fill_kv_obj(n,t);var i=[];for(var s in e)n.hasOwnProperty(s)?i.push([s,n[s]]):i.push([s,e[s]]);try{for(var u=o(t),h=u.next();!h.done;h=u.next()){var p=l(h.value,2),c=(s=p[0],p[1]);e.hasOwnProperty(s)||i.push([s,c])}}catch(e){r={error:e}}finally{try{h&&!h.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return i},e.prototype.evaluation_template=function(e,t,r){var a,n,i,s,u=r.naked_params,h=r.named_params,p={},c=t.map((function(e,t){var r=l(e,2),a=r[0];r[1];return p[a]=t,{key:a,matched:!1}})),f={};try{ 9 | for(var d=o(h),b=d.next();!b.done;b=d.next()){var m=l(b.value,2),v=m[0],y=m[1];f[v]=y,p.hasOwnProperty(v)?c[p[v]].matched=!0:console.error("看看命名参数是不是没有在定义参数里面..")}}catch(e){a={error:e}}finally{try{b&&!b.done&&(n=d.return)&&n.call(d)}finally{if(a)throw a.error}}var g=c.filter((function(e){return!e.matched}));g.length0&&this.allowsVariable[this.allowsVariable.length-1]},e.prototype.check_variables_on_template_body=function(e,t){var r,a,n={};this.fill_kv_obj(n,t);try{for(var i=o(e),s=i.next();!s.done;s=i.next()){var u=l(s.value,2),h=(u[0],u[1]);if("Variable"===h.type){var p=h.value;n.hasOwnProperty(p)||console.error("varibale "+p+" in template's body is not present at arguments.")}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},e.prototype.on_Result=function(e){var t=[];for(var r in this.variableTable)t.push(this.variableTable[r]);return t.sort((function(e,t){return e.obj_name_id-t.obj_name_id})),{sets:e.filter((function(e){return"SetExpr"===e.type})).map((function(e){return e.params})),defs:t}},e}(),h=function(){function e(e){this.type=e.type,this.value=e.value}return e.prototype.as_string=function(){if("String"===this.type)return this.value},e.prototype.as_integer=function(){return"Hex"===this.type?this.value:"Num"===this.type?Math.floor(this.value.value):void 0},e.prototype.as_number=function(){if("Num"===this.type)return this.value},e.prototype.as_time=function(){if("Time"===this.type)return this.value},e.prototype.as_object=function(){if("Object"===this.type)return this.value},e}(),p=function(){function e(){ 10 | this.transTable=[[!1,[4294967295,2,1],[[0,42,0],[43,43,1],[44,44,2]]],[!1,[4294967295,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3],[[0,2,0],[3,3,1],[4,4,2],[5,5,3],[6,6,4],[7,7,5],[8,8,6],[9,9,7],[10,10,8],[11,11,9],[12,12,10],[13,13,11],[14,14,12],[15,15,13],[16,16,14],[17,17,15],[18,18,16],[19,19,17],[20,20,18],[21,21,19],[22,22,20],[23,37,21],[38,38,22],[39,39,23],[40,41,24],[42,42,25],[43,44,0]]],[!1,[30,28,29,4294967295],[[0,0,0],[1,20,1],[21,21,2],[22,39,1],[40,40,3],[41,42,1],[43,44,3]]],[!1,[4294967295,31],[[0,41,0],[42,42,1],[43,44,0]]],[!1,[4294967295,4],[[0,39,0],[40,41,1],[42,44,0]]],[!1,[4294967295,14,37,36,35,34,33,32],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,4],[35,35,5],[36,37,6],[38,38,7],[39,39,1],[40,44,0]]],[!1,[4294967295,38],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!1,[4294967295,7,39],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,40],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,14,37,36,34,33,32],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,37,5],[38,38,6],[39,39,1],[40,44,0]]],[!1,[4294967295,7,41],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,31,1],[32,32,2],[33,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,42],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!0],[!1,[4294967295,7,43],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,30,1],[31,31,2],[32,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,44],[[0,6,0],[7,8,1],[9,13,0],[14,16,1],[17,17,2],[18,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!0],[!0],[!1,[45,4294967295,47,46],[[0,0,0],[1,1,1],[2,2,0],[3,14,1],[15,15,0],[16,20,1],[21,21,0],[22,27,1],[28,28,2],[29,30,0],[31,33,1],[34,34,3],[35,44,1]]],[!1,[31,48,4294967295],[[0,39,0],[40,40,1],[41,42,0],[43,44,2]]],[!1,[4294967295,38],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,49,50],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,51,53,52],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,37,0],[38,38,3],[39,39,1],[40,44,0]]],[!1,[4294967295,54],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,55,56],[[0,15,0],[16,16,1],[17,37,0],[38,38,2],[39,39,1],[40,44,0]]],[!1,[4294967295,57,58],[[0,15,0],[16,16,1],[17,37,0],[38,38,2],[39,39,1],[40,44,0]]],[!1,[4294967295,38,37,36,34,33],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,37,5],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,59],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,2],[16,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,60],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,2],[16,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,61],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,62],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,26,1],[27,27,2],[28,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,63],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,30,1],[31,31,2],[32,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,64],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,24,1],[25,25,2],[26,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,65],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,66],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,48],[[0,39,0],[40,40,1],[41,44,0]]],[!1,[4294967295,49,37,36,34],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,49],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,51,37,68,67,52],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,5],[39,39,1],[40,44,0]]],[!1,[4294967295,69],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,54],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,55,37,34,70,56],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,5],[39,39,1],[40,44,0]]],[!1,[4294967295,71],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,57,68,72,58],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,37,3],[38,38,4],[39,39,1],[40,44,0]]],[!1,[4294967295,73],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,74],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,29,1],[30,30,2],[31,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,75],[[0,6,0],[7,8,1],[9,13,0],[14,16,1],[17,17,2],[18,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,76],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,29,1],[30,30,2],[31,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,77],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,78],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79,80],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,53],[[0,17,0],[18,18,1],[19,44,0]]],[!1,[4294967295,69,37,68,67],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81,82],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,71,37,34,70],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83,84],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,73,68,72],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,37,3],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,85],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,23,1],[24,24,2],[25,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,86],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,87],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79,37,68],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81,37,34],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83,68],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,88],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0]], 11 | this.finalTable={4:1,5:3,6:26,7:30,8:5,9:7,10:6,11:27,12:30,13:30,14:3,15:30,16:30,17:19,18:22,19:23,20:29,21:20,22:30,23:30,24:24,25:28,26:21,27:25,28:12,29:11,31:0,34:2,36:2,37:2,38:3,39:30,40:30,41:30,42:30,43:30,44:30,45:8,48:0,49:3,53:2,54:4,59:13,60:14,61:30,62:15,63:30,64:30,74:18,75:30,76:30,77:10,85:16,86:17,88:9},this.inputTable=[[0,8,1],[9,9,41],[10,10,40],[11,11,1],[12,12,41],[13,13,40],[14,31,1],[32,32,41],[33,33,1],[34,34,21],[35,35,1],[36,36,23],[37,37,10],[38,38,1],[39,39,2],[40,40,9],[41,41,4],[42,42,1],[43,43,22],[44,44,19],[45,45,20],[46,46,38],[47,47,42],[48,48,39],[49,57,16],[58,58,1],[59,59,5],[60,60,1],[61,61,13],[62,63,1],[64,64,23],[65,68,26],[69,69,37],[70,70,26],[71,87,23],[88,88,33],[89,90,23],[91,91,12],[92,92,0],[93,93,11],[94,94,1],[95,95,23],[96,96,1],[97,97,8],[98,98,26],[99,99,7],[100,100,14],[101,101,36],[102,102,27],[103,103,23],[104,104,32],[105,107,23],[108,108,17],[109,109,35],[110,110,30],[111,111,25],[112,112,31],[113,113,23],[114,114,29],[115,115,18],[116,116,15],[117,117,28],[118,119,23],[120,120,34],[121,121,24],[122,122,23],[123,123,6],[124,124,1],[125,125,3],[126,65535,1]],this.initialTable={STRING:1,INITIAL:2}}return e.lexSeq=function(t){var r=new e;r.source=t;for(var a=[],n=r.token;"<$>"!==n;)a.push({token:n,text:r.yytext,start:r.startIdx,end:r.endIdx}),r.advance(),n=r.token;return a},e.prototype.yyrestart=function(e){void 0===e&&(e=null),null!=e&&(this.sourceString=e),this.ended=!1,this.start=0,this.oldStart=0,this.line=1,this.col=0,this.advanced=!0,this.tokenNameString=null,this.yyObject={},this.initialState="INITIAL"},Object.defineProperty(e.prototype,"source",{set:function(e){this.sourceString=e,this.yyrestart()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"token",{get:function(){return this.advanced&&(this.tokenNameString=this.next(),this.advanced=!1),this.tokenNameString},enumerable:!0,configurable:!0}),e.prototype.advance=function(){this.advanced=!0},Object.defineProperty(e.prototype,"startIdx",{get:function(){return this.oldStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endIdx",{get:function(){return this.start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return[this.line,this.col]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"positionInfo",{get:function(){return this.token+"@row:"+this.position.join("col:")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yytext",{get:function(){return this.yyText},set:function(e){this.yyText=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yyleng",{get:function(){return this.endIdx-this.startIdx},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yy",{get:function(){return this.yyObject},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenName",{get:function(){return this.tokenNameString},enumerable:!0,configurable:!0}),e.prototype.next=function(){for(var e,t,r,a,n,i,s,o,l;;)for(e=null,t=null,r=0,a=this.start,n=this.start,i=4294967295,o=4294967295,l=this.start,s=this.transTable[0][1][this.initialInput];;){if(r=this.sourceString.charCodeAt(n),4294967295!==i&&(13===r?(this.col=0,this.line++):10===r?13!==i&&(this.col=0,this.line++):this.col++),i=r,4294967295===(t=this.trans(s,r))){if(a===l){if(this.start===this.sourceString.length){if(this.ended)throw new Error("已经到达末尾.");return this.ended=!0,"<$>"}throw new Error("意外的字符,line:"+this.position.join(",col:")+"of "+this.sourceString.substr(a,20))}switch(e=this.finalTable[o],this.start=l,this.oldStart=a,this.yyText=this.sourceString.substring(this.startIdx,this.endIdx),e){case 2:return"time";case 3:return"number";case 4:return"hex";case 5:return"+";case 6:return"-";case 7:return this.begin("STRING"),"str_start";case 8:return"str_esc_char";case 9:return"str_esc_unicode";case 10:return"str_esc_ascii";case 11:return this.begin("INITIAL"),"str_end";case 12:return"str_seg";case 13:return"set";case 14:return"let";case 15:return"def";case 16:return"apply";case 17:return"clone";case 18:return"then" 12 | ;case 19:return"=";case 20:return"(";case 21:return")";case 22:return"[";case 23:return"]";case 24:return"{";case 25:return"}";case 26:return".";case 27:return",";case 28:return";";case 29:return"%";case 30:return"id"}break}null!=(e=this.finalTable[t])&&(o=t,l=n+1),n+=1,s=t}},e.prototype.trans=function(e,t){if(isNaN(t))return 4294967295;if(tthis.inputTable[this.inputTable.length-1][1])throw new Error("输入超出有效范围,line:"+this.position.join(",col:"));if(!0===this.transTable[e][0])return 4294967295;var r=this.find(t,this.inputTable),a=this.find(r,this.transTable[e][2]);return this.transTable[e][1][a]},e.prototype.find=function(e,t){var r,a,n;for(r=0,a=t.length-1;;){if(t[n=r+a>>>1][0]<=e&&t[n][1]>=e)return t[n][2];t[n][0]>e?a=n-1:r=n+1}},e.prototype.begin=function(e){void 0===e&&(e=null),this.initialState=null!=e?e:"INITIAL"},Object.defineProperty(e.prototype,"initialState",{get:function(){return this.initialStateString},set:function(e){if(void 0===this.initialTable[e])throw new Error("未定义的起始状态:"+e);this.initialStateString=e,this.initialInput=this.initialTable[e]},enumerable:!0,configurable:!0}),e}(),c=function(){function e(){this.ast_helper=new u,this.actionTable=[null,{0:6,1:1,2:2,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{0:6,2:9,67:54,4:22,69:20,70:16,8:4,9:8,10:10,76:12,77:32,14:9,73:148,18:9,85:52,78:50,24:28,25:9,90:150,74:44,29:18,68:36,89:14,36:26,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{3:25,5:33,6:35,7:37,12:43,16:57,19:68,21:43,23:68,26:68,28:43,30:87,31:68,32:95,35:87,38:87,39:68,40:68,44:66,45:87,47:104,48:106,53:102,54:98,61:96,62:100,64:132,65:134,66:68,71:87,72:87,75:187,79:68,80:201,82:140,86:95,87:112,88:87,92:64,93:94,94:70,95:90,96:92,98:87,101:120,106:239,107:138,109:110,110:108,113:46,114:72,117:136,121:68,122:87},{0:6,2:11,67:54,4:22,69:20,70:16,8:4,9:8,10:10,11:41,68:36,13:49,14:11,73:148,18:11,20:65,77:32,78:50,124:150,24:28,25:11,90:150,27:81,92:161,29:18,33:135,34:30,91:229,36:26,74:44,85:52,76:12,41:150,89:14,43:36,101:120,46:161,47:104,112:40,115:34,99:161,120:56,116:38,125:42},{19:68,23:68,24:28,25:24,29:18,30:89,31:68,35:139,36:26,37:141,39:68,43:36,44:66,45:159,47:104,48:106,53:102,54:98,61:96,62:100,64:132,65:134,66:68,68:36,69:20,70:16,71:183,76:12,77:32,79:68,82:140,87:112,88:225,89:14,92:64,93:94,94:70,95:90,96:92,98:237,101:120,107:138,109:110,110:108,113:46,114:72,115:34,116:38,117:136,121:68,122:48,123:251},{0:6,2:13,67:54,4:22,69:20,70:16,8:4,9:8,10:10,76:12,77:32,14:13,73:148,18:13,85:52,78:50,24:28,25:13,90:150,74:44,29:18,68:36,89:14,36:26,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{3:27,20:67,21:45,27:83,12:45,28:45,15:55},{64:132,65:134,67:54,94:70,117:136,72:185,120:56,111:243,78:50,82:140,85:52,22:71,87:112,26:68,92:64,93:94,86:80,95:90,32:80,33:137,100:84,101:120,38:143,40:68,107:138,44:66,109:110,110:108,47:104,48:106,96:92,114:72,108:76,53:102,54:98,55:173,56:74,57:78,58:82,59:86,60:88,61:96,62:100},{36:39,69:20,70:16,10:39,43:36,76:12,77:32,47:104,115:34,116:38,68:36,101:120,24:39,89:14,29:18},{64:132,65:134,117:136,118:144,77:197,82:140,83:146,84:215,87:112,92:64,93:94,94:231,95:90,96:92,100:84,101:120,107:138,109:110,110:108,47:104,48:106,53:102,54:98,119:142,57:175,58:82,59:86,60:88,61:96,62:100},{0:6,2:15,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{0:6,2:17,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{17:59,42:153,46:163},{32:97,75:97,52:97,86:97,80:97,106:97,43:97,68:97},{32:99,80:99,106:99,75:99,52:99,86:99},{32:118,49:114,50:116,52:118,86:118,80:118,106:118,75:118,63:177},{87:221},{32:101,80:101,106:101,75:101,52:101,86:101},{32:103,80:103,106:103,75:103,52:103,86:103},{32:105,97:105,52:105,86:105,80:105,106:105,75:105},{ 13 | 104:126,81:205,105:128,51:130,102:122,103:124},{104:126,81:207,105:128,51:130,102:122,103:124},{104:126,81:209,105:128,51:130,102:122,103:124},{104:126,81:211,105:128,51:130,102:122,103:124},{104:126,81:213,105:128,51:130,102:122,103:124},{32:107,80:107,75:107,86:107},{101:120,118:144,109:110,110:108,47:104,48:106,83:146,52:167,53:102,54:98,87:112,84:217,61:96,62:100,119:142},{67:54,85:52,120:56,41:149,90:149,124:149,78:50}],this.gotoTable={64:{52:171},29:{0:5},30:{0:7},31:{2:19},32:{2:21},33:{25:75,18:61,2:23,14:51},34:{79:199,23:73,19:63,39:145,40:147,121:247,26:79,66:179,31:93},35:{68:181,43:155},36:{3:29},37:{4:31},38:{14:53},39:{25:77},40:{12:47,21:69,28:85},41:{32:109,75:109,52:109,86:109,80:109,106:109,43:157,68:157},42:{97:233},43:{32:111,97:235,52:111,86:111,80:111,106:111,75:111},44:{124:253,41:151,90:227},45:{113:245},46:{122:249},47:{32:113},49:{75:189},50:{88:91,98:91,35:91,38:91,71:91,72:91,122:91,45:91,30:91},51:{75:191},52:{32:115,86:219},53:{32:117,86:117},54:{32:119,80:203,86:119},55:{32:121,80:121,106:241,75:193,52:169,86:121},56:{32:123,80:123,75:195,86:123},57:{32:125,80:125,106:125,75:125,52:125,86:125},58:{32:127,80:127,106:127,75:127,52:127,86:127},59:{32:129,80:129,106:129,75:129,52:129,86:129},60:{87:223},61:{51:165},62:{32:131,80:131,75:131,86:131},63:{32:133,80:133,75:133,86:133}},this.prodList=[[65,2],[29,1],[30,2],[30,0],[31,1],[31,1],[33,6],[33,6],[33,5],[33,3],[33,5],[37,0],[39,0],[38,2],[38,1],[36,3],[35,1],[35,3],[35,0],[42,1],[32,7],[32,12],[32,5],[45,0],[46,0],[40,4],[40,4],[40,3],[40,6],[48,3],[48,1],[48,0],[49,1],[34,2],[34,0],[50,3],[50,4],[47,1],[52,3],[52,1],[52,0],[53,1],[53,3],[54,1],[54,1],[51,1],[51,1],[51,1],[55,1],[55,1],[55,1],[55,1],[41,1],[58,1],[57,3],[60,1],[60,0],[59,1],[59,1],[59,0],[43,3],[61,2],[61,2],[61,2],[61,2],[61,0],[56,1],[56,1],[63,4],[62,3],[62,2],[64,3],[64,3],[64,1],[44,1],[44,0]],this.inputTable={"<$>":1,set:2,id:3,"{":4,"}":5,apply:6,"(":7,")":8,then:9,",":10,def:11,let:12,"=":13,time:14,hex:15,number:16,"%":17,"+":18,"-":19,str_start:20,str_end:21,str_esc_char:22,str_esc_unicode:23,str_esc_ascii:24,str_seg:25,"[":26,"]":27,";":28}}return e.parse=function(t){var r=new p;return r.source=t,(new e).parseLexer(r)},e.prototype.parseLexer=function(e){for(var t,r,a,n=[0],i=[];;){if(r=e.token,t=n[n.length-1],null==this.actionTable[this.inputTable[r]][t])throw new Error("Parse Error:"+e.positionInfo);if(1===(a=this.actionTable[this.inputTable[r]][t]))return i.pop();if(1==(1&a))i.push(e.yytext),n.push((a>>>1)-1),e.advance();else if(0==(1&a)){var s=a>>>1,o=this.prodList[s][1],l=null;switch(o>0&&(l=i[i.length-o]),s){case 1:l=this.ast_helper.on_Result(i[i.length-1]);break;case 2:(l=i[i.length-2]).push(i[i.length-1]);break;case 3:l=[];break;case 4:break;case 5:l={type:"SetExpr",params:i[i.length-1]};break;case 6:l=this.ast_helper.on_unit_set_expr(i[i.length-5],i[i.length-3],i[i.length-1]);break;case 7:l=this.ast_helper.on_temporary_target_set_expr(i[i.length-5],i[i.length-3],i[i.length-1]);break;case 8:l={type:"ApplyExpr",params:[i[i.length-4],i[i.length-2]]};break;case 9:l=this.ast_helper.on_then_set_expr(i[i.length-3],i[i.length-1]);break;case 10:l=this.ast_helper.on_group_set_expr(i[i.length-3]);break;case 11:this.ast_helper.on_enter_scope();break;case 12:this.ast_helper.on_leave_scope();break;case 13:(l=i[i.length-2]).push(i[i.length-1]);break;case 14:l=[i[i.length-1]];break;case 15:l=i[i.length-2];break;case 16:l=[i[i.length-1]];break;case 17:l=[i[i.length-3],i[i.length-1]];break;case 18:l=[];break;case 19:break;case 20:l=this.ast_helper.on_def_object(i[i.length-6],i[i.length-5],i[i.length-3]);break;case 21:l=this.ast_helper.on_def_template(i[i.length-11],i[i.length-10],i[i.length-8],i[i.length-4]);break;case 22:l=this.ast_helper.on_let_object_binding(i[i.length-4],i[i.length-2]);break;case 23:this.ast_helper.on_enter_tpl();break;case 24:this.ast_helper.on_leave_tpl();break;case 25:l=this.ast_helper.on_object_modification(i[i.length-4],i[i.length-2]);break;case 26:l=this.ast_helper.on_template_application(i[i.length-4],i[i.length-2]);break;case 27: 14 | l=i[i.length-2];break;case 28:l=this.ast_helper.on_tmp_object_modification(i[i.length-5],i[i.length-3]);break;case 29:(l=i[i.length-3]).push(i[i.length-1]);break;case 30:l=[i[i.length-1]];break;case 31:l=[];break;case 32:l=this.ast_helper.on_Variable_value(i[i.length-1]);break;case 33:(l=i[i.length-2]).push(i[i.length-1]);break;case 34:l=[];break;case 35:l=[i[i.length-3],i[i.length-1]];break;case 36:l=[i[i.length-4],i[i.length-2]];break;case 37:l=this.ast_helper.on_ArgList(i[i.length-1]);break;case 38:(l=i[i.length-1]).unshift(i[i.length-3]);break;case 39:l=[i[i.length-1]];break;case 40:l=[];break;case 41:l=[null,i[i.length-1]];break;case 42:l=[i[i.length-3],i[i.length-1]];break;case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:break;case 52:l=this.ast_helper.on_Time_value(i[i.length-1]);break;case 53:l=this.ast_helper.on_Hex_value(i[i.length-1]);break;case 54:l=this.ast_helper.on_Num_value(i[i.length-3],i[i.length-2],i[i.length-1]);break;case 55:case 56:case 57:case 58:break;case 59:l="+";break;case 60:l=this.ast_helper.on_String_value(i[i.length-2]);break;case 61:(l=i[i.length-2]).push({type:"char",value:i[i.length-1]});break;case 62:(l=i[i.length-2]).push({type:"unicode",value:i[i.length-1]});break;case 63:(l=i[i.length-2]).push({type:"ascii",value:i[i.length-1]});break;case 64:(l=i[i.length-2]).push({type:"seg",value:i[i.length-1]});break;case 65:l=[];break;case 66:case 67:break;case 68:l=this.ast_helper.on_Object_value(i[i.length-4],this.ast_helper.on_KeyValue_list(i[i.length-4],i[i.length-2]));break;case 69:l=this.ast_helper.on_Array_value(i[i.length-2]);break;case 70:l=this.ast_helper.on_Array_value([]);break;case 71:case 72:(l=i[i.length-3]).push(i[i.length-1]);break;case 73:l=[i[i.length-1]]}for(var u=0;u>>1)-1),i.push(l)}}},e}();var f=function(e,t){void 0===t&&(t=!0);var r={x:{numType:"number",value:0},y:{numType:"number",value:0},zIndex:{numType:"number",value:0},scale:{numType:"number",value:1},duration:void 0},a={content:"请输入内容",alpha:{numType:"number",value:1},color:16777215,anchorX:{numType:"number",value:0},anchorY:{numType:"number",value:0},fontSize:{numType:"number",value:25},fontFamily:"SimHei",bold:{numType:"number",value:1},textShadow:{numType:"number",value:1},strokeWidth:{numType:"number",value:0},strokeColor:16777215,rotateX:{numType:"number",value:0},rotateY:{numType:"number",value:0},rotateZ:{numType:"number",value:0},parent:void 0},n={text:"请输入内容",fontSize:{numType:"number",value:25},textColor:0,textAlpha:{numType:"number",value:1},fillColor:16777215,fillAlpha:{numType:"number",value:1},target:void 0},o={d:void 0,viewBox:void 0,borderColor:0,borderAlpha:{numType:"number",value:1},borderWidth:{numType:"number",value:0},fillColor:16777215,fillAlpha:{numType:"number",value:1}};function l(e){for(var t in e)if(e.hasOwnProperty(t))switch(void 0!==e[t].value&&void 0!==e[t].value.numType&&void 0===e[t].easing?e[t]=e[t].value:void 0!==e[t].value&&void 0!==e[t].type&&(e[t]=e[t].value),t){case"content":e[t]=s(e[t],!1,!0);break;case"fontFamily":e[t]=s(e[t],!0,!1);break;case"parent":e[t]=s(e[t],!1,!1);break;case"text":e[t]=s(e[t],!1,!0);break;case"d":case"viewBox":e[t]=s(e[t],!0,!1);break;default:"string"==typeof e[t]&&(e[t]=s(e[t],!1,!1))}}function u(e){l(e.attrs),e.duration=e.duration.value,e.defaultEasing=e.default_easing&&e.default_easing.value,e.targetName=e.target_name}try{var h=c.parse(e),p={};p.defs=h.defs;for(var f=0;f'),this.container&&this.container.appendChild(this.wrap),this.inited=!0,this.resolutionWidth&&this.resolutionHeight&&this.resize(),window.requestAnimationFrame((function(){e.render()}));var r=void 0,n=["webkit","moz","ms","o"];if("hidden"in document)t="hidden",r="visibilitychange";else for(var i=0;if[0]&&e.setsIntervals[d][t][0]f[0]&&e.setsIntervals[d][t][1]=f[1]&&e.setsIntervals[d][t][0]!==e.setsIntervals[d][t][1])&&f[0]!==f[1]&&(console.warn("BAS: attribute conflict, name: "+p+" attr: "+d+" time: "+f+" "+e.setsIntervals[d][t]),e.setsIntervals[d]=e.setsIntervals[d].filter((function(e){return e[2]!==a})),e.def2set[p]=e.def2set[p].filter((function(e){return e.group!==a})),t-=m-e.setsIntervals[d].length,m=e.setsIntervals[d].length,r-=c-e.def2set[p].length,c=e.def2set[p].length)}b=t};for(s=0;se.duration&&(e.duration=y)}}},e.prototype.getValueStart=function(e,t,r){return e>=1&&t>=1?r[t-1].valueEnd&&Object.keys(r[t-1].valueEnd).length?r[t-1].valueEnd:this.getValueStart(e-1,t-1,r):null},e.prototype.parse=function(e){var t=e.danmaku;if(this.workerDisabled)try{var r=f(t.text);t.defs=r.defs,t.sets=r.sets,e.success&&e.success(t)}catch(t){console.warn("Error in BAS parser: ",t),e.error&&e.error(t.message)}else{if(!this.workerIndex)for(var a=0;a1e3||isNaN(this.cTime))&&(this.cTime=t,this.pTime=t,this.time0=t,this.startTime=e,this.refresh())}},e.prototype.refreshCdmList=function(e){if(this.visibleStatus){if(e)this.refresh();else if(this.cdmList=[],Math.abs(this.cTime-this.pTime)<500)for(var t=0;t=this.pTime/1e3&&this.dmList[t].stimee&&this.drawDanmaku(this.dmList[t],e-this.dmList[t].stime);for(t=0;te&&this.drawDanmaku(this.testDanmakus[t],e-this.testDanmakus[t].stime)},e.prototype.visible=function(e){e!==this.visibleStatus&&(e?(this.visibleStatus=!0,this.refresh(),this.render()):(this.visibleStatus=!1,this.clear()))},e.prototype.clear=function(){this.inited&&(this.cdmList=[],this.wrap&&(this.wrap.innerHTML=""))},e.prototype.resize=function(e,t){if(void 0===e&&(e=this.resolutionWidth),void 0===t&&(t=this.resolutionHeight),this.resolutionWidth=e,this.resolutionHeight=t,this.inited){var r=this.container.offsetWidth,a=this.container.offsetHeight;r/e>a/t?(this.wrap.style.width=a/t*e/r*100+"%",this.wrap.style.height="100%"):(this.wrap.style.width="100%",this.wrap.style.height=r/e*t/a*100+"%")}this.refresh()},e}();t.default=m}]).default})); -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | bas
-------------------------------------------------------------------------------- /static/fonts/element-icons.6f0a763.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilibili/bas/5a770f2862482e2f4fda6e95be2a7ca1a9160ef9/static/fonts/element-icons.6f0a763.ttf -------------------------------------------------------------------------------- /static/js/app.59cdc076d0e91f934349.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([1],{"/AJs":function(t,s){},"7SGK":function(t,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={render:function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("section",[n("h2",{attrs:{id:"wen-ben-dui-xiang"}},[n("a",{staticClass:"anchor",attrs:{href:"#wen-ben-dui-xiang","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 文本对象")]),t._v(" "),n("h3",{attrs:{id:"shi-li"}},[n("a",{staticClass:"anchor",attrs:{href:"#shi-li","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 示例")]),t._v(" "),n("code-block",{attrs:{code:{code:'def text t {\n content = "bilibili"\n fontSize = 5%\n fontFamily = "黑体"\n x = 50%\n y = 50%\n alpha = 1\n color = 0x00a1d6\n textShadow = 0\n bold = 1\n rotateX = 0\n rotateY = 0\n rotateZ = 0\n strokeWidth = 1\n strokeColor = 0xffffff\n anchorX = 0.5\n anchorY = 0.5\n zIndex = 3\n duration = 5s\n}\n\ndef text y {\n content = "干杯"\n parent = "t"\n fontSize = 2%\n x = 100%\n y = 100%\n}\n'}}},[n("pre",{pre:!0},[n("code",{attrs:{class:"hljs language-js"}},[t._v("def text t {\n content = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"bilibili"')]),t._v("\n fontSize = "),n("span",{attrs:{class:"hljs-number"}},[t._v("5")]),t._v("%\n fontFamily = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"黑体"')]),t._v("\n x = "),n("span",{attrs:{class:"hljs-number"}},[t._v("50")]),t._v("%\n y = "),n("span",{attrs:{class:"hljs-number"}},[t._v("50")]),t._v("%\n alpha = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("\n color = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0x00a1d6")]),t._v("\n textShadow = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0")]),t._v("\n bold = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("\n rotateX = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0")]),t._v("\n rotateY = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0")]),t._v("\n rotateZ = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0")]),t._v("\n strokeWidth = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("\n strokeColor = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0xffffff")]),t._v("\n anchorX = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0.5")]),t._v("\n anchorY = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0.5")]),t._v("\n zIndex = "),n("span",{attrs:{class:"hljs-number"}},[t._v("3")]),t._v("\n duration = "),n("span",{attrs:{class:"hljs-number"}},[t._v("5")]),t._v("s\n}\n\ndef text y {\n content = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"干杯"')]),t._v("\n parent = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"t"')]),t._v("\n fontSize = "),n("span",{attrs:{class:"hljs-number"}},[t._v("2")]),t._v("%\n x = "),n("span",{attrs:{class:"hljs-number"}},[t._v("100")]),t._v("%\n y = "),n("span",{attrs:{class:"hljs-number"}},[t._v("100")]),t._v("%\n}\n")])])]),t._v(" "),n("h3",{attrs:{id:"shu-xing"}},[n("a",{staticClass:"anchor",attrs:{href:"#shu-xing","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 属性")]),t._v(" "),n("p",[n("prop-table",{attrs:{data:t.tableData1}})],1),t._v(" "),n("h2",{attrs:{id:"jiao-hu-an-niu"}},[n("a",{staticClass:"anchor",attrs:{href:"#jiao-hu-an-niu","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 交互按钮")]),t._v(" "),n("h3",{attrs:{id:"shi-li-2"}},[n("a",{staticClass:"anchor",attrs:{href:"#shi-li-2","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 示例")]),t._v(" "),n("code-block",{attrs:{code:{code:'def button b {\n text = "av1714157"\n x = 30%\n y = 37%\n ontSize = 5%\n textColor = 0xffffff\n fillColor = 0xFF9100\n fillAlpha = 0.8\n duration = 2s\n zIndex = 1\n scale = 0.8\n target = av {\n av = 1714157\n page = 1\n time = 20.5s500ms\n }\n}\ndef button c {\n text = "第22话 春风"\n x = 40%\n y = 40%\n fontSize = 3%\n textColor = 0xffffff\n fillColor = 0x80D8FF\n target = bangumi {\n seasonId = 1699\n episodeId = 80041\n time = 1m30s\n }\n}\n'}}},[n("pre",{pre:!0},[n("code",{attrs:{class:"hljs language-js"}},[t._v("def button b {\n text = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"av1714157"')]),t._v("\n x = "),n("span",{attrs:{class:"hljs-number"}},[t._v("30")]),t._v("%\n y = "),n("span",{attrs:{class:"hljs-number"}},[t._v("37")]),t._v("%\n ontSize = "),n("span",{attrs:{class:"hljs-number"}},[t._v("5")]),t._v("%\n textColor = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0xffffff")]),t._v("\n fillColor = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0xFF9100")]),t._v("\n fillAlpha = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0.8")]),t._v("\n duration = "),n("span",{attrs:{class:"hljs-number"}},[t._v("2")]),t._v("s\n zIndex = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("\n scale = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0.8")]),t._v("\n target = av {\n av = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1714157")]),t._v("\n page = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("\n time = "),n("span",{attrs:{class:"hljs-number"}},[t._v("20.5")]),t._v("s500ms\n }\n}\ndef button c {\n text = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"第22话 春风"')]),t._v("\n x = "),n("span",{attrs:{class:"hljs-number"}},[t._v("40")]),t._v("%\n y = "),n("span",{attrs:{class:"hljs-number"}},[t._v("40")]),t._v("%\n fontSize = "),n("span",{attrs:{class:"hljs-number"}},[t._v("3")]),t._v("%\n textColor = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0xffffff")]),t._v("\n fillColor = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0x80D8FF")]),t._v("\n target = bangumi {\n seasonId = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1699")]),t._v("\n episodeId = "),n("span",{attrs:{class:"hljs-number"}},[t._v("80041")]),t._v("\n time = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("m30s\n }\n}\n")])])]),t._v(" "),n("h3",{attrs:{id:"shu-xing-2"}},[n("a",{staticClass:"anchor",attrs:{href:"#shu-xing-2","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 属性")]),t._v(" "),n("p",[n("prop-table",{attrs:{data:t.tableData2}})],1),t._v(" "),n("h3",{attrs:{id:"av-object"}},[n("a",{staticClass:"anchor",attrs:{href:"#av-object","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" av object")]),t._v(" "),n("p",[n("prop-table",{attrs:{data:t.tableData3}})],1),t._v(" "),n("h3",{attrs:{id:"bangumi-object"}},[n("a",{staticClass:"anchor",attrs:{href:"#bangumi-object","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" bangumi object")]),t._v(" "),n("p",[n("prop-table",{attrs:{data:t.tableData4}})],1),t._v(" "),n("h3",{attrs:{id:"seek-object"}},[n("a",{staticClass:"anchor",attrs:{href:"#seek-object","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" seek object")]),t._v(" "),n("p",[n("prop-table",{attrs:{data:t.tableData5}})],1),t._v(" "),n("h2",{attrs:{id:"path-dui-xiang"}},[n("a",{staticClass:"anchor",attrs:{href:"#path-dui-xiang","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" path 对象")]),t._v(" "),n("h3",{attrs:{id:"shi-li-3"}},[n("a",{staticClass:"anchor",attrs:{href:"#shi-li-3","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 示例")]),t._v(" "),n("code-block",{attrs:{code:{code:'def path p {\n d = "M30.828,30.422 C30.564,30.423 30.297,30.446 30.036,30.418 C29.078,30.314 28.380,31.402 28.048,32.549 C27.749,33.582 26.614,34.110 25.592,34.004 C24.412,33.883 23.631,33.208 23.330,32.141 C23.149,31.496 22.602,30.996 22.000,31.000 C17.847,31.024 14.153,31.012 10.000,31.000 C9.522,30.999 9.012,31.457 8.872,32.020 C8.573,33.228 7.546,33.995 6.409,34.014 C5.232,34.034 4.209,33.287 3.866,32.033 C3.722,31.508 3.479,30.385 2.977,30.413 C2.331,30.449 1.681,30.431 1.033,30.420 C0.325,30.407 0.012,30.123 0.012,29.451 C0.017,22.618 0.027,15.786 0.045,8.953 C0.047,8.247 0.340,8.009 1.154,8.008 C4.491,8.004 7.828,8.006 11.165,8.006 C11.398,8.006 11.631,8.006 11.863,8.006 C11.884,7.949 11.906,7.891 11.927,7.833 C11.152,7.426 10.377,7.019 9.603,6.611 C8.318,5.933 7.031,5.257 5.748,4.576 C5.228,4.300 5.012,3.879 5.306,3.357 C5.603,2.829 6.094,2.797 6.607,3.067 C9.620,4.656 12.634,6.243 15.636,7.849 C16.405,8.261 17.789,8.014 18.284,7.318 C19.819,5.154 21.353,2.990 22.888,0.825 C22.942,0.749 22.994,0.670 23.050,0.595 C23.488,0.007 23.985,-0.152 24.437,0.195 C24.960,0.596 24.870,1.072 24.534,1.549 C23.911,2.432 23.288,3.314 22.666,4.197 C21.804,5.421 20.943,6.646 19.986,8.006 C20.378,8.006 20.629,8.006 20.880,8.006 C24.194,8.006 27.507,8.005 30.820,8.007 C31.832,8.008 31.988,8.161 31.989,9.145 C31.999,15.861 32.008,22.577 32.014,29.293 C32.015,30.253 31.838,30.416 30.828,30.422 ZM25.848,32.431 C26.378,32.396 26.630,30.992 26.791,30.461 C26.102,30.461 25.492,30.461 24.787,30.461 C24.984,31.045 25.257,32.471 25.848,32.431 ZM6.318,32.432 C6.905,32.468 7.182,31.049 7.357,30.466 C6.663,30.466 6.056,30.466 5.383,30.466 C5.517,31.015 5.793,32.400 6.318,32.432 ZM30.000,10.000 C20.412,10.000 11.532,10.000 2.000,10.000 C2.000,16.462 2.000,22.576 2.000,29.000 C11.579,29.000 20.420,29.000 30.000,29.000 C30.000,22.528 30.000,16.432 30.000,10.000 ZM4.000,13.882 C4.002,12.956 4.449,12.051 5.381,12.050 C12.494,12.049 19.041,11.998 26.154,12.000 C27.100,12.000 27.997,12.966 28.000,13.882 C28.012,18.300 27.993,21.700 28.000,26.118 C28.002,27.062 27.146,27.999 26.154,28.000 C22.608,28.002 19.545,28.000 16.000,28.000 C12.455,28.000 9.392,28.002 5.846,28.000 C4.814,27.999 3.999,27.135 4.000,26.118 C4.005,21.722 3.992,18.278 4.000,13.882 ZM26.297,25.981 C26.297,21.804 26.154,17.971 26.154,13.882 C19.290,13.882 12.649,13.882 5.846,13.882 C5.846,18.035 5.822,21.866 5.822,25.981 C12.673,25.981 19.463,25.981 26.297,25.981 ZM11.608,16.318 C11.666,16.292 11.738,16.297 11.980,16.262 C12.121,16.400 12.477,16.590 12.515,16.828 C12.558,17.106 12.409,17.591 12.194,17.700 C10.880,18.367 9.530,18.968 8.177,19.557 C7.765,19.736 7.312,19.601 7.207,19.161 C7.138,18.873 7.262,18.326 7.469,18.222 C8.823,17.537 10.222,16.940 11.608,16.318 ZM12.021,20.776 C12.277,20.767 12.608,21.121 12.793,21.391 C12.941,21.606 12.879,21.950 12.983,22.210 C13.180,22.705 13.551,23.176 14.099,23.060 C14.504,22.975 14.874,22.570 15.178,22.234 C15.328,22.068 15.303,21.740 15.339,21.483 C15.407,20.999 15.693,20.701 16.171,20.713 C16.608,20.724 16.892,20.988 16.948,21.461 C16.984,21.760 16.992,22.131 17.171,22.330 C17.457,22.648 17.869,23.032 18.238,23.044 C18.572,23.055 18.978,22.651 19.241,22.339 C19.416,22.132 19.406,21.766 19.461,21.467 C19.550,20.990 19.826,20.700 20.320,20.738 C20.811,20.776 21.069,21.092 21.050,21.585 C21.003,22.836 20.506,23.853 19.334,24.411 C18.242,24.932 17.222,24.708 16.328,23.907 C16.280,23.864 16.222,23.833 16.162,23.792 C15.890,23.981 15.638,24.200 15.349,24.351 C14.404,24.844 13.458,24.803 12.586,24.197 C11.624,23.527 11.195,22.551 11.281,21.416 C11.299,21.170 11.755,20.785 12.021,20.776 ZM18.997,16.260 C19.229,15.854 19.641,15.743 20.026,15.962 C21.555,16.833 23.067,17.734 24.569,18.648 C24.749,18.757 24.833,19.019 24.896,19.113 C24.913,19.856 24.298,20.260 23.732,19.941 C22.219,19.088 20.731,18.190 19.245,17.289 C18.853,17.051 18.770,16.656 18.997,16.260 Z"\n viewBox="0 0 32 34"\n x = 40%\n y = 15%\n borderWidth = 1\n borderColor = 0xffffff\n borderAlpha = 0.8\n fillColor = 0x00a1d6\n fillAlpha = 0.8\n width = 20%\n duration = 2s\n zIndex = 1\n scale = 0.8\n}\n'}}},[n("pre",{pre:!0},[n("code",{attrs:{class:"hljs language-js"}},[t._v("def path p {\n d = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"M30.828,30.422 C30.564,30.423 30.297,30.446 30.036,30.418 C29.078,30.314 28.380,31.402 28.048,32.549 C27.749,33.582 26.614,34.110 25.592,34.004 C24.412,33.883 23.631,33.208 23.330,32.141 C23.149,31.496 22.602,30.996 22.000,31.000 C17.847,31.024 14.153,31.012 10.000,31.000 C9.522,30.999 9.012,31.457 8.872,32.020 C8.573,33.228 7.546,33.995 6.409,34.014 C5.232,34.034 4.209,33.287 3.866,32.033 C3.722,31.508 3.479,30.385 2.977,30.413 C2.331,30.449 1.681,30.431 1.033,30.420 C0.325,30.407 0.012,30.123 0.012,29.451 C0.017,22.618 0.027,15.786 0.045,8.953 C0.047,8.247 0.340,8.009 1.154,8.008 C4.491,8.004 7.828,8.006 11.165,8.006 C11.398,8.006 11.631,8.006 11.863,8.006 C11.884,7.949 11.906,7.891 11.927,7.833 C11.152,7.426 10.377,7.019 9.603,6.611 C8.318,5.933 7.031,5.257 5.748,4.576 C5.228,4.300 5.012,3.879 5.306,3.357 C5.603,2.829 6.094,2.797 6.607,3.067 C9.620,4.656 12.634,6.243 15.636,7.849 C16.405,8.261 17.789,8.014 18.284,7.318 C19.819,5.154 21.353,2.990 22.888,0.825 C22.942,0.749 22.994,0.670 23.050,0.595 C23.488,0.007 23.985,-0.152 24.437,0.195 C24.960,0.596 24.870,1.072 24.534,1.549 C23.911,2.432 23.288,3.314 22.666,4.197 C21.804,5.421 20.943,6.646 19.986,8.006 C20.378,8.006 20.629,8.006 20.880,8.006 C24.194,8.006 27.507,8.005 30.820,8.007 C31.832,8.008 31.988,8.161 31.989,9.145 C31.999,15.861 32.008,22.577 32.014,29.293 C32.015,30.253 31.838,30.416 30.828,30.422 ZM25.848,32.431 C26.378,32.396 26.630,30.992 26.791,30.461 C26.102,30.461 25.492,30.461 24.787,30.461 C24.984,31.045 25.257,32.471 25.848,32.431 ZM6.318,32.432 C6.905,32.468 7.182,31.049 7.357,30.466 C6.663,30.466 6.056,30.466 5.383,30.466 C5.517,31.015 5.793,32.400 6.318,32.432 ZM30.000,10.000 C20.412,10.000 11.532,10.000 2.000,10.000 C2.000,16.462 2.000,22.576 2.000,29.000 C11.579,29.000 20.420,29.000 30.000,29.000 C30.000,22.528 30.000,16.432 30.000,10.000 ZM4.000,13.882 C4.002,12.956 4.449,12.051 5.381,12.050 C12.494,12.049 19.041,11.998 26.154,12.000 C27.100,12.000 27.997,12.966 28.000,13.882 C28.012,18.300 27.993,21.700 28.000,26.118 C28.002,27.062 27.146,27.999 26.154,28.000 C22.608,28.002 19.545,28.000 16.000,28.000 C12.455,28.000 9.392,28.002 5.846,28.000 C4.814,27.999 3.999,27.135 4.000,26.118 C4.005,21.722 3.992,18.278 4.000,13.882 ZM26.297,25.981 C26.297,21.804 26.154,17.971 26.154,13.882 C19.290,13.882 12.649,13.882 5.846,13.882 C5.846,18.035 5.822,21.866 5.822,25.981 C12.673,25.981 19.463,25.981 26.297,25.981 ZM11.608,16.318 C11.666,16.292 11.738,16.297 11.980,16.262 C12.121,16.400 12.477,16.590 12.515,16.828 C12.558,17.106 12.409,17.591 12.194,17.700 C10.880,18.367 9.530,18.968 8.177,19.557 C7.765,19.736 7.312,19.601 7.207,19.161 C7.138,18.873 7.262,18.326 7.469,18.222 C8.823,17.537 10.222,16.940 11.608,16.318 ZM12.021,20.776 C12.277,20.767 12.608,21.121 12.793,21.391 C12.941,21.606 12.879,21.950 12.983,22.210 C13.180,22.705 13.551,23.176 14.099,23.060 C14.504,22.975 14.874,22.570 15.178,22.234 C15.328,22.068 15.303,21.740 15.339,21.483 C15.407,20.999 15.693,20.701 16.171,20.713 C16.608,20.724 16.892,20.988 16.948,21.461 C16.984,21.760 16.992,22.131 17.171,22.330 C17.457,22.648 17.869,23.032 18.238,23.044 C18.572,23.055 18.978,22.651 19.241,22.339 C19.416,22.132 19.406,21.766 19.461,21.467 C19.550,20.990 19.826,20.700 20.320,20.738 C20.811,20.776 21.069,21.092 21.050,21.585 C21.003,22.836 20.506,23.853 19.334,24.411 C18.242,24.932 17.222,24.708 16.328,23.907 C16.280,23.864 16.222,23.833 16.162,23.792 C15.890,23.981 15.638,24.200 15.349,24.351 C14.404,24.844 13.458,24.803 12.586,24.197 C11.624,23.527 11.195,22.551 11.281,21.416 C11.299,21.170 11.755,20.785 12.021,20.776 ZM18.997,16.260 C19.229,15.854 19.641,15.743 20.026,15.962 C21.555,16.833 23.067,17.734 24.569,18.648 C24.749,18.757 24.833,19.019 24.896,19.113 C24.913,19.856 24.298,20.260 23.732,19.941 C22.219,19.088 20.731,18.190 19.245,17.289 C18.853,17.051 18.770,16.656 18.997,16.260 Z"')]),t._v("\n viewBox="),n("span",{attrs:{class:"hljs-string"}},[t._v('"0 0 32 34"')]),t._v("\n x = "),n("span",{attrs:{class:"hljs-number"}},[t._v("40")]),t._v("%\n y = "),n("span",{attrs:{class:"hljs-number"}},[t._v("15")]),t._v("%\n borderWidth = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("\n borderColor = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0xffffff")]),t._v("\n borderAlpha = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0.8")]),t._v("\n fillColor = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0x00a1d6")]),t._v("\n fillAlpha = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0.8")]),t._v("\n width = "),n("span",{attrs:{class:"hljs-number"}},[t._v("20")]),t._v("%\n duration = "),n("span",{attrs:{class:"hljs-number"}},[t._v("2")]),t._v("s\n zIndex = "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("\n scale = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0.8")]),t._v("\n}\n")])])]),t._v(" "),n("h3",{attrs:{id:"shu-xing-3"}},[n("a",{staticClass:"anchor",attrs:{href:"#shu-xing-3","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 属性")]),t._v(" "),n("p",[n("prop-table",{attrs:{data:t.tableData6}})],1),t._v(" "),n("h2",{attrs:{id:"dong-hua"}},[n("a",{staticClass:"anchor",attrs:{href:"#dong-hua","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 动画")]),t._v(" "),n("h3",{attrs:{id:"jian-dan-dong-hua"}},[n("a",{staticClass:"anchor",attrs:{href:"#jian-dan-dong-hua","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 简单动画")]),t._v(" "),n("h4",{attrs:{id:"set-yu-fa"}},[n("a",{staticClass:"anchor",attrs:{href:"#set-yu-fa","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" SET语法")]),t._v(" "),t._m(0,!1,!1),t._v(" "),n("h4",{attrs:{id:"shi-li-4"}},[n("a",{staticClass:"anchor",attrs:{href:"#shi-li-4","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 示例")]),t._v(" "),n("code-block",{attrs:{code:{code:'def text t {\n content = "bilibili"\n}\nset t {\n x = 50%\n y = 50%\n} 1s, "linear"\n'}}},[n("pre",{pre:!0},[n("code",{attrs:{class:"hljs language-js"}},[t._v("def text t {\n content = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"bilibili"')]),t._v("\n}\nset t {\n x = "),n("span",{attrs:{class:"hljs-number"}},[t._v("50")]),t._v("%\n y = "),n("span",{attrs:{class:"hljs-number"}},[t._v("50")]),t._v("%\n} "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("s, "),n("span",{attrs:{class:"hljs-string"}},[t._v('"linear"')]),t._v("\n")])])]),t._v(" "),n("h4",{attrs:{id:"shuo-ming"}},[n("a",{staticClass:"anchor",attrs:{href:"#shuo-ming","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 说明")]),t._v(" "),t._m(1,!1,!1),t._v(" "),n("p",[t._v("set 语句块定义了一个对象的一组属性在相同时间内的动画。")]),t._v(" "),n("h5",{attrs:{id:"shu-xing-4"}},[n("a",{staticClass:"anchor",attrs:{href:"#shu-xing-4","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 属性")]),t._v(" "),n("p",[t._v("只有目标对象的可渐变属性才有正常的动画效果。对可变属性但是非渐变属性设置新值会立即生效。对其他属性设值或者不存在的属性设值将被忽略。")]),t._v(" "),n("p",[t._v("原则上某一属性在一个 set 语句中最多只能出现一次。在实现上,如果多次出现,以最后一次为准。")]),t._v(" "),n("h5",{attrs:{id:"mu-biao-zhi"}},[n("a",{staticClass:"anchor",attrs:{href:"#mu-biao-zhi","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 目标值")]),t._v(" "),n("p",[t._v("目标值应该与属性所需的值为同一类型。可渐变属性的可以用一个数组的形式,特别指定该属性的插件类型。")]),t._v(" "),n("h5",{attrs:{id:"cha-zhi-lei-xing"}},[n("a",{staticClass:"anchor",attrs:{href:"#cha-zhi-lei-xing","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 插值类型")]),t._v(" "),n("p",[t._v('区块默认的插值类型写在区块动画时间之后,与区块动画时间用逗号隔开。区块默认的插值类型可以省略。在省略时,默认的插值类型为 "linear"。可渐变属性的可以用一个数组的形式,特别指定该属性的插件类型。')]),t._v(" "),n("h3",{attrs:{id:"chuan-lian-dong-hua"}},[n("a",{staticClass:"anchor",attrs:{href:"#chuan-lian-dong-hua","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 串联动画")]),t._v(" "),n("h4",{attrs:{id:"shi-li-5"}},[n("a",{staticClass:"anchor",attrs:{href:"#shi-li-5","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 示例")]),t._v(" "),n("code-block",{attrs:{code:{code:'def text a {\n content = "bilibili"\n}\nset a {\n x = 50%\n y = 50%\n} 1s\nthen set a {\n alpha = 0\n} 1s\n'}}},[n("pre",{pre:!0},[n("code",{attrs:{class:"hljs language-js"}},[t._v("def text a {\n content = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"bilibili"')]),t._v("\n}\nset a {\n x = "),n("span",{attrs:{class:"hljs-number"}},[t._v("50")]),t._v("%\n y = "),n("span",{attrs:{class:"hljs-number"}},[t._v("50")]),t._v("%\n} "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("s\nthen set a {\n alpha = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0")]),t._v("\n} "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("s\n")])])]),t._v(" "),n("h4",{attrs:{id:"shuo-ming-2"}},[n("a",{staticClass:"anchor",attrs:{href:"#shuo-ming-2","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 说明")]),t._v(" "),t._m(2,!1,!1),t._v(" "),n("p",[t._v("后一语句动画在前语句动画完毕后开始。")]),t._v(" "),n("h3",{attrs:{id:"bing-lian-dong-hua"}},[n("a",{staticClass:"anchor",attrs:{href:"#bing-lian-dong-hua","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 并联动画")]),t._v(" "),n("code-block",{attrs:{code:{code:'def text a {\n content = "bilibili"\n}\nset a {\n x = 50%\n y = 50%\n} 1s\nset a {\n alpha = 0\n} 1s\n'}}},[n("pre",{pre:!0},[n("code",{attrs:{class:"hljs language-js"}},[t._v("def text a {\n content = "),n("span",{attrs:{class:"hljs-string"}},[t._v('"bilibili"')]),t._v("\n}\nset a {\n x = "),n("span",{attrs:{class:"hljs-number"}},[t._v("50")]),t._v("%\n y = "),n("span",{attrs:{class:"hljs-number"}},[t._v("50")]),t._v("%\n} "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("s\nset a {\n alpha = "),n("span",{attrs:{class:"hljs-number"}},[t._v("0")]),t._v("\n} "),n("span",{attrs:{class:"hljs-number"}},[t._v("1")]),t._v("s\n")])])]),t._v(" "),n("h4",{attrs:{id:"shuo-ming-3"}},[n("a",{staticClass:"anchor",attrs:{href:"#shuo-ming-3","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 说明")]),t._v(" "),t._m(3,!1,!1),t._v(" "),n("p",[t._v("没有then连接的连续出现的set语句定义的动画并行执行。")]),t._v(" "),n("h5",{attrs:{id:"zong-shi-jian"}},[n("a",{staticClass:"anchor",attrs:{href:"#zong-shi-jian","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 总时间")]),t._v(" "),n("p",[t._v("并行语句的总时间是子语句的最长时间。一般情况下子语句的动画时间是相同的。如果子语句动画提前执行完,则等待总其他并行动画。")]),t._v(" "),n("h5",{attrs:{id:"tong-yi-mu-biao-shu-xing-tong-shi-geng-gai"}},[n("a",{staticClass:"anchor",attrs:{href:"#tong-yi-mu-biao-shu-xing-tong-shi-geng-gai","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 同一目标属性同时更改")]),t._v(" "),n("p",[t._v("在并行语句中出现同一目标属性在多个子语句中有更改,最后更改为准。之前的属性动画忽略。")]),t._v(" "),n("p",[t._v("由于技术限制,x y rotateX rotateY rotateZ scale 视为相同属性。")]),t._v(" "),n("h5",{attrs:{id:"yu-ju-zu"}},[n("a",{staticClass:"anchor",attrs:{href:"#yu-ju-zu","aria-hidden":"true"}},[n("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),t._v(" 语句组")]),t._v(" "),t._m(4,!1,!1),t._v(" "),n("p",[t._v("并行语句用大括号包围后,成为一个set语句单位。")])],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("pre",{pre:!0},[s("code",{attrs:{"v-pre":""}},[this._v("SetExpr\n : SetExpr then SetExpr\n | { SetExpr+ }\n | set id {\n (id = value_expr)*\n } time_expr (, string)?\n")])])},function(){var t=this.$createElement,s=this._self._c||t;return s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-javascript"}},[this._v("set 目标对象 {\n 可渐变属性 = 目标值\n} 动画持续, "),s("span",{attrs:{class:"hljs-string"}},[this._v('"区块默认的插值类型"')]),this._v("\n")])])},function(){var t=this.$createElement,s=this._self._c||t;return s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-javascript"}},[this._v("set语句(组) then set语句(组) then set语句(组) ...\n")])])},function(){var t=this.$createElement,s=this._self._c||t;return s("pre",{pre:!0},[s("code",{attrs:{"v-pre":""}},[this._v("set语句\nset语句\n...\n")])])},function(){var t=this.$createElement,s=this._self._c||t;return s("pre",{pre:!0},[s("code",{attrs:{"v-pre":""}},[this._v("{\n set语句\n set语句\n ...\n}\n")])])}]},h=n("VU/8")({data:function(){return{tableData1:["x | number | 否 | 0 | 是 | 是 | x 坐标,可以为百分比值","y | number | 否 | 0 | 是 | 是 | y 坐标,可以为百分比值","zIndex | number | 否 | 0 | 否 | 否 | 层次权重,值高的对象在上层","scale | number | 否 | 1 | 是 | 是 | 缩放","duration | time | 否 | - | 否 | 否 | 元素生命周期,有动画时默认为动画总时间,无动画时默认4s","content | string | 是 | '请输入内容' | 是 | 否 | 文本内容","alpha | number | 否 | 1 | 是 | 是 | 透明度,取值范围 [0, 1],0 完全透明, 1 完全不透明","color | number | 否 | 0xffffff | 是 | 是 | 文本颜色","anchorX | number | 否 | 0 | 否 | 否 | 锚点,位置为长度的百分比","anchorY | number | 否 | 0 | 否 | 否 | 锚点,位置为宽度的百分比","fontSize | number | 否 | 25 | 是 | 否 | 文本字体大小,可以为百分比(百分比字体大小为当前屏幕宽度*字体百分比px)","fontFamily | string | 否 | - | 否 | 否 | 文本字体,默认值为平台默认字体。如果字体不存在时,使用平台默认字体","bold | number | 否 | 1 | 否 | 否 | 是否加粗","textShadow | number | 否 | 1 | 否 | 否 | 是否字体阴影","strokeWidth | number | 否 | 0 | 否 | 否 | 描边宽度","strokeColor | number | 否 | 0xffffff | 否 | 否 | 描边颜色","rotateX | number | 否 | 0 | 是 | 是 | X轴旋转","rotateY | number | 否 | 0 | 是 | 是 | Y轴旋转","rotateZ | number | 否 | 0 | 是 | 是 | Z轴旋转","parent | text | 否 | - | 否 | 否 | 所属层"],tableData2:["x | number | 否 | 0 | 是 | 是 | x 坐标,可以为百分比值","y | number | 否 | 0 | 是 | 是 | y 坐标,可以为百分比值","zIndex | number | 否 | 0 | 否 | 否 | 层次权重,值高的对象在上层","scale | number | 否 | 1 | 否 | 否 | 缩放","duration | time | 否 | - | 否 | 否 | 元素生命周期,有动画时默认为动画总时间,无动画时默认4s","text | string | 是 | '请输入内容' | 是 | 否 | 按钮标签","fontSize | number | 否 | 25 | 是 | 否 | 按钮字体大小,可以为百分比(百分比字体大小为当前屏幕宽度*字体百分比px)","textColor | number | 否 | 0x000000 | 否 | 否 | 按钮文字颜色","textAlpha | number | 否 | 1 | 否 | 否 | 按钮字体透明度","fillColor | number | 否 | 0xffffff | 否 | 否 | 按钮填充颜色","fillAlpha | number | 否 | 1 | 否 | 否 | 按钮填充透明度","target | av object or seek object | 是 | - | 否 | 否 | 按钮功能"],tableData3:["av | number | 是 | - | 否 | 否 | 视频av号","page | number | 否 | 1 | 否 | 否 | 视频分P号","time | time | 否 | 0s | 否 | 否 | 视频开始播放点"],tableData4:["seasonId | number | 是 | 否 | 否 | 否 | 番剧id","episodeId | number | 是 | 否 | 否 | 否 | 番剧分集id","time | time | 否 | 0s | 否 | 否 | 视频开始播放点"],tableData5:["time | time | 是 | - | 否 | 否 | seek目标时间"],tableData6:["x | number | 否 | 0 | 是 | 是 | x 坐标,可以为百分比值","y | number | 否 | 0 | 是 | 是 | y 坐标,可以为百分比值","zIndex | number | 否 | 0 | 否 | 否 | 层次权重,值高的对象在上层","scale | number | 否 | 1 | 否 | 否 | 缩放","duration | time | 否 | - | 否 | 否 | 元素生命周期,有动画时默认为动画总时间,无动画时默认4s",'d | string | 是 | "" | 否 | 否 | svg 路径',"borderWidth | number | 否 | 0 | 否 | 否 | 描边宽度","borderColor | number | 否 | 0 | 否 | 否 | 描边颜色","borderAlpha | number | 否 | 1 | 否 | 否 | 描边透明度","fillColor | number | 否 | 0xffffff | 否 | 否 | 填充颜色","fillAlpha | number | 否 | 1 | 否 | 否 | 填充透明度","viewBox | string | 否 | - | 否 | 否 | svg 画布大小,默认完整显示","width | number | 否 | - | 否 | 否 | 宽度,可以为百分比值,需要设置 viewBox 才可以生效","height | number | 否 | - | 否 | 否 | 宽度,可以为百分比值,需要设置 viewBox 才可以生效"]}}},a,!1,null,null,null);s.default=h.exports},JewY:function(t,s){},LI5P:function(t,s){},NHnr:function(t,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=n("7+uW"),h=n("zL8q"),i=n.n(h),e=n("bm7V"),r=n.n(e),c=n("Yk46"),l=n.n(c),o=(n("tvR6"),{render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{attrs:{id:"app"}},[s("el-header",[s("main-header")],1),this._v(" "),s("router-view")],1)},staticRenderFns:[]}),v=n("VU/8")({name:"app",data:function(){return{}}},o,!1,function(t){n("vBWE"),n("kgSg")},"data-v-bd3e793c",null).exports,A=n("/ocq"),_=n("Gu7T"),d=n.n(_),u=n("ML3S"),p=n.n(u),b={props:{type:String},data:function(){return{activeId:"0-0",openeds:[],sidebar:[]}},mounted:function(){this.scrollSpy(),this.getMenuList()},watch:{type:function(t,s){this.$nextTick(function(){this.getMenuList()})}},methods:{getMenuList:function(){var t=this;this.sidebar=[];var s={};document.querySelectorAll("h2, h3").forEach(function(n){"H2"===n.tagName.toUpperCase()?(s.name&&(t.sidebar.push(s),s={}),s.name=n.innerText):"H3"===n.tagName.toUpperCase()&&(s.children||(s.children=[]),s.children.push({name:n.innerText,hash:n.id}))}),this.sidebar.push(s),s={}},scrollSpy:function(){var t=this;this.$el.getElementsByClassName("el-scrollbar__wrap")[0].addEventListener("scroll",p()(function(){var s=document.getElementsByTagName("h3"),n=[].concat(d()(s)).map(function(t){return{top:t.getBoundingClientRect().top-200,id:t.id}}),a=Math.max(n.filter(function(t){return t.top<0}).length-1,0),h=0,i=void 0;for(i=0;ia);i++);t.openeds=[i+""],t.activeId=i+"-"+(a-h+t.sidebar[i].children.length)},300))}}},m={render:function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("el-scrollbar",{staticClass:"container-scroll"},[n("el-container",{staticClass:"container"},[n("el-scrollbar",{staticClass:"aside-scroll"},[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"default-openeds":t.openeds,"unique-opened":!0,"default-active":t.activeId}},t._l(t.sidebar,function(s,a){return n("el-submenu",{key:a,attrs:{index:a+""}},[n("template",{slot:"title"},[t._v(t._s(s.name))]),t._v(" "),t._l(s.children,function(s,h){return n("el-menu-item",{key:h,attrs:{index:a+"-"+h}},[n("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:"#"+s.hash,expression:"'#' + child.hash"}],attrs:{href:"javascript:;"}},[t._v(t._s(s.name))])])})],2)}))],1)],1),t._v(" "),n("el-main",{ref:"content",staticClass:"content markdown-body"},["guide"===t.type?n("guide"):t._e(),t._v(" "),"docs"===t.type?n("docs"):t._e()],1)],1),t._v(" "),n("el-footer",[t._v("@bilibili")])],1)},staticRenderFns:[]},f=n("VU/8")(b,m,!1,function(t){n("cN8C")},"data-v-25a4b6f8",null).exports,C={data:function(){return{buttonText:"运行"}},mounted:function(){var t=+new Date;this.bas=new window.BasDanmaku({container:this.$refs.basContainer,timeSyncFunc:function(){return+new Date-t}}),this.bas.play(),this.code&&this.run()},props:{default:function(){return{}}},methods:{run:function(){var t=this.$refs.editor.value();if(t)try{this.bas.add({dm:{stime:-1,text:t}},!1,!0),this.$message.success("运行成功")}catch(t){this.$message.error("运行出错 "+t.message)}else this.$message.warning("请输入脚本内容")}},computed:{code:function(){return this.$route.query.code}}},j={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"playground"},[s("div",{staticClass:"editor-wrap"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:this.run}},[this._v(this._s(this.buttonText))]),this._v(" "),s("editor",{ref:"editor",attrs:{code:this.code}})],1),this._v(" "),s("div",{ref:"basContainer",staticClass:"basContainer"})])},staticRenderFns:[]},x=n("VU/8")(C,j,!1,function(t){n("LI5P")},"data-v-066d0b51",null).exports;a.default.use(A.a);var g=new A.a({routes:[{path:"/",redirect:"/guide"},{path:"/guide",component:f,props:{type:"guide"},meta:{name:"指南"}},{path:"/docs",component:f,props:{type:"docs"},meta:{name:"文档"}},{path:"/playground",component:x,meta:{name:"试验室"}}]});g.afterEach(function(t){t.meta&&(document.title=t.meta.name+" | bas")});var D=g,E={render:function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("div",{staticClass:"header"},[t._m(0,!1,!1),t._v(" "),n("el-menu",{attrs:{"default-active":t.activeIndex,mode:"horizontal"}},t._l(t.navs,function(s,a){return n("el-menu-item",{key:a,attrs:{index:a+""}},[s.path?n("router-link",{attrs:{target:s.newWindow?"_blank":"_self",to:s.path}},[t._v(t._s(s.name)+"\n ")]):t._e(),t._v(" "),s.href?n("a",{attrs:{target:"_blank",href:s.href}},[t._v(t._s(s.name)+"\n ")]):t._e()],1)}))],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"nav-logo"},[s("img",{attrs:{src:n("ZURh")}}),s("span",[this._v("bas")])])}]},S=n("VU/8")({data:function(){return{navs:[{name:"指南",path:"/guide"},{name:"文档",path:"/docs"},{name:"试验室",path:"/playground"},{name:"GitHub",href:"https://github.com/Bilibili/bas"}]}},computed:{activeIndex:function(){var t=this;return""+this.navs.findIndex(function(s){return s.path===t.$route.path})}}},E,!1,function(t){n("JewY")},"data-v-65118a46",null).exports,W={data:function(){return{hovering:!1,isExpanded:!1,fixedControl:!1,scrollParent:null}},mounted:function(){},props:{code:Object,default:function(){return{}}},methods:{run:function(){this.$message("在新窗口运行"),window.open(window.location.pathname+"#/playground?code="+encodeURIComponent(this.code.code))},copySuccess:function(){this.$message.success("复制成功")},copyError:function(){this.$message.error("复制失败")}}},q={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"code-block"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:this.run}},[this._v("运行")]),this._v(" "),s("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard",value:this.code.code,expression:"code.code"}],attrs:{type:"primary",plain:""},on:{success:this.copySuccess,error:this.copyError}},[this._v("复制")]),this._v(" "),s("div",{staticClass:"editor-wrap"},[s("editor",{attrs:{code:this.code.code,readOnly:!0,showGutter:!1,autoHeight:!0}})],1)],1)},staticRenderFns:[]},Q=n("VU/8")(W,q,!1,function(t){n("n4oq"),n("vZZd")},"data-v-fdb3e69e",null).exports,z=n("wRyH"),w=n.n(z),y=n("QkVg"),H=n.n(y),P={props:{data:Array},computed:{tableData:function(){for(var t=[],s=0;s",components:{App:v}})},QkVg:function(t,s,n){t.exports=n("7SGK")},ZURh:function(t,s){t.exports="data:image/png;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAABMLAAATCwAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A1qEAANahAADWoQAG1qEAb9ahAMvWoQD01qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD01qEAy9ahAG/WoQAG1qEAANahAADWoQAA1qEAG9ahAM/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahANDWoQAb1qEAANahAAfWoQDQ1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahANHWoQAH1qEAbtahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAG7WoQDH1qEA/9ahAP/WoQD/1qEAtdahABjWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahABvWoQC11qEA/9ahAP/WoQD/1qEAx9ahAPnWoQD/1qEA/9ahAP/WoQAZ1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahABjWoQD/1qEA/9ahAP/WoQDz1qEA/9ahAP/WoQD/1qEA/9ahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAErWoQDn1qEA5NahAErWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAErWoQDn1qEA5NahAErWoQAA1qEAANahAADWoQAA1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEA5tahAP/WoQD/1qEA59ahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEA5tahAP/WoQD/1qEA59ahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEA5tahAP/WoQD/1qEA5tahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEA5tahAP/WoQD/1qEA5tahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAADWoQAA1qEAANahAADWoQBJ1qEA5tahAObWoQBJ1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQBJ1qEA5tahAObWoQBJ1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEA+dahAP/WoQD/1qEA/9ahABnWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAGdahAP/WoQD/1qEA/9ahAPjWoQDH1qEA/9ahAP/WoQD/1qEAttahABnWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahABnWoQC21qEA/9ahAP/WoQD/1qEAx9ahAG3WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQBt1qEABtahAM/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA0NahAAfWoQAA1qEAG9ahAM/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAM/WoQAb1qEAANahAADWoQAA1qEABtahAG7WoQDH1qEA89ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA89ahAMfWoQBu1qEABtahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEADtahAMXWoQD/1qEA/9ahAP/WoQD/1qEAxdahAA/WoQAA1qEAANahAADWoQAA1qEADtahAMXWoQD/1qEA/9ahAP/WoQD/1qEAxdahAA/WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAAbWoQDF1qEA/9ahAP/WoQD/1qEA/9ahAMXWoQAP1qEAANahAADWoQAA1qEAANahAADWoQAA1qEADtahAMXWoQD/1qEA/9ahAP/WoQD/1qEAxdahAAbWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAYtahAP/WoQD/1qEA/9ahAP/WoQDF1qEADtahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEADtahAMXWoQD/1qEA/9ahAP/WoQD/1qEAY9ahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQBf1qEA/9ahAP/WoQD/1qEAxdahAA7WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEADtahAMXWoQD/1qEA/9ahAP/WoQBf1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAATWoQCg1qEA6tahAKjWoQAO1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEADtahAKjWoQDr1qEAoNahAATWoQAA1qEAANahAADWoQAA1qEAAP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A///////////AAAADgAAAAQAAAAAAAAAAA///wAf//+AP///wD///8A////AP///wDw/w8A8P8PAPD/DwDw/w8A8P8PAPD/DwD///8A////AH///gA///wAAAAAAAAAAAgAAAAcAAAAP8A8A/+AfgH/gP8B/4H/gf+D/8H/////8="},cN8C:function(t,s){},kgSg:function(t,s){},klpm:function(t,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={render:function(){var t=this.$createElement,s=this._self._c||t;return s("section",[s("h1",[this._v("bas 指南")]),this._v(" "),this._m(0,!1,!1),this._v(" "),s("p",[this._v("元素:文本对象、交换按钮、path 对象")]),this._v(" "),s("p",[this._v("动画:简单动画、串联动画、并联动画")]),this._v(" "),s("h2",{attrs:{id:"wen-ben-dui-xiang"}},[s("a",{staticClass:"anchor",attrs:{href:"#wen-ben-dui-xiang","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 文本对象")]),this._v(" "),s("p",[this._v("普通文本元素")]),this._v(" "),s("h3",{attrs:{id:"wen-ben"}},[s("a",{staticClass:"anchor",attrs:{href:"#wen-ben","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 文本")]),this._v(" "),s("p",[this._v("关键词:content")]),this._v(" "),s("p",[this._v("不可渐变")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n}\nset c {} 2s\nthen set c {\n content = "干杯"\n} 3s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n}\nset c {} "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("s\nthen set c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"干杯"')]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("3")]),this._v("s\n")])])]),this._v(" "),s("h3",{attrs:{id:"ding-wei"}},[s("a",{staticClass:"anchor",attrs:{href:"#ding-wei","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 定位")]),this._v(" "),s("p",[this._v("关键词:x y")]),this._v(" "),s("p",[this._v("以锚点(anchorX anchorY)为参考点进行定位")]),this._v(" "),s("p",[this._v("可以为百分比值,大小为当前宽高 * 百分比值 px")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text tl {\n content = "左上"\n fontSize = 5%\n x = 0\n y = 0\n anchorX = 0\n anchorY = 0\n}\ndef text tr {\n content = "右上"\n fontSize = 5%\n x = 100%\n y = 0\n anchorX = 1\n anchorY = 0\n}\ndef text bl {\n content = "左下"\n fontSize = 5%\n x = 0\n y = 100%\n anchorX = 0\n anchorY = 1\n}\ndef text br {\n content = "右下"\n fontSize = 5%\n x = 100%\n y = 100%\n anchorX = 1\n anchorY = 1\n}\ndef text c {\n content = "BAS弹幕"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n}\nset c {\n y = 20%\n} 5s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text tl {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"左上"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n}\ndef text tr {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"右上"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n}\ndef text bl {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"左下"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n}\ndef text br {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"右下"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n}\ndef text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"BAS弹幕"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n}\nset c {\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("20")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\n")])])]),this._v(" "),s("h3",{attrs:{id:"xuan-zhuan"}},[s("a",{staticClass:"anchor",attrs:{href:"#xuan-zhuan","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 旋转")]),this._v(" "),s("p",[this._v("关键词:rotateX rotateY rotateZ")]),this._v(" "),s("p",[this._v("以锚点为中心点进行旋转")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n rotateX = 0\n rotateY = 0\n rotateZ = 0\n}\nset c {\n rotateX = 180\n rotateY = 180\n rotateZ = 180\n} 5s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n rotateX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n rotateY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n rotateZ = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n}\nset c {\n rotateX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n rotateY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n rotateZ = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\n")])])]),this._v(" "),s("h3",{attrs:{id:"suo-fang"}},[s("a",{staticClass:"anchor",attrs:{href:"#suo-fang","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 缩放")]),this._v(" "),s("p",[this._v("关键词:scale")]),this._v(" "),s("p",[this._v("以锚点为中心点进行缩放")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 5%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n scale = 2\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n scale = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"mao-dian"}},[s("a",{staticClass:"anchor",attrs:{href:"#mao-dian","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 锚点")]),this._v(" "),s("p",[this._v("关键词:anchorX anchorY")]),this._v(" "),s("p",[this._v("定位、缩放、旋转的参考点或中心点")]),this._v(" "),s("p",[this._v("取值为元素长宽的百分比")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text tl {\n content = "左上"\n fontSize = 2.5%\n x = 0\n y = 0\n anchorX = 0\n anchorY = 0\n scale = 2\n}\ndef text tr {\n content = "右上"\n fontSize = 2.5%\n x = 100%\n y = 0\n anchorX = 1\n anchorY = 0\n scale = 2\n}\ndef text bl {\n content = "左下"\n fontSize = 2.5%\n x = 0\n y = 100%\n anchorX = 0\n anchorY = 1\n scale = 2\n}\ndef text br {\n content = "右下"\n fontSize = 2.5%\n x = 100%\n y = 100%\n anchorX = 1\n anchorY = 1\n scale = 2\n}\ndef text c {\n content = "BAS弹幕"\n x = 50%\n y = 50%\n fontSize = 5%\n anchorX = 0.5\n anchorY = 0.5\n scale = 2\n}\nset tl {\n rotateX = -180\n rotateY = 180\n rotateZ = 180\n} 5s\nset tr {\n rotateX = -180\n rotateY = -180\n rotateZ = -180\n} 5s\nset bl {\n rotateX = 180\n rotateY = 180\n rotateZ = -180\n} 5s\nset br {\n rotateX = -180\n rotateY = -180\n rotateZ = -180\n} 5s\nset c {\n rotateX = 180\n rotateY = 180\n rotateZ = 180\n} 5s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text tl {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"左上"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2.5")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n scale = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n}\ndef text tr {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"右上"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2.5")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n scale = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n}\ndef text bl {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"左下"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2.5")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n scale = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n}\ndef text br {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"右下"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2.5")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n scale = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n}\ndef text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"BAS弹幕"')]),this._v("\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n scale = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n}\nset tl {\n rotateX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("-180")]),this._v("\n rotateY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n rotateZ = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\nset tr {\n rotateX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("-180")]),this._v("\n rotateY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("-180")]),this._v("\n rotateZ = "),s("span",{attrs:{class:"hljs-number"}},[this._v("-180")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\nset bl {\n rotateX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n rotateY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n rotateZ = "),s("span",{attrs:{class:"hljs-number"}},[this._v("-180")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\nset br {\n rotateX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("-180")]),this._v("\n rotateY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("-180")]),this._v("\n rotateZ = "),s("span",{attrs:{class:"hljs-number"}},[this._v("-180")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\nset c {\n rotateX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n rotateY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n rotateZ = "),s("span",{attrs:{class:"hljs-number"}},[this._v("180")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\n")])]),this._v(" "),s("h3",{attrs:{id:"tou-ming-du"}},[s("a",{staticClass:"anchor",attrs:{href:"#tou-ming-du","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 透明度")]),this._v(" "),s("p",[this._v("关键词:alpha")]),this._v(" "),s("p",[this._v("取值范围 [0, 1],0 完全透明, 1 完全不透明")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n alpha = 0\n}\nset c {\n alpha = 1\n} 5s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n alpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n}\nset c {\n alpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\n")])])])],1),this._v(" "),s("h3",{attrs:{id:"yan-se"}},[s("a",{staticClass:"anchor",attrs:{href:"#yan-se","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 颜色")]),this._v(" "),s("p",[this._v("关键词:color")]),this._v(" "),s("p",[this._v("取值为 0x十六进制颜色值")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n color = 0x80D8FF\n}\nset c {\n color = 0xFF9100\n} 5s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x80D8FF")]),this._v("\n}\nset c {\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xFF9100")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\n")])])]),this._v(" "),s("h3",{attrs:{id:"ceng-ci"}},[s("a",{staticClass:"anchor",attrs:{href:"#ceng-ci","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 层次")]),this._v(" "),s("p",[this._v("关键词:zIndex")]),this._v(" "),s("p",[this._v("不可变")]),this._v(" "),s("p",[this._v("层次权重,值高的对象在上层")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n color = 0x80D8FF\n zIndex = 2\n}\ndef text d {\n content = "bilibili"\n fontSize = 10%\n x = 55%\n y = 55%\n anchorX = 0.5\n anchorY = 0.5\n color = 0xFF9100\n zIndex = 1\n}\nset c {} 5s\nset d {} 5s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x80D8FF")]),this._v("\n zIndex = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n}\ndef text d {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("55")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("55")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xFF9100")]),this._v("\n zIndex = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n}\nset c {} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\nset d {} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\n")])])]),this._v(" "),s("h3",{attrs:{id:"suo-shu-ceng"}},[s("a",{staticClass:"anchor",attrs:{href:"#suo-shu-ceng","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 所属层")]),this._v(" "),s("p",[this._v("关键词:parent")]),this._v(" "),s("p",[this._v("不可变")]),this._v(" "),s("p",[this._v("以父级元素作为舞台进行绘制")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text a {\n content = "□"\n fontSize = 40%\n x = 0\n y = 0\n color = 0xffff00\n}\ndef text b {\n parent = "a"\n content = "□"\n fontSize = 20%\n x = 0\n y = 0\n color = 0xff00ff\n}\ndef text c {\n parent = "b"\n content = "□"\n fontSize = 10%\n x = 0\n y = 0\n color = 0x00ffff\n}\ndef text d {\n parent = "c"\n content = "•"\n fontSize = 5%\n alpha = 0.8\n x = 50%\n y = 0\n color = 0x0000ff\n}\nset a {\n x = 50%\n y = 0\n} 2s\nthen set a {} 3s\nset b {\n x = 50%\n y = 50%\n} 3s\nthen set b {} 3s\nset c {\n x = 50%\n y = 50%\n} 3s\nthen set c {} 2s\nset d {\n x = 100%\n y = 100%\n} 1s\nthen set d {} 4s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text a {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"□"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("40")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xffff00")]),this._v("\n}\ndef text b {\n parent = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"a"')]),this._v("\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"□"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("20")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xff00ff")]),this._v("\n}\ndef text c {\n parent = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"b"')]),this._v("\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"□"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x00ffff")]),this._v("\n}\ndef text d {\n parent = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"c"')]),this._v("\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"•"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n alpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.8")]),this._v("\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x0000ff")]),this._v("\n}\nset a {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("s\nthen set a {} "),s("span",{attrs:{class:"hljs-number"}},[this._v("3")]),this._v("s\nset b {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("3")]),this._v("s\nthen set b {} "),s("span",{attrs:{class:"hljs-number"}},[this._v("3")]),this._v("s\nset c {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("3")]),this._v("s\nthen set c {} "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("s\nset d {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("s\nthen set d {} "),s("span",{attrs:{class:"hljs-number"}},[this._v("4")]),this._v("s\n")])])]),this._v(" "),s("h3",{attrs:{id:"zi-hao"}},[s("a",{staticClass:"anchor",attrs:{href:"#zi-hao","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 字号")]),this._v(" "),s("p",[this._v("关键词:fontSize")]),this._v(" "),s("p",[this._v("不可渐变")]),this._v(" "),s("p",[this._v("可以为百分比值,百分比字体大小为 当前容器宽度 * 百分比 px")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n}\nset c {} 2s\nthen set c {\n fontSize = 20%\n} 3s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n}\nset c {} "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("s\nthen set c {\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("20")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("3")]),this._v("s\n")])])]),this._v(" "),s("p",[this._v("可以突破浏览器限制的最小字号12px")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 5\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"miao-bian"}},[s("a",{staticClass:"anchor",attrs:{href:"#miao-bian","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 描边")]),this._v(" "),s("p",[this._v("关键词:strokeWidth strokeColor")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n strokeWidth = 2\n strokeColor = 0x80D8FF\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n strokeWidth = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n strokeColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x80D8FF")]),this._v("\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"yin-ying"}},[s("a",{staticClass:"anchor",attrs:{href:"#yin-ying","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 阴影")]),this._v(" "),s("p",[this._v("关键词:textShadow")]),this._v(" "),s("p",[this._v("取值 0 或 1")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n textShadow = 0\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n textShadow = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"cu-ti"}},[s("a",{staticClass:"anchor",attrs:{href:"#cu-ti","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 粗体")]),this._v(" "),s("p",[this._v("关键词:bold")]),this._v(" "),s("p",[this._v("取值 0 或 1")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n bold = 0\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n bold = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"sheng-ming-zhou-qi"}},[s("a",{staticClass:"anchor",attrs:{href:"#sheng-ming-zhou-qi","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 生命周期")]),this._v(" "),s("p",[this._v("关键词:duration")]),this._v(" "),s("p",[this._v("取值为时间,形如 1h5m30s、5m30s、30s")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 50%\n y = 50%\n anchorX = 0.5\n anchorY = 0.5\n duration = 10s\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n anchorX = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n anchorY = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n duration = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("s\n}\n")])])]),this._v(" "),s("h2",{attrs:{id:"jiao-hu-an-niu"}},[s("a",{staticClass:"anchor",attrs:{href:"#jiao-hu-an-niu","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 交互按钮")]),this._v(" "),s("p",[this._v("带点击效果的交互按钮元素")]),this._v(" "),s("h3",{attrs:{id:"seek-an-niu"}},[s("a",{staticClass:"anchor",attrs:{href:"#seek-an-niu","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" seek 按钮")]),this._v(" "),s("p",[this._v("seek 到视频某个时间点")]),this._v(" "),s("p",[this._v("此交互依赖视频,无法演示,请到播放器测试效果")]),this._v(" "),s("code-block",{attrs:{code:{code:'def button c {\n text = "跳转到30分钟"\n x = 35%\n y = 45%\n fontSize = 5%\n textColor = 0xffffff\n fillColor = 0x80D8FF\n target = seek {\n time = 30m\n }\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def button c {\n text = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"跳转到30分钟"')]),this._v("\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("35")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("45")]),this._v("%\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n textColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xffffff")]),this._v("\n fillColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x80D8FF")]),this._v("\n target = seek {\n time = "),s("span",{attrs:{class:"hljs-number"}},[this._v("30")]),this._v("m\n }\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"bvid-tiao-zhuan-an-niu"}},[s("a",{staticClass:"anchor",attrs:{href:"#bvid-tiao-zhuan-an-niu","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" bvid 跳转按钮")]),this._v(" "),s("p",[this._v("新窗口打开 bilibili 视频")]),this._v(" "),s("code-block",{attrs:{code:{code:'def button c {\n text = "bvidBV1i7411M7N9"\n x = 35%\n y = 45%\n fontSize = 5%\n textColor = 0xffffff\n fillColor = 0x80D8FF\n duration = 2s\n target = av {\n bvid = BV1i7411M7N9\n page = 2\n time = 20.5s500ms\n }\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def button c {\n text = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bvidBV1i7411M7N9"')]),this._v("\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("35")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("45")]),this._v("%\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n textColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xffffff")]),this._v("\n fillColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x80D8FF")]),this._v("\n duration = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("s\n target = av {\n bvid = BV1i7411M7N9\n page = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n time = "),s("span",{attrs:{class:"hljs-number"}},[this._v("20.5")]),this._v("s500ms\n }\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"av-tiao-zhuan-an-niu-av-yi-qi-yong"}},[s("a",{staticClass:"anchor",attrs:{href:"#av-tiao-zhuan-an-niu-av-yi-qi-yong","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" av 跳转按钮(av 已弃用)")]),this._v(" "),s("p",[this._v("新窗口打开 bilibili 视频")]),this._v(" "),s("code-block",{attrs:{code:{code:'def button c {\n text = "av91257161"\n x = 35%\n y = 45%\n fontSize = 5%\n textColor = 0xffffff\n fillColor = 0x80D8FF\n duration = 2s\n target = av {\n av = 91257161\n page = 2\n time = 20.5s500ms\n }\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def button c {\n text = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"av91257161"')]),this._v("\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("35")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("45")]),this._v("%\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n textColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xffffff")]),this._v("\n fillColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x80D8FF")]),this._v("\n duration = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("s\n target = av {\n av = "),s("span",{attrs:{class:"hljs-number"}},[this._v("91257161")]),this._v("\n page = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("\n time = "),s("span",{attrs:{class:"hljs-number"}},[this._v("20.5")]),this._v("s500ms\n }\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"bangumi-tiao-zhuan-an-niu"}},[s("a",{staticClass:"anchor",attrs:{href:"#bangumi-tiao-zhuan-an-niu","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" bangumi 跳转按钮")]),this._v(" "),s("p",[this._v("新窗口打开 bilibili 番剧视频")]),this._v(" "),s("code-block",{attrs:{code:{code:'def button c {\n text = "第22话 春风"\n x = 35%\n y = 45%\n fontSize = 5%\n textColor = 0xffffff\n fillColor = 0x80D8FF\n duration = 2s\n target = bangumi {\n seasonId = 1699\n episodeId = 80041\n time = 1m30s\n }\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def button c {\n text = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"第22话 春风"')]),this._v("\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("35")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("45")]),this._v("%\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n textColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xffffff")]),this._v("\n fillColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x80D8FF")]),this._v("\n duration = "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("s\n target = bangumi {\n seasonId = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1699")]),this._v("\n episodeId = "),s("span",{attrs:{class:"hljs-number"}},[this._v("80041")]),this._v("\n time = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("m30s\n }\n}\n")])])]),this._v(" "),s("h2",{attrs:{id:"path-dui-xiang"}},[s("a",{staticClass:"anchor",attrs:{href:"#path-dui-xiang","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" path 对象")]),this._v(" "),s("p",[this._v("svg 图形元素")]),this._v(" "),s("h3",{attrs:{id:"path-dui-xiang-2"}},[s("a",{staticClass:"anchor",attrs:{href:"#path-dui-xiang-2","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" path 对象")]),this._v(" "),s("p",[this._v("d 取值为 svg 图形的路径")]),this._v(" "),s("code-block",{attrs:{code:{code:'def path p {\n d = "M30.828,30.422 C30.564,30.423 30.297,30.446 30.036,30.418 C29.078,30.314 28.380,31.402 28.048,32.549 C27.749,33.582 26.614,34.110 25.592,34.004 C24.412,33.883 23.631,33.208 23.330,32.141 C23.149,31.496 22.602,30.996 22.000,31.000 C17.847,31.024 14.153,31.012 10.000,31.000 C9.522,30.999 9.012,31.457 8.872,32.020 C8.573,33.228 7.546,33.995 6.409,34.014 C5.232,34.034 4.209,33.287 3.866,32.033 C3.722,31.508 3.479,30.385 2.977,30.413 C2.331,30.449 1.681,30.431 1.033,30.420 C0.325,30.407 0.012,30.123 0.012,29.451 C0.017,22.618 0.027,15.786 0.045,8.953 C0.047,8.247 0.340,8.009 1.154,8.008 C4.491,8.004 7.828,8.006 11.165,8.006 C11.398,8.006 11.631,8.006 11.863,8.006 C11.884,7.949 11.906,7.891 11.927,7.833 C11.152,7.426 10.377,7.019 9.603,6.611 C8.318,5.933 7.031,5.257 5.748,4.576 C5.228,4.300 5.012,3.879 5.306,3.357 C5.603,2.829 6.094,2.797 6.607,3.067 C9.620,4.656 12.634,6.243 15.636,7.849 C16.405,8.261 17.789,8.014 18.284,7.318 C19.819,5.154 21.353,2.990 22.888,0.825 C22.942,0.749 22.994,0.670 23.050,0.595 C23.488,0.007 23.985,-0.152 24.437,0.195 C24.960,0.596 24.870,1.072 24.534,1.549 C23.911,2.432 23.288,3.314 22.666,4.197 C21.804,5.421 20.943,6.646 19.986,8.006 C20.378,8.006 20.629,8.006 20.880,8.006 C24.194,8.006 27.507,8.005 30.820,8.007 C31.832,8.008 31.988,8.161 31.989,9.145 C31.999,15.861 32.008,22.577 32.014,29.293 C32.015,30.253 31.838,30.416 30.828,30.422 ZM25.848,32.431 C26.378,32.396 26.630,30.992 26.791,30.461 C26.102,30.461 25.492,30.461 24.787,30.461 C24.984,31.045 25.257,32.471 25.848,32.431 ZM6.318,32.432 C6.905,32.468 7.182,31.049 7.357,30.466 C6.663,30.466 6.056,30.466 5.383,30.466 C5.517,31.015 5.793,32.400 6.318,32.432 ZM30.000,10.000 C20.412,10.000 11.532,10.000 2.000,10.000 C2.000,16.462 2.000,22.576 2.000,29.000 C11.579,29.000 20.420,29.000 30.000,29.000 C30.000,22.528 30.000,16.432 30.000,10.000 ZM4.000,13.882 C4.002,12.956 4.449,12.051 5.381,12.050 C12.494,12.049 19.041,11.998 26.154,12.000 C27.100,12.000 27.997,12.966 28.000,13.882 C28.012,18.300 27.993,21.700 28.000,26.118 C28.002,27.062 27.146,27.999 26.154,28.000 C22.608,28.002 19.545,28.000 16.000,28.000 C12.455,28.000 9.392,28.002 5.846,28.000 C4.814,27.999 3.999,27.135 4.000,26.118 C4.005,21.722 3.992,18.278 4.000,13.882 ZM26.297,25.981 C26.297,21.804 26.154,17.971 26.154,13.882 C19.290,13.882 12.649,13.882 5.846,13.882 C5.846,18.035 5.822,21.866 5.822,25.981 C12.673,25.981 19.463,25.981 26.297,25.981 ZM11.608,16.318 C11.666,16.292 11.738,16.297 11.980,16.262 C12.121,16.400 12.477,16.590 12.515,16.828 C12.558,17.106 12.409,17.591 12.194,17.700 C10.880,18.367 9.530,18.968 8.177,19.557 C7.765,19.736 7.312,19.601 7.207,19.161 C7.138,18.873 7.262,18.326 7.469,18.222 C8.823,17.537 10.222,16.940 11.608,16.318 ZM12.021,20.776 C12.277,20.767 12.608,21.121 12.793,21.391 C12.941,21.606 12.879,21.950 12.983,22.210 C13.180,22.705 13.551,23.176 14.099,23.060 C14.504,22.975 14.874,22.570 15.178,22.234 C15.328,22.068 15.303,21.740 15.339,21.483 C15.407,20.999 15.693,20.701 16.171,20.713 C16.608,20.724 16.892,20.988 16.948,21.461 C16.984,21.760 16.992,22.131 17.171,22.330 C17.457,22.648 17.869,23.032 18.238,23.044 C18.572,23.055 18.978,22.651 19.241,22.339 C19.416,22.132 19.406,21.766 19.461,21.467 C19.550,20.990 19.826,20.700 20.320,20.738 C20.811,20.776 21.069,21.092 21.050,21.585 C21.003,22.836 20.506,23.853 19.334,24.411 C18.242,24.932 17.222,24.708 16.328,23.907 C16.280,23.864 16.222,23.833 16.162,23.792 C15.890,23.981 15.638,24.200 15.349,24.351 C14.404,24.844 13.458,24.803 12.586,24.197 C11.624,23.527 11.195,22.551 11.281,21.416 C11.299,21.170 11.755,20.785 12.021,20.776 ZM18.997,16.260 C19.229,15.854 19.641,15.743 20.026,15.962 C21.555,16.833 23.067,17.734 24.569,18.648 C24.749,18.757 24.833,19.019 24.896,19.113 C24.913,19.856 24.298,20.260 23.732,19.941 C22.219,19.088 20.731,18.190 19.245,17.289 C18.853,17.051 18.770,16.656 18.997,16.260 Z"\n viewBox="0 0 32 34"\n x = 45%\n y = 45%\n scale = 3\n borderWidth = 1\n borderColor = 0xffffff\n borderAlpha = 0.8\n fillColor = 0x00a1d6\n fillAlpha = 0.8\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def path p {\n d = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"M30.828,30.422 C30.564,30.423 30.297,30.446 30.036,30.418 C29.078,30.314 28.380,31.402 28.048,32.549 C27.749,33.582 26.614,34.110 25.592,34.004 C24.412,33.883 23.631,33.208 23.330,32.141 C23.149,31.496 22.602,30.996 22.000,31.000 C17.847,31.024 14.153,31.012 10.000,31.000 C9.522,30.999 9.012,31.457 8.872,32.020 C8.573,33.228 7.546,33.995 6.409,34.014 C5.232,34.034 4.209,33.287 3.866,32.033 C3.722,31.508 3.479,30.385 2.977,30.413 C2.331,30.449 1.681,30.431 1.033,30.420 C0.325,30.407 0.012,30.123 0.012,29.451 C0.017,22.618 0.027,15.786 0.045,8.953 C0.047,8.247 0.340,8.009 1.154,8.008 C4.491,8.004 7.828,8.006 11.165,8.006 C11.398,8.006 11.631,8.006 11.863,8.006 C11.884,7.949 11.906,7.891 11.927,7.833 C11.152,7.426 10.377,7.019 9.603,6.611 C8.318,5.933 7.031,5.257 5.748,4.576 C5.228,4.300 5.012,3.879 5.306,3.357 C5.603,2.829 6.094,2.797 6.607,3.067 C9.620,4.656 12.634,6.243 15.636,7.849 C16.405,8.261 17.789,8.014 18.284,7.318 C19.819,5.154 21.353,2.990 22.888,0.825 C22.942,0.749 22.994,0.670 23.050,0.595 C23.488,0.007 23.985,-0.152 24.437,0.195 C24.960,0.596 24.870,1.072 24.534,1.549 C23.911,2.432 23.288,3.314 22.666,4.197 C21.804,5.421 20.943,6.646 19.986,8.006 C20.378,8.006 20.629,8.006 20.880,8.006 C24.194,8.006 27.507,8.005 30.820,8.007 C31.832,8.008 31.988,8.161 31.989,9.145 C31.999,15.861 32.008,22.577 32.014,29.293 C32.015,30.253 31.838,30.416 30.828,30.422 ZM25.848,32.431 C26.378,32.396 26.630,30.992 26.791,30.461 C26.102,30.461 25.492,30.461 24.787,30.461 C24.984,31.045 25.257,32.471 25.848,32.431 ZM6.318,32.432 C6.905,32.468 7.182,31.049 7.357,30.466 C6.663,30.466 6.056,30.466 5.383,30.466 C5.517,31.015 5.793,32.400 6.318,32.432 ZM30.000,10.000 C20.412,10.000 11.532,10.000 2.000,10.000 C2.000,16.462 2.000,22.576 2.000,29.000 C11.579,29.000 20.420,29.000 30.000,29.000 C30.000,22.528 30.000,16.432 30.000,10.000 ZM4.000,13.882 C4.002,12.956 4.449,12.051 5.381,12.050 C12.494,12.049 19.041,11.998 26.154,12.000 C27.100,12.000 27.997,12.966 28.000,13.882 C28.012,18.300 27.993,21.700 28.000,26.118 C28.002,27.062 27.146,27.999 26.154,28.000 C22.608,28.002 19.545,28.000 16.000,28.000 C12.455,28.000 9.392,28.002 5.846,28.000 C4.814,27.999 3.999,27.135 4.000,26.118 C4.005,21.722 3.992,18.278 4.000,13.882 ZM26.297,25.981 C26.297,21.804 26.154,17.971 26.154,13.882 C19.290,13.882 12.649,13.882 5.846,13.882 C5.846,18.035 5.822,21.866 5.822,25.981 C12.673,25.981 19.463,25.981 26.297,25.981 ZM11.608,16.318 C11.666,16.292 11.738,16.297 11.980,16.262 C12.121,16.400 12.477,16.590 12.515,16.828 C12.558,17.106 12.409,17.591 12.194,17.700 C10.880,18.367 9.530,18.968 8.177,19.557 C7.765,19.736 7.312,19.601 7.207,19.161 C7.138,18.873 7.262,18.326 7.469,18.222 C8.823,17.537 10.222,16.940 11.608,16.318 ZM12.021,20.776 C12.277,20.767 12.608,21.121 12.793,21.391 C12.941,21.606 12.879,21.950 12.983,22.210 C13.180,22.705 13.551,23.176 14.099,23.060 C14.504,22.975 14.874,22.570 15.178,22.234 C15.328,22.068 15.303,21.740 15.339,21.483 C15.407,20.999 15.693,20.701 16.171,20.713 C16.608,20.724 16.892,20.988 16.948,21.461 C16.984,21.760 16.992,22.131 17.171,22.330 C17.457,22.648 17.869,23.032 18.238,23.044 C18.572,23.055 18.978,22.651 19.241,22.339 C19.416,22.132 19.406,21.766 19.461,21.467 C19.550,20.990 19.826,20.700 20.320,20.738 C20.811,20.776 21.069,21.092 21.050,21.585 C21.003,22.836 20.506,23.853 19.334,24.411 C18.242,24.932 17.222,24.708 16.328,23.907 C16.280,23.864 16.222,23.833 16.162,23.792 C15.890,23.981 15.638,24.200 15.349,24.351 C14.404,24.844 13.458,24.803 12.586,24.197 C11.624,23.527 11.195,22.551 11.281,21.416 C11.299,21.170 11.755,20.785 12.021,20.776 ZM18.997,16.260 C19.229,15.854 19.641,15.743 20.026,15.962 C21.555,16.833 23.067,17.734 24.569,18.648 C24.749,18.757 24.833,19.019 24.896,19.113 C24.913,19.856 24.298,20.260 23.732,19.941 C22.219,19.088 20.731,18.190 19.245,17.289 C18.853,17.051 18.770,16.656 18.997,16.260 Z"')]),this._v("\n viewBox="),s("span",{attrs:{class:"hljs-string"}},[this._v('"0 0 32 34"')]),this._v("\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("45")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("45")]),this._v("%\n scale = "),s("span",{attrs:{class:"hljs-number"}},[this._v("3")]),this._v("\n borderWidth = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n borderColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xffffff")]),this._v("\n borderAlpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.8")]),this._v("\n fillColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x00a1d6")]),this._v("\n fillAlpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.8")]),this._v("\n}\n")])])]),this._v(" "),s("h2",{attrs:{id:"fu-za-dong-hua"}},[s("a",{staticClass:"anchor",attrs:{href:"#fu-za-dong-hua","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 复杂动画")]),this._v(" "),s("h3",{attrs:{id:"chuan-lian-dong-hua"}},[s("a",{staticClass:"anchor",attrs:{href:"#chuan-lian-dong-hua","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 串联动画")]),this._v(" "),this._m(1,!1,!1),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 0\n y = 0\n}\nset c {\n x = 70%\n y = 50%\n} 3s\nthen set c {\n x = 0\n y = 80%\n} 2s\n\ndef text t1 {\n content = "bilibili1"\n fontSize = 5%\n y = 80%\n}\ndef text t2 {\n content = "bilibili2"\n fontSize = 5%\n y = 80%\n}\nset t1 {\n x = 40%\n} 1s\nthen set t2 {\n y = 20%\n} 1s\nthen set t1 {\n x = 0\n} 1s\nthen set t2 {\n y = 80%\n} 1s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n}\nset c {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("70")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("50")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("3")]),this._v("s\nthen set c {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("80")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("2")]),this._v("s\n\ndef text t1 {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili1"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("80")]),this._v("%\n}\ndef text t2 {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili2"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("80")]),this._v("%\n}\nset t1 {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("40")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("s\nthen set t2 {\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("20")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("s\nthen set t1 {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("s\nthen set t2 {\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("80")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("s\n")])])]),this._v(" "),s("h3",{attrs:{id:"bing-lian-dong-hua"}},[s("a",{staticClass:"anchor",attrs:{href:"#bing-lian-dong-hua","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 并联动画")]),this._v(" "),this._m(2,!1,!1),this._v(" "),s("code-block",{attrs:{code:{code:'def text c {\n content = "bilibili"\n fontSize = 10%\n x = 0\n y = 10%\n color = 0x80D8FF\n}\nset tl {} 5s\nset c {\n x = 70%\n y = 60%\n} 5s\nset c {\n color = 0xFF9100\n} 5s\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text c {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0x80D8FF")]),this._v("\n}\nset tl {} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\nset c {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("70")]),this._v("%\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("60")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\nset c {\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xFF9100")]),this._v("\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("5")]),this._v("s\n")])])]),this._v(" "),s("h2",{attrs:{id:"shi-yong-mo-ban"}},[s("a",{staticClass:"anchor",attrs:{href:"#shi-yong-mo-ban","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 使用模板")]),this._v(" "),s("h3",{attrs:{id:"liang-chong-ding-yi-fang-shi"}},[s("a",{staticClass:"anchor",attrs:{href:"#liang-chong-ding-yi-fang-shi","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 两种定义方式")]),this._v(" "),s("p",[this._v("实例支持两种定义方式,效果相同,可以根据自己喜好选择:")]),this._v(" "),s("p",[this._v("方式一(以上例子使用的方式):")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text t {\n content = "bilibili"\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text t {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n}\n")])])]),this._v(" "),s("p",[this._v("方式二:")]),this._v(" "),s("code-block",{attrs:{code:{code:'let t = text {\n content = "bilibili"\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[s("span",{attrs:{class:"hljs-keyword"}},[this._v("let")]),this._v(" t = text {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"mo-ban"}},[s("a",{staticClass:"anchor",attrs:{href:"#mo-ban","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 模板")]),this._v(" "),s("p",[this._v("定义一个模板,然后从模板生成几个相似的实例,可以简化代码:")]),this._v(" "),s("code-block",{attrs:{code:{code:'// 定义一个模板 c\ndef text c(textColor = 0xff0000, alpha = 1) {\n content = "bilibili"\n fontSize = 10%\n x = 0\n y = 10%\n color = textColor\n alpha = alpha\n}\n\n// 生成实例\nlet d = c (\n 0xff0000, 0.5\n)\n\nlet d1 = c (\n textColor = 0xff0000,\n alpha = 0.5\n)\n\nlet d2 = c (\n textColor = 0xff0000, 0.5\n)\n\nlet d3 = c (\n 0xff0000, alpha = 0.5\n)\n\nlet d4 = c (\n alpha = 0.5,\n textColor = 0xff0000\n)\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[s("span",{attrs:{class:"hljs-comment"}},[this._v("// 定义一个模板 c")]),this._v("\ndef text c(textColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xff0000")]),this._v(", alpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v(") {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n fontSize = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0")]),this._v("\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n color = textColor\n alpha = alpha\n}\n\n"),s("span",{attrs:{class:"hljs-comment"}},[this._v("// 生成实例")]),this._v("\n"),s("span",{attrs:{class:"hljs-keyword"}},[this._v("let")]),this._v(" d = c (\n "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xff0000")]),this._v(", "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n)\n\n"),s("span",{attrs:{class:"hljs-keyword"}},[this._v("let")]),this._v(" d1 = c (\n textColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xff0000")]),this._v(",\n alpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n)\n\n"),s("span",{attrs:{class:"hljs-keyword"}},[this._v("let")]),this._v(" d2 = c (\n textColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xff0000")]),this._v(", "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n)\n\n"),s("span",{attrs:{class:"hljs-keyword"}},[this._v("let")]),this._v(" d3 = c (\n "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xff0000")]),this._v(", alpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v("\n)\n\n"),s("span",{attrs:{class:"hljs-keyword"}},[this._v("let")]),this._v(" d4 = c (\n alpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0.5")]),this._v(",\n textColor = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xff0000")]),this._v("\n)\n")])])]),this._v(" "),s("p",[this._v("也可以从一个实例生成另一个实例:")]),this._v(" "),s("code-block",{attrs:{code:{code:'let t = text {\n content = "bilibili"\n}\n\nlet e = t {\n color = 0xff0000\n alpha = 1\n x = 10%\n}\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[s("span",{attrs:{class:"hljs-keyword"}},[this._v("let")]),this._v(" t = text {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"bilibili"')]),this._v("\n}\n\n"),s("span",{attrs:{class:"hljs-keyword"}},[this._v("let")]),this._v(" e = t {\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xff0000")]),this._v("\n alpha = "),s("span",{attrs:{class:"hljs-number"}},[this._v("1")]),this._v("\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("10")]),this._v("%\n}\n")])])]),this._v(" "),s("h3",{attrs:{id:"ni-ming-shi-li"}},[s("a",{staticClass:"anchor",attrs:{href:"#ni-ming-shi-li","aria-hidden":"true"}},[s("svg",{staticClass:"octicon octicon-link",attrs:{"aria-hidden":"true",height:"16",version:"1.1",viewBox:"0 0 16 16",width:"16"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}})])]),this._v(" 匿名实例")]),this._v(" "),s("p",[this._v("可以在 set 里使用匿名实例:")]),this._v(" "),s("code-block",{attrs:{code:{code:'let t = text {\n content = "20"\n color = 0xff0000\n}\n\nset (t { content = "19"}) {\n x = 100%\n} 1000ms\nset (t { content = "18"}) {\n y = 100%\n} 1000ms\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[s("span",{attrs:{class:"hljs-keyword"}},[this._v("let")]),this._v(" t = text {\n content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"20"')]),this._v("\n color = "),s("span",{attrs:{class:"hljs-number"}},[this._v("0xff0000")]),this._v("\n}\n\nset (t { content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"19"')]),this._v("}) {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("1000")]),this._v("ms\nset (t { content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"18"')]),this._v("}) {\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("1000")]),this._v("ms\n")])])]),this._v(" "),s("p",[this._v("或者")]),this._v(" "),s("code-block",{attrs:{code:{code:'def text t(content = "20") {\n content = content\n}\n\nset (t(content = "19")) {\n x = 100%\n} 1000ms\nset (t(content = "18")) {\n y = 100%\n} 1000ms\n'}}},[s("pre",{pre:!0},[s("code",{attrs:{class:"hljs language-js"}},[this._v("def text t(content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"20"')]),this._v(") {\n content = content\n}\n\nset (t(content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"19"')]),this._v(")) {\n x = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("1000")]),this._v("ms\nset (t(content = "),s("span",{attrs:{class:"hljs-string"}},[this._v('"18"')]),this._v(")) {\n y = "),s("span",{attrs:{class:"hljs-number"}},[this._v("100")]),this._v("%\n} "),s("span",{attrs:{class:"hljs-number"}},[this._v("1000")]),this._v("ms\n")])])]),this._v(" "),this._m(3,!1,!1)],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("blockquote",[s("p",[this._v("bilibili animation script, 新一代 bilibili 高级弹幕脚本语言")])])},function(){var t=this.$createElement,s=this._self._c||t;return s("ol",[s("li",[this._v("可以串联任意对象")]),this._v(" "),s("li",[this._v("可以串联任意可变属性")])])},function(){var t=this.$createElement,s=this._self._c||t;return s("ol",[s("li",[this._v("可以并联任意对象")]),this._v(" "),s("li",[this._v("并联相同属性时,以最后一次为准,之前冲突的动画会被忽略")]),this._v(" "),s("li",[this._v("由于技术限制,x y rotateX rotateY rotateZ scale 视为相同属性")])])},function(){var t=this.$createElement,s=this._self._c||t;return s("blockquote",[s("p",[this._v("Enjoy!")])])}]},h=n("VU/8")(null,a,!1,null,null,null);s.default=h.exports},n4oq:function(t,s){},tvR6:function(t,s){},vBWE:function(t,s){},vZZd:function(t,s){},wRyH:function(t,s,n){t.exports=n("klpm")}},["NHnr"]); 2 | //# sourceMappingURL=app.59cdc076d0e91f934349.js.map -------------------------------------------------------------------------------- /static/js/manifest.829e00d890121509e22e.js: -------------------------------------------------------------------------------- 1 | !function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var i,u,f,s=0,l=[];s