From f08f31101cfa0fc3dd231ef5bc4df2b333fdbc1a Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 3 May 2021 07:32:12 -0600 Subject: [PATCH] Lowercase module names for modules without a default export --- src/ol/format/OWS.js | 2 +- src/ol/format/WMSCapabilities.js | 2 +- src/ol/format/WMTSCapabilities.js | 2 +- src/ol/format/{XLink.js => xlink.js} | 2 +- src/ol/layer/WebGLPoints.js | 2 +- src/ol/style/{LiteralStyle.js => literal.js} | 4 ++-- src/ol/webgl/ShaderBuilder.js | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) rename src/ol/format/{XLink.js => xlink.js} (90%) rename src/ol/style/{LiteralStyle.js => literal.js} (95%) diff --git a/src/ol/format/OWS.js b/src/ol/format/OWS.js index 5883512be7..e0f11de908 100644 --- a/src/ol/format/OWS.js +++ b/src/ol/format/OWS.js @@ -8,7 +8,7 @@ import { makeStructureNS, pushParseAndPop, } from '../xml.js'; -import {readHref} from './XLink.js'; +import {readHref} from './xlink.js'; import {readString} from './xsd.js'; /** diff --git a/src/ol/format/WMSCapabilities.js b/src/ol/format/WMSCapabilities.js index 4a72564fa4..38594ec232 100644 --- a/src/ol/format/WMSCapabilities.js +++ b/src/ol/format/WMSCapabilities.js @@ -17,7 +17,7 @@ import { readNonNegativeIntegerString, readString, } from './xsd.js'; -import {readHref} from './XLink.js'; +import {readHref} from './xlink.js'; /** * @const diff --git a/src/ol/format/WMTSCapabilities.js b/src/ol/format/WMTSCapabilities.js index 9dceae171d..554c9a2337 100644 --- a/src/ol/format/WMTSCapabilities.js +++ b/src/ol/format/WMTSCapabilities.js @@ -12,7 +12,7 @@ import { pushParseAndPop, } from '../xml.js'; import {readDecimal, readNonNegativeInteger, readString} from './xsd.js'; -import {readHref} from './XLink.js'; +import {readHref} from './xlink.js'; /** * @const diff --git a/src/ol/format/XLink.js b/src/ol/format/xlink.js similarity index 90% rename from src/ol/format/XLink.js rename to src/ol/format/xlink.js index 2c03fcf9d1..08922cbf15 100644 --- a/src/ol/format/XLink.js +++ b/src/ol/format/xlink.js @@ -1,5 +1,5 @@ /** - * @module ol/format/XLink + * @module ol/format/xlink */ /** diff --git a/src/ol/layer/WebGLPoints.js b/src/ol/layer/WebGLPoints.js index 22a31a11a7..ebe0df2a1c 100644 --- a/src/ol/layer/WebGLPoints.js +++ b/src/ol/layer/WebGLPoints.js @@ -8,7 +8,7 @@ import {parseLiteralStyle} from '../webgl/ShaderBuilder.js'; /** * @typedef {Object} Options - * @property {import('../style/LiteralStyle.js').LiteralStyle} style Literal style to apply to the layer features. + * @property {import('../style/literal.js').LiteralStyle} style Literal style to apply to the layer features. * @property {string} [className='ol-layer'] A CSS class name to set to the layer element. * @property {number} [opacity=1] Opacity (0, 1). * @property {boolean} [visible=true] Visibility. diff --git a/src/ol/style/LiteralStyle.js b/src/ol/style/literal.js similarity index 95% rename from src/ol/style/LiteralStyle.js rename to src/ol/style/literal.js index 03326a0945..3fc310126a 100644 --- a/src/ol/style/LiteralStyle.js +++ b/src/ol/style/literal.js @@ -1,7 +1,7 @@ /** - * Literal Style objects differ from standard styles in that they cannot + * Literal style objects differ from standard styles in that they cannot * be functions and are made up of simple objects instead of classes. - * @module ol/style/LiteralStyle + * @module ol/style/literal */ /** diff --git a/src/ol/webgl/ShaderBuilder.js b/src/ol/webgl/ShaderBuilder.js index 302175f1b8..281da512b6 100644 --- a/src/ol/webgl/ShaderBuilder.js +++ b/src/ol/webgl/ShaderBuilder.js @@ -414,14 +414,14 @@ ${hitDetectionBypass} */ /** - * Parses a {@link import("../style/LiteralStyle").LiteralStyle} object and returns a {@link ShaderBuilder} + * Parses a {@link import("../style/literal").LiteralStyle} object and returns a {@link ShaderBuilder} * object that has been configured according to the given style, as well as `attributes` and `uniforms` * arrays to be fed to the `WebGLPointsRenderer` class. * * Also returns `uniforms` and `attributes` properties as expected by the * {@link module:ol/renderer/webgl/PointsLayer~WebGLPointsLayerRenderer}. * - * @param {import("../style/LiteralStyle").LiteralStyle} style Literal style. + * @param {import("../style/literal").LiteralStyle} style Literal style. * @return {StyleParseResult} Result containing shader params, attributes and uniforms. */ export function parseLiteralStyle(style) {