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 65bd5166e662..0a560d98c12d 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 @@ -33,7 +33,9 @@ var PROPS = [ 'clipHeight', 'columnPadding', 'columns', + 'cornerRadius', 'direction', + 'fillColor', 'format', 'formatType', 'gradientLength', @@ -60,6 +62,7 @@ var PROPS = [ 'orient', 'padding', 'rowPadding', + 'strokeColor', 'symbolDashOffset', 'symbolFillColor', 'symbolLimit', 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 e6f3a46c8aa2..23c216b24833 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 @@ -80,10 +80,16 @@ function addMenu( parent, conf, schema, name ) { controller = folder.add( conf, k ) .min( d.min ) .step( d.step ); + } else if ( k === 'cornerRadius' ) { + controller = folder.add( conf, k ) + .min( d.min ); + controller.name( format( '%s (%s)', k, d.units ) ); } else if ( k === 'direction' ) { controller = folder.add( conf, k, d.values ); } else if ( k === 'fill' ) { controller = folder.add( conf, k, EMPTY_STRING.concat( resolveSchemaValues( schema, 'scales.*.name' ) ) ); + } else if ( k === 'fillColor' ) { + controller = folder.addColor( conf, k ); } else if ( k === 'format' ) { controller = folder.add( conf, k ); } else if ( k === 'formatType' ) { @@ -169,6 +175,8 @@ function addMenu( parent, conf, schema, name ) { controller = folder.add( conf, k, EMPTY_STRING.concat( resolveSchemaValues( schema, 'scales.*.name' ) ) ); } else if ( k === 'stroke' ) { controller = folder.add( conf, k, EMPTY_STRING.concat( resolveSchemaValues( schema, 'scales.*.name' ) ) ); + } else if ( k === 'strokeColor' ) { + controller = folder.addColor( conf, k ); } else if ( k === 'strokeDash' ) { controller = folder.add( conf, k, EMPTY_STRING.concat( resolveSchemaValues( schema, 'scales.*.name' ) ) ); } else if ( k === 'strokeWidth' ) { 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 9878fb6098aa..205f6b4f5744 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 @@ -33,7 +33,9 @@ var PROPS = [ 'clipHeight', 'columnPadding', 'columns', + 'cornerRadius', 'fill', + 'fillColor', 'format', 'formatType', 'gradientLength', @@ -64,6 +66,7 @@ var PROPS = [ 'shape', 'size', 'stroke', + 'strokeColor', 'strokeDash', 'strokeWidth', 'symbolDash', @@ -99,6 +102,7 @@ var PROPS = [ var SPECIAL_PROPS = [ 'clipHeight', 'columns', + 'cornerRadius', 'fill', 'format', 'formatType', 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 aa0c8fddd739..39659bdc1088 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(){I=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 I,R,z=function(e){return R||I(R={exports:{},parent:e},R.exports),R.exports},M="function"==typeof Object.defineProperty?Object.defineProperty:null;var D=function(){try{return M({},"x",{}),!0}catch(e){return!1}},U=Object.defineProperty;var W=function(e){return"number"==typeof e};function N(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=se(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 de=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 ye=function(e){return"string"==typeof e};var h=function e(t){var r,n;if(!ye(t))throw new TypeError(e("invalid argument. First argument must be a string. Value: `%s`.",t));for(r=[de(t)],n=1;n=r.length?(s=!!(c=y(o,u)))&&"get"in c&&!("originalValue"in c.get)?c.get:o[u]:(s=Xt(o,u),o[u]),s&&!a&&(er[f]=o)}}return o},_r=Ht([xr("%String.prototype.indexOf%")]),Tr=dt(),Sr=tr("Object.prototype.toString"),Or=function(e){return!(Tr&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===Sr(e)},vt=function(){return Or(arguments)}(),wt=(Or.isLegacyArguments=rr,vt?Or:rr),Ar=dt()?(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=y(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===sr)try{sr=Function("return function* () {}")().constructor}catch(e){sr=!1}return sr},jr=(t=>{if(Ar(t))return function(e){return null!==kr(t,e)};throw new p("`regex` must be a RegExp")})(/^\s*(?:function)?\*/),Pr=dt(),Vr=tr("Object.prototype.toString"),Lr=tr("Function.prototype.toString"),Br=Function.prototype.toString,Cr="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Cr&&"function"==typeof Object.defineProperty)try{ur=Object.defineProperty({},"length",{get:function(){throw fr}}),fr={},Cr(function(){throw 42},null,ur)}catch(e){e!==fr&&(Cr=null)}else Cr=null;function Ir(e){try{return zr(e)?!1:(Br.call(e),!0)}catch(e){return!1}}var Rr=/^\s*class\b/,zr=function(e){try{var t=Br.call(e);return Rr.test(t)}catch(e){return!1}},Mr=Object.prototype.toString,Dr="[object Object]",Ur="[object HTMLAllCollection]",Wr="[object HTML document.all class]",Nr="[object HTMLCollection]",$r="function"==typeof Symbol&&!!Symbol.toStringTag,Hr=!(0 in[,]),Yr=function(){return!1},Gr=("object"==typeof document&&Mr.call(document.all)===Mr.call(document.all)&&(Yr=function(e){if((Hr||!e)&&(void 0===e||"object"==typeof e))try{var t=Mr.call(e);return(t===Ur||t===Wr||t===Nr||t===Dr)&&null==e("")}catch(e){}return!1}),Cr?function(e){if(Yr(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{Cr(e,null,ur)}catch(e){if(e!==fr)return!1}return!zr(e)&&Ir(e)}:function(e){var t;return!!Yr(e)||!!e&&!("function"!=typeof e&&"object"!=typeof e||!$r&&(zr(e)||"[object Function]"!==(t=Mr.call(e))&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t)))&&Ir(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"):d(t)?e.stylize(""+t,"boolean"):y(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,s=["{","}"];if(h(r)&&(l=!0,s=["[","]"]),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 s[0]+a+s[1];if(n<0)return v(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r),u=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})(),ui=function(e){if("undefined"==typeof window||!si)return ai(e);try{return ai(e)}catch(e){return!1}},ma=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"):d(t)?e.stylize(""+t,"boolean"):y(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,s=["{","}"];if(h(r)&&(l=!0,s=["[","]"]),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 s[0]+a+s[1];if(n<0)return v(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r),u=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&&s(t,r,"Missing expected exception"+n);var i="string"==typeof n,o=!e&&t&&!r;if((!e&&O.isError(t)&&i&&f(t,r)||o)&&s(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||s;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)},O.inherits(o.AssertionError,Error),o.fail=s,o.ok=u,o.equal=function(e,t,r){e!=t&&s(e,t,r,"==",o.equal)},o.notEqual=function(e,t,r){e==t&&s(e,t,r,"!=",o.notEqual)},o.deepEqual=function(e,t,r){b(e,t,!1)||s(e,t,r,"deepEqual",o.deepEqual)},o.deepStrictEqual=function(e,t,r){b(e,t,!0)||s(e,t,r,"deepStrictEqual",o.deepStrictEqual)},o.notDeepEqual=function(e,t,r){b(e,t,!1)&&s(e,t,r,"notDeepEqual",o.notDeepEqual)},o.notDeepStrictEqual=function e(t,r,n){b(t,r,!0)&&s(t,r,n,"notDeepStrictEqual",e)},o.strictEqual=function(e,t,r){e!==t&&s(e,t,r,"===",o.strictEqual)},o.notStrictEqual=function(e,t,r){e===t&&s(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||s(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:{}),{}),Oi=(!function(s){!function(){function r(){return(new Date).getTime()}for(var t=Array.prototype.slice,n={},i=void 0!==s&&s.console?s.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