geokernel-electron 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/GeoKernel.Core.dll +0 -0
- package/bin/GeoKernel.Formats.dll +0 -0
- package/bin/GeoKernel.Viewer.dll +0 -0
- package/bin/Qt6Svg.dll +0 -0
- package/bin/plugins/iconengines/qsvgicon.dll +0 -0
- package/bin/plugins/imageformats/qico.dll +0 -0
- package/bin/plugins/imageformats/qsvg.dll +0 -0
- package/bin/plugins/platforms/qwindows.dll +0 -0
- package/bin/plugins/tls/qcertonlybackend.dll +0 -0
- package/bin/plugins/tls/qopensslbackend.dll +0 -0
- package/bin/plugins/tls/qschannelbackend.dll +0 -0
- package/package.json +1 -1
- package/src/native-signatures.js +1 -0
- package/src/runtime.js +13 -3
- package/src/viewer.js +5 -0
package/bin/GeoKernel.Core.dll
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/GeoKernel.Viewer.dll
CHANGED
|
Binary file
|
package/bin/Qt6Svg.dll
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/src/native-signatures.js
CHANGED
|
@@ -186,6 +186,7 @@ const SIGNATURES = Object.freeze({
|
|
|
186
186
|
"GeoKernelViewer_SetLayerVisible": ["bool", ["void_p", "int", "bool"]],
|
|
187
187
|
"GeoKernelViewer_SetLayerVisibleScaleRange": ["bool", ["void_p", "int", "double", "double"]],
|
|
188
188
|
"GeoKernelViewer_SetLicenseKey": ["void", ["void_p", "wchar_p"]],
|
|
189
|
+
"GeoKernelViewer_SetLicenseManagerUrl": ["void", ["void_p", "wchar_p"]],
|
|
189
190
|
"GeoKernelViewer_SetLoggingModeName": ["void", ["void_p", "wchar_p"]],
|
|
190
191
|
"GeoKernelViewer_SetMapBackgroundColor": ["void", ["void_p", "int"]],
|
|
191
192
|
"GeoKernelViewer_SetMapStyleName": ["bool", ["void_p", "wchar_p", "bool"]],
|
package/src/runtime.js
CHANGED
|
@@ -33,6 +33,10 @@ function prependPath(value) {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
function firstExistingDirectory(candidates) {
|
|
37
|
+
return candidates.find((candidate) => fs.existsSync(candidate) && fs.statSync(candidate).isDirectory());
|
|
38
|
+
}
|
|
39
|
+
|
|
36
40
|
function configureRuntimeEnvironment(binDir) {
|
|
37
41
|
prependPath(binDir);
|
|
38
42
|
|
|
@@ -56,9 +60,15 @@ function configureRuntimeEnvironment(binDir) {
|
|
|
56
60
|
process.env.GDAL_DRIVER_PATH ||= gdalPlugins;
|
|
57
61
|
}
|
|
58
62
|
|
|
59
|
-
const qtPlugins =
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
const qtPlugins = firstExistingDirectory([
|
|
64
|
+
path.join(binDir, "plugins"),
|
|
65
|
+
binDir,
|
|
66
|
+
]);
|
|
67
|
+
const qtPlatforms = firstExistingDirectory([
|
|
68
|
+
path.join(binDir, "plugins", "platforms"),
|
|
69
|
+
path.join(binDir, "platforms"),
|
|
70
|
+
]);
|
|
71
|
+
if (qtPlugins && qtPlatforms) {
|
|
62
72
|
process.env.QT_PLUGIN_PATH ||= qtPlugins;
|
|
63
73
|
process.env.QT_QPA_PLATFORM_PLUGIN_PATH ||= qtPlatforms;
|
|
64
74
|
}
|
package/src/viewer.js
CHANGED
|
@@ -34,6 +34,7 @@ class GeoKernelLibrary {
|
|
|
34
34
|
this.windowAddNavigationToolbar = this.native.getFunction("GeoKernelWindow_AddNavigationToolbar");
|
|
35
35
|
this.processEvents = this.native.getFunction("GeoKernelViewer_ProcessEvents");
|
|
36
36
|
this.setActivationType = this.native.getFunction("GeoKernelViewer_SetActivationTypeName");
|
|
37
|
+
this.setLicenseManagerUrl = this.native.getFunction("GeoKernelViewer_SetLicenseManagerUrl");
|
|
37
38
|
this.setLicenseKey = this.native.getFunction("GeoKernelViewer_SetLicenseKey");
|
|
38
39
|
this.setTool = this.native.getFunction("GeoKernelViewer_SetTool");
|
|
39
40
|
this.addLayerFile = this.native.getFunction("GeoKernelViewer_AddLayerFile");
|
|
@@ -81,6 +82,10 @@ class ViewerWindow {
|
|
|
81
82
|
this.library.setActivationType(this.viewerHandle, value);
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
setLicenseManagerUrl(value) {
|
|
86
|
+
this.library.setLicenseManagerUrl(this.viewerHandle, value ?? "");
|
|
87
|
+
}
|
|
88
|
+
|
|
84
89
|
setLicenseKey(value) {
|
|
85
90
|
this.library.setLicenseKey(this.viewerHandle, value);
|
|
86
91
|
}
|