This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
NumericalAnalysisModule/2 - Newton and Iterative me.../slides/js/abcjs_basic_5.6.3-min.js

3 lines
306 KiB
JavaScript
Raw Normal View History

/*! abcjs_basic v5.6.3 Copyright © 2009-2018 Paul Rosen and Gregory Dyke (http://abcjs.net) */
/*! For license information please see abcjs_basic_5.6.3-min.js.LICENSE */
!function(t){var e={};function i(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=15)}([function(t,e,i){"use strict";var r={clone:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},cloneArray:function(t){for(var e=[],i=0;i<t.length;i++)e.push(r.clone(t[i]));return e},cloneHashOfHash:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=r.clone(t[i]));return e},cloneHashOfArrayOfHash:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=r.cloneArray(t[i]));return e},gsub:function(t,e,i){return t.split(e).join(i)},strip:function(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(t,e){return 0===t.indexOf(e)},endsWith:function(t,e){var i=t.length-e.length;return i>=0&&t.lastIndexOf(e)===i},each:function(t,e,i){for(var r=0,s=t.length;r<s;r++)e.apply(i,[t[r],r])},last:function(t){return 0===t.length?null:t[t.length-1]},compact:function(t){for(var e=[],i=0;i<t.length;i++)t[i]&&e.push(t[i]);return e},detect:function(t,e){for(var i=0;i<t.length;i++)if(e(t[i]))return!0;return!1}};[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}),t.exports=r},function(t,e,i){"use strict";var r={FONTEM:360,FONTSIZE:30};r.STEP=93*r.FONTSIZE/720,r.SPACE=10,r.TOPNOTE=15,r.STAVEHEIGHT=100,r.INDENT=50,t.exports=r},function(t,e,i){"use strict";i(3);var r=function(t,e,i,r,s){switch(s=s||{},this.x=0,this.c=t,this.dx=e,this.w=i,this.pitch=r,this.scalex=s.scalex||1,this.scaley=s.scaley||1,this.type=s.type||"symbol",this.pitch2=s.pitch2,this.linewidth=s.linewidth,this.klass=s.klass,this.top=r,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=r,void 0!==this.pitch2&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),s.thickness&&(this.top+=s.thickness/2,this.bottom-=s.thickness/2),s.stemHeight&&(s.stemHeight>0?this.top+=s.stemHeight:this.bottom+=s.stemHeight),this.height=s.height?s.height:4,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":s.position&&"below"===s.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":s.position&&"below"===s.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?s.position&&"below"===s.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};r.prototype.setX=function(t){this.x=t+this.dx},r.prototype.setUpperAndLowerElements=function(t){switch(this.type){case"part":this.top=t.partHeightAbove+this.height,this.bottom=t.partHeightAbove;break;case"text":case"chord":this.chordHeightAbove?(this.top=t.chordHeightAbove,this.bottom=t.chordHeightAbove):(this.top=t.chordHeightBelow,this.bottom=t.chordHeightBelow);break;case"lyric":this.lyricHeightAbove?(this.top=t.lyricHeightAbove,this.bottom=t.lyricHeightAbove):(this.top=t.lyricHeightBelow,this.bottom=t.lyricHeightBelow);break;case"debug":this.top=t.chordHeightAbove,this.bottom=t.chordHeightAbove}void 0!==this.pitch&&void 0!==this.top||window.console.error("RelativeElement position not set.",this.type,this.pitch,this.top,t)},r.prototype.draw=function(t,e){void 0===this.pitch&&window.console.error(this.type+" Relative Element y-coordinate not set.");var i=t.calcY(this.pitch);switch(this.type){case"symbol":if(null===this.c)return null;var r="symbol";this.klass&&(r+=" "+this.klass),this.graphelem=t.printSymbol(this.x,this.pitch,this.c,this.scalex,this.scaley,t.addClasses(r