diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/legend.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/legend.js index 515b8b16c3d8..7146671e6479 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/legend.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/legend.js @@ -30,12 +30,16 @@ var resolveSchemaValue = require( './resolve_schema_value.js' ); // VARIABLES // var PROPS = [ + 'clipHeight', + 'columnPadding', + 'columns', 'direction', 'gradientLength', 'gradientOpacity', 'gradientStrokeColor', 'gradientStrokeWidth', 'gradientThickness', + 'gridAlign', 'labelAlign', 'labelBaseline', 'labelColor', @@ -48,7 +52,12 @@ var PROPS = [ 'labelOpacity', 'labelOverlap', 'labelSeparation', + 'legendX', + 'legendY', + 'offset', 'orient', + 'padding', + 'rowPadding', 'symbolDashOffset', 'symbolFillColor', 'symbolLimit', @@ -71,7 +80,8 @@ var PROPS = [ 'titleOpacity', 'titleOrient', 'titlePadding', - 'type' + 'type', + 'zindex' ]; var ARRAY_PROPS = [ 'symbolDash' diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/menus/legend.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/menus/legend.js index dab3491b60ea..fecc352a5e49 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/menus/legend.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/menus/legend.js @@ -65,7 +65,19 @@ function addMenu( parent, conf, schema, name ) { for ( i = 0; i < keys.length; i++ ) { k = keys[ i ]; d = def[ k ]; - if ( k === 'direction' ) { + if ( k === 'clipHeight' ) { + controller = folder.add( conf, k ) + .min( d.min ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'columnPadding' ) { + controller = folder.add( conf, k ) + .min( d.min ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'columns' ) { + controller = folder.add( conf, k ) + .min( d.min ) + .step( d.step ); + } else if ( k === 'direction' ) { controller = folder.add( conf, k, d.values ); } else if ( k === 'gradientLength' ) { controller = folder.add( conf, k ) @@ -85,6 +97,8 @@ function addMenu( parent, conf, schema, name ) { controller = folder.add( conf, k ) .min( d.min ); controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'gridAlign' ) { + controller = folder.add( conf, k, d.values ); } else if ( k === 'labelAlign' ) { controller = folder.add( conf, k, EMPTY_STRING.concat( d.values ) ); } else if ( k === 'labelBaseline' ) { @@ -121,8 +135,23 @@ function addMenu( parent, conf, schema, name ) { .min( d.min ) .step( d.step ); controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'legendX' ) { + controller = folder.add( conf, k ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'legendY' ) { + controller = folder.add( conf, k ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'offset' ) { + controller = folder.add( conf, k ); + controller.name( format( '%s (%s)', k, d.units ) ); } else if ( k === 'orient' ) { controller = folder.add( conf, k, EMPTY_STRING.concat( d.values ) ); + } else if ( k === 'padding' ) { + controller = folder.add( conf, k ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'rowPadding' ) { + controller = folder.add( conf, k ); + controller.name( format( '%s (%s)', k, d.units ) ); } else if ( k === 'symbolDash' ) { controller = folder.add( conf, k ); } else if ( k === 'symbolDashOffset' ) { @@ -192,6 +221,9 @@ function addMenu( parent, conf, schema, name ) { controller.name( format( '%s (%s)', k, d.units ) ); } else if ( k === 'type' ) { controller = folder.add( conf, k, EMPTY_STRING.concat( d.values ) ); + } else if ( k === 'zindex' ) { + controller = folder.add( conf, k ) + .step( d.step ); } else { console.log( 'Unrecognized property in editor configuration. Key: %s.', k ); continue; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/schema/transforms/legend.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/schema/transforms/legend.js index 8c97c3eb6e68..924af4a9a6cf 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/schema/transforms/legend.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/schema/transforms/legend.js @@ -30,11 +30,15 @@ var signalName = require( './../../utils/signal_name.js' ); // VARIABLES // var PROPS = [ + 'clipHeight', + 'columnPadding', + 'columns', 'gradientLength', 'gradientOpacity', 'gradientStrokeColor', 'gradientStrokeWidth', 'gradientThickness', + 'gridAlign', 'labelAlign', 'labelBaseline', 'labelColor', @@ -47,7 +51,12 @@ var PROPS = [ 'labelOpacity', 'labelOverlap', 'labelSeparation', + 'legendX', + 'legendY', + 'offset', 'orient', + 'padding', + 'rowPadding', 'symbolDash', 'symbolDashOffset', 'symbolFillColor', @@ -70,14 +79,19 @@ var PROPS = [ 'titleLineHeight', 'titleOpacity', 'titleOrient', - 'titlePadding' + 'titlePadding', + 'zindex' ]; // Define a list of properties which need to be made explicitly "undefined" when set to falsy values: var SPECIAL_PROPS = [ + 'clipHeight', + 'columns', 'labelAlign', 'labelBaseline', 'labelOverlap', + 'legendX', + 'legendY', 'titleBaseline' ]; var isSpecialProp = contains( SPECIAL_PROPS ); diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js index e3756901b522..9711ea6d5038 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js @@ -19,4 +19,4 @@ /* eslint-disable */ /* editorconfig-checker-disable-file */ -!function(){C=function(e,t){var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e);return"[object Arguments]"===t||"[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===r.call(e.callee)}};var C,R,M=function(e){return R||C(R={exports:{},parent:e},R.exports),R.exports},z="function"==typeof Object.defineProperty?Object.defineProperty:null;var U=function(){try{return z({},"x",{}),!0}catch(e){return!1}},D=Object.defineProperty;var N=function(e){return"number"==typeof e};function W(e){for(var t="",r=0;rn.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=$(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=ue(n.arg,n.width,n.padRight)),o+=n.arg||"",a+=1}return o},he=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;var ye=function(e){for(var t,r,n,i=[],o=0,a=he.exec(e);a;)(t=e.slice(o,he.lastIndex-a[0].length)).length&&i.push(t),"%"===a[6]?i.push("%"):i.push((n=void 0,n={mapping:(r=a)[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]},"."===r[4]&&void 0===r[5]&&(n.precision="1"),n)),o=he.lastIndex,a=he.exec(e);return(t=e.slice(o)).length&&i.push(t),i};var de=function(e){return"string"==typeof e};var h=function e(t){var r,n;if(!de(t))throw new TypeError(e("invalid argument. First argument must be a string. Value: `%s`.",t));for(r=[ye(t)],n=1;n=r.length?(u=!!(c=d(o,s)))&&"get"in c&&!("originalValue"in c.get)?c.get:o[s]:(u=Xt(o,s),o[s]),u&&!a&&(er[f]=o)}}return o},_r=Ht([xr("%String.prototype.indexOf%")]),Tr=yt(),Or=tr("Object.prototype.toString"),Sr=function(e){return!(Tr&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===Or(e)},vt=function(){return Sr(arguments)}(),wt=(Sr.isLegacyArguments=rr,vt?Sr:rr),Ar=yt()?(nr=tr("RegExp.prototype.exec"),ir={},or={toString:Et=function(){throw ir},valueOf:Et},"symbol"==typeof Symbol.toPrimitive&&(or[Symbol.toPrimitive]=Et),function(e){if(!e||"object"!=typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&Xt(t,"value")))return!1;try{nr(e,or)}catch(e){return e===ir}}):(ar=tr("Object.prototype.toString"),lr="[object RegExp]",function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&ar(e)===lr}),kr=tr("RegExp.prototype.exec"),Fr=function(){if(void 0===ur)try{ur=Function("return function* () {}")().constructor}catch(e){ur=!1}return ur},jr=(t=>{if(Ar(t))return function(e){return null!==kr(t,e)};throw new p("`regex` must be a RegExp")})(/^\s*(?:function)?\*/),Vr=yt(),Pr=tr("Object.prototype.toString"),Lr=tr("Function.prototype.toString"),Br=Function.prototype.toString,Ir="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Ir&&"function"==typeof Object.defineProperty)try{sr=Object.defineProperty({},"length",{get:function(){throw fr}}),fr={},Ir(function(){throw 42},null,sr)}catch(e){e!==fr&&(Ir=null)}else Ir=null;function Cr(e){try{return Mr(e)?!1:(Br.call(e),!0)}catch(e){return!1}}var Rr=/^\s*class\b/,Mr=function(e){try{var t=Br.call(e);return Rr.test(t)}catch(e){return!1}},zr=Object.prototype.toString,Ur="[object Object]",Dr="[object HTMLAllCollection]",Nr="[object HTML document.all class]",Wr="[object HTMLCollection]",$r="function"==typeof Symbol&&!!Symbol.toStringTag,Hr=!(0 in[,]),Gr=function(){return!1},Yr=("object"==typeof document&&zr.call(document.all)===zr.call(document.all)&&(Gr=function(e){if((Hr||!e)&&(void 0===e||"object"==typeof e))try{var t=zr.call(e);return(t===Dr||t===Nr||t===Wr||t===Ur)&&null==e("")}catch(e){}return!1}),Ir?function(e){if(Gr(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{Ir(e,null,sr)}catch(e){if(e!==fr)return!1}return!Mr(e)&&Cr(e)}:function(e){var t;return!!Gr(e)||!!e&&!("function"!=typeof e&&"object"!=typeof e||!$r&&(Mr(e)||"[object Function]"!==(t=zr.call(e))&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t)))&&Cr(e)}),qr=Object.prototype.toString,Jr=Object.prototype.hasOwnProperty,Xr=function(e,t,r){for(var n=0,i=e.length;n{var r;return b(t)?e.stylize("undefined","undefined"):m(t)?(r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",e.stylize(r,"string")):g(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):d(t)?e.stylize("null","null"):void 0})(t,r);if(e)return e;var i,e=Object.keys(r),o=(i={},e.forEach(function(e,t){i[e]=!0}),i);if(t.showHidden&&(e=Object.getOwnPropertyNames(r)),E(r)&&(0<=e.indexOf("message")||0<=e.indexOf("description")))return c(r);if(0===e.length){if(x(r))return a=r.name?": "+r.name:"",t.stylize("[Function"+a+"]","special");if(v(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return t.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",l=!1,u=["{","}"];if(h(r)&&(l=!0,u=["[","]"]),x(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),v(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===e.length&&(!l||0==r.length))return u[0]+a+u[1];if(n<0)return v(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r),s=l?((t,r,n,i,e)=>{for(var o=[],a=0,l=r.length;a{if("undefined"!=typeof window)for(var e in window)try{if(!li["$"+e]&&ei.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{ai(window[e])}catch(e){return!0}}catch(e){return!0}return!1})(),si=function(e){if("undefined"==typeof window||!ui)return ai(e);try{return ai(e)}catch(e){return!1}},ha=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===ti.call(e),n=ri(e),i=t&&"[object String]"===ti.call(e),o=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var a=ii&&r;if(i&&0{var r;return b(t)?e.stylize("undefined","undefined"):m(t)?(r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",e.stylize(r,"string")):g(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):d(t)?e.stylize("null","null"):void 0})(t,r);if(e)return e;var i,e=Object.keys(r),o=(i={},e.forEach(function(e,t){i[e]=!0}),i);if(t.showHidden&&(e=Object.getOwnPropertyNames(r)),E(r)&&(0<=e.indexOf("message")||0<=e.indexOf("description")))return c(r);if(0===e.length){if(x(r))return a=r.name?": "+r.name:"",t.stylize("[Function"+a+"]","special");if(v(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return t.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",l=!1,u=["{","}"];if(h(r)&&(l=!0,u=["[","]"]),x(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),v(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===e.length&&(!l||0==r.length))return u[0]+a+u[1];if(n<0)return v(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r),s=l?((t,r,n,i,e)=>{for(var o=[],a=0,l=r.length;a{var t;try{e()}catch(e){t=e}return t})(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!t&&u(t,r,"Missing expected exception"+n);var i="string"==typeof n,o=!e&&t&&!r;if((!e&&S.isError(t)&&i&&f(t,r)||o)&&u(t,r,"Got unwanted exception"+n),e&&t&&r&&!f(t,r)||!e&&t)throw t}o.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=a(l((r=this).actual),128)+" "+r.operator+" "+a(l(r.expected),128),this.generatedMessage=!0);var t,r=e.stackStartFunction||u;Error.captureStackTrace?Error.captureStackTrace(this,r):(e=new Error).stack&&(e=e.stack,t=i(r),0<=(t=e.indexOf("\n"+t))&&(t=e.indexOf("\n",t+1),e=e.substring(t+1)),this.stack=e)},S.inherits(o.AssertionError,Error),o.fail=u,o.ok=s,o.equal=function(e,t,r){e!=t&&u(e,t,r,"==",o.equal)},o.notEqual=function(e,t,r){e==t&&u(e,t,r,"!=",o.notEqual)},o.deepEqual=function(e,t,r){b(e,t,!1)||u(e,t,r,"deepEqual",o.deepEqual)},o.deepStrictEqual=function(e,t,r){b(e,t,!0)||u(e,t,r,"deepStrictEqual",o.deepStrictEqual)},o.notDeepEqual=function(e,t,r){b(e,t,!1)&&u(e,t,r,"notDeepEqual",o.notDeepEqual)},o.notDeepStrictEqual=function e(t,r,n){b(t,r,!0)&&u(t,r,n,"notDeepStrictEqual",e)},o.strictEqual=function(e,t,r){e!==t&&u(e,t,r,"===",o.strictEqual)},o.notStrictEqual=function(e,t,r){e===t&&u(e,t,r,"!==",o.notStrictEqual)},o.throws=function(e,t,r){c(!0,e,t,r)},o.doesNotThrow=function(e,t,r){c(!1,e,t,r)},o.ifError=function(e){if(e)throw e},o.strict=e(function e(t,r){t||u(t,!0,r,"==",e)},o,{equal:o.strictEqual,deepEqual:o.deepStrictEqual,notEqual:o.notStrictEqual,notDeepEqual:o.notDeepStrictEqual}),o.strict.strict=o.strict;var w=Object.keys||function(e){var t,r=[];for(t in e)n.call(e,t)&&r.push(t);return r}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),{}),Si=(!function(u){!function(){function r(){return(new Date).getTime()}for(var t=Array.prototype.slice,n={},i=void 0!==u&&u.console?u.console:"undefined"!=typeof window&&window.console?window.console:{},e=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(e){n[e]=r()},"time"],[function(e){var t=n[e];if(!t)throw new Error("No such label: "+e);delete n[e];t=r()-t;i.log(e+": "+t+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=F.format.apply(null,arguments),i.error(e.stack)},"trace"],[function(e){i.log(F.inspect(e)+"\n")},"dir"],[function(e){e||(e=t.call(arguments,1),Ti.ok(!1,F.format.apply(null,e)))},"assert"]],o=0;o