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 45b4edfd25bd..6bd63a7ba459 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 @@ -44,6 +44,15 @@ var PROPS = [ 'labelOverlap', 'labelSeparation', 'orient', + 'symbolDashOffset', + 'symbolFillColor', + 'symbolLimit', + 'symbolOffset', + 'symbolOpacity', + 'symbolSize', + 'symbolStrokeColor', + 'symbolStrokeWidth', + 'symbolType', 'titleAlign', 'titleAnchor', 'titleBaseline', @@ -59,7 +68,9 @@ var PROPS = [ 'titlePadding', 'type' ]; -var ARRAY_PROPS = []; +var ARRAY_PROPS = [ + 'symbolDash' +]; var SCHEMA_PROPS = []; var TEXT_PROPS = [ 'title' 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 ef04de14fd92..1648571513d0 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 @@ -105,6 +105,34 @@ function addMenu( parent, conf, schema, name ) { 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 === 'symbolDash' ) { + controller = folder.add( conf, k ); + } else if ( k === 'symbolDashOffset' ) { + controller = folder.add( conf, k ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'symbolFillColor' ) { + controller = folder.addColor( conf, k ); + } else if ( k === 'symbolLimit' ) { + controller = folder.add( conf, k ); + } else if ( k === 'symbolOffset' ) { + controller = folder.add( conf, k ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'symbolOpacity' ) { + controller = folder.add( conf, k ) + .min( d.min ) + .max( d.max ); + } else if ( k === 'symbolSize' ) { + controller = folder.add( conf, k ) + .min( d.min ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'symbolStrokeColor' ) { + controller = folder.addColor( conf, k ); + } else if ( k === 'symbolStrokeWidth' ) { + controller = folder.add( conf, k ) + .min( d.min ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'symbolType' ) { + controller = folder.add( conf, k, d.values ); } else if ( k === 'title' ) { controller = folder.add( conf, k ); } else if ( k === 'titleAlign' ) { 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 16b631602c9a..0babfae291b3 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 @@ -43,6 +43,16 @@ var PROPS = [ 'labelOverlap', 'labelSeparation', 'orient', + 'symbolDash', + 'symbolDashOffset', + 'symbolFillColor', + 'symbolLimit', + 'symbolOffset', + 'symbolOpacity', + 'symbolSize', + 'symbolStrokeColor', + 'symbolStrokeWidth', + 'symbolType', 'title', 'titleAlign', 'titleAnchor', diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash-offset/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash-offset/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash-offset/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash-offset/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash-offset/main.js new file mode 100644 index 000000000000..b2afce7e81d1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash-offset/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).toNumber; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolDashOffset', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash-offset/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash-offset/schema.json new file mode 100644 index 000000000000..20c8c23dd7d8 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash-offset/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolDashOffset", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash/main.js new file mode 100644 index 000000000000..03adf8c34f30 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).toIntegerArray; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolDash', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash/schema.json new file mode 100644 index 000000000000..f383769d2b52 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-dash/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolDash", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-fill-color/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-fill-color/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-fill-color/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-fill-color/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-fill-color/main.js new file mode 100644 index 000000000000..b6189f2be368 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-fill-color/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).empty2undefined; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolFillColor', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-fill-color/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-fill-color/schema.json new file mode 100644 index 000000000000..0089df49f302 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-fill-color/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolFillColor", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-limit/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-limit/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-limit/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-limit/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-limit/main.js new file mode 100644 index 000000000000..3076589b84d6 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-limit/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).toNumber; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolLimit', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-limit/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-limit/schema.json new file mode 100644 index 000000000000..973df0990d67 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-limit/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolLimit", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-offset/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-offset/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-offset/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-offset/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-offset/main.js new file mode 100644 index 000000000000..0aa7f2be03fd --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-offset/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).toNumber; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolOffset', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-offset/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-offset/schema.json new file mode 100644 index 000000000000..0e2b2992b410 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-offset/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolOffset", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-opacity/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-opacity/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-opacity/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-opacity/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-opacity/main.js new file mode 100644 index 000000000000..3ad04339215c --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-opacity/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).toNumber; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolOpacity', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-opacity/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-opacity/schema.json new file mode 100644 index 000000000000..182de7209eda --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-opacity/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolOpacity", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-size/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-size/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-size/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-size/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-size/main.js new file mode 100644 index 000000000000..8850bb085748 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-size/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).toNumber; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolSize', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-size/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-size/schema.json new file mode 100644 index 000000000000..0e4bf3bdcf2d --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-size/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolSize", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-color/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-color/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-color/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-color/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-color/main.js new file mode 100644 index 000000000000..5931f002f3ca --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-color/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).empty2undefined; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolStrokeColor', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-color/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-color/schema.json new file mode 100644 index 000000000000..ae7827a48b58 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-color/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolStrokeColor", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-width/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-width/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-width/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-width/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-width/main.js new file mode 100644 index 000000000000..f7925502eb56 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-width/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).toNumber; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolStrokeWidth', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-width/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-width/schema.json new file mode 100644 index 000000000000..23c8c6b6e2ef --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-stroke-width/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolStrokeWidth", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-type/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-type/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-type/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-type/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-type/main.js new file mode 100644 index 000000000000..87b540c89ef5 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-type/main.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); +var transform = require( './../../transforms.js' ).empty2undefined; + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'legends', ':legend' ], 'symbolType', transform ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-type/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-type/schema.json new file mode 100644 index 000000000000..c7d38d2c181a --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/legends/symbol-type/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/legends/:legend/symbolType", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/index.js index 1c6eaeabb1cd..bc4c4fc73d1c 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/index.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/index.js @@ -124,6 +124,16 @@ var legendsLabelOpacity = require( './config/legends/label-opacity' ); var legendsLabelOverlap = require( './config/legends/label-overlap' ); var legendsLabelSeparation = require( './config/legends/label-separation' ); var legendsOrient = require( './config/legends/orient' ); +var legendsSymbolDash = require( './config/legends/symbol-dash' ); +var legendsSymbolDashOffset = require( './config/legends/symbol-dash-offset' ); +var legendsSymbolFillColor = require( './config/legends/symbol-fill-color' ); +var legendsSymbolLimit = require( './config/legends/symbol-limit' ); +var legendsSymbolOffset = require( './config/legends/symbol-offset' ); +var legendsSymbolOpacity = require( './config/legends/symbol-opacity' ); +var legendsSymbolSize = require( './config/legends/symbol-size' ); +var legendsSymbolStrokeColor = require( './config/legends/symbol-stroke-color' ); +var legendsSymbolStrokeWidth = require( './config/legends/symbol-stroke-width' ); +var legendsSymbolType = require( './config/legends/symbol-type' ); var legendsTitle = require( './config/legends/title' ); var legendsTitleAlign = require( './config/legends/title-align' ); var legendsTitleAnchor = require( './config/legends/title-anchor' ); @@ -296,6 +306,16 @@ function register( router ) { router.route( legendsLabelOverlap() ); // /config/legends/:legend/labelOverlap router.route( legendsLabelSeparation() ); // /config/legends/:legend/labelSeparation router.route( legendsOrient() ); // /config/legends/:legend/orient + router.route( legendsSymbolDash() ); // /config/legends/:legend/symbolDash + router.route( legendsSymbolDashOffset() ); // /config/legends/:legend/symbolDashOffset + router.route( legendsSymbolFillColor() ); // /config/legends/:legend/symbolFillColor + router.route( legendsSymbolLimit() ); // /config/legends/:legend/symbolLimit + router.route( legendsSymbolOffset() ); // /config/legends/:legend/symbolOffset + router.route( legendsSymbolOpacity() ); // /config/legends/:legend/symbolOpacity + router.route( legendsSymbolSize() ); // /config/legends/:legend/symbolSize + router.route( legendsSymbolStrokeColor() ); // /config/legends/:legend/symbolStrokeColor + router.route( legendsSymbolStrokeWidth() ); // /config/legends/:legend/symbolStrokeWidth + router.route( legendsSymbolType() ); // /config/legends/:legend/symbolType router.route( legendsTitle() ); // /config/legends/:legend/title router.route( legendsTitleAlign() ); // /config/legends/:legend/titleAlign router.route( legendsTitleAnchor() ); // /config/legends/:legend/titleAnchor diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/legend/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/legend/lib/main.js index e34f59beddd8..7aa1eaba0b4f 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/legend/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/legend/lib/main.js @@ -31,6 +31,7 @@ var axisLabelOverlaps = require( '@stdlib/plot/vega/axis/label-overlaps' ); var legendDirections = require( '@stdlib/plot/vega/legend/directions' ); var legendOrientations = require( '@stdlib/plot/vega/legend/orientations' ); var legendTypes = require( '@stdlib/plot/vega/legend/types' ); +var symbolMarkShapes = require( '@stdlib/plot/vega/mark/symbol/shapes' ); var titleOrientations = require( '@stdlib/plot/vega/title/orientations' ); @@ -150,6 +151,75 @@ function config() { 'type': 'oneOf', 'values': legendOrientations() }, + 'symbolDash': { + 'description': 'stroke dash of legend symbols', + 'property': 'symbolDash', + 'default': '', + 'type': 'string' + }, + 'symbolDashOffset': { + 'description': 'pixel offset at which to start a legend symbol stroke dash', + 'property': 'symbolDashOffset', + 'default': 0, + 'units': 'px', + 'type': 'number' + }, + 'symbolFillColor': { + 'description': 'fill color of legend symbols', + 'property': 'symbolFillColor', + 'default': '#000', + 'type': 'color' + }, + 'symbolLimit': { + 'description': 'maximum number of allowed entries for a symbol legend', + 'property': 'symbolLimit', + 'default': 30, + 'type': 'number' + }, + 'symbolOffset': { + 'description': 'horizontal pixel offset for legend symbols', + 'property': 'symbolOffset', + 'default': 0, + 'units': 'px', + 'type': 'number' + }, + 'symbolOpacity': { + 'description': 'opacity of legend symbols', + 'property': 'symbolOpacity', + 'default': 1, + 'min': 0, + 'max': 1, + 'type': 'number' + }, + 'symbolSize': { + 'description': 'default symbol area size', + 'property': 'symbolSize', + 'default': 100, + 'min': 0, + 'units': 'px^2', + 'type': 'number' + }, + 'symbolStrokeColor': { + 'description': 'stroke color of legend symbols', + 'property': 'symbolStrokeColor', + 'default': '#000', + 'type': 'color' + }, + 'symbolStrokeWidth': { + 'description': 'stroke width of legend symbols', + 'property': 'symbolStrokeWidth', + 'default': 1.5, + 'min': 0, + 'units': 'px', + 'type': 'number' + }, + 'symbolType': { + 'description': 'default symbol shape type for legend entries', + 'property': 'symbolType', + 'default': 'circle', + 'type': 'oneOf', + 'values': symbolMarkShapes() + }, 'title': { 'description': 'legend title text', 'property': 'title',