Move olx.style.CircleOptions to ol/style/Circle
This commit is contained in:
@@ -49,64 +49,6 @@ olx.render.State.prototype.resolution;
|
|||||||
olx.render.State.prototype.rotation;
|
olx.render.State.prototype.rotation;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef {{fill: (module:ol/style/Fill~Fill|undefined),
|
|
||||||
* radius: number,
|
|
||||||
* snapToPixel: (boolean|undefined),
|
|
||||||
* stroke: (module:ol/style/Stroke~Stroke|undefined),
|
|
||||||
* atlasManager: (module:ol/style/AtlasManager~AtlasManager|undefined)}}
|
|
||||||
*/
|
|
||||||
olx.style.CircleOptions;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fill style.
|
|
||||||
* @type {module:ol/style/Fill~Fill|undefined}
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
olx.style.CircleOptions.prototype.fill;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Circle radius.
|
|
||||||
* @type {number}
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
olx.style.CircleOptions.prototype.radius;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* If `true` integral numbers of pixels are used as the X and Y pixel
|
|
||||||
* coordinate when drawing the circle in the output canvas. If `false`
|
|
||||||
* fractional numbers may be used. Using `true` allows for "sharp"
|
|
||||||
* rendering (no blur), while using `false` allows for "accurate"
|
|
||||||
* rendering. Note that accuracy is important if the circle's
|
|
||||||
* position is animated. Without it, the circle may jitter noticeably.
|
|
||||||
* Default value is `true`.
|
|
||||||
* @type {boolean|undefined}
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
olx.style.CircleOptions.prototype.snapToPixel;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Stroke style.
|
|
||||||
* @type {module:ol/style/Stroke~Stroke|undefined}
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
olx.style.CircleOptions.prototype.stroke;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The atlas manager to use for this circle. When using WebGL it is
|
|
||||||
* recommended to use an atlas manager to avoid texture switching.
|
|
||||||
* If an atlas manager is given, the circle is added to an atlas.
|
|
||||||
* By default no atlas manager is used.
|
|
||||||
* @type {module:ol/style/AtlasManager~AtlasManager|undefined}
|
|
||||||
*/
|
|
||||||
olx.style.CircleOptions.prototype.atlasManager;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{anchor: (Array.<number>|undefined),
|
* @typedef {{anchor: (Array.<number>|undefined),
|
||||||
* anchorOrigin: (module:ol/style/IconOrigin~IconOrigin|undefined),
|
* anchorOrigin: (module:ol/style/IconOrigin~IconOrigin|undefined),
|
||||||
|
|||||||
+17
-1
@@ -4,12 +4,28 @@
|
|||||||
import {inherits} from '../index.js';
|
import {inherits} from '../index.js';
|
||||||
import RegularShape from '../style/RegularShape.js';
|
import RegularShape from '../style/RegularShape.js';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} Options
|
||||||
|
* @property {module:ol/style/Fill~Fill} [fill] Fill style.
|
||||||
|
* @property {number} radius Circle radius.
|
||||||
|
* @property {boolean} [snapToPixel=true] If `true` integral numbers of pixels are used as the X and Y pixel coordinate
|
||||||
|
* when drawing the circle in the output canvas. If `false` fractional numbers may be used. Using `true` allows for
|
||||||
|
* "sharp" rendering (no blur), while using `false` allows for "accurate" rendering. Note that accuracy is important if
|
||||||
|
* the circle's position is animated. Without it, the circle may jitter noticeably.
|
||||||
|
* @property {module:ol/style/Stroke~Stroke} [stroke] Stroke style.
|
||||||
|
* @property {module:ol/style/AtlasManager~AtlasManager} [atlasManager] The atlas manager to use for this circle.
|
||||||
|
* When using WebGL it is recommended to use an atlas manager to avoid texture switching. If an atlas manager is given,
|
||||||
|
* the circle is added to an atlas. By default no atlas manager is used.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @classdesc
|
||||||
* Set circle style for vector features.
|
* Set circle style for vector features.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {olx.style.CircleOptions=} opt_options Options.
|
* @param {module:ol/style/Circle~Options=} opt_options Options.
|
||||||
* @extends {module:ol/style/RegularShape~RegularShape}
|
* @extends {module:ol/style/RegularShape~RegularShape}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user