From 1a98c7f4c61bf699e00b98c247d9b33302723252 Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Sat, 21 Mar 2026 01:00:09 +0530 Subject: [PATCH] feat: add plot/vega/scale/bin-ordinal --- .../vega/scale/bin-ordinal/examples/index.js | 28 +++ .../vega/scale/bin-ordinal/lib/bins/get.js | 44 ++++ .../scale/bin-ordinal/lib/bins/properties.js | 33 +++ .../vega/scale/bin-ordinal/lib/bins/set.js | 78 +++++++ .../scale/bin-ordinal/lib/change_event.js | 41 ++++ .../plot/vega/scale/bin-ordinal/lib/index.js | 42 ++++ .../plot/vega/scale/bin-ordinal/lib/main.js | 217 ++++++++++++++++++ .../scale/bin-ordinal/lib/properties.json | 15 ++ .../scale/bin-ordinal/lib/properties/get.js | 41 ++++ .../vega/scale/bin-ordinal/lib/type/get.js | 41 ++++ .../vega/scale/bin-ordinal/lib/type/set.js | 46 ++++ .../vega/scale/bin-ordinal/lib/type/type.js | 23 ++ .../plot/vega/scale/bin-ordinal/package.json | 63 +++++ 13 files changed, 712 insertions(+) create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/examples/index.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/get.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/properties.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/set.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/change_event.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/index.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/main.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/properties.json create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/properties/get.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/get.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/set.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/type.js create mode 100644 lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/package.json diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/examples/index.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/examples/index.js new file mode 100644 index 000000000000..dc4f957ce618 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/examples/index.js @@ -0,0 +1,28 @@ +/** +* @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'; + +var BinOrdinalScale = require( './../lib' ); + +var scale = new BinOrdinalScale({ + 'name': 'color', + 'bins': [0, 5, 10, 15, 20] +}); + +console.log( scale.toJSON() ); diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/get.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/get.js new file mode 100644 index 000000000000..b0a0dd555a01 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/get.js @@ -0,0 +1,44 @@ +/** +* @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. +*/ + +/* eslint-disable no-invalid-this */ + +'use strict'; + +// MODULES // + +var copy = require( '@stdlib/utils/copy' ); +var prop = require( './properties.js' ); + + +// MAIN // + +/** +* Returns bin boundaries of the scale domain. +* +* @private +* @returns {(Array|Object|void)} bin boundaries +*/ +function get() { + return copy( this[ prop.private ] ); // FIXME: can we avoid using `utils/copy` here? +} + + +// EXPORTS // + +module.exports = get; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/properties.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/properties.js new file mode 100644 index 000000000000..e6d6fbf9e27b --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/properties.js @@ -0,0 +1,33 @@ +/** +* @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 property2object = require( '@stdlib/plot/vega/base/property2object' ); + + +// MAIN // + +var obj = property2object( 'bins' ); + + +// EXPORTS // + +module.exports = obj; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/set.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/set.js new file mode 100644 index 000000000000..d6c1325c9b51 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/bins/set.js @@ -0,0 +1,78 @@ +/** +* @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. +*/ + +/* eslint-disable no-invalid-this */ + +'use strict'; + +// MODULES // + +var logger = require( 'debug' ); +var isCollection = require( '@stdlib/assert/is-collection' ); +var isUndefined = require( '@stdlib/assert/is-undefined' ); +var isObject = require( '@stdlib/assert/is-object' ); +var copyArray = require( '@stdlib/array/base/copy' ); +var copy = require( '@stdlib/utils/copy' ); +var format = require( '@stdlib/string/format' ); +var changeEvent = require( './../change_event.js' ); +var prop = require( './properties.js' ); + + +// VARIABLES // + +var debug = logger( 'vega:bin-ordinal-scale:set:'+prop.name ); + + +// MAIN // + +/** +* Sets bin boundaries over the scale domain. +* +* ## Notes +* +* - Providing `undefined` "unsets" the configured value. +* +* @private +* @param {(Collection|Object|Signal|void)} value - input value +* @throws {TypeError} must be either an array-like object or an object +* @returns {void} +*/ +function set( value ) { + var isArr = isCollection( value ); + if ( !isArr && !isObject( value ) && !isUndefined( value ) ) { + throw new TypeError( format( 'invalid assignment. `%s` must be either an array-like object or an object. Value: `%s`.', prop.name, value ) ); + } + + // FIXME: should we perform a deep equal check here in order to avoid a potential false positive change event? + + // FIXME: can we do further validation of objects (e.g., data reference or signal reference)? + + if ( isArr ) { + value = copyArray( value ); + } else { + value = copy( value ); + } + debug( 'Current value: %s. New value: %s.', JSON.stringify( this[ prop.private ] ), JSON.stringify( value ) ); + this[ prop.private ] = value; + this.emit( 'change', changeEvent( prop.name ) ); +} + + +// EXPORTS // + +module.exports = set; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/change_event.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/change_event.js new file mode 100644 index 000000000000..730718cd6454 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/change_event.js @@ -0,0 +1,41 @@ +/** +* @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'; + +// MAIN // + +/** +* Returns a new change event object. +* +* @private +* @param {string} property - property name +* @returns {Object} event object +*/ +function event( property ) { // eslint-disable-line stdlib/no-redeclare + return { + 'type': 'update', + 'source': 'scale', + 'property': property + }; +} + + +// EXPORTS // + +module.exports = event; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/index.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/index.js new file mode 100644 index 000000000000..461cb5b22bb1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/index.js @@ -0,0 +1,42 @@ +/** +* @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'; + +/** +* Bin-Ordinal scale constructor. +* +* @module @stdlib/plot/vega/scale/bin-ordinal +* +* @example +* var BinOrdinalScale = require( '@stdlib/plot/vega/scale/bin-ordinal' ); +* +* var scale = new BinOrdinalScale({ +* 'name': 'color' +* }); +* // returns +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/main.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/main.js new file mode 100644 index 000000000000..5a337d233b40 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/main.js @@ -0,0 +1,217 @@ +/** +* @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 logger = require( 'debug' ); +var isObject = require( '@stdlib/assert/is-object' ); +var hasProp = require( '@stdlib/assert/has-property' ); +var setReadWriteAccessor = require( '@stdlib/utils/define-read-write-accessor' ); +var setNonEnumerableReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var setNonEnumerableReadOnlyAccessor = require( '@stdlib/utils/define-nonenumerable-read-only-accessor' ); // eslint-disable-line id-length +var inherit = require( '@stdlib/utils/inherit' ); +var DiscretizingScale = require( '@stdlib/plot/vega/scale/discretizing' ); +var transformErrorMessage = require( '@stdlib/plot/vega/base/transform-validation-message' ); +var instance2json = require( '@stdlib/plot/vega/base/to-json' ); +var format = require( '@stdlib/string/format' ); +var properties = require( './properties.json' ); +var TYPE = require( './type/type.js' ); + +// Note: keep the following in alphabetical order according to the `require` path... +var getBins = require( './bins/get.js' ); +var setBins = require( './bins/set.js' ); + +var getProperties = require( './properties/get.js' ); + +var getType = require( './type/get.js' ); +var setType = require( './type/set.js' ); + + +// VARIABLES // + +var debug = logger( 'vega:bin-ordinal-scale:main' ); + + +// MAIN // + +/** +* Bin-Ordinal scale constructor. +* +* @constructor +* @param {Options} options - constructor options +* @param {string} options.name - scale name +* @param {(Collection|Object|Signal)} [options.bins] - bin boundaries over the scale domain +* @param {(Collection|Object|Signal)} [options.domain] - domain of associated data values +* @param {number} [options.domainMax] - maximum value in the scale domain (overrides the `domain` option) +* @param {number} [options.domainMin] - minimum value in the scale domain (overrides the `domain` option) +* @param {number} [options.domainMid] - single mid-point value inserted into a two-element domain +* @param {Collection} [options.domainRaw] - array of raw domain values which overrides the `domain` property +* @param {(string|Object)} [options.interpolate] - scale range interpolation method +* @param {(Collection|Object|Signal|string)} [options.range] - scale range +* @param {boolean} [options.reverse=false] - boolean indicating whether to reverse the order of the scale range +* @param {boolean} [options.round=false] - boolean indicating whether to round numeric output values to integers +* @throws {TypeError} options argument must be an object +* @throws {Error} must provide valid options +* @returns {BinOrdinalScale} scale instance +* +* @example +* var scale = new BinOrdinalScale({ +* 'name': 'color' +* }); +* // returns +*/ +function BinOrdinalScale( options ) { + var v; + var k; + var i; + if ( !( this instanceof BinOrdinalScale ) ) { + return new BinOrdinalScale( options ); + } + if ( !isObject( options ) ) { + throw new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', options ) ); + } + if ( hasProp( options, 'type' ) && options.type !== TYPE ) { + throw new TypeError( format( 'invalid argument. `%s` option must be equal to "%s". Option: `%s`.', 'type', TYPE, options.type ) ); + } + // Check for required properties... + if ( !hasProp( options, 'name' ) ) { + throw new TypeError( 'invalid argument. Options argument must specify the scale name.' ); + } + DiscretizingScale.call( this, { + 'name': options.name + }); + this._type = TYPE; + + // Validate provided options by attempting to assign option values to corresponding fields... + for ( i = 0; i < properties.length; i++ ) { + k = properties[ i ]; + if ( !hasProp( options, k ) ) { + continue; + } + v = options[ k ]; + try { + this[ k ] = v; + } catch ( err ) { + debug( 'Encountered an error. Error: %s', err.message ); + + // FIXME: retain thrown error type + throw new Error( transformErrorMessage( err.message ) ); + } + } + return this; +} + +/* +* Inherit from a parent prototype. +*/ +inherit( BinOrdinalScale, DiscretizingScale ); + +/** +* Constructor name. +* +* @private +* @name name +* @memberof BinOrdinalScale +* @readonly +* @type {string} +*/ +setNonEnumerableReadOnly( BinOrdinalScale, 'name', 'BinOrdinalScale' ); + +/** +* Bins boundaries of the scale domain. +* +* @name bins +* @memberof BinOrdinalScale.prototype +* @type {(Array|Object|Signal|void)} +* +* @example +* var scale = new BinOrdinalScale({ +* 'name': 'color', +* 'bins': [ 0, 5, 10, 15, 20 ] +* }); +* +* var v = scale.bins; +* // returns [ 0, 5, 10, 15, 20 ] +*/ +setReadWriteAccessor( BinOrdinalScale.prototype, 'bins', getBins, setBins ); + +/** +* Scale properties. +* +* @name properties +* @memberof BinOrdinalScale.prototype +* @type {Array} +* +* @example +* var scale = new BinOrdinalScale({ +* 'name': 'color' +* }); +* +* var v = scale.properties; +* // returns [...] +*/ +setNonEnumerableReadOnlyAccessor( BinOrdinalScale.prototype, 'properties', getProperties ); + +/** +* Scale type. +* +* @name type +* @memberof BinOrdinalScale.prototype +* @type {string} +* @default 'bin-ordinal' +* +* @example +* var scale = new BinOrdinalScale({ +* 'name': 'color' +* }); +* +* var v = scale.type; +* // returns 'bin-ordinal' +*/ +setReadWriteAccessor( BinOrdinalScale.prototype, 'type', getType, setType ); + +/** +* Serializes an instance to a JSON object. +* +* ## Notes +* +* - This method is implicitly invoked by `JSON.stringify`. +* +* @name toJSON +* @memberof BinOrdinalScale.prototype +* @type {Function} +* @returns {Object} JSON object +* +* @example +* var scale = new BinOrdinalScale({ +* 'name': 'color' +* }); +* +* var v = scale.toJSON(); +* // returns {...} +*/ +setNonEnumerableReadOnly( BinOrdinalScale.prototype, 'toJSON', function toJSON() { + return instance2json( this, properties ); +}); + + +// EXPORTS // + +module.exports = BinOrdinalScale; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/properties.json b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/properties.json new file mode 100644 index 000000000000..adf407f01915 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/properties.json @@ -0,0 +1,15 @@ +[ + "domain", + "domainMax", + "domainMin", + "domainMid", + "domainRaw", + "interpolate", + "name", + "range", + "reverse", + "round", + "type", + + "bins" +] diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/properties/get.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/properties/get.js new file mode 100644 index 000000000000..f3cbb28454ea --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/properties/get.js @@ -0,0 +1,41 @@ +/** +* @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 properties = require( './../properties.json' ); + + +// MAIN // + +/** +* Returns the list of enumerable properties. +* +* @private +* @returns {Array} properties +*/ +function get() { + return properties.slice(); +} + + +// EXPORTS // + +module.exports = get; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/get.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/get.js new file mode 100644 index 000000000000..b0e023118efa --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/get.js @@ -0,0 +1,41 @@ +/** +* @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 TYPE = require( './type.js' ); + + +// MAIN // + +/** +* Returns the scale type. +* +* @private +* @returns {string} scale type +*/ +function get() { + return TYPE; +} + + +// EXPORTS // + +module.exports = get; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/set.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/set.js new file mode 100644 index 000000000000..d14f0839d329 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/set.js @@ -0,0 +1,46 @@ +/** +* @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 format = require( '@stdlib/string/format' ); +var TYPE = require( './type.js' ); + + +// MAIN // + +/** +* Sets the scale type. +* +* @private +* @param {string} value - input value +* @throws {TypeError} must be a valid scale +* @returns {void} +*/ +function set( value ) { + if ( value !== TYPE ) { + throw new TypeError( format( 'invalid assignment. `%s` must be equal to "%s". Value: `%s`.', 'type', TYPE, value ) ); + } +} + + +// EXPORTS // + +module.exports = set; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/type.js b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/type.js new file mode 100644 index 000000000000..4433666afd12 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/lib/type/type.js @@ -0,0 +1,23 @@ +/** +* @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'; + +// EXPORTS // + +module.exports = 'bin-ordinal'; diff --git a/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/package.json b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/package.json new file mode 100644 index 000000000000..c4dbc4b8a91c --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/scale/bin-ordinal/package.json @@ -0,0 +1,63 @@ +{ + "name": "@stdlib/plot/vega/scale/bin-ordinal", + "version": "0.0.0", + "description": "Bin-Ordinal scale constructor.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "plot", + "vega", + "scale", + "discretizing", + "categorical", + "bin-ordinal", + "constructor", + "ctor" + ], + "__stdlib__": {} +}