Skip to content

Commit

Permalink
Website updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Nov 7, 2024
1 parent c6af578 commit 9eccfa8
Show file tree
Hide file tree
Showing 20 changed files with 83 additions and 61 deletions.
24 changes: 12 additions & 12 deletions dist/en/main/apidoc/module-ol_style_Circle-CircleStyle.html
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L184">line 184</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L180">line 180</a>
</div>

</div>
Expand Down Expand Up @@ -682,7 +682,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L201">line 201</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L197">line 197</a>
</div>

</div>
Expand Down Expand Up @@ -958,7 +958,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L210">line 210</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L206">line 206</a>
</div>

</div>
Expand Down Expand Up @@ -1050,7 +1050,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L244">line 244</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L240">line 240</a>
</div>

</div>
Expand Down Expand Up @@ -1279,7 +1279,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L292">line 292</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L299">line 299</a>
</div>

</div>
Expand Down Expand Up @@ -1371,7 +1371,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L301">line 301</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L308">line 308</a>
</div>

</div>
Expand Down Expand Up @@ -1463,7 +1463,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L310">line 310</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L317">line 317</a>
</div>

</div>
Expand Down Expand Up @@ -1555,7 +1555,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L319">line 319</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L326">line 326</a>
</div>

</div>
Expand Down Expand Up @@ -1923,7 +1923,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L329">line 329</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L336">line 336</a>
</div>

</div>
Expand Down Expand Up @@ -2015,7 +2015,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L338">line 338</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L345">line 345</a>
</div>

</div>
Expand Down Expand Up @@ -2235,7 +2235,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L219">line 219</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L215">line 215</a>
</div>

</div>
Expand Down Expand Up @@ -3007,7 +3007,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L347">line 347</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L354">line 354</a>
</div>

</div>
Expand Down
8 changes: 4 additions & 4 deletions dist/en/main/apidoc/module-ol_style_Fill-Fill.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js">style/Fill.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js#L22">line 22</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js#L24">line 24</a>
</div>

</div>
Expand Down Expand Up @@ -295,7 +295,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js">style/Fill.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js#L50">line 50</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js#L52">line 52</a>
</div>

</div>
Expand Down Expand Up @@ -385,7 +385,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js">style/Fill.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js#L62">line 62</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js#L64">line 64</a>
</div>

</div>
Expand Down Expand Up @@ -475,7 +475,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js">style/Fill.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js#L72">line 72</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Fill.js#L74">line 74</a>
</div>

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ <h4 class="name">


<div class="description">
<p>Set the cache size of the icon cache. Default is <code>32</code>. Change this value when
your map uses more than 32 different icon images and you are not caching icon
<p>Set the cache size of the icon cache. Default is <code>1024</code>. Change this value when
your map uses more than 1024 different icon images and you are not caching icon
styles on the application level.</p>
</div>

Expand Down
28 changes: 14 additions & 14 deletions dist/en/main/apidoc/module-ol_style_RegularShape-RegularShape.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L57">line 57</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L59">line 59</a>
</div>

</div>
Expand Down Expand Up @@ -582,7 +582,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L158">line 158</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L154">line 154</a>
</div>

</div>
Expand Down Expand Up @@ -672,7 +672,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L184">line 184</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L180">line 180</a>
</div>

</div>
Expand Down Expand Up @@ -763,7 +763,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L201">line 201</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L197">line 197</a>
</div>

</div>
Expand Down Expand Up @@ -1037,7 +1037,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L210">line 210</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L206">line 206</a>
</div>

</div>
Expand Down Expand Up @@ -1127,7 +1127,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L244">line 244</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L240">line 240</a>
</div>

</div>
Expand Down Expand Up @@ -1354,7 +1354,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L292">line 292</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L299">line 299</a>
</div>

</div>
Expand Down Expand Up @@ -1444,7 +1444,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L301">line 301</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L308">line 308</a>
</div>

</div>
Expand Down Expand Up @@ -1534,7 +1534,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L310">line 310</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L317">line 317</a>
</div>

</div>
Expand Down Expand Up @@ -1624,7 +1624,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L319">line 319</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L326">line 326</a>
</div>

</div>
Expand Down Expand Up @@ -1990,7 +1990,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L329">line 329</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L336">line 336</a>
</div>

</div>
Expand Down Expand Up @@ -2080,7 +2080,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L338">line 338</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L345">line 345</a>
</div>

</div>
Expand Down Expand Up @@ -2298,7 +2298,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L219">line 219</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L215">line 215</a>
</div>

</div>
Expand Down Expand Up @@ -2942,7 +2942,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js">style/RegularShape.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L347">line 347</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/RegularShape.js#L354">line 354</a>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/examples/offscreen-canvas.worker.worker.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/en/main/ol/style/Fill.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ declare class Fill {
* @api
*/
setColor(color: import("../color.js").Color | import("../colorlike.js").ColorLike | import("../colorlike.js").PatternDescriptor | null): void;
/**
* @return {string} Key of the fill for cache lookup.
*/
getKey(): string;
/**
* @return {boolean} The fill style is loading an image pattern.
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/ol/style/Fill.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions dist/en/main/ol/style/Fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
*/

import ImageState from '../ImageState.js';
import {asArray} from '../color.js';
import {get as getIconImage} from './IconImage.js';
import {getUid} from '../util.js';

/**
* @typedef {Object} Options
Expand Down Expand Up @@ -92,6 +94,21 @@ class Fill {
this.color_ = color;
}

/**
* @return {string} Key of the fill for cache lookup.
*/
getKey() {
const fill = this.getColor();
if (!fill) {
return '';
}
return fill instanceof CanvasPattern || fill instanceof CanvasGradient
? getUid(fill)
: typeof fill === 'object' && 'src' in fill
? fill.src + ':' + fill.offset
: asArray(fill).toString();
}

/**
* @return {boolean} The fill style is loading an image pattern.
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/en/main/ol/style/IconImageCache.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ declare class IconImageCache {
*/
set(src: string, crossOrigin: string | null, color: import("../color.js").Color | string | null, iconImage: import("./IconImage.js").default | null, pattern?: boolean | undefined): void;
/**
* Set the cache size of the icon cache. Default is `32`. Change this value when
* your map uses more than 32 different icon images and you are not caching icon
* Set the cache size of the icon cache. Default is `1024`. Change this value when
* your map uses more than 1024 different icon images and you are not caching icon
* styles on the application level.
* @param {number} maxCacheSize Cache max size.
* @api
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/ol/style/IconImageCache.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9eccfa8

Please sign in to comment.