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/control/ScaleLine.d.ts +3 -0
- package/control/ScaleLine.d.ts.map +1 -1
- package/control/ScaleLine.js +3 -0
- package/dist/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/util.js +1 -1
- package/webgl/ShaderBuilder.js +2 -2
package/package.json
CHANGED
package/util.js
CHANGED
package/webgl/ShaderBuilder.js
CHANGED
|
@@ -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
|
|
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;
|