From 5258d84f14e87d8c2242f062f746f77264461d5c Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Wed, 31 Dec 2025 15:54:46 +0530 Subject: [PATCH 1/8] feat: add support for various axis title properties --- .../@stdlib/plot/vega/axis/ctor/lib/main.js | 64 ++++++++++++++++++ .../plot/vega/axis/ctor/lib/title-x/get.js | 43 ++++++++++++ .../vega/axis/ctor/lib/title-x/properties.js | 33 +++++++++ .../plot/vega/axis/ctor/lib/title-x/set.js | 67 +++++++++++++++++++ .../plot/vega/axis/ctor/lib/title-y/get.js | 43 ++++++++++++ .../vega/axis/ctor/lib/title-y/properties.js | 33 +++++++++ .../plot/vega/axis/ctor/lib/title-y/set.js | 67 +++++++++++++++++++ .../plot/vega/axis/ctor/lib/translate/get.js | 43 ++++++++++++ .../axis/ctor/lib/translate/properties.js | 33 +++++++++ .../plot/vega/axis/ctor/lib/translate/set.js | 61 +++++++++++++++++ 10 files changed, 487 insertions(+) create mode 100644 lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/get.js create mode 100644 lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/properties.js create mode 100644 lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/set.js create mode 100644 lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/get.js create mode 100644 lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/properties.js create mode 100644 lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/set.js create mode 100644 lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js create mode 100644 lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/properties.js create mode 100644 lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/set.js diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js index 5e42c7cac871..edaabefcbcd6 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js @@ -197,6 +197,13 @@ var getTitleOpacity = require( './title-opacity/get.js' ); var setTitleOpacity = require( './title-opacity/set.js' ); var getTitlePadding = require( './title-padding/get.js' ); var setTitlePadding = require( './title-padding/set.js' ); +var getTitleX = require( './title-x/get.js' ); +var setTitleX = require( './title-x/set.js' ); +var getTitleY = require( './title-y/get.js' ); +var setTitleY = require( './title-y/set.js' ); + +var getTranslate = require( './translate/get.js' ); +var setTranslate = require( './translate/set.js' ); var getZIndex = require( './zindex/get.js' ); var setZIndex = require( './zindex/set.js' ); @@ -1800,6 +1807,63 @@ setReadWriteAccessor( Axis.prototype, 'titleOpacity', getTitleOpacity, setTitleO */ setReadWriteAccessor( Axis.prototype, 'titlePadding', getTitlePadding, setTitlePadding ); +/** +* Custom X position of the axis title relative to the axis group. +* +* @name titleX +* @memberof Axis.prototype +* @type {(void|number)} +* +* @example +* var axis = new Axis({ +* 'scale': 'xScale', +* 'orient': 'bottom', +* 'titleX': 5 +* }); +* +* var v = axis.titleX; +* // returns 5 +*/ +setReadWriteAccessor( Axis.prototype, 'titleX', getTitleX, setTitleX ); + +/** +* Custom Y position of the axis title relative to the axis group. +* +* @name titleY +* @memberof Axis.prototype +* @type {(void|number)} +* +* @example +* var axis = new Axis({ +* 'scale': 'xScale', +* 'orient': 'bottom', +* 'titleY': 5 +* }); +* +* var v = axis.titleY; +* // returns 5 +*/ +setReadWriteAccessor( Axis.prototype, 'titleY', getTitleY, setTitleY ); + +/** +* Coordinate space translation offset for axis layout. +* +* @name translate +* @memberof Axis.prototype +* @type {number} +* +* @example +* var axis = new Axis({ +* 'scale': 'xScale', +* 'orient': 'bottom', +* 'translate': 1 +* }); +* +* var v = axis.translate; +* // returns 1 +*/ +setReadWriteAccessor( Axis.prototype, 'translate', getTranslate, setTranslate ); + /** * Integer z-index indicating the layering of the title group relative to other axis, mark, and legend groups. * diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/get.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/get.js new file mode 100644 index 000000000000..e05476c75e12 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/get.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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 prop = require( './properties.js' ); + + +// MAIN // + +/** +* Returns the custom X position of the axis title relative to the axis group. +* +* @private +* @returns {(void|number)} position +*/ +function get() { + return this[ prop.private ]; +} + + +// EXPORTS // + +module.exports = get; diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/properties.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/properties.js new file mode 100644 index 000000000000..b4127f057b5b --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/properties.js @@ -0,0 +1,33 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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( 'titleX' ); + + +// EXPORTS // + +module.exports = obj; diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/set.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/set.js new file mode 100644 index 000000000000..46e729001ae2 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/set.js @@ -0,0 +1,67 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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 isNumber = require( '@stdlib/assert/is-number' ).isPrimitive; +var isUndefined = require( '@stdlib/assert/is-undefined' ); +var format = require( '@stdlib/string/format' ); +var changeEvent = require( './../change_event.js' ); +var prop = require( './properties.js' ); + + +// VARIABLES // + +var debug = logger( 'vega:axis:set:'+prop.name ); + + +// MAIN // + +/** +* Sets the custom X position of the axis title relative to the axis group. +* +* ## Notes +* +* - Providing `undefined` "unsets" the configured value. +* - Setting the position overrides the standard layout. +* +* @private +* @param {(number|void)} value - input value +* @throws {TypeError} must be a number +* @returns {void} +*/ +function set( value ) { + if ( !isNumber( value ) && !isUndefined( value ) ) { + throw new TypeError( format( 'invalid assignment. `%s` must be a number. Value: `%s`.', prop.name, value ) ); + } + if ( value !== this[ prop.private ] ) { + debug( 'Current value: %s. New value: %s.', this[ prop.private ], value ); + this[ prop.private ] = value; + this.emit( 'change', changeEvent( prop.name ) ); + } +} + + +// EXPORTS // + +module.exports = set; diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/get.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/get.js new file mode 100644 index 000000000000..21262838a4a5 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/get.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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 prop = require( './properties.js' ); + + +// MAIN // + +/** +* Returns the custom Y position of the axis title relative to the axis group. +* +* @private +* @returns {(void|number)} position +*/ +function get() { + return this[ prop.private ]; +} + + +// EXPORTS // + +module.exports = get; diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/properties.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/properties.js new file mode 100644 index 000000000000..31376053cd76 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/properties.js @@ -0,0 +1,33 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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( 'titleY' ); + + +// EXPORTS // + +module.exports = obj; diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/set.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/set.js new file mode 100644 index 000000000000..8c8c4a7a9d4c --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/set.js @@ -0,0 +1,67 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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 isNumber = require( '@stdlib/assert/is-number' ).isPrimitive; +var isUndefined = require( '@stdlib/assert/is-undefined' ); +var format = require( '@stdlib/string/format' ); +var changeEvent = require( './../change_event.js' ); +var prop = require( './properties.js' ); + + +// VARIABLES // + +var debug = logger( 'vega:axis:set:'+prop.name ); + + +// MAIN // + +/** +* Sets the custom Y position of the axis title relative to the axis group. +* +* ## Notes +* +* - Providing `undefined` "unsets" the configured value. +* - Setting the position overrides the standard layout. +* +* @private +* @param {(number|void)} value - input value +* @throws {TypeError} must be a number +* @returns {void} +*/ +function set( value ) { + if ( !isNumber( value ) && !isUndefined( value ) ) { + throw new TypeError( format( 'invalid assignment. `%s` must be a number. Value: `%s`.', prop.name, value ) ); + } + if ( value !== this[ prop.private ] ) { + debug( 'Current value: %s. New value: %s.', this[ prop.private ], value ); + this[ prop.private ] = value; + this.emit( 'change', changeEvent( prop.name ) ); + } +} + + +// EXPORTS // + +module.exports = set; diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js new file mode 100644 index 000000000000..6802683f0b48 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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 prop = require( './properties.js' ); + + +// MAIN // + +/** +* Returns the coordinate space translation offset for axis layout. +* +* @private +* @returns {number} translation +*/ +function get() { + return this[ prop.private ]; +} + + +// EXPORTS // + +module.exports = get; diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/properties.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/properties.js new file mode 100644 index 000000000000..f7148d08eff1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/properties.js @@ -0,0 +1,33 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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( 'translate' ); + + +// EXPORTS // + +module.exports = obj; diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/set.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/set.js new file mode 100644 index 000000000000..747e47affa74 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/set.js @@ -0,0 +1,61 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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 isNumber = require( '@stdlib/assert/is-number' ).isPrimitive; +var format = require( '@stdlib/string/format' ); +var changeEvent = require( './../change_event.js' ); +var prop = require( './properties.js' ); + + +// VARIABLES // + +var debug = logger( 'vega:axis:set:'+prop.name ); + + +// MAIN // + +/** +* Sets the coordinate space translation offset for axis layout. +* +* @private +* @param {number} value - input value +* @throws {TypeError} must be a number +* @returns {void} +*/ +function set( value ) { + if ( !isNumber( value ) ) { + throw new TypeError( format( 'invalid assignment. `%s` must be a number. Value: `%s`.', prop.name, value ) ); + } + if ( value !== this[ prop.private ] ) { + debug( 'Current value: %s. New value: %s.', this[ prop.private ], value ); + this[ prop.private ] = value; + this.emit( 'change', changeEvent( prop.name ) ); + } +} + + +// EXPORTS // + +module.exports = set; From c7583c9f7a5883707e8bbc91fd0e8e8f6a64be97 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 31 Dec 2025 03:06:54 -0800 Subject: [PATCH 2/8] docs: update type Signed-off-by: Athan --- .../@stdlib/plot/vega/axis/ctor/lib/translate/get.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js index 6802683f0b48..77760662930f 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js @@ -31,7 +31,7 @@ var prop = require( './properties.js' ); * Returns the coordinate space translation offset for axis layout. * * @private -* @returns {number} translation +* @returns {(number|void)} translation */ function get() { return this[ prop.private ]; From edd137e5705aadb16d7ecadaecf4bcf792d3e663 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 31 Dec 2025 03:07:07 -0800 Subject: [PATCH 3/8] docs: update type Signed-off-by: Athan --- lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js index edaabefcbcd6..bd623cd73f94 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js @@ -1850,7 +1850,7 @@ setReadWriteAccessor( Axis.prototype, 'titleY', getTitleY, setTitleY ); * * @name translate * @memberof Axis.prototype -* @type {number} +* @type {(number|void)} * * @example * var axis = new Axis({ From 6753b700e274369dfb52e2a29d6e504adf93b6a1 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 31 Dec 2025 03:09:40 -0800 Subject: [PATCH 4/8] docs: update type Signed-off-by: Athan --- .../@stdlib/plot/vega/axis/ctor/lib/translate/get.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js index 77760662930f..6802683f0b48 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/translate/get.js @@ -31,7 +31,7 @@ var prop = require( './properties.js' ); * Returns the coordinate space translation offset for axis layout. * * @private -* @returns {(number|void)} translation +* @returns {number} translation */ function get() { return this[ prop.private ]; From f7ff98d32415877a6e0b72d6df0c707a678de6df Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 31 Dec 2025 03:10:33 -0800 Subject: [PATCH 5/8] docs: update type Signed-off-by: Athan --- lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js index bd623cd73f94..edaabefcbcd6 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js @@ -1850,7 +1850,7 @@ setReadWriteAccessor( Axis.prototype, 'titleY', getTitleY, setTitleY ); * * @name translate * @memberof Axis.prototype -* @type {(number|void)} +* @type {number} * * @example * var axis = new Axis({ From 0e7eb2f9852ff9b12866c289514ebf3dfd34d8d4 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 31 Dec 2025 03:11:35 -0800 Subject: [PATCH 6/8] Apply suggestions from code review Signed-off-by: Athan --- lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js index edaabefcbcd6..ac2cd2f9bb77 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js @@ -1808,7 +1808,7 @@ setReadWriteAccessor( Axis.prototype, 'titleOpacity', getTitleOpacity, setTitleO setReadWriteAccessor( Axis.prototype, 'titlePadding', getTitlePadding, setTitlePadding ); /** -* Custom X position of the axis title relative to the axis group. +* Custom `x` position of the axis title relative to the axis group (overrides the standard layout). * * @name titleX * @memberof Axis.prototype @@ -1827,7 +1827,7 @@ setReadWriteAccessor( Axis.prototype, 'titlePadding', getTitlePadding, setTitleP setReadWriteAccessor( Axis.prototype, 'titleX', getTitleX, setTitleX ); /** -* Custom Y position of the axis title relative to the axis group. +* Custom `y` position of the axis title relative to the axis group (overrides the standard layout). * * @name titleY * @memberof Axis.prototype From 3dd6c98fa93cbad894469b8bb5448525fa78791b Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 31 Dec 2025 03:14:19 -0800 Subject: [PATCH 7/8] Apply suggestions from code review Signed-off-by: Athan --- lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/get.js | 2 +- lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/set.js | 2 +- lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/get.js | 2 +- lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/set.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/get.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/get.js index e05476c75e12..bf35f6fa96c6 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/get.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/get.js @@ -28,7 +28,7 @@ var prop = require( './properties.js' ); // MAIN // /** -* Returns the custom X position of the axis title relative to the axis group. +* Returns the custom `x` position of the axis title relative to the axis group. * * @private * @returns {(void|number)} position diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/set.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/set.js index 46e729001ae2..0669d818c6d4 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/set.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-x/set.js @@ -38,7 +38,7 @@ var debug = logger( 'vega:axis:set:'+prop.name ); // MAIN // /** -* Sets the custom X position of the axis title relative to the axis group. +* Sets the custom `x` position of the axis title relative to the axis group. * * ## Notes * diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/get.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/get.js index 21262838a4a5..de46beb944b4 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/get.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/get.js @@ -28,7 +28,7 @@ var prop = require( './properties.js' ); // MAIN // /** -* Returns the custom Y position of the axis title relative to the axis group. +* Returns the custom `y` position of the axis title relative to the axis group. * * @private * @returns {(void|number)} position diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/set.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/set.js index 8c8c4a7a9d4c..c6c1620e7bd6 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/set.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/title-y/set.js @@ -38,7 +38,7 @@ var debug = logger( 'vega:axis:set:'+prop.name ); // MAIN // /** -* Sets the custom Y position of the axis title relative to the axis group. +* Sets the custom `y` position of the axis title relative to the axis group. * * ## Notes * From 342c914152186697db323310b855f123714a6e08 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 31 Dec 2025 03:15:09 -0800 Subject: [PATCH 8/8] Apply suggestions from code review Signed-off-by: Athan --- lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js index ac2cd2f9bb77..26114e3baf5f 100644 --- a/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/axis/ctor/lib/main.js @@ -1808,7 +1808,7 @@ setReadWriteAccessor( Axis.prototype, 'titleOpacity', getTitleOpacity, setTitleO setReadWriteAccessor( Axis.prototype, 'titlePadding', getTitlePadding, setTitlePadding ); /** -* Custom `x` position of the axis title relative to the axis group (overrides the standard layout). +* Custom `x` position of the axis title relative to the axis group. * * @name titleX * @memberof Axis.prototype @@ -1827,7 +1827,7 @@ setReadWriteAccessor( Axis.prototype, 'titlePadding', getTitlePadding, setTitleP setReadWriteAccessor( Axis.prototype, 'titleX', getTitleX, setTitleX ); /** -* Custom `y` position of the axis title relative to the axis group (overrides the standard layout). +* Custom `y` position of the axis title relative to the axis group. * * @name titleY * @memberof Axis.prototype