Commit Graph

39 Commits

Author SHA1 Message Date
Maximilian Krög
a076899470 Make Text options typesafe 2022-07-29 21:24:46 +02:00
Maximilian Krög
69caa06783 Replace TextPlacement enum with typedef 2022-07-19 22:56:45 +02:00
Denis
585ae66961 Fix review for text justify 2022-04-14 13:06:49 +02:00
Denis
e00e3a7b8e Improve jsDoc for style/Text justify 2022-04-13 00:08:15 +02:00
Denis
5a61bb51f5 Extend Text.js: add justification option 2022-04-13 00:08:15 +02:00
Denis
f3208a2331 Fix Text#setText jsDoc 2022-03-11 20:36:09 +01:00
Andreas Hocevar
18f06b8b9a Rich text labels 2022-02-23 12:36:56 +01:00
EvertEt
e3d3d24f05 Improve some null types to prepare for strictNullChecks 2022-01-31 19:35:25 +01:00
Simon Seyock
8facb252f1 Replace google closure syntax = with brackets around name 2021-02-03 14:06:02 +01:00
mike-000
cf0e650435 allow scale to be two dimensional
add getScaleArray() method

test two dimension scale icons
test two dimension scale text

add example of icon and label scaling
use smaller icon and larger interval
test two dimensional scale icons
test two dimensional scale icons
2020-05-20 09:54:47 +01:00
Tim Schaub
054af09032 Make code prettier
This updates ESLint and our shared eslint-config-openlayers to use Prettier.  Most formatting changes were automatically applied with this:

    npm run lint -- --fix

A few manual changes were required:

 * In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
 * In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason.  While editing this, I reworked `ExampleBuilder` to be a class.
 * In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Olivier Terral
7c9ebf8b1b Clone the text's padding 2019-09-06 12:16:04 +02:00
Frederic Junod
08dd5f58a2 Set the default values after the property name 2019-04-15 16:44:06 +02: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
caaf8cb86f Simplify import path in ol/style/ 2018-11-05 16:26:45 +01:00
Frederic Junod
ea616e7751 Don't import ourselves 2018-09-06 09:05:32 +02:00
Tim Schaub
ccfacc5ee6 Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e):

    jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Tim Schaub
d12ef20b12 Use Array<Foo> instead of Array.<Foo> 2018-07-25 18:32:43 -07:00
ahocevar
bbe0a66d07 Set api annotation on classdesc, not constructor 2018-07-21 17:25:22 +02:00
Tim Schaub
d46471d763 Replace {@link https://www.example.com/} with https://www.example.com/ 2018-07-19 08:34:35 -06:00
Tim Schaub
9ce36da349 Remove @extends and @constructor annotations 2018-07-18 00:36:29 -06:00
Tim Schaub
d0ab8dce38 Lint removal 2018-07-16 17:57:57 -06:00
Tim Schaub
f78d0d4cfa Manual class transform 2018-07-16 17:09:50 -06:00
ahocevar
59d904e509 Fix some types 2018-04-27 09:30:51 +02:00
ahocevar
440d1ad3e1 Shorter module paths for default exports 2018-04-25 17:25:39 +02:00
ahocevar
3d50c0ec68 Fix rotation default 2018-04-20 01:17:02 +02:00
Benjamin Gerber
84b6e6c7ad Correct type for TextPlacement (jsdoc) 2018-04-19 10:09:21 +02:00
Michael Kuenzli
1e17ddb8d6 Move olx.style.TextOptions to ol/style/Text 2018-04-17 17:21:56 +02:00
Frederic Junod
7cbc22fece Module type for ol.style.* 2018-03-27 15:09:52 +02:00
Tim Schaub
2cf7dbc4de Remove private static members from Text style 2018-02-12 07:12:02 -07:00
Tim Schaub
ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
c5a4be2edd Rename _ol_style_Text_ to Text 2018-01-11 13:25:48 -07:00
Tim Schaub
dc6ae2293d Rename _ol_style_Fill_ to Fill 2018-01-11 13:23:27 -07:00
Andreas Hocevar
0158738aff Clone backgroundFill and backgroundStroke 2017-12-26 19:33:47 +01:00
Frederic Junod
424ea22131 Rename _ol_style_TextPlacement_ to TextPlacement 2017-12-18 10:53:12 +01:00
Tim Schaub
72ff21e01f Remove exceedLength 2017-12-12 19:29:42 -07:00
Tim Schaub
7f47883c48 Transformed 2017-12-12 06:53:18 -07:00
Tim Schaub
1cdb6a66f0 Imports cased like the filename 2017-12-12 06:53:17 -07:00