Skip to content

Commit 9de4cd7

Browse files
committed
feat: add initial axis configuration
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent adbea38 commit 9de4cd7

4 files changed

Lines changed: 158 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
/**
22+
* Editor configuration for axis properties.
23+
*
24+
* @module @stdlib/plot/vega/editor-config/axis
25+
*
26+
* @example
27+
* var config = require( '@stdlib/plot/vega/editor-config/axis' );
28+
*
29+
* var o = config();
30+
* // returns {...}
31+
*/
32+
33+
// MODULES //
34+
35+
var main = require( './main.js' );
36+
37+
38+
// EXPORTS //
39+
40+
module.exports = main;
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MAIN //
22+
23+
/**
24+
* Returns an editor configuration for title properties.
25+
*
26+
* @returns {Object} configuration
27+
*
28+
* @example
29+
* var o = config();
30+
* // returns {...}
31+
*/
32+
function config() {
33+
return {
34+
'title': {
35+
'description': 'title text',
36+
'property': 'title',
37+
'default': '',
38+
'type': 'string'
39+
},
40+
'titleOpacity': {
41+
'description': 'opacity of the title',
42+
'property': 'titleOpacity',
43+
'default': 0,
44+
'type': 'number',
45+
'min': 0,
46+
'max': 1
47+
}
48+
};
49+
}
50+
51+
52+
// EXPORTS //
53+
54+
module.exports = config;
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "@stdlib/plot/vega/editor-config/axis",
3+
"version": "0.0.0",
4+
"description": "Editor configuration for axis properties.",
5+
"license": "Apache-2.0",
6+
"author": {
7+
"name": "The Stdlib Authors",
8+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
9+
},
10+
"contributors": [
11+
{
12+
"name": "The Stdlib Authors",
13+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
14+
}
15+
],
16+
"main": "./lib",
17+
"directories": {
18+
"benchmark": "./benchmark",
19+
"doc": "./docs",
20+
"example": "./examples",
21+
"lib": "./lib",
22+
"test": "./test"
23+
},
24+
"types": "./docs/types",
25+
"scripts": {},
26+
"homepage": "https://github.com/stdlib-js/stdlib",
27+
"repository": {
28+
"type": "git",
29+
"url": "git://github.com/stdlib-js/stdlib.git"
30+
},
31+
"bugs": {
32+
"url": "https://github.com/stdlib-js/stdlib/issues"
33+
},
34+
"dependencies": {},
35+
"devDependencies": {},
36+
"engines": {
37+
"node": ">=0.10.0",
38+
"npm": ">2.7.0"
39+
},
40+
"os": [
41+
"aix",
42+
"darwin",
43+
"freebsd",
44+
"linux",
45+
"macos",
46+
"openbsd",
47+
"sunos",
48+
"win32",
49+
"windows"
50+
],
51+
"keywords": [
52+
"stdlib",
53+
"plot",
54+
"vega",
55+
"editor",
56+
"config",
57+
"configuration",
58+
"settings",
59+
"axis"
60+
],
61+
"__stdlib__": {}
62+
}

lib/node_modules/@stdlib/plot/vega/editor-config/visualization/lib/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
// MODULES //
2222

23+
var axis = require( '@stdlib/plot/vega/editor-config/axis' );
2324
var background = require( '@stdlib/plot/vega/editor-config/background' );
2425
var description = require( '@stdlib/plot/vega/editor-config/description' );
2526
var height = require( '@stdlib/plot/vega/editor-config/height' );
@@ -41,6 +42,7 @@ var width = require( '@stdlib/plot/vega/editor-config/width' );
4142
*/
4243
function config() {
4344
return {
45+
'axis': axis(),
4446
'background': background(),
4547
'description': description(),
4648
'height': height(),

0 commit comments

Comments
 (0)