Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
38d1a60
supporting terrain-rgb tile services
ThomasHalwax Dec 11, 2023
bd0ea00
fixed invalid visibility/opacity after update
ThomasHalwax Dec 11, 2023
2dbce88
comment
ThomasHalwax Dec 11, 2023
b9eb894
allow stacked terrain layers
ThomasHalwax Dec 11, 2023
06b3d67
tags are not taggable
ThomasHalwax Dec 12, 2023
6fba843
return null for non-existing service
ThomasHalwax Dec 12, 2023
8c2f38f
moved to an async implementation
ThomasHalwax Dec 12, 2023
003b167
removed debug output
ThomasHalwax Dec 12, 2023
4855efc
more detailed source map
ThomasHalwax Dec 14, 2023
abf24f6
Merge branch 'main' into terrain
ThomasHalwax Jun 5, 2024
da7dde9
replaced most.js with homegrown signal module.
dehmer Jun 22, 2024
7bc3c2d
Merge branch 'main' into signal
dehmer Jun 22, 2024
4a85c79
Merge branch 'main' into signal
dehmer Jun 23, 2024
88cac3f
Merge branch 'main' into signal
dehmer Jun 23, 2024
1cbb3ec
playing with signals.
dehmer Jun 24, 2024
13d8eaf
playing with signals (WIP).
dehmer Jun 27, 2024
b95cfc6
Merge branch 'main' into feature-style
dehmer Jun 27, 2024
b1436eb
playing with signals (WIP).
dehmer Jun 28, 2024
addb928
merged main; resolved conflicts.
dehmer Jun 28, 2024
a3c12bb
playing with signals (WIP).
dehmer Jun 28, 2024
c99e30c
playing with signals (WIP).
dehmer Jun 29, 2024
3a79228
working on labels (WIP).
dehmer Jun 29, 2024
7f7da13
playing with signals (WIP).
dehmer Jun 30, 2024
436e2bc
start over...
dehmer Jun 30, 2024
6a27161
experimenting with vector source.
dehmer Jul 1, 2024
49636c2
improved feature loading.
dehmer Jul 1, 2024
64e796c
symbol styles.
dehmer Jul 1, 2024
682a6a4
forwarding style events.
dehmer Jul 2, 2024
fdf434a
deps: updated mocha@10.6.0
dehmer Jul 4, 2024
f65b66a
deps: updated react-tooltip@5.27.1
dehmer Jul 4, 2024
b65b07c
playing with signals (WIP).
dehmer Jul 4, 2024
bb068a6
Merge branch 'feature-style' of github.com:syncpoint/ODINv2 into feat…
dehmer Jul 4, 2024
1a0ce51
deps: updated rbush@4.0.0
dehmer Jul 4, 2024
38ea7c9
deps: updated path-to-regexp@7.0.0
dehmer Jul 4, 2024
9df0e85
deps: updated fuse.js@7.0.0
dehmer Jul 4, 2024
2c0e80a
deps: removed eslint
dehmer Jul 4, 2024
c153658
deps: updated electron@31.1.0
dehmer Jul 4, 2024
3bf1175
playing with signals (WIP).
dehmer Jul 4, 2024
b97134d
Merge branch 'feature-style' of github.com:syncpoint/ODINv2 into feat…
dehmer Jul 4, 2024
8b067c2
polygon labels.
dehmer Jul 5, 2024
ef5d50d
modify: fixed issue with sticky pointer.
dehmer Jul 5, 2024
555c359
Merge branch 'signal' into feature-style
dehmer Jul 5, 2024
393ef09
geometry now updating prpoerly.
dehmer Jul 7, 2024
31dcecf
simplified feature source(s).
dehmer Jul 7, 2024
5e427b6
forward updated resolution.
dehmer Jul 7, 2024
22e092a
selection styles.
dehmer Jul 8, 2024
82b64ba
playing with simplier style reduction
dehmer Jul 8, 2024
d45a932
centralized style reduction.
dehmer Jul 8, 2024
cc08576
clean-up: reduced duplicate code.
dehmer Jul 8, 2024
33789f0
support MutiPoint styles.
dehmer Jul 8, 2024
af47855
support Corridor styles.
dehmer Jul 8, 2024
e93bd23
label clipping.
dehmer Jul 9, 2024
979cd3b
update feature (style) from database events.
dehmer Jul 9, 2024
99f46eb
cleanup: make eslint happy.
dehmer Jul 10, 2024
dd885d4
cleanup: removed TODOs.
dehmer Jul 10, 2024
63cc7dd
clean-up.
dehmer Jul 10, 2024
3d9c79c
marker styles.
dehmer Jul 10, 2024
b21e790
source: add feature on put event.
dehmer Jul 12, 2024
a380591
deps: updated @syncpoint/signs
dehmer Jul 12, 2024
b346002
Merge branch 'feature-style' of github.com:syncpoint/ODINv2 into feat…
dehmer Jul 12, 2024
9c40e28
shuffled some signals around.
dehmer Jul 12, 2024
e939407
support measurement styles.
dehmer Jul 13, 2024
61300dc
symbol: multi-select style.
dehmer Jul 13, 2024
eda4aa2
clean-up: FeatureStore/Format.
dehmer Jul 13, 2024
7b91aee
webpack/build: consume own sourcemaps.
dehmer Jul 13, 2024
3fe16e3
feature-source: fixed issue.
dehmer Jul 14, 2024
1a30b98
range fan: fixed label update (#36).
dehmer Jul 15, 2024
85613f6
OSD: fixed missed updates (#24).
dehmer Jul 15, 2024
9997e95
moved geometry type signal.
dehmer Jul 15, 2024
d31515a
clean-up.
dehmer Jul 16, 2024
c9a1cdf
chore: updated build dependencies.
dehmer Jul 16, 2024
dbd2042
chore: updated path-to-regexp@7.1.0.
dehmer Jul 16, 2024
482aaea
chore: updated minisearch@7.0.0
dehmer Jul 16, 2024
b566abf
chore: updated electron@31.2.1
dehmer Jul 16, 2024
0eb4e8d
fixed issue with undefined geometry.
dehmer Jul 16, 2024
033230b
updated own packages.
dehmer Jul 16, 2024
ddae088
https://github.com/advisories/GHSA-9jxc-qjr9-vjxq
dehmer Jul 16, 2024
6092a3b
chore: updated minisearch@7.0.1
dehmer Jul 16, 2024
3f4661d
simplified geometry: clone when not simplified.
dehmer Jul 17, 2024
4549d23
rendering: provide current style instead of pushing updates.
dehmer Jul 17, 2024
03d7a37
simplified geometry: improved efficiency.
dehmer Jul 18, 2024
f6c2cdf
modify-interaction: fixed regression.
dehmer Jul 18, 2024
6d5508b
corridor: fixed usage of error style.
dehmer Jul 21, 2024
93414ce
Merge branch 'current' into terrain
ThomasHalwax Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ publish:
- provider: github
releaseType: release

electronVersion: 26.6.0
electronVersion: 31.2.1
696 changes: 338 additions & 358 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Open Source Command and Control Information System (C2IS)",
"main": "dist/main.js",
"scripts": {
"start": "electron . --cold",
"start": "electron . --cold --trace-warnings",
"hot": "webpack serve",
"webpack": "webpack",
"webpack:production": "webpack --mode=production",
Expand All @@ -28,30 +28,30 @@
},
"license": "AGPLv3",
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/eslint-parser": "^7.18.2",
"@babel/preset-env": "^7.21.4",
"@babel/core": "^7.24.9",
"@babel/eslint-parser": "^7.24.8",
"@babel/preset-env": "^7.24.8",
"@babel/preset-react": "^7.17.12",
"@babel/register": "^7.17.7",
"babel-loader": "^9.1.0",
"c8": "^10.1.2",
"css-loader": "^7.1.2",
"electron": "^26.6.0",
"electron": "^31.2.1",
"electron-builder": "^24.6.4",
"electron-updater": "^6.1.4",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react": "^7.34.4",
"eslint-plugin-react-hooks": "^4.6.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"jsdoc": "^4.0.0",
"memdown": "^6.1.1",
"mocha": "^10.5.2",
"sass": "^1.77.6",
"mocha": "^10.6.0",
"sass": "^1.77.8",
"sass-loader": "^14.2.1",
"source-map-loader": "^5.0.0",
"style-loader": "^4.0.0",
"webpack": "^5.92.1",
"webpack": "^5.93.0",
"webpack-cli": "^5.0.0",
"webpack-dev-server": "^5.0.4",
"yaml": "^2.1.3"
Expand All @@ -64,12 +64,12 @@
"dependencies": {
"@mdi/js": "^7.0.96",
"@mdi/react": "^1.6.0",
"@most/scheduler": "^1.3.0",
"@syncpoint/signs": "^1.0.1",
"@syncpoint/signal": "^1.2.0",
"@syncpoint/signs": "^1.1.0",
"@syncpoint/wkx": "^0.5.2",
"abstract-leveldown": "^7.2.0",
"color": "^4.2.3",
"fuse.js": "^6.6.2",
"fuse.js": "^7.0.0",
"geo-coordinates-parser": "^1.7.3",
"geodesy": "^2.4.0",
"jexl": "^2.3.0",
Expand All @@ -79,25 +79,25 @@
"leveldown": "^6.1.1",
"levelup": "^5.0.1",
"luxon": "^3.1.0",
"minisearch": "^6.0.1",
"most-subject": "^6.0.0",
"minisearch": "^7.0.1",
"mousetrap": "^1.6.5",
"mousetrap-global-bind": "^1.1.0",
"ol": "^9.2.4",
"path-to-regexp": "^6.2.1",
"path-to-regexp": "^7.1.0",
"proj4": "^2.8.0",
"ramda": "^0.30.1",
"rbush": "^3.0.1",
"rbush": "^4.0.0",
"react": "^18.2.0",
"react-cool-virtual": "^0.7.0",
"react-dom": "^18.2.0",
"react-easy-sort": "^1.5.1",
"react-fast-compare": "^3.2.0",
"react-tooltip": "^5.27.0",
"react-tooltip": "^5.27.1",
"reproject": "^1.2.7",
"sanitize-filename": "^1.6.3",
"subleveldown": "^6.0.1",
"throttle-debounce": "^5.0.2",
"typeface-roboto": "^1.1.13"
"typeface-roboto": "^1.1.13",
"uniqolor": "^1.1.1"
}
}
80 changes: 80 additions & 0 deletions paperwork/polygon-styles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
```mermaid
graph LR;

classDef common fill:#ff9;
classDef graphics fill:#f99;
classDef polygon fill:#efe;

%% Inputs
properties[[properties]];
geometry[[geometry]];
globalStyle[[globalStyle]];
layerStyle[[layerStyle]];
featureStyle[[featureStyle]];
centerResolution[[centerResolution]];
selectionMode[[selectionMode]];

styleFactory[[styleFactory]];

%% Common
properties --> sidc:::common;
sidc --> parameterizedSIDC:::common;
globalStyle --> colorScheme:::common;
layerStyle --> colorScheme;
featureStyle --> colorScheme;
sidc --> schemeStyle:::common;
colorScheme --> schemeStyle;
globalStyle --> effectiveStyle:::common;
schemeStyle --> effectiveStyle;
layerStyle --> effectiveStyle;
featureStyle --> effectiveStyle;
effectiveStyle --> styleRegistry:::common;

%% Graphics
geometry --> read:::graphics;
geometry --> rewrite:::graphics;
geometry --> pointResolution:::graphics;
centerResolution --> resolution:::graphics;
pointResolution --> resolution;
geometry --> jtsGeometry:::graphics;
read --> jtsGeometry;
resolution --> clip:::graphics;
sidc --> specialization:::graphics;
specialization --> geometryProperties:::graphics;
jtsGeometry --> geometryProperties;
sidc --> evalSync:::graphics;
properties --> evalSync;
geometryProperties --> evalSync;

%% Polygon
geometry --> simplifiedGeometry:::polygon;
centerResolution --> simplifiedGeometry;
simplifiedGeometry --> jtsSimplifiedGeometry:::polygon;
read --> jtsSimplifiedGeometry;
effectiveStyle --> lineSmoothing:::polygon;
simplifiedGeometry --> smoothenedGeometry:::polygon;
lineSmoothing --> smoothenedGeometry;
smoothenedGeometry --> jtsSmoothenedGeometry:::polygon;
read --> jtsSmoothenedGeometry;
jtsSmoothenedGeometry --> context:::polygon;
resolution --> context;
jtsSmoothenedGeometry --> placement:::polygon;
context --> shape:::polygon;
parameterizedSIDC --> shape;
selectionMode --> selection:::polygon;
jtsSimplifiedGeometry --> selection;
parameterizedSIDC --> labels:::polygon;
placement --> labels;
shape --> styles:::polygon;
labels --> styles;
selection --> styles;

%% Final
A{{style}}
styles --> A;
styleRegistry --> A;
evalSync --> A;
clip --> A;
rewrite --> A;
styleFactory --> A;
```
101 changes: 0 additions & 101 deletions paperwork/rules.dot

This file was deleted.

Binary file removed paperwork/rules.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion src/renderer/components/OSD.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const OSD = () => {

React.useEffect(() => {
emitter.on('osd', dispatch)
emitter.emit('osd-mounted')
}, [emitter])

return <div className="osd" id="osd">
Expand All @@ -31,6 +32,6 @@ export const OSD = () => {
<div className='osd__cell' style={styles.C}>{ state.C2 }</div>
<div className='osd__cell' style={styles.A}></div>
<div className='osd__cell' style={styles.B}></div>
<div className='osd__cell' style={styles.C}></div>
<div className='osd__cell' style={styles.C}>{ state.C3 }</div>
</div>
}
3 changes: 1 addition & 2 deletions src/renderer/components/Project-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default async projectUUID => {
const coordinatesFormat = new CoordinatesFormat(emitter, preferencesStore)
const optionStore = new OptionStore(coordinatesFormat, store, sessionStore)
const nominatim = new Nominatim(store)
const featureStore = new FeatureStore(store, selection)
const featureStore = new FeatureStore(store)
const searchIndex = new SearchIndex(jsonDB, documentStore, optionStore, emitter, nominatim, sessionStore, spatialIndex)

// Key bindings.
Expand Down Expand Up @@ -128,7 +128,6 @@ export default async projectUUID => {
await schema.bootstrap()
await tileLayerStore.bootstrap()
await searchIndex.bootstrap()
await featureStore.bootstrap()
await spatialIndex.bootstrap()

return services
Expand Down
11 changes: 10 additions & 1 deletion src/renderer/components/map/eventHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const sendPreview = (services, map) => {
*
*/
const mapHandlers = (services, map) => {
const { selection, osdDriver, dragAndDrop } = services
const { selection, osdDriver, dragAndDrop, emitter } = services

map.addEventListener('keydown', event => {
const { key } = event.originalEvent
Expand All @@ -85,6 +85,15 @@ const mapHandlers = (services, map) => {
if (deselect.length) selection.deselect(deselect)
})

let resolution
map.on('moveend', () => {
const updated = map.getView().getResolution()
if (updated !== resolution) {
resolution = updated
emitter.emit('view/resolution', { resolution })
}
})

// Note: Neither dragstart nor dragend events are fired when dragging
// a file into the browser from the OS.
const target = document.getElementById('map')
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/components/map/vectorLayers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const highlightLayer = (sources, styles) => {


export default (sources, styles) => {
const { deselectedSource, selectedSource } = sources
const { deselectedSource, selectedSource, featureSource } = sources
const declutter = false
const vectorLayer = source => new VectorLayer({
source,
Expand All @@ -35,6 +35,7 @@ export default (sources, styles) => {

return {
featureLayer: vectorLayer(deselectedSource),
// featureLayer: vectorLayer(featureSource),
highlightLayer: highlightLayer(sources, styles),
selectedLayer: vectorLayer(selectedSource)
}
Expand Down
Loading