jkonieczny
4c7f52c8a4
Offset for ImageStyle
2020-01-15 11:13:44 +01:00
jkonieczny
1506e13b60
use anchor for offsetting
2020-01-15 11:13:44 +01:00
jkonieczny
601bd7bae6
add offset option to RegularShape
2020-01-15 11:13:44 +01:00
Olivier Guyot
6c46eb1dd0
Webgl / add support for a rotation parameter in LiteralStyle
...
The ShaderBuilder can now take a rotation expression.
2019-12-20 17:39:40 +01:00
Olivier Guyot
6f000e3155
Add missing documentation in ol/style/expressions
2019-12-20 17:13:15 +01:00
Jan Suleiman
2581252f88
Fix documentation of Stroke.lineDash default value
...
Documentation states that default value of lineDash is `undefined`, but it is `null` actually.
2019-11-11 11:39:26 +01:00
Olivier Guyot
e5e03d46a0
Webgl points renderer / more optimizations
...
Simplify calls in the attributes callback, also less stress
on garbage collection.
2019-11-04 09:31:38 +01:00
Frédéric Junod
7d7228d45c
Update src/ol/style/expressions.js
...
Co-Authored-By: Olivier Guyot <olivier.guyot@camptocamp.com >
2019-10-29 10:50:14 +01:00
Frederic Junod
b0ed775bc6
Documentation fixes
2019-10-29 08:42:11 +01:00
Olivier Guyot
b96e70e952
Expressions / renamed mod to % to be more in line with MB style spec
2019-10-28 15:55:15 +01:00
Olivier Guyot
501c90b0a2
Expressions / introduced the case operator
...
This operator is used for if/else control flow
2019-10-28 15:52:31 +01:00
Olivier Guyot
2f49876180
Expressions / add != operator & slightly better doc
2019-10-28 15:13:43 +01:00
Frederic Junod
daaf9695ff
Add assertNumbers function in ol/style/expressions
2019-10-25 15:46:49 +02:00
Olivier Guyot
4462608991
Expressions / adds color and array conversion operators
...
Also fixes existing error throwingtests which were essentially doing nothing.
2019-10-25 14:55:44 +02:00
Olivier Guyot
ff3cc9b4d0
Expressions / renamed operator pow to ^
...
To be more in line with Mapbox style spec
2019-10-25 14:55:44 +02:00
Olivier Guyot
acf973751b
Webgl / added time and resolution as default uniforms
...
Also added the `zoom` and `resolution` style operators
2019-10-25 14:55:44 +02:00
Olivier Guyot
e843b2cfc0
Expressions / adaptation and cleanup after stretch operator removal
...
The examples have been fixed as well.
2019-10-25 14:55:44 +02:00
Olivier Guyot
719495587c
Expressions / rework the interpolate operator
...
This operator is now able to map numbers to output ranges as well as colors,
making the stretch operator unnecessary. Also allows giving multiple stops,
like in Mapbox style spec.
2019-10-25 14:55:44 +02:00
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