@masterportal/masterportalapi 2.51.0 → 2.51.1
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/CHANGELOG.md
CHANGED
|
@@ -3,20 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
The [Semantic Versioning](https://semver.org/spec/v2.0.0.html) is used.
|
|
5
5
|
|
|
6
|
-
##
|
|
7
|
-
### __Breaking Changes__
|
|
8
|
-
|
|
9
|
-
### Added
|
|
10
|
-
|
|
11
|
-
### Changed
|
|
12
|
-
|
|
13
|
-
### Deprecated
|
|
14
|
-
|
|
15
|
-
### Removed
|
|
6
|
+
## 2.51.1 (LTS) - 2026-06-12
|
|
16
7
|
|
|
17
8
|
### Fixed
|
|
18
|
-
|
|
19
|
-
---
|
|
9
|
+
- VectorStyle: Fixed styling of polygons: `"zig-line-horizontal"` and `"diagonal-right"` are rotated by 90°.
|
|
20
10
|
|
|
21
11
|
## 2.51.0 - 2025-09-18
|
|
22
12
|
|
package/package.json
CHANGED
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@masterportal/masterportalapi",
|
|
3
|
-
"author": "Implementierungspartnerschaft Masterportal <info@masterportal.org> (https://www.masterportal.org)",
|
|
4
|
-
"version": "2.51.
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"description": "Basic functions of the Masterportal as api",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://bitbucket.org/geowerkstatt-hamburg/masterportalapi.git"
|
|
10
|
-
},
|
|
11
|
-
"source": "src/index.js",
|
|
12
|
-
"main": "src/index.js",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": "./src/index.js"
|
|
15
|
-
},
|
|
16
|
-
"targets": {
|
|
17
|
-
"library": {
|
|
18
|
-
"source": "src/index.js",
|
|
19
|
-
"distDir": "dist",
|
|
20
|
-
"outputFormat": "commonjs"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"test": "jest .test.js --config ./jest.config.js --collectCoverage",
|
|
25
|
-
"test:trace": "node --trace-warnings node_modules/jest/bin/jest.js .test.js --config ./jest.config.js",
|
|
26
|
-
"test:watch": "jest .test.js --config ./jest.config.js --watch",
|
|
27
|
-
"example": "parcel example/index.html",
|
|
28
|
-
"generate-jsdoc": "jsdoc ./src -r -d ./docs/ -R ./README.md -c jsdoc.json",
|
|
29
|
-
"prePushHook": "eslint --max-warnings 0 \"./**/*.js\" && npm run test",
|
|
30
|
-
"prepare": "husky install"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"core-js": "^3.33.1",
|
|
34
|
-
"dayjs": "^1.11.10",
|
|
35
|
-
"ol": "^10.6.0",
|
|
36
|
-
"ol-mapbox-style": "12.5.0",
|
|
37
|
-
"olcs": "^2.22.1",
|
|
38
|
-
"proj4": "^2.10.0",
|
|
39
|
-
"xml2js": "^0.6.2"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.26.0",
|
|
43
|
-
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
|
|
44
|
-
"@parcel/config-default": "^2.15.4",
|
|
45
|
-
"@parcel/transformer-sass": "^2.15.4",
|
|
46
|
-
"@swc/jest": "^0.2.39",
|
|
47
|
-
"assert": "^2.1.0",
|
|
48
|
-
"browserify-zlib": "^0.2.0",
|
|
49
|
-
"buffer": "^6.0.3",
|
|
50
|
-
"canvas": "3.2.0",
|
|
51
|
-
"eslint": "8.57.1",
|
|
52
|
-
"events": "^3.3.0",
|
|
53
|
-
"https-browserify": "^1.0.0",
|
|
54
|
-
"husky": "8.0.3",
|
|
55
|
-
"jest": "30.1.3",
|
|
56
|
-
"jest-canvas-mock": "2.5.2",
|
|
57
|
-
"jest-environment-jsdom": "30.1.2",
|
|
58
|
-
"jest-fetch-mock": "^3.0.3",
|
|
59
|
-
"jsdoc": "4.0.2",
|
|
60
|
-
"parcel": "^2.15.4",
|
|
61
|
-
"process": "^0.11.10",
|
|
62
|
-
"sass": "1.69.4",
|
|
63
|
-
"stream-browserify": "^3.0.0",
|
|
64
|
-
"stream-http": "^3.2.0",
|
|
65
|
-
"timers-browserify": "^2.0.12",
|
|
66
|
-
"url": "^0.11.3",
|
|
67
|
-
"use-resize-observer": "^9.1.0",
|
|
68
|
-
"util": "^0.12.5"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"@cesium/engine": "^20.0.1"
|
|
72
|
-
},
|
|
73
|
-
"engines": {
|
|
74
|
-
"node": "^22.19.0",
|
|
75
|
-
"npm": "^10.5.0"
|
|
76
|
-
},
|
|
77
|
-
"homepage": "https://bitbucket.org/geowerkstatt-hamburg/masterportalapi#readme",
|
|
78
|
-
"directories": {
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@masterportal/masterportalapi",
|
|
3
|
+
"author": "Implementierungspartnerschaft Masterportal <info@masterportal.org> (https://www.masterportal.org)",
|
|
4
|
+
"version": "2.51.1",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "Basic functions of the Masterportal as api",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://bitbucket.org/geowerkstatt-hamburg/masterportalapi.git"
|
|
10
|
+
},
|
|
11
|
+
"source": "src/index.js",
|
|
12
|
+
"main": "src/index.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./src/index.js"
|
|
15
|
+
},
|
|
16
|
+
"targets": {
|
|
17
|
+
"library": {
|
|
18
|
+
"source": "src/index.js",
|
|
19
|
+
"distDir": "dist",
|
|
20
|
+
"outputFormat": "commonjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "jest .test.js --config ./jest.config.js --collectCoverage",
|
|
25
|
+
"test:trace": "node --trace-warnings node_modules/jest/bin/jest.js .test.js --config ./jest.config.js",
|
|
26
|
+
"test:watch": "jest .test.js --config ./jest.config.js --watch",
|
|
27
|
+
"example": "parcel example/index.html",
|
|
28
|
+
"generate-jsdoc": "jsdoc ./src -r -d ./docs/ -R ./README.md -c jsdoc.json",
|
|
29
|
+
"prePushHook": "eslint --max-warnings 0 \"./**/*.js\" && npm run test",
|
|
30
|
+
"prepare": "husky install"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"core-js": "^3.33.1",
|
|
34
|
+
"dayjs": "^1.11.10",
|
|
35
|
+
"ol": "^10.6.0",
|
|
36
|
+
"ol-mapbox-style": "12.5.0",
|
|
37
|
+
"olcs": "^2.22.1",
|
|
38
|
+
"proj4": "^2.10.0",
|
|
39
|
+
"xml2js": "^0.6.2"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/core": "7.26.0",
|
|
43
|
+
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
|
|
44
|
+
"@parcel/config-default": "^2.15.4",
|
|
45
|
+
"@parcel/transformer-sass": "^2.15.4",
|
|
46
|
+
"@swc/jest": "^0.2.39",
|
|
47
|
+
"assert": "^2.1.0",
|
|
48
|
+
"browserify-zlib": "^0.2.0",
|
|
49
|
+
"buffer": "^6.0.3",
|
|
50
|
+
"canvas": "3.2.0",
|
|
51
|
+
"eslint": "8.57.1",
|
|
52
|
+
"events": "^3.3.0",
|
|
53
|
+
"https-browserify": "^1.0.0",
|
|
54
|
+
"husky": "8.0.3",
|
|
55
|
+
"jest": "30.1.3",
|
|
56
|
+
"jest-canvas-mock": "2.5.2",
|
|
57
|
+
"jest-environment-jsdom": "30.1.2",
|
|
58
|
+
"jest-fetch-mock": "^3.0.3",
|
|
59
|
+
"jsdoc": "4.0.2",
|
|
60
|
+
"parcel": "^2.15.4",
|
|
61
|
+
"process": "^0.11.10",
|
|
62
|
+
"sass": "1.69.4",
|
|
63
|
+
"stream-browserify": "^3.0.0",
|
|
64
|
+
"stream-http": "^3.2.0",
|
|
65
|
+
"timers-browserify": "^2.0.12",
|
|
66
|
+
"url": "^0.11.3",
|
|
67
|
+
"use-resize-observer": "^9.1.0",
|
|
68
|
+
"util": "^0.12.5"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"@cesium/engine": "^20.0.1"
|
|
72
|
+
},
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": "^22.19.0",
|
|
75
|
+
"npm": "^10.5.0"
|
|
76
|
+
},
|
|
77
|
+
"homepage": "https://bitbucket.org/geowerkstatt-hamburg/masterportalapi#readme",
|
|
78
|
+
"directories": {
|
|
79
|
+
"doc": "docs",
|
|
80
|
+
"example": "example",
|
|
81
|
+
"test": "test"
|
|
82
|
+
},
|
|
83
|
+
"bugs": {
|
|
84
|
+
"url": "https://bitbucket.org/geowerkstatt-hamburg/masterportalapi/issues"
|
|
85
|
+
}
|
|
86
|
+
}
|
package/publiccode.yml
CHANGED
|
@@ -81,8 +81,8 @@ maintenance:
|
|
|
81
81
|
name: Masterportal
|
|
82
82
|
platforms:
|
|
83
83
|
- web
|
|
84
|
-
releaseDate: '
|
|
84
|
+
releaseDate: '2026-06-12'
|
|
85
85
|
roadmap: 'https://bitbucket.org/geowerkstatt-hamburg/masterportalapi/src/master/'
|
|
86
86
|
softwareType: api
|
|
87
|
-
softwareVersion: 2.
|
|
87
|
+
softwareVersion: 2.51.1 (LTS)
|
|
88
88
|
url: 'https://bitbucket.org/geowerkstatt-hamburg/masterportalapi.git'
|
|
@@ -127,7 +127,7 @@ function rotateContextCenter (context, size, degrees = 90) {
|
|
|
127
127
|
const halfSize = 0.5 * size;
|
|
128
128
|
|
|
129
129
|
context.translate(halfSize, halfSize);
|
|
130
|
-
context.rotate(degrees *
|
|
130
|
+
context.rotate(degrees * Math.PI / 180);
|
|
131
131
|
context.translate(-halfSize, -halfSize);
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -146,13 +146,12 @@ export function drawHatch (context, size, pattern) {
|
|
|
146
146
|
if (hatchDefinition) {
|
|
147
147
|
const {draw, rotate} = hatchDefinition;
|
|
148
148
|
|
|
149
|
-
if (draw) {
|
|
150
|
-
draw.forEach(segment => drawSegment(context, size, segment));
|
|
151
|
-
}
|
|
152
|
-
|
|
153
149
|
if (rotate) {
|
|
154
150
|
rotateContextCenter(context, size, rotate);
|
|
155
151
|
}
|
|
152
|
+
if (draw) {
|
|
153
|
+
draw.forEach(segment => drawSegment(context, size, segment));
|
|
154
|
+
}
|
|
156
155
|
}
|
|
157
156
|
else {
|
|
158
157
|
console.error(`polygonStyleHatches: Unknown polygon style "${pattern}". Skipping hatching.`);
|