Style docs

This commit is contained in:
Tim Schaub
2015-04-04 17:35:38 +02:00
parent 02c4c8b360
commit 50f71655e5
8 changed files with 44 additions and 3 deletions
+4
View File
@@ -124,6 +124,7 @@ ol.style.Circle.prototype.getAnchor = function() {
/** /**
* Get the fill style for the circle.
* @return {ol.style.Fill} Fill style. * @return {ol.style.Fill} Fill style.
* @api * @api
*/ */
@@ -141,6 +142,7 @@ ol.style.Circle.prototype.getHitDetectionImage = function(pixelRatio) {
/** /**
* Get the image used to render the circle.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @return {HTMLCanvasElement} Canvas element. * @return {HTMLCanvasElement} Canvas element.
* @api * @api
@@ -184,6 +186,7 @@ ol.style.Circle.prototype.getOrigin = function() {
/** /**
* Get the circle radius.
* @return {number} Radius. * @return {number} Radius.
* @api * @api
*/ */
@@ -202,6 +205,7 @@ ol.style.Circle.prototype.getSize = function() {
/** /**
* Get the stroke style for the circle.
* @return {ol.style.Stroke} Stroke style. * @return {ol.style.Stroke} Stroke style.
* @api * @api
*/ */
+1
View File
@@ -33,6 +33,7 @@ ol.style.Fill = function(opt_options) {
/** /**
* Get the fill color.
* @return {ol.Color|string} Color. * @return {ol.Color|string} Color.
* @api * @api
*/ */
+2
View File
@@ -243,6 +243,7 @@ ol.style.Icon.prototype.getAnchor = function() {
/** /**
* Get the image icon.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @return {Image} Image element. * @return {Image} Image element.
* @api * @api
@@ -317,6 +318,7 @@ ol.style.Icon.prototype.getOrigin = function() {
/** /**
* Get the image URL.
* @return {string|undefined} Image src. * @return {string|undefined} Image src.
* @api * @api
*/ */
+7 -2
View File
@@ -26,7 +26,7 @@ ol.style.ImageOptions;
/** /**
* @classdesc * @classdesc
* Abstract base class; used for creating subclasses and not instantiated in * A base class used for creating subclasses and not instantiated in
* apps. Base class for {@link ol.style.Icon} and {@link ol.style.Circle}. * apps. Base class for {@link ol.style.Icon} and {@link ol.style.Circle}.
* *
* @constructor * @constructor
@@ -69,6 +69,7 @@ ol.style.Image = function(options) {
/** /**
* Get the symbolizer opacity.
* @return {number} Opacity. * @return {number} Opacity.
* @api * @api
*/ */
@@ -78,6 +79,7 @@ ol.style.Image.prototype.getOpacity = function() {
/** /**
* Determine whether the symbolizer rotates with the map.
* @return {boolean} Rotate with map. * @return {boolean} Rotate with map.
* @api * @api
*/ */
@@ -87,6 +89,7 @@ ol.style.Image.prototype.getRotateWithView = function() {
/** /**
* Get the symoblizer rotation.
* @return {number} Rotation. * @return {number} Rotation.
* @api * @api
*/ */
@@ -96,6 +99,7 @@ ol.style.Image.prototype.getRotation = function() {
/** /**
* Get the symbolizer scale.
* @return {number} Scale. * @return {number} Scale.
* @api * @api
*/ */
@@ -105,7 +109,8 @@ ol.style.Image.prototype.getScale = function() {
/** /**
* @return {boolean} Snap to pixel? * Determine whether the symbolizer should be snapped to a pixel.
* @return {boolean} The symbolizer should snap to a pixel.
* @api * @api
*/ */
ol.style.Image.prototype.getSnapToPixel = function() { ol.style.Image.prototype.getSnapToPixel = function() {
+6
View File
@@ -149,6 +149,7 @@ ol.style.RegularShape.prototype.getAnchor = function() {
/** /**
* Get the angle used in generating the shape.
* @return {number} Shape's rotation in radians. * @return {number} Shape's rotation in radians.
* @api * @api
*/ */
@@ -158,6 +159,7 @@ ol.style.RegularShape.prototype.getAngle = function() {
/** /**
* Get the fill style for the shape.
* @return {ol.style.Fill} Fill style. * @return {ol.style.Fill} Fill style.
* @api * @api
*/ */
@@ -217,6 +219,7 @@ ol.style.RegularShape.prototype.getOrigin = function() {
/** /**
* Get the number of points for generating the shape.
* @return {number} Number of points for stars and regular polygons. * @return {number} Number of points for stars and regular polygons.
* @api * @api
*/ */
@@ -226,6 +229,7 @@ ol.style.RegularShape.prototype.getPoints = function() {
/** /**
* Get the (primary) radius for the shape.
* @return {number} Radius. * @return {number} Radius.
* @api * @api
*/ */
@@ -235,6 +239,7 @@ ol.style.RegularShape.prototype.getRadius = function() {
/** /**
* Get the secondary radius for the shape.
* @return {number} Radius2. * @return {number} Radius2.
* @api * @api
*/ */
@@ -253,6 +258,7 @@ ol.style.RegularShape.prototype.getSize = function() {
/** /**
* Get the stroke style for the shape.
* @return {ol.style.Stroke} Stroke style. * @return {ol.style.Stroke} Stroke style.
* @api * @api
*/ */
+6
View File
@@ -68,6 +68,7 @@ ol.style.Stroke = function(opt_options) {
/** /**
* Get the stroke color.
* @return {ol.Color|string} Color. * @return {ol.Color|string} Color.
* @api * @api
*/ */
@@ -77,6 +78,7 @@ ol.style.Stroke.prototype.getColor = function() {
/** /**
* Get the line cap type for the stroke.
* @return {string|undefined} Line cap. * @return {string|undefined} Line cap.
* @api * @api
*/ */
@@ -86,6 +88,7 @@ ol.style.Stroke.prototype.getLineCap = function() {
/** /**
* Get the line dash style for the stroke.
* @return {Array.<number>} Line dash. * @return {Array.<number>} Line dash.
* @api * @api
*/ */
@@ -95,6 +98,7 @@ ol.style.Stroke.prototype.getLineDash = function() {
/** /**
* Get the line join type for the stroke.
* @return {string|undefined} Line join. * @return {string|undefined} Line join.
* @api * @api
*/ */
@@ -104,6 +108,7 @@ ol.style.Stroke.prototype.getLineJoin = function() {
/** /**
* Get the miter limit for the stroke.
* @return {number|undefined} Miter limit. * @return {number|undefined} Miter limit.
* @api * @api
*/ */
@@ -113,6 +118,7 @@ ol.style.Stroke.prototype.getMiterLimit = function() {
/** /**
* Get the stroke width.
* @return {number|undefined} Width. * @return {number|undefined} Width.
* @api * @api
*/ */
+8 -1
View File
@@ -76,6 +76,7 @@ ol.style.Style = function(opt_options) {
/** /**
* Get the geometry to be rendered.
* @return {string|ol.geom.Geometry|ol.style.GeometryFunction} * @return {string|ol.geom.Geometry|ol.style.GeometryFunction}
* Feature property or geometry or function that returns the geometry that will * Feature property or geometry or function that returns the geometry that will
* be rendered with this style. * be rendered with this style.
@@ -87,6 +88,7 @@ ol.style.Style.prototype.getGeometry = function() {
/** /**
* Get the function used to generate a geometry for rendering.
* @return {!ol.style.GeometryFunction} Function that is called with a feature * @return {!ol.style.GeometryFunction} Function that is called with a feature
* and returns the geometry to render instead of the feature's geometry. * and returns the geometry to render instead of the feature's geometry.
* @api * @api
@@ -97,6 +99,7 @@ ol.style.Style.prototype.getGeometryFunction = function() {
/** /**
* Get the fill style.
* @return {ol.style.Fill} Fill style. * @return {ol.style.Fill} Fill style.
* @api * @api
*/ */
@@ -106,6 +109,7 @@ ol.style.Style.prototype.getFill = function() {
/** /**
* Get the image style.
* @return {ol.style.Image} Image style. * @return {ol.style.Image} Image style.
* @api * @api
*/ */
@@ -115,6 +119,7 @@ ol.style.Style.prototype.getImage = function() {
/** /**
* Get the stroke style.
* @return {ol.style.Stroke} Stroke style. * @return {ol.style.Stroke} Stroke style.
* @api * @api
*/ */
@@ -124,6 +129,7 @@ ol.style.Style.prototype.getStroke = function() {
/** /**
* Get the text style.
* @return {ol.style.Text} Text style. * @return {ol.style.Text} Text style.
* @api * @api
*/ */
@@ -133,6 +139,7 @@ ol.style.Style.prototype.getText = function() {
/** /**
* Get the z-index for the style.
* @return {number|undefined} ZIndex. * @return {number|undefined} ZIndex.
* @api * @api
*/ */
@@ -175,7 +182,7 @@ ol.style.Style.prototype.setGeometry = function(geometry) {
/** /**
* Set the zIndex. * Set the z-index.
* *
* @param {number|undefined} zIndex ZIndex. * @param {number|undefined} zIndex ZIndex.
* @api * @api
+10
View File
@@ -77,6 +77,7 @@ ol.style.Text = function(opt_options) {
/** /**
* Get the font name.
* @return {string|undefined} Font. * @return {string|undefined} Font.
* @api * @api
*/ */
@@ -86,6 +87,7 @@ ol.style.Text.prototype.getFont = function() {
/** /**
* Get the x-offset for the text.
* @return {number} Horizontal text offset. * @return {number} Horizontal text offset.
* @api * @api
*/ */
@@ -95,6 +97,7 @@ ol.style.Text.prototype.getOffsetX = function() {
/** /**
* Get the y-offset for the text.
* @return {number} Vertical text offset. * @return {number} Vertical text offset.
* @api * @api
*/ */
@@ -104,6 +107,7 @@ ol.style.Text.prototype.getOffsetY = function() {
/** /**
* Get the fill style for the text.
* @return {ol.style.Fill} Fill style. * @return {ol.style.Fill} Fill style.
* @api * @api
*/ */
@@ -113,6 +117,7 @@ ol.style.Text.prototype.getFill = function() {
/** /**
* Get the text rotation.
* @return {number|undefined} Rotation. * @return {number|undefined} Rotation.
* @api * @api
*/ */
@@ -122,6 +127,7 @@ ol.style.Text.prototype.getRotation = function() {
/** /**
* Get the text scale.
* @return {number|undefined} Scale. * @return {number|undefined} Scale.
* @api * @api
*/ */
@@ -131,6 +137,7 @@ ol.style.Text.prototype.getScale = function() {
/** /**
* Get the stroke style for the text.
* @return {ol.style.Stroke} Stroke style. * @return {ol.style.Stroke} Stroke style.
* @api * @api
*/ */
@@ -140,6 +147,7 @@ ol.style.Text.prototype.getStroke = function() {
/** /**
* Get the text to be rendered.
* @return {string|undefined} Text. * @return {string|undefined} Text.
* @api * @api
*/ */
@@ -149,6 +157,7 @@ ol.style.Text.prototype.getText = function() {
/** /**
* Get the text alignment.
* @return {string|undefined} Text align. * @return {string|undefined} Text align.
* @api * @api
*/ */
@@ -158,6 +167,7 @@ ol.style.Text.prototype.getTextAlign = function() {
/** /**
* Get the text baseline.
* @return {string|undefined} Text baseline. * @return {string|undefined} Text baseline.
* @api * @api
*/ */