Skip to content

Commit 760ccf3

Browse files
committed
Website updates
1 parent ca65aa3 commit 760ccf3

22 files changed

+218
-74
lines changed

dist/en/main/apidoc/module-ol_style_flat.html

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,7 @@ <h5 class="subsection-title">Properties:</h5>
25222522
</td>
25232523

25242524
<td class="description last">
2525-
<p>Stroke offset in pixel. A positive value offsets the line to the right,
2525+
<p>Stroke offset in pixel along the normal. A positive value offsets the line to the right,
25262526
relative to the direction of the line. (WebGL only)</p>
25272527

25282528
</td>
@@ -2573,7 +2573,7 @@ <h5 class="subsection-title">Properties:</h5>
25732573

25742574
<td class="description last">
25752575
<p>Offset, which, together with the size and the offset origin,
2576-
define the sub-rectangle to use from the original fill pattern image. (WebGL only)</p>
2576+
define the sub-rectangle to use from the original stroke pattern image. (WebGL only)</p>
25772577

25782578
</td>
25792579
</tr>
@@ -2646,7 +2646,30 @@ <h5 class="subsection-title">Properties:</h5>
26462646
</td>
26472647

26482648
<td class="description last">
2649-
<p>Spacing between each pattern occurrence in pixels; 0 if undefined.</p>
2649+
<p>Spacing between each pattern occurrence in pixels; 0 if undefined. (WebGL only)</p>
2650+
2651+
</td>
2652+
</tr>
2653+
2654+
2655+
2656+
<tr>
2657+
2658+
<td class="name"><code>stroke-pattern-start-offset</code></td>
2659+
2660+
2661+
<td class="type">
2662+
2663+
2664+
<span class="param-type"><a href="module-ol_style_flat.html#~NumberExpression">NumberExpression</a></span>
2665+
2666+
| undefined
2667+
2668+
2669+
</td>
2670+
2671+
<td class="description last">
2672+
<p>Stroke pattern offset in pixels at the start of the line. (WebGL only)</p>
26502673

26512674
</td>
26522675
</tr>

dist/en/main/examples/common.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/webgl-draw-line.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ <h5 class="modal-title" id="tag-example-title"></h5>
349349
</label>
350350
<span id="value-patternSpacing">0</span>
351351
</div>
352+
<div class="form-group" style="margin-left: 18px">
353+
<label>
354+
Pattern start offset (pixels)
355+
<input type="range" class="uniform" name="patternOffset" min="0" max="64" value="0">
356+
</label>
357+
<span id="value-patternOffset">0</span>
358+
</div>
352359
</form>
353360

354361
<form method="POST" id="codepen-form" target="_blank" action="https://codesandbox.io/api/v1/sandboxes/define">
@@ -388,6 +395,7 @@ <h5 class="source-heading">main.js</h5>
388395
dashLength4: 15,
389396
dashOffset: 0,
390397
patternSpacing: 0,
398+
patternOffset: 0,
391399
};
392400

393401
const source &#x3D; new VectorSource({
@@ -427,6 +435,7 @@ <h5 class="source-heading">main.js</h5>
427435
...newStyle,
428436
&#x27;stroke-pattern-src&#x27;: &#x27;data/dot.svg&#x27;,
429437
&#x27;stroke-pattern-spacing&#x27;: [&#x27;var&#x27;, &#x27;patternSpacing&#x27;],
438+
&#x27;stroke-pattern-start-offset&#x27;: [&#x27;var&#x27;, &#x27;patternOffset&#x27;],
430439
};
431440
}
432441
return newStyle;
@@ -614,6 +623,13 @@ <h5 class="source-heading">index.html</h5>
614623
&lt;/label&gt;
615624
&lt;span id&#x3D;&quot;value-patternSpacing&quot;&gt;0&lt;/span&gt;
616625
&lt;/div&gt;
626+
&lt;div class&#x3D;&quot;form-group&quot; style&#x3D;&quot;margin-left: 18px&quot;&gt;
627+
&lt;label&gt;
628+
Pattern start offset (pixels)
629+
&lt;input type&#x3D;&quot;range&quot; class&#x3D;&quot;uniform&quot; name&#x3D;&quot;patternOffset&quot; min&#x3D;&quot;0&quot; max&#x3D;&quot;64&quot; value&#x3D;&quot;0&quot;&gt;
630+
&lt;/label&gt;
631+
&lt;span id&#x3D;&quot;value-patternOffset&quot;&gt;0&lt;/span&gt;
632+
&lt;/div&gt;
617633
&lt;/form&gt;
618634

619635
&lt;script type="module" src="main.js"&gt;&lt;/script&gt;

dist/en/main/examples/webgl-draw-line.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/webgl-draw-line.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)