Olivier Guyot
9e010631c1
Expressions / refactor operators to avoid linting errors
...
Previously the utilities used the Operators dict before its definition.
2019-10-25 14:55:44 +02:00
Olivier Guyot
a39f751981
Shader Builder / adapt logic & test to the new expression types
...
Also fixes a sneaky bug where the two last texture coordinates were inverted.
2019-10-25 14:55:44 +02:00
Olivier Guyot
27c530ec64
Expressions / introduce the match operator
...
This operator allows mapping from input values to output values of different
kinds and handles variable arguments count.
2019-10-25 14:55:44 +02:00
Olivier Guyot
e3f7d29bb2
Expressions / add utilities for using strings in GLSL & more type checking
...
It is now possible to specify a type hint when parsing an expression, which
helps determine the output value type.
When no single output type can be inferred, an error is thrown.
For strings, every literal value will be replaced by a number and a map of
these associations will be kept in the parsing context, which is passed
recursively.
2019-10-25 14:55:44 +02:00
Olivier Guyot
bcf7649b9a
Expressions / store the variables & attributes in the context
2019-10-25 14:55:44 +02:00
Olivier Guyot
7e4119d580
Expressions / restored the parsing logic with better type checking
...
Converting expressions to GLSL is now done in ol/style/expressions, with the
same logic as before in ol/webgl/ShaderBuilder.
2019-10-25 14:55:44 +02:00
Olivier Guyot
72903d6454
Expressions / added operator declarations & type checking logic
2019-10-25 14:55:44 +02:00
Olivier Guyot
35af80b433
Style / add an ol/style/expressions module
...
This module will contain the utilities and operator declarations
for literal style expressions, boh for type checking and parsing
2019-10-25 14:55:44 +02:00
Olivier Guyot
d837166a1b
Literal Style / add new math operators
2019-10-22 23:17:00 +02:00
Olivier Guyot
485ade42b5
Literal Style / add support for color interpolation
2019-10-22 23:17:00 +02:00
Olivier Guyot
a0b271a812
Literal Style / add support for variables in the style
...
These variables are accessed using the `var` operator, and are meant
to be mutated directly in the style object. When doing so,
the new value will always be used for the render.
This is intended to be used for modifying the style through external
parameters such as an input field, a slider, mouse position etc.
2019-10-22 23:17:00 +02:00
Olivier Guyot
0c0c8c5d56
Literal Style / add support for a filter property
2019-10-22 23:17:00 +02:00
Frederic Junod
daaaff5ac7
Remove unnecessary typecast
...
Remove typecast where typescript is able to correctly deduce the type.
2019-10-02 10:44:06 +02:00
Frederic Junod
f67476dd8f
Mark properties as nullable
2019-09-27 13:57:59 +02:00
Andreas Hocevar
3a10476c1c
Merge pull request #10007 from mike-000/patch-1
...
Changes for #9395 CircleStyle inconsistency
2019-09-26 18:46:24 +02:00
Andreas Hocevar
86d99fa35c
Merge pull request #10017 from KlausBenndorf/jsdoc-plugin-typescript
...
updated jsdoc-plugin-typescript
2019-09-26 17:55:48 +02:00
Simon Seyock
09cad9b5f9
fixed jsdoc problems
2019-09-26 17:00:46 +02:00
mike-000
e28fa56edd
Changes for the CircleStyle inconsistency seen in #9395
...
Change hit detection test to reflect fix for #9395 CircleStyle inconsistency
Update ol/style/Circle and ol/style/RegularShapen tests
Revise test for no fill
Add test for transparent fill
Update Upgrade notes
Changes to hit detection with unfilled styles
2019-09-26 14:27:31 +01:00
Olivier Guyot
0732f17fd3
Webgl layer / remove @api tag & better doc
...
Also the webgl layer now only inherits from the Layer class,
not the VectorLayer one.
2019-09-26 14:42:04 +02:00
Olivier Guyot
4d7562fca2
Add a new WebGLPointsLayer type using the shader builder utilities
...
This required adding a `a_index` attribute in the points layer renderer
to be able to make the precomputed shaders to work.
2019-09-24 17:24:56 +02:00
Olivier Terral
7c9ebf8b1b
Clone the text's padding
2019-09-06 12:16:04 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
Frederic Junod
ad51c7c08f
Use CanvasLineCap type instead of string
2019-07-05 11:11:35 +02:00
Frederic Junod
7a8a0c18ae
Use CanvasLineJoin type instead of string
2019-07-05 11:07:10 +02:00
Frederic Junod
9aa11d2e11
Update the circle style after setRadius calls
2019-06-25 10:42:52 +02:00
Frederic Junod
0d6368d4ec
Remove underscore from protected function, fix indentation, remove typecast
2019-06-25 10:40:11 +02:00
Frederic Junod
50343afa61
Remove unnecessary typecasts in constructors options
2019-06-03 09:08:41 +02:00
Frederic Junod
a0e6af425e
Add tests for listenImage function, fix private variables initialization
2019-05-16 16:42:37 +02:00
Tim Schaub
ee9a0bcd05
Stop listening for image decoding
2019-05-16 08:06:12 -06:00
Frederic Junod
2e34dd0faf
Use HTMLImageElement.decode if available
2019-05-16 08:53:29 +02:00
Frederic Junod
08dd5f58a2
Set the default values after the property name
2019-04-15 16:44:06 +02:00
ahocevar
b33ceaa400
More efficient default fill color
2019-03-19 13:57:10 +01:00
Frederic Junod
4cb9b1eeb3
Add setRotateWithView function to ol/style/Text
2019-02-19 14:20:58 +01:00
Frederic Junod
f0a97ee460
Fix comments indentation
2019-02-19 14:12:14 +01:00
Frederic Junod
6bab8793a2
Remove deprecated {get,set}SnapToPixel functions
2019-02-18 14:07:27 +01:00
Frederic Junod
c0a860a31f
Remove unnecessary type cast
2019-02-13 11:42:22 +01:00
Frederic Junod
3193de0906
Only schedule the icon cache expire when it's needed
2018-12-19 14:34:22 +01:00
Frederic Junod
0ec769c234
Remove getChecksum functions
2018-12-14 13:00:35 +01:00
Frederic Junod
1bb1e3c542
Remove Atlas and AtlasManager
2018-12-14 13:00:35 +01:00
Frederic Junod
d2cae9d3b7
Remove type cast in ol/style/AtlasManager
2018-12-12 14:45:51 +01:00
Frederic Junod
b3520f8217
Remove CANVAS_LINE_DASH from ol/has
...
Test if `context.setLineDash` is defined instead.
2018-12-07 13:15:23 +01:00
Niklas Alt
4bc9216e41
Add ': void' to non returning functions (error TS7014)
2018-12-06 19:57:45 +01:00
Frederic Junod
0189e8345d
Remove WebGL references in comments
2018-11-16 14:05:06 +01:00
Frederic Junod
caaf8cb86f
Simplify import path in ol/style/
2018-11-05 16:26:45 +01:00
ahocevar
1cdd040c96
Throw when calling abstract methods; fix abstract return types
2018-10-30 18:55:49 +01:00
Frederic Junod
1a0f398f1f
Fix wrong filename in type annotation
2018-10-17 15:47:15 +02:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +02:00
Frederic Junod
ae87cad7ef
Use FeatureLike typedef
...
Use `import("./Feature.js").FeatureLike` typedef instead of `import("./Feature.js").default|import("./render/Feature.js").default`
2018-10-02 12:58:56 +02:00
Kevin Schmidt
124fccf127
Fix style TypeScript errors
2018-09-17 12:38:00 -06:00