Skip to content

Commit c4cbcec

Browse files
committed
docs: Update some namespace and private tags
1 parent 91b0d33 commit c4cbcec

File tree

7 files changed

+28
-1
lines changed

7 files changed

+28
-1
lines changed

src/annotation/annotation.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@ var annotation = function (type, args) {
12521252
/**
12531253
* Return actions needed for the specified state of this annotation.
12541254
*
1255+
* @private
12551256
* @param {object} m_this The current annotation instance.
12561257
* @param {function} s_actions The parent actions method.
12571258
* @param {string|undefined} state The state to return actions for. Defaults
@@ -1285,6 +1286,7 @@ function continuousVerticesActions(m_this, s_actions, state, name, originalArgs)
12851286
/**
12861287
* Process actions to allow drawing continuous vertices for an annotation.
12871288
*
1289+
* @private
12881290
* @param {object} m_this The current annotation instance.
12891291
* @param {geo.event} evt The action event.
12901292
* @param {string} name The name of this annotation.
@@ -1346,6 +1348,7 @@ function continuousVerticesProcessAction(m_this, evt, name) {
13461348
* that the aspect ratio of a rectangle-like selection is a specific value or
13471349
* range of values.
13481350
*
1351+
* @private
13491352
* @param {number|number[]|geo.geoSize|geo.geoSize[]} ratio Either a single
13501353
* aspect ratio, a single size, or a list of allowed aspect ratios and sizes.
13511354
* For instance, 1 will require that the selection square, 2 would require

src/tileLayer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function modulo(a, b) {
102102
/**
103103
* Pick a subdomain from a list of subdomains based on a the tile location.
104104
*
105+
* @private
105106
* @param {number} x The x tile coordinate.
106107
* @param {number} y The y tile coordinate.
107108
* @param {number} z The tile layer.
@@ -121,9 +122,9 @@ function m_getTileSubdomain(x, y, z, subdomains) {
121122
* all equivalent. The comma-separated list can have subdomains that are of
122123
* any length; the string and range both use one-character subdomains.
123124
*
125+
* @private
124126
* @param {string} base The tile format string
125127
* @returns {function} A conversion function.
126-
* @private.
127128
*/
128129
function m_tileUrlFromTemplate(base) {
129130
var xPattern = /\$?\{[xX]\}/g,

src/util/color.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ var m_memoizeConvertColor = {maxCount: 1000, count: 0, memo: {}};
7676
* be returned quickly. If the memoization table gets over a certain size,
7777
* just reset it.
7878
*
79+
* @private
7980
* @param {geo.geoColor} origColor The original color specification.
8081
* @param {geo.geoColorObject} resultColor The result of the conversion.
8182
* @returns {geo.geoColorObject} The `resultColor`.

src/util/polyops.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const AlternateOpNames = {
8282
*
8383
* @param {object[]} seglist A PolyBool segment list.
8484
* @returns {geo.polygonList|undefined} A polygon list.
85+
* @private
8586
*/
8687
function seglistToPolygonList(seglist) {
8788
// This single line doesn't arrange holes correctly
@@ -157,6 +158,7 @@ function seglistToPolygonList(seglist) {
157158
* around 0.11 mm in ground distance.
158159
* @param {object} seglist A seglist array as used by the polybool library.
159160
* @returns {object} A seglist array.
161+
* @private
160162
*/
161163
function polygonOperationSeglist(op, epsilon, seglist) {
162164
op = 'select' + op.charAt(0).toUpperCase() + op.slice(1);
@@ -223,6 +225,7 @@ function polygonOperationSeglist(op, epsilon, seglist) {
223225
* @param {geo.util.polyop.spec} [opts] Options for the operation. Only used
224226
* if poly is an object with a toPolygonList method.
225227
* @returns {geo.polygonList} A list of polygons.
228+
* @memberof geo.util.polyops
226229
*/
227230
function toPolygonList(poly, mode, opts) {
228231
mode = mode || {};
@@ -292,6 +295,7 @@ function toPolygonList(poly, mode, opts) {
292295
* @param {geo.util.polyop.spec} [opts] Options for the operation. Only used
293296
* if ``mode.style`` is an object with a fromPolygonList method.
294297
* @returns {geo.polygonAny} A polygon in one of several formats.
298+
* @memberof geo.util.polyops
295299
*/
296300
function fromPolygonList(poly, mode, opts) {
297301
if (mode.style.fromPolygonList) {
@@ -316,6 +320,7 @@ function fromPolygonList(poly, mode, opts) {
316320
/**
317321
* Use a minimum style for output to include all of the results.
318322
*
323+
* @private
319324
* @param {geo.polygonList} polylist A list of polygons.
320325
* @param {string} style the proposed style.
321326
* @returns {string} The preferred style.
@@ -346,6 +351,7 @@ function minimumPolygonStyle(polylist, style) {
346351
* Generate the correspondence between the source polygons and the output
347352
* polygons. A polygon corresponds if it has at least two points in common.
348353
*
354+
* @private
349355
* @param {geo.polygonList} poly1 First set of source polygons.
350356
* @param {geo.polygonList} poly2 Second set of source polygons.
351357
* @param {geo.polygonList} newpoly Output polygons.
@@ -408,6 +414,7 @@ function generateCorrespondence(poly1, poly2, newpoly, results) {
408414
/**
409415
* Perform a general operation of a set of polygons.
410416
*
417+
* @private
411418
* @param {string} op The operation to handle. One of union, intersect,
412419
* difference, or xor.
413420
* @param {geo.polygonAny|geo.util.polyop.spec} poly1 Either the first polygon
@@ -483,6 +490,7 @@ function generalOperationProcess(op, poly1, poly2, opts) {
483490
/**
484491
* Generate a polygon function for a specific operation.
485492
*
493+
* @private
486494
* @param {string} op The operation to handle. One of union, intersect,
487495
* difference, or xor.
488496
* @returns {function} a function for the polygons.

src/webgl/layer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ var webgl_layer = function () {
2020
* @param {number} [opacity] If specified, set the opacity. Otherwise,
2121
* return the opacity.
2222
* @returns {number|this} The current opacity or the current layer.
23+
* @memberof geo.webgl.layer
2324
*/
2425
this.opacity = function (opacity) {
2526
var result = s_opacity.apply(m_this, arguments);
@@ -36,6 +37,7 @@ var webgl_layer = function () {
3637
* get it.
3738
* @returns {boolean|this} either the visibility (if getting) or the layer
3839
* (if setting).
40+
* @memberof geo.webgl.layer
3941
*/
4042
this.visible = function (val) {
4143
if (val === undefined) {
@@ -60,6 +62,7 @@ var webgl_layer = function () {
6062
* truthy, allow other layers to have the same z-index. Otherwise,
6163
* ensure that other layers have distinct z-indices from this one.
6264
* @returns {number|this}
65+
* @memberof geo.webgl.layer
6366
*/
6467
this.zIndex = function (zIndex, allowDuplicate) {
6568
var result = s_zIndex.apply(m_this, arguments);
@@ -84,6 +87,7 @@ var webgl_layer = function () {
8487
* @param {geo.webgl.webglRenderer} newRenderer The renderer to move to.
8588
* @param {boolean} [rerender=false] If truthy, rerender after the switch.
8689
* @returns {this}
90+
* @memberof geo.webgl.layer
8791
*/
8892
this.switchRenderer = function (newRenderer, rerender) {
8993
if (newRenderer instanceof webglRenderer && newRenderer !== m_this.renderer()) {
@@ -122,6 +126,7 @@ var webgl_layer = function () {
122126
* Initialize after the layer is added to the map.
123127
*
124128
* @returns {this}
129+
* @memberof geo.webgl.layer
125130
*/
126131
this._init = function () {
127132

src/webgl/pointUtil.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var pointFeature = require('../pointFeature');
66
* @param {this} m_this The point-like feature.
77
* @param {object} [arg] Feature definition object that might specify the
88
* primitive shape.
9+
* @memberof geo.webgl
910
*/
1011
function pointUtil(m_this, arg) {
1112
arg = arg || {};

src/webgl/tileLayer.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ var webgl_tileLayer = function () {
2020
* Add a tile to the list of quads.
2121
*
2222
* @param {geo.tile} tile The tile to add and draw.
23+
* @memberof geo.webgl.tileLayer
2324
*/
2425
this._drawTile = function (tile) {
2526
if (!m_quadFeature) {
@@ -108,6 +109,7 @@ var webgl_tileLayer = function () {
108109
* @param {boolean} [val] If specified, change the visibility, otherwise
109110
* return it.
110111
* @returns {boolean|this} The current visibility or the layer.
112+
* @memberof geo.webgl.tileLayer
111113
*/
112114
this.visible = function (val) {
113115
if (val === undefined) {
@@ -132,6 +134,7 @@ var webgl_tileLayer = function () {
132134
* truthy, allow other layers to have the same z-index. Otherwise,
133135
* ensure that other layers have distinct z-indices from this one.
134136
* @returns {number|this}
137+
* @memberof geo.webgl.tileLayer
135138
*/
136139
this.zIndex = function (zIndex, allowDuplicate) {
137140
if (zIndex !== undefined) {
@@ -146,6 +149,7 @@ var webgl_tileLayer = function () {
146149
*
147150
* @param {geo.event} [evt] If specified, the layer add or remove event that
148151
* triggered this. If `undefined`, clear the quads but don't redraw.
152+
* @memberof geo.webgl.tileLayer
149153
*/
150154
this._clearQuads = function (evt) {
151155
if (evt && (!evt.layer || !(evt.layer instanceof tileLayer) || !evt.layer.autoshareRenderer() || (
@@ -168,6 +172,7 @@ var webgl_tileLayer = function () {
168172
*
169173
* @param {object} request A value to pass to the parent class.
170174
* @returns {this}
175+
* @memberof geo.webgl.tileLayer
171176
*/
172177
this._update = function (request) {
173178
s_update.call(m_this, request);
@@ -180,6 +185,7 @@ var webgl_tileLayer = function () {
180185

181186
/**
182187
* Cleanup. This purges the texture and tile cache.
188+
* @memberof geo.webgl.tileLayer
183189
*/
184190
this._cleanup = function () {
185191
var tile;
@@ -197,6 +203,7 @@ var webgl_tileLayer = function () {
197203

198204
/**
199205
* Destroy.
206+
* @memberof geo.webgl.tileLayer
200207
*/
201208
this._exit = function () {
202209
var map = m_this.map();
@@ -211,6 +218,7 @@ var webgl_tileLayer = function () {
211218

212219
/**
213220
* Initialize after the layer is added to the map.
221+
* @memberof geo.webgl.tileLayer
214222
*/
215223
this._init = function () {
216224
s_init.apply(m_this, arguments);

0 commit comments

Comments
 (0)