Skip to content

Commit 82a47d0

Browse files
committed
Website updates
1 parent 768ed52 commit 82a47d0

11 files changed

Lines changed: 33 additions & 22 deletions

dist/en/main/apidoc/module-ol_render_Feature-RenderFeature.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ <h4 class="name">
441441

442442
<div class="tag-source">
443443
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js">render/Feature.js</a>,
444-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L263">line 263</a>
444+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L274">line 274</a>
445445
</div>
446446

447447
</div>
@@ -532,7 +532,7 @@ <h4 class="name">
532532

533533
<div class="tag-source">
534534
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js">render/Feature.js</a>,
535-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L246">line 246</a>
535+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L257">line 257</a>
536536
</div>
537537

538538
</div>
@@ -623,7 +623,7 @@ <h4 class="name">
623623

624624
<div class="tag-source">
625625
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js">render/Feature.js</a>,
626-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L290">line 290</a>
626+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L301">line 301</a>
627627
</div>
628628

629629
</div>
@@ -713,7 +713,7 @@ <h4 class="name">
713713

714714
<div class="tag-source">
715715
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js">render/Feature.js</a>,
716-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L322">line 322</a>
716+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L333">line 333</a>
717717
</div>
718718

719719
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ <h4 class="name">
194194

195195
<div class="tag-source">
196196
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js">render/Feature.js</a>,
197-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L514">line 514</a>
197+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L525">line 525</a>
198198
</div>
199199

200200
</div>
@@ -359,7 +359,7 @@ <h4 class="name">
359359

360360
<div class="tag-source">
361361
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js">render/Feature.js</a>,
362-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L478">line 478</a>
362+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/render/Feature.js#L489">line 489</a>
363363
</div>
364364

365365
</div>

dist/en/main/examples/common.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/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/offscreen-canvas.worker.worker.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/offscreen-canvas.worker.worker.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.

dist/en/main/ol/render/Feature.d.ts.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/render/Feature.js

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class RenderFeature {
160160
this.flatCoordinates_,
161161
0,
162162
this.flatCoordinates_.length,
163-
2,
163+
this.stride_,
164164
);
165165
}
166166
return this.extent_;
@@ -176,7 +176,7 @@ class RenderFeature {
176176
this.flatCoordinates_,
177177
0,
178178
this.ends_,
179-
2,
179+
this.stride_,
180180
flatCenter,
181181
0,
182182
);
@@ -190,12 +190,17 @@ class RenderFeature {
190190
getFlatInteriorPoints() {
191191
if (!this.flatInteriorPoints_) {
192192
const ends = inflateEnds(this.flatCoordinates_, this.ends_);
193-
const flatCenters = linearRingssCenter(this.flatCoordinates_, 0, ends, 2);
193+
const flatCenters = linearRingssCenter(
194+
this.flatCoordinates_,
195+
0,
196+
ends,
197+
this.stride_,
198+
);
194199
this.flatInteriorPoints_ = getInteriorPointsOfMultiArray(
195200
this.flatCoordinates_,
196201
0,
197202
ends,
198-
2,
203+
this.stride_,
199204
flatCenters,
200205
);
201206
}
@@ -211,7 +216,7 @@ class RenderFeature {
211216
this.flatCoordinates_,
212217
0,
213218
this.flatCoordinates_.length,
214-
2,
219+
this.stride_,
215220
0.5,
216221
);
217222
}
@@ -229,7 +234,13 @@ class RenderFeature {
229234
const ends = /** @type {Array<number>} */ (this.ends_);
230235
for (let i = 0, ii = ends.length; i < ii; ++i) {
231236
const end = ends[i];
232-
const midpoint = interpolatePoint(flatCoordinates, offset, end, 2, 0.5);
237+
const midpoint = interpolatePoint(
238+
flatCoordinates,
239+
offset,
240+
end,
241+
this.stride_,
242+
0.5,
243+
);
233244
extend(this.flatMidpoints_, midpoint);
234245
offset = end;
235246
}
@@ -348,7 +359,7 @@ class RenderFeature {
348359
this.flatCoordinates_,
349360
0,
350361
this.flatCoordinates_.length,
351-
2,
362+
this.stride_,
352363
tmpTransform,
353364
this.flatCoordinates_,
354365
);
@@ -449,7 +460,7 @@ class RenderFeature {
449460
this.type_,
450461
simplifiedFlatCoordinates,
451462
simplifiedEnds,
452-
2,
463+
this.stride_,
453464
this.properties_,
454465
this.id_,
455466
);

0 commit comments

Comments
 (0)