Skip to content

Commit

Permalink
Website updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Aug 11, 2023
1 parent f1d5841 commit fbc9d69
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
5 changes: 1 addition & 4 deletions dist/en/main/apidoc/module-ol_style_flat.html
Original file line number Diff line number Diff line change
Expand Up @@ -3556,9 +3556,6 @@ <h5 class="subsection-title">Properties:</h5>
|

<span class="param-type"><a href="module-ol_colorlike.html#~ColorLike">ColorLike</a></span>
|

<span class="param-type">null</span>



Expand All @@ -3580,7 +3577,7 @@ <h5 class="subsection-title">Properties:</h5>
</td>


<td class="description last"><p>The fill color. Specify <code>null</code> for no fill.</p></td>
<td class="description last"><p>The fill color. Specify <code>'none'</code> to avoid hit detection on the fill.</p></td>
</tr>


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.

6 changes: 3 additions & 3 deletions dist/en/main/ol/style/flat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
* `'hanging'`, `'ideographic'`.
* @property {Array<number>} [text-padding=[0, 0, 0, 0]] Padding in pixels around the text for decluttering and background. The order of
* values in the array is `[top, right, bottom, left]`.
* @property {import("../color.js").Color|import("../colorlike.js").ColorLike|null} [text-fill-color] The fill color. Specify `null` for no fill.
* @property {import("../color.js").Color|import("../colorlike.js").ColorLike} [text-fill-color] The fill color. Specify `'none'` to avoid hit detection on the fill.
* @property {import("../color.js").Color|import("../colorlike.js").ColorLike} [text-background-fill-color] The fill color.
* @property {import("../color.js").Color|import("../colorlike.js").ColorLike} [text-stroke-color] The stroke color.
* @property {CanvasLineCap} [text-stroke-line-cap='round'] Line cap style: `butt`, `round`, or `square`.
Expand Down Expand Up @@ -310,9 +310,9 @@ export type FlatText = {
*/
"text-padding"?: number[] | undefined;
/**
* The fill color. Specify `null` for no fill.
* The fill color. Specify `'none'` to avoid hit detection on the fill.
*/
"text-fill-color"?: import("../color.js").Color | import("../colorlike.js").ColorLike | null | undefined;
"text-fill-color"?: import("../color.js").Color | import("../colorlike.js").ColorLike | undefined;
/**
* The fill color.
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/ol/style/flat.d.ts.map

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

7 changes: 5 additions & 2 deletions dist/en/main/ol/style/flat.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ import Text from './Text.js';
* `'hanging'`, `'ideographic'`.
* @property {Array<number>} [text-padding=[0, 0, 0, 0]] Padding in pixels around the text for decluttering and background. The order of
* values in the array is `[top, right, bottom, left]`.
* @property {import("../color.js").Color|import("../colorlike.js").ColorLike|null} [text-fill-color] The fill color. Specify `null` for no fill.
* @property {import("../color.js").Color|import("../colorlike.js").ColorLike} [text-fill-color] The fill color. Specify `'none'` to avoid hit detection on the fill.
* @property {import("../color.js").Color|import("../colorlike.js").ColorLike} [text-background-fill-color] The fill color.
* @property {import("../color.js").Color|import("../colorlike.js").ColorLike} [text-stroke-color] The stroke color.
* @property {CanvasLineCap} [text-stroke-line-cap='round'] Line cap style: `butt`, `round`, or `square`.
Expand Down Expand Up @@ -212,7 +212,10 @@ export function toStyle(flatStyle) {
function getFill(flatStyle, prefix) {
const color = flatStyle[prefix + 'fill-color'];
if (!color) {
return color;
return;
}
if (color === 'none') {
return null;
}

return new Fill({color: color});
Expand Down

0 comments on commit fbc9d69

Please sign in to comment.