Shorter module paths for default exports
This commit is contained in:
@@ -13,7 +13,7 @@ import ImageStyle from '../style/Image.js';
|
||||
/**
|
||||
* Specify radius for regular polygons, or radius1 and radius2 for stars.
|
||||
* @typedef {Object} Options
|
||||
* @property {module:ol/style/Fill~Fill} [fill] Fill style.
|
||||
* @property {module:ol/style/Fill} [fill] Fill style.
|
||||
* @property {number} points Number of points for stars and regular polygons. In case of a polygon, the number of points
|
||||
* is the number of sides.
|
||||
* @property {number} [radius] Radius of a regular polygon.
|
||||
@@ -24,10 +24,10 @@ import ImageStyle from '../style/Image.js';
|
||||
* when drawing the shape 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 shape's position is animated. Without it, the shape may jitter noticeably.
|
||||
* @property {module:ol/style/Stroke~Stroke} [stroke] Stroke style.
|
||||
* @property {module:ol/style/Stroke} [stroke] Stroke style.
|
||||
* @property {number} [rotation=0] Rotation in radians (positive rotation clockwise).
|
||||
* @property {boolean} [rotateWithView=false] Whether to rotate the shape with the view.
|
||||
* @property {module:ol/style/AtlasManager~AtlasManager} [atlasManager] The atlas manager to use for this symbol. When
|
||||
* @property {module:ol/style/AtlasManager} [atlasManager] The atlas manager to use for this symbol. When
|
||||
* using WebGL it is recommended to use an atlas manager to avoid texture switching. If an atlas manager is given, the
|
||||
* symbol is added to an atlas. By default no atlas manager is used.
|
||||
*/
|
||||
@@ -53,7 +53,7 @@ import ImageStyle from '../style/Image.js';
|
||||
*
|
||||
* @constructor
|
||||
* @param {module:ol/style/RegularShape~Options} options Options.
|
||||
* @extends {module:ol/style/Image~ImageStyle}
|
||||
* @extends {module:ol/style/Image}
|
||||
* @api
|
||||
*/
|
||||
const RegularShape = function(options) {
|
||||
@@ -77,7 +77,7 @@ const RegularShape = function(options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/style/Fill~Fill}
|
||||
* @type {module:ol/style/Fill}
|
||||
*/
|
||||
this.fill_ = options.fill !== undefined ? options.fill : null;
|
||||
|
||||
@@ -114,7 +114,7 @@ const RegularShape = function(options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/style/Stroke~Stroke}
|
||||
* @type {module:ol/style/Stroke}
|
||||
*/
|
||||
this.stroke_ = options.stroke !== undefined ? options.stroke : null;
|
||||
|
||||
@@ -144,7 +144,7 @@ const RegularShape = function(options) {
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @type {module:ol/style/AtlasManager~AtlasManager|undefined}
|
||||
* @type {module:ol/style/AtlasManager|undefined}
|
||||
*/
|
||||
this.atlasManager_ = options.atlasManager;
|
||||
|
||||
@@ -176,7 +176,7 @@ inherits(RegularShape, ImageStyle);
|
||||
|
||||
/**
|
||||
* Clones the style. If an atlasmanager was provided to the original style it will be used in the cloned style, too.
|
||||
* @return {module:ol/style/RegularShape~RegularShape} The cloned style.
|
||||
* @return {module:ol/style/RegularShape} The cloned style.
|
||||
* @api
|
||||
*/
|
||||
RegularShape.prototype.clone = function() {
|
||||
@@ -219,7 +219,7 @@ RegularShape.prototype.getAngle = function() {
|
||||
|
||||
/**
|
||||
* Get the fill style for the shape.
|
||||
* @return {module:ol/style/Fill~Fill} Fill style.
|
||||
* @return {module:ol/style/Fill} Fill style.
|
||||
* @api
|
||||
*/
|
||||
RegularShape.prototype.getFill = function() {
|
||||
@@ -318,7 +318,7 @@ RegularShape.prototype.getSize = function() {
|
||||
|
||||
/**
|
||||
* Get the stroke style for the shape.
|
||||
* @return {module:ol/style/Stroke~Stroke} Stroke style.
|
||||
* @return {module:ol/style/Stroke} Stroke style.
|
||||
* @api
|
||||
*/
|
||||
RegularShape.prototype.getStroke = function() {
|
||||
@@ -346,7 +346,7 @@ RegularShape.prototype.unlistenImageChange = function(listener, thisArg) {};
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @param {module:ol/style/AtlasManager~AtlasManager|undefined} atlasManager An atlas manager.
|
||||
* @param {module:ol/style/AtlasManager|undefined} atlasManager An atlas manager.
|
||||
*/
|
||||
RegularShape.prototype.render_ = function(atlasManager) {
|
||||
let imageSize;
|
||||
|
||||
Reference in New Issue
Block a user