Deploying to gh-pages from @ 61a5b3072c 🚀

This commit is contained in:
unanmed committed 2023-01-24 03:50:58 +00:00
1 parent cdf8ff658e
commit 95643e3c81
4 files changed
+89 -4

No files matched your search

@@ -17,4 +17,4 @@ function round(t){return t+.5|0}const lim=(t,e,n)=>Math.max(Math.min(t,n),e);fun
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,a){const o=e.listeners[a],i=e.duration;o.forEach((a=>a({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,a)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,r=o.length-1,l=!1;for(;r>=0;--r)i=o[r],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),l=!0):(o[r]=o[o.length-1],o.pop());l&&(a.draw(),this._notify(a,n,t,"progress")),o.length||(n.running=!1,this._notify(a,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let a=n.length-1;for(;a>=0;--a)n[a].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const a=color(t||transparent),o=a.valid&&color(e||transparent);return o&&o.valid?o.mix(a,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Animation{constructor(t,e,n,a){const o=e[n];a=resolve([t.to,a,o,t.from]);const i=resolve([t.from,o,a]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof i],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const a=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=resolve([t.to,e,a,t.from]),this._from=resolve([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,a=this._prop,o=this._from,i=this._loop,r=this._to;let l;if(this._active=o!==r&&(i||e<n),!this._active)return this._target[a]=r,void this._notify(!0);e<0?this._target[a]=o:(l=e/n%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(o,r,l))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let a=0;a<n.length;a++)n[a][e]()}}class Animations{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!isObject(t))return;const e=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((a=>{const o=t[a];if(!isObject(o))return;const i={};for(const t of e)i[t]=o[t];(isArray(o.properties)&&o.properties||[a]).forEach((t=>{t!==a&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,a=resolveTargetOptions(t,n);if(!a)return[];const o=this._createAnimations(a,n);return n.$shared&&awaitAll(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,a=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),r=Date.now();let l;for(l=i.length-1;l>=0;--l){const s=i[l];if("$"===s.charAt(0))continue;if("options"===s){a.push(...this._animateOptions(t,e));continue}const c=e[s];let d=o[s];const p=n.get(s);if(d){if(p&&d.active()){d.update(p,c,r);continue}d.cancel()}p&&p.duration?(o[s]=d=new Animation(p,t,s,c),a.push(d)):t[s]=c}return a}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(animator.add(this._chart,n),!0):void 0}}function awaitAll(t,e){const n=[],a=Object.keys(e);for(let o=0;o<a.length;o++){const e=t[a[o]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}function resolveTargetOptions(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function scaleClip(t,e){const n=t&&t.options||{},a=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:a?i:o,end:a?o:i}}function defaultClip(t,e,n){if(!1===n)return!1;const a=scaleClip(t,n),o=scaleClip(e,n);return{top:o.end,right:a.end,bottom:o.start,left:a.start}}function tLine truncated
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,a){const o=e.listeners[a],i=e.duration;o.forEach((a=>a({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,a)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,r=o.length-1,l=!1;for(;r>=0;--r)i=o[r],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),l=!0):(o[r]=o[o.length-1],o.pop());l&&(a.draw(),this._notify(a,n,t,"progress")),o.length||(n.running=!1,this._notify(a,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let a=n.length-1;for(;a>=0;--a)n[a].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const a=color(t||transparent),o=a.valid&&color(e||transparent);return o&&o.valid?o.mix(a,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Animation{constructor(t,e,n,a){const o=e[n];a=resolve([t.to,a,o,t.from]);const i=resolve([t.from,o,a]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof i],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const a=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=resolve([t.to,e,a,t.from]),this._from=resolve([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,a=this._prop,o=this._from,i=this._loop,r=this._to;let l;if(this._active=o!==r&&(i||e<n),!this._active)return this._target[a]=r,void this._notify(!0);e<0?this._target[a]=o:(l=e/n%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(o,r,l))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let a=0;a<n.length;a++)n[a][e]()}}class Animations{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!isObject(t))return;const e=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((a=>{const o=t[a];if(!isObject(o))return;const i={};for(const t of e)i[t]=o[t];(isArray(o.properties)&&o.properties||[a]).forEach((t=>{t!==a&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,a=resolveTargetOptions(t,n);if(!a)return[];const o=this._createAnimations(a,n);return n.$shared&&awaitAll(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,a=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),r=Date.now();let l;for(l=i.length-1;l>=0;--l){const s=i[l];if("$"===s.charAt(0))continue;if("options"===s){a.push(...this._animateOptions(t,e));continue}const c=e[s];let d=o[s];const p=n.get(s);if(d){if(p&&d.active()){d.update(p,c,r);continue}d.cancel()}p&&p.duration?(o[s]=d=new Animation(p,t,s,c),a.push(d)):t[s]=c}return a}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(animator.add(this._chart,n),!0):void 0}}function awaitAll(t,e){const n=[],a=Object.keys(e);for(let o=0;o<a.length;o++){const e=t[a[o]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}function resolveTargetOptions(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function scaleClip(t,e){const n=t&&t.options||{},a=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:a?i:o,end:a?o:i}}function defaultClip(t,e,n){if(!1===n)return!1;const a=scaleClip(t,n),o=scaleClip(e,n);return{top:o.end,right:a.end,bottom:o.start,left:a.start}}function tLine truncated
@@ -15,4 +15,4 @@ var Ne=Object.defineProperty;var Fe=(t,e,i)=>e in t?Ne(t,e,{enumerable:!0,config
* Released under the MIT License
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,i,s,n){const a=i.listeners[n],r=i.duration;a.forEach(l=>l({chart:e,initial:i.initial,numSteps:r,currentStep:Math.min(s-i.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let i=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const a=s.items;let r=a.length-1,l=!1,c;for(;r>=0;--r)c=a[r],c._active?(c._total>s.duration&&(s.duration=c._total),c.tick(e),l=!0):(a[r]=a[a.length-1],a.pop());l&&(n.draw(),this._notify(n,s,e,"progress")),a.length||(s.running=!1,this._notify(n,s,e,"complete"),s.initial=!1),i+=a.length}),this._lastDate=e,i===0&&(this._running=!1)}_getAnims(e){const i=this._charts;let s=i.get(e);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(e,s)),s}listen(e,i,s){this._getAnims(e).listeners[i].push(s)}add(e,i){!i||!i.length||this._getAnims(e).items.push(...i)}has(e){return this._getAnims(e).items.length>0}start(e){const i=this._charts.get(e);!i||(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(e){if(!this._running)return!1;const i=this._charts.get(e);return!(!i||!i.running||!i.items.length)}stop(e){const i=this._charts.get(e);if(!i||!i.items.length)return;const s=i.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();i.items=[],this._notify(e,i,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const s=color(t||transparent),n=s.valid&&color(e||transparent);return n&&n.valid?n.mix(s,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class Animation{constructor(e,i,s,n){const a=i[s];n=resolve([e.to,n,a,e.from]);const r=resolve([e.from,a,n]);this._active=!0,this._fn=e.fn||interpolators[e.type||typeof r],this._easing=effects[e.easing]||effects.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=i,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(e,i,s){if(this._active){this._notify(!1);const n=this._target[this._prop],a=s-this._start,r=this._duration-a;this._start=s,this._duration=Math.floor(Math.max(r,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=resolve([e.to,i,n,e.from]),this._from=resolve([e.from,n,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const i=e-this._start,s=this._duration,n=this._prop,a=this._from,r=this._loop,l=this._to;let c;if(this._active=a!==l&&(r||i<s),!this._active){this._target[n]=l,this._notify(!0);return}if(i<0){this._target[n]=a;return}c=i/s%2,c=r&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[n]=this._fn(a,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((i,s)=>{e.push({res:i,rej:s})})}_notify(e){const i=e?"res":"rej",s=this._promises||[];for(let n=0;n<s.length;n++)s[n][i]()}}class Animations{constructor(e,i){this._chart=e,this._properties=new Map,this.configure(i)}configure(e){if(!isObject(e))return;const i=Object.keys(defaults.animation),s=this._properties;Object.getOwnPropertyNames(e).forEach(n=>{const a=e[n];if(!isObject(a))return;const r={};for(const l of i)r[l]=a[l];(isArray(a.properties)&&a.properties||[n]).forEach(l=>{(l===n||!s.has(l))&&s.set(l,r)})})}_animateOptions(e,i){const s=i.options,n=resolveTargetOptions(e,s);if(!n)return[];const a=this._createAnimations(n,s);return s.$shared&&awaitAll(e.options.$animations,s).then(()=>{e.options=s},()=>{}),a}_createAnimations(e,i){const s=this._properties,n=[],a=e.$animations||(e.$animations={}),r=Object.keys(i),l=Date.now();let c;for(c=r.length-1;c>=0;--c){const d=r[c];if(d.charAt(0)==="$")continue;if(d==="options"){n.push(...this._animateOptions(e,i));continue}const u=i[d];let h=a[d];const f=s.get(d);if(h)if(f&&h.active()){h.update(f,u,l);continue}else h.cancel();if(!f||!f.duration){e[d]=u;continue}a[d]=h=new Animation(f,e,d,u),n.push(h)}return n}update(e,i){if(this._properties.size===0){Object.assign(e,i);return}const s=this._createAnimations(e,i);if(s.length)return animator.add(this._chart,s),!0}}function awaitAll(t,e){const i=[],s=Object.keys(e);for(let n=0;n<s.length;n++){const a=t[s[n]];a&&a.active()&&i.push(a.wait())}return Promise.all(i)}function resolveTargetOptions(t,e){if(!e)return;let i=t.options;if(!i){t.options=e;return}return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function scaleClip(t,e){const i=t&&t.options||{},s=i.reverse,n=i.min===void 0?e:0,a=i.max===void 0?e:0;return{start:s?a:n,end:s?n:a}}function defaultClip(t,e,i){if(i===!1)return!1;const s=scaleClip(t,i),n=scaleClip(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}Line truncated
`)>-1?t.split(`
`):t}function createTooltipItem(t,e){const{element:i,datasetIndex:s,index:n}=e,a=t.getDatasetMeta(s).controller,{label:r,value:l}=a.getLabelAndValue(n);return{chart:t,label:r,parsed:a.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:l,dataset:a.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function getTooltipSize(t,e){const i=t.chart.ctx,{body:s,footer:n,title:a}=t,{boxWidth:r,boxHeight:l}=e,c=toFont(e.bodyFont),d=toFont(e.titleFont),u=toFont(e.footerFont),h=a.length,f=n.length,g=s.length,m=toPadding(e.padding);let _=m.height,w=0,B=s.reduce((H,N)=>H+N.before.length+N.lines.length+N.after.length,0);if(B+=t.beforeBody.length+t.afterBody.length,h&&(_+=h*d.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),B){const H=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;_+=g*H+(B-g)*c.lineHeight+(B-1)*e.bodySpacing}f&&(_+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let D=0;const P=function(H){w=Math.max(w,i.measureText(H).width+D)};return i.save(),i.font=d.string,each(t.title,P),i.font=c.string,each(t.beforeBody.concat(t.afterBody),P),D=e.displayColors?r+2+e.boxPadding:0,each(s,H=>{each(H.before,P),each(H.lines,P),each(H.after,P)}),D=0,i.font=u.string,each(t.footer,P),i.restore(),w+=m.width,{width:w,height:_}}function determineYAlign(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}function doesNotFitWithAlign(t,e,i,s){const{x:n,width:a}=s,r=i.caretSize+i.caretPadding;if(t==="left"&&n+a+r>e.width||t==="right"&&n-a-r<0)return!0}function determineXAlign(t,e,i,s){const{x:n,width:a}=i,{width:r,chartArea:{left:l,right:c}}=t;let d="center";return s==="center"?d=n<=(l+c)/2?"left":"right":n<=a/2?d="left":n>=r-a/2&&(d="right"),doesNotFitWithAlign(d,t,e,i)&&(d="center"),d}function determineAlignment(t,e,i){const s=i.yAlign||e.yAlign||determineYAlign(t,i);return{xAlign:i.xAlign||e.xAlign||determineXAlign(t,e,i,s),yAlign:s}}function alignX(t,e){let{x:i,width:s}=t;return e==="right"?i-=s:e==="center"&&(i-=s/2),i}function alignY(t,e,i){let{y:s,height:n}=t;return e==="top"?s+=i:e==="bottom"?s-=n+i:s-=n/2,s}function getBackgroundPoint(t,e,i,s){const{caretSize:n,caretPadding:a,cornerRadius:r}=t,{xAlign:l,yAlign:c}=i,d=n+a,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:g}=toTRBLCorners(r);let m=alignX(e,l);const _=alignY(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,f)+n:l==="right"&&(m+=Math.max(h,g)+n),{x:_limitValue(m,0,s.width-e.width),y:_limitValue(_,0,s.height-e.height)}}function getAlignedX(t,e,i){const s=toPadding(i.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-s.right:t.x+s.left}function getBeforeAfterBodyLines(t){return pushOrConcat([],splitNewlines(t))}function createTooltipContext(t,e,i){return createContext(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function overrideCallbacks(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const defaultCallbacks={beforeTitle:noop,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:noop,beforeBody:noop,beforeLabel:noop,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return isNullOrUndef(i)||(e+=i),e},labelColor(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:noop,afterBody:noop,beforeFooter:noop,footer:noop,afterFooter:noop};function invokeCallbackWithFallback(t,e,i,s){const n=t[e].call(i,s);return typeof n>"u"?defaultCallbacks[e].call(i,s):n}class Tooltip extends Element{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const i=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&i.options.animation&&s Line truncated
`):t}function createTooltipItem(t,e){const{element:i,datasetIndex:s,index:n}=e,a=t.getDatasetMeta(s).controller,{label:r,value:l}=a.getLabelAndValue(n);return{chart:t,label:r,parsed:a.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:l,dataset:a.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function getTooltipSize(t,e){const i=t.chart.ctx,{body:s,footer:n,title:a}=t,{boxWidth:r,boxHeight:l}=e,c=toFont(e.bodyFont),d=toFont(e.titleFont),u=toFont(e.footerFont),h=a.length,f=n.length,g=s.length,m=toPadding(e.padding);let _=m.height,w=0,B=s.reduce((H,N)=>H+N.before.length+N.lines.length+N.after.length,0);if(B+=t.beforeBody.length+t.afterBody.length,h&&(_+=h*d.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),B){const H=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;_+=g*H+(B-g)*c.lineHeight+(B-1)*e.bodySpacing}f&&(_+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let D=0;const P=function(H){w=Math.max(w,i.measureText(H).width+D)};return i.save(),i.font=d.string,each(t.title,P),i.font=c.string,each(t.beforeBody.concat(t.afterBody),P),D=e.displayColors?r+2+e.boxPadding:0,each(s,H=>{each(H.before,P),each(H.lines,P),each(H.after,P)}),D=0,i.font=u.string,each(t.footer,P),i.restore(),w+=m.width,{width:w,height:_}}function determineYAlign(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}function doesNotFitWithAlign(t,e,i,s){const{x:n,width:a}=s,r=i.caretSize+i.caretPadding;if(t==="left"&&n+a+r>e.width||t==="right"&&n-a-r<0)return!0}function determineXAlign(t,e,i,s){const{x:n,width:a}=i,{width:r,chartArea:{left:l,right:c}}=t;let d="center";return s==="center"?d=n<=(l+c)/2?"left":"right":n<=a/2?d="left":n>=r-a/2&&(d="right"),doesNotFitWithAlign(d,t,e,i)&&(d="center"),d}function determineAlignment(t,e,i){const s=i.yAlign||e.yAlign||determineYAlign(t,i);return{xAlign:i.xAlign||e.xAlign||determineXAlign(t,e,i,s),yAlign:s}}function alignX(t,e){let{x:i,width:s}=t;return e==="right"?i-=s:e==="center"&&(i-=s/2),i}function alignY(t,e,i){let{y:s,height:n}=t;return e==="top"?s+=i:e==="bottom"?s-=n+i:s-=n/2,s}function getBackgroundPoint(t,e,i,s){const{caretSize:n,caretPadding:a,cornerRadius:r}=t,{xAlign:l,yAlign:c}=i,d=n+a,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:g}=toTRBLCorners(r);let m=alignX(e,l);const _=alignY(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,f)+n:l==="right"&&(m+=Math.max(h,g)+n),{x:_limitValue(m,0,s.width-e.width),y:_limitValue(_,0,s.height-e.height)}}function getAlignedX(t,e,i){const s=toPadding(i.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-s.right:t.x+s.left}function getBeforeAfterBodyLines(t){return pushOrConcat([],splitNewlines(t))}function createTooltipContext(t,e,i){return createContext(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function overrideCallbacks(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const defaultCallbacks={beforeTitle:noop,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:noop,beforeBody:noop,beforeLabel:noop,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return isNullOrUndef(i)||(e+=i),e},labelColor(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:noop,afterBody:noop,beforeFooter:noop,footer:noop,afterFooter:noop};function invokeCallbackWithFallback(t,e,i,s){const n=t[e].call(i,s);return typeof n>"u"?defaultCallbacks[e].call(i,s):n}class Tooltip extends Element{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const i=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&i.options.animation&&s Line truncated
+2 -2
View File
@@ -18,7 +18,7 @@
<meta name="x5-fullscreen" content="true">
<meta name="x5-page-mode" content="app">
<link id="mota-css" type='text/css' href='/HumanBreak/styles.css' rel='stylesheet'>
<script type="module" crossorigin src="/HumanBreak/assets/index.d51a4649.js"></script>
<script type="module" crossorigin src="/HumanBreak/assets/index.b22c9e94.js"></script>
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/antdv.d3c1a017.js">
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/common.311ffe86.js">
<link rel="stylesheet" href="/HumanBreak/assets/index.9d10ee3b.css">
@@ -215,7 +215,7 @@
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="/HumanBreak/assets/polyfills-legacy.fcbd97b9.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy.9ccf408a.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy.960d01e8.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
+85
View File
@@ -0,0 +1,85 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>人类:开天辟地 缩略图集</title>
<style>
html {
width: 100%;
height: 100%;
}
body {
background-color: black;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
height: 100%;
}
#map-group {
display: flex;
width: 50%;
flex-direction: column;
align-items: center;
}
#map-group span {
font-size: 32px;
}
a {
color: aqua;
text-decoration: none;
transition: color 0.2s linear;
width: 100%;
}
a:hover {
color: aquamarine;
}
img {
width: 90%;
border: 1px solid #ddd4;
border-style: dashed;
cursor: pointer;
}
.map-one {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
}
</style>
</head>
<body>
<div id="map-group">
<span>人类:开天辟地 缩略图集</span>
</div>
<script>
const list = ['草原', '洞穴', '勇气之路', '智慧小径'];
let html = '';
list.forEach(v => {
html += `
<div class="map-one">
<a href="${v}.png" class="map-a" target="_blank">${v}</a>
<img src="${v}.png" class="map-img" onclick="window.open('${v}.png')"></img>
</div>
`
});
const div = document.getElementById('map-group');
div.innerHTML += html;
</script>
</body>
</html>