Skip to content

Commit c34a41b

Browse files
committed
Website updates
1 parent 12ac55c commit c34a41b

21 files changed

Lines changed: 144 additions & 39 deletions

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

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

189189
<div class="tag-source">
190190
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/expr/expression.js">expr/expression.js</a>,
191-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/expr/expression.js#L609">line 609</a>
191+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/expr/expression.js#L612">line 612</a>
192192
</div>
193193

194194
</div>
@@ -598,7 +598,7 @@ <h4 class="name">
598598

599599
<div class="tag-source">
600600
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/expr/expression.js">expr/expression.js</a>,
601-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/expr/expression.js#L436">line 436</a>
601+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/expr/expression.js#L439">line 439</a>
602602
</div>
603603

604604
</div>
@@ -840,6 +840,29 @@ <h5 class="subsection-title">Properties:</h5>
840840
</tr>
841841

842842

843+
844+
<tr>
845+
846+
<td class="name"><code>inputVariables</code></td>
847+
848+
849+
<td class="type">
850+
851+
852+
<span class="param-type"><a href="module-ol_style_flat.html#~StyleVariables">StyleVariables</a></span>
853+
854+
| undefined
855+
856+
857+
</td>
858+
859+
<td class="description last">
860+
<p>Variable values (i.e. style variables) given as input during parsing to help with type narrowing</p>
861+
862+
</td>
863+
</tr>
864+
865+
843866
</tbody>
844867
</table></dl>
845868

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/examples/tiled-layer-rendering-in-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/tiled-layer-rendering-in-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/expr/expression.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ export function isType(type: ValueType, expected: ValueType): boolean;
3333
* @property {boolean} geometryType The style uses the feature geometry type.
3434
* @property {boolean} mCoordinate The style uses the M coordinate of geometries
3535
* @property {boolean} mapState The style uses the map state (view state or time elapsed).
36+
* @property {import('../style/flat.js').StyleVariables} [inputVariables] Variable values (i.e. style variables) given as input during parsing to help with type narrowing
3637
*/
3738
/**
39+
* @param {import('../style/flat.js').StyleVariables} [inputVariables] Variable values (i.e. style variables) given as input during parsing to help with type narrowing
3840
* @return {ParsingContext} A new parsing context.
3941
*/
40-
export function newParsingContext(): ParsingContext;
42+
export function newParsingContext(inputVariables?: import("../style/flat.js").StyleVariables): ParsingContext;
4143
/**
4244
* @typedef {LiteralValue|Array} EncodedExpression
4345
*/
@@ -117,6 +119,12 @@ export type ParsingContext = {
117119
* The style uses the map state (view state or time elapsed).
118120
*/
119121
mapState: boolean;
122+
/**
123+
* Variable values (i.e. style variables) given as input during parsing to help with type narrowing
124+
*/
125+
inputVariables?: {
126+
[x: string]: string | number | boolean | number[];
127+
} | undefined;
120128
};
121129
export type EncodedExpression = LiteralValue | any[];
122130
/**

0 commit comments

Comments
 (0)