ol 9.0.0-dev.1707494062569 → 9.0.0-dev.1708075712412

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "9.0.0-dev.1707494062569",
3
+ "version": "9.0.0-dev.1708075712412",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '9.0.0-dev.1707494062569';
36
+ export const VERSION = '9.0.0-dev.1708075712412';
@@ -690,7 +690,7 @@ void main(void) {
690
690
  } else {
691
691
  joinDirection = getJoinOffsetDirection(normalPx * normalDir, angle);
692
692
  }
693
- positionPx = positionPx + joinDirection * lineWidth * 0.5;
693
+ positionPx = positionPx + joinDirection * (lineWidth * 0.5 + 1.); // adding 1 pixel for antialiasing
694
694
  gl_Position = pxToScreen(positionPx);
695
695
 
696
696
  v_segmentStart = segmentStartPx;
@@ -853,7 +853,7 @@ void main(void) {
853
853
  max(segmentStartDistance, segmentEndDistance)
854
854
  );
855
855
  distance = max(distance, ${this.strokeDistanceFieldExpression_});
856
- gl_FragColor = color * smoothstep(0., -1., distance);
856
+ gl_FragColor = color * smoothstep(0.5, -0.5, distance);
857
857
  if (u_hitDetection > 0) {
858
858
  if (gl_FragColor.a < 0.1) { discard; };
859
859
  gl_FragColor = v_prop_hitColor;