Skip to content

Commit 5eaa1e5

Browse files
author
cranko
committed
Release commit created with Cranko.
+++ cranko-release-info-v1 [[projects]] qnames = ["@wwtelescope/research-app-messages", "npm"] version = "0.21.0" age = 1 [[projects]] qnames = ["@wwtelescope/engine-types", "npm"] version = "0.9.0" age = 1 [[projects]] qnames = ["@wwtelescope/engine", "npm"] version = "7.35.0" age = 0 [[projects]] qnames = ["@wwtelescope/embed-common", "npm"] version = "0.3.6" age = 7 [[projects]] qnames = ["@wwtelescope/embed-creator", "npm"] version = "0.5.5" age = 1 [[projects]] qnames = ["@wwtelescope/astro", "npm"] version = "0.3.3" age = 1 [[projects]] qnames = ["@wwtelescope/engine-helpers", "npm"] version = "0.17.0" age = 5 [[projects]] qnames = ["@wwtelescope/engine-pinia", "npm"] version = "0.14.0" age = 1 [[projects]] qnames = ["@wwtelescope/ui-components", "npm"] version = "0.1.4" age = 1 [[projects]] qnames = ["@wwtelescope/research-app", "npm"] version = "0.21.0" age = 1 [[projects]] qnames = ["@wwtelescope/embed", "npm"] version = "1.7.5" age = 1 +++
2 parents e191057 + 8205921 commit 5eaa1e5

7 files changed

Lines changed: 42 additions & 9 deletions

File tree

docs/engine/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ stylesheets = ["extras.css"]
1313

1414
# This is temporary - see https://github.com/WorldWideTelescope/wwt-webgl-engine/issues/345
1515
[link_checker]
16-
skip_prefixes = ["https://npmjs.com"]
16+
skip_prefixes = ["https://npmjs.com", "https://www.khronos.org/webgl/"]

docs/research-app/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ stylesheets = ["extras.css"]
1313

1414
# This is temporary - see https://github.com/WorldWideTelescope/wwt-webgl-engine/issues/345
1515
[link_checker]
16-
skip_prefixes = ["https://www.npmjs.com"]
16+
skip_prefixes = ["https://www.npmjs.com", "https://www.khronos.org/webgl/"]

engine/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# @wwtelescope/engine 7.35.0 (2026-05-08)
2+
3+
- Add functionality for displaying a context menu for grids. This is intended to
4+
facilitate allowing users to change grid colors in the web client (#385, @Carifio24).
5+
- Account for WWT's internal left-handed coordinate system when finding a screen
6+
point for coordinates in 3D (#383, @Carifio24).
7+
8+
19
# @wwtelescope/engine 7.34.0 (2026-04-28)
210

311
- Distinguish between 'cancel' and 'close' buttons for closing simple

engine/esm/layers/layer_manager.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,17 @@ LayerManager.showLayerMenu = function (selected, x, y) {
11961196
}
11971197
};
11981198

1199+
LayerManager.showGridMenu = function (gridName, x, y) {
1200+
var position = Vector2d.create(x, y);
1201+
LayerManager._lastMenuClick = position;
1202+
LayerManager._selectedGrid = gridName;
1203+
LayerManager._contextMenu = new ContextMenuStrip();
1204+
var colorMenu = ToolStripMenuItem.create(Language.getLocalizedText(458, 'Color/Opacity'));
1205+
colorMenu.click = LayerManager._gridColorMenu_Click;
1206+
LayerManager._contextMenu.items.push(colorMenu);
1207+
LayerManager._contextMenu._show(position);
1208+
};
1209+
11991210
LayerManager._publishMenu_Click = function (sender, e) { };
12001211

12011212
LayerManager._addGirdLayer_Click = function (sender, e) {
@@ -1343,6 +1354,19 @@ LayerManager._colorMenu_Click = function (sender, e) {
13431354
picker.show(e);
13441355
};
13451356

1357+
LayerManager._gridColorMenu_Click = function (sender, e) {
1358+
var grid = LayerManager._selectedGrid;
1359+
var picker = new ColorPicker();
1360+
var currentColor = Settings.get_active()[`get_${grid}Color`]();
1361+
if (currentColor != null) {
1362+
picker.color = currentColor;
1363+
}
1364+
picker.callBack = function () {
1365+
Settings.get_active()[`set_${grid}Color`](picker.color);
1366+
};
1367+
picker.show(e);
1368+
}
1369+
13461370
LayerManager._addMenu_Click = function (sender, e) { };
13471371

13481372
LayerManager._deleteMenu_Click = function (sender, e) {

engine/esm/wwt_control.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,8 @@ var WWTControl$ = {
16221622
x += 180;
16231623
cartesian = Coordinates.geoTo3d(y, x);
16241624
} else if (this.get_solarSystemMode()) {
1625-
cartesian = Vector3d.create(x, y, z);
1625+
// In 3D mode, points are displayed with (X, Z, Y) coordinates
1626+
cartesian = Vector3d.create(x, z, y);
16261627
} else {
16271628
var pt = Vector2d.create(x, y);
16281629
cartesian = Coordinates.sphericalSkyToCartesian(pt);

engine/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@
5656
"tscheck": "tsc"
5757
},
5858
"types": "./src/index.d.ts",
59-
"version": "7.34.0"
59+
"version": "7.35.0"
6060
}

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,7 +2103,7 @@ __metadata:
21032103
languageName: node
21042104
linkType: hard
21052105

2106-
"acorn@npm:^8.11.0, acorn@npm:^8.14.1":
2106+
"acorn@npm:^8.11.0":
21072107
version: 8.15.0
21082108
resolution: "acorn@npm:8.15.0"
21092109
bin:
@@ -11642,14 +11642,14 @@ __metadata:
1164211642
linkType: hard
1164311643

1164411644
"vm2@npm:^3.9.17":
11645-
version: 3.10.3
11646-
resolution: "vm2@npm:3.10.3"
11645+
version: 3.11.2
11646+
resolution: "vm2@npm:3.11.2"
1164711647
dependencies:
11648-
acorn: ^8.14.1
11648+
acorn: ^8.15.0
1164911649
acorn-walk: ^8.3.4
1165011650
bin:
1165111651
vm2: bin/vm2
11652-
checksum: 69540bc1509c33d278ebd6bc73230af8694ef26bfa040e5f3ba27d06162c5727f9399ccdba7319802008a902110692a8253da60ba9350ba57239ec4afe519624
11652+
checksum: 8f2064b207d6d97d11be472b1b4365b19546d9a2fc9f3bbade4bb19f70779dd24c2a2cf4afde136bda7e1d2b1bf131fe47187c6417247609de5722dad6d33db6
1165311653
languageName: node
1165411654
linkType: hard
1165511655

0 commit comments

Comments
 (0)