text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: src/ol/extent/Corner.js /** * @module ol/extent/Corner */ /** * Extent corner. * @enum {string} */ export default { BOTTOM_LEFT: 'bottom-left', BOTTOM_RIGHT: 'bottom-right', TOP_LEFT: 'top-left', TOP_RIGHT: 'top-right', };
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/extent/Corner.js", "license": "bsd-2-clause", "size": 213}
### File: src/ol/extent/Relationship.js /** * @module ol/extent/Relationship */ /** * Relationship to an extent. * @enum {number} */ export default { UNKNOWN: 0, INTERSECTING: 1, ABOVE: 2, RIGHT: 4, BELOW: 8, LEFT: 16, };
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/extent/Relationship.js", "license": "bsd-2-clause", "size": 200}
### File: src/ol/featureloader.js /** * @module ol/featureloader */ import FormatType from './format/FormatType.js'; import {VOID} from './functions.js'; /** * * @type {boolean} * @private */ let withCredentials = false; /** * {@link module:ol/source/Vector} sources use a function of this type to * load featu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/featureloader.js", "license": "bsd-2-clause", "size": 5882}
### File: src/ol/format.js /** * @module ol/format */ export {default as EsriJSON} from './format/EsriJSON.js'; export {default as GeoJSON} from './format/GeoJSON.js'; export {default as GML} from './format/GML.js'; export {default as GPX} from './format/GPX.js'; export {default as IGC} from './format/IGC.js'; expor...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format.js", "license": "bsd-2-clause", "size": 924}
### File: src/ol/format/EsriJSON.js /** * @module ol/format/EsriJSON */ import Feature from '../Feature.js'; import GeometryLayout from '../geom/GeometryLayout.js'; import GeometryType from '../geom/GeometryType.js'; import JSONFeature from './JSONFeature.js'; import LineString from '../geom/LineString.js'; import Li...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/EsriJSON.js", "license": "bsd-2-clause", "size": 18361}
### File: src/ol/format/Feature.js /** * @module ol/format/Feature */ import Units from '../proj/Units.js'; import {abstract} from '../util.js'; import {assign} from '../obj.js'; import { equivalent as equivalentProjection, get as getProjection, transformExtent, } from '../proj.js'; /** * @typedef {Object} Re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/Feature.js", "license": "bsd-2-clause", "size": 9607}
### File: src/ol/format/FormatType.js /** * @module ol/format/FormatType */ /** * @enum {string} */ export default { ARRAY_BUFFER: 'arraybuffer', JSON: 'json', TEXT: 'text', XML: 'xml', };
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/FormatType.js", "license": "bsd-2-clause", "size": 164}
### File: src/ol/format/GML.js /** * @module ol/format/GML */ import GML3 from './GML3.js'; /** * @classdesc * Feature format for reading and writing data in the GML format * version 3.1.1. * Currently only supports GML 3.1.1 Simple Features profile. * * @param {import("./GMLBase.js").Options=} opt_options * ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/GML.js", "license": "bsd-2-clause", "size": 967}
### File: src/ol/format/GML2.js /** * @module ol/format/GML2 */ import GMLBase, {GMLNS} from './GMLBase.js'; import { OBJECT_PROPERTY_NODE_FACTORY, createElementNS, getAllTextContent, makeArrayPusher, makeChildAppender, makeReplacer, makeSimpleNodeFactory, pushParseAndPop, pushSerializeAndPop, } fro...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/GML2.js", "license": "bsd-2-clause", "size": 23698}
### File: src/ol/format/GML3.js /** * @module ol/format/GML3 */ import GMLBase, {GMLNS} from './GMLBase.js'; import GeometryLayout from '../geom/GeometryLayout.js'; import LineString from '../geom/LineString.js'; import MultiLineString from '../geom/MultiLineString.js'; import MultiPolygon from '../geom/MultiPolygon....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/GML3.js", "license": "bsd-2-clause", "size": 36267}
### File: src/ol/format/GML32.js /** * @module ol/format/GML32 */ import GML3 from './GML3.js'; import GMLBase from './GMLBase.js'; import {makeArrayPusher, makeChildAppender, makeReplacer} from '../xml.js'; import {writeStringTextNode} from '../format/xsd.js'; /** * @classdesc Feature format for reading and writin...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/GML32.js", "license": "bsd-2-clause", "size": 9596}
### File: src/ol/format/GMLBase.js /** * @module ol/format/GMLBase */ // FIXME Envelopes should not be treated as geometries! readEnvelope_ is part // of GEOMETRY_PARSERS_ and methods using GEOMETRY_PARSERS_ do not expect // envelopes/extents, only geometries! import Feature from '../Feature.js'; import GeometryLayou...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/GMLBase.js", "license": "bsd-2-clause", "size": 20068}
### File: src/ol/format/GPX.js /** * @module ol/format/GPX */ import Feature from '../Feature.js'; import GeometryLayout from '../geom/GeometryLayout.js'; import GeometryType from '../geom/GeometryType.js'; import LineString from '../geom/LineString.js'; import MultiLineString from '../geom/MultiLineString.js'; impor...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/GPX.js", "license": "bsd-2-clause", "size": 26858}
### File: src/ol/format/GeoJSON.js /** * @module ol/format/GeoJSON */ import Feature from '../Feature.js'; import GeometryCollection from '../geom/GeometryCollection.js'; import GeometryType from '../geom/GeometryType.js'; import JSONFeature from './JSONFeature.js'; import LineString from '../geom/LineString.js'; im...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/GeoJSON.js", "license": "bsd-2-clause", "size": 15998}
### File: src/ol/format/IGC.js /** * @module ol/format/IGC */ import Feature from '../Feature.js'; import GeometryLayout from '../geom/GeometryLayout.js'; import LineString from '../geom/LineString.js'; import TextFeature from './TextFeature.js'; import {get as getProjection} from '../proj.js'; import {transformGeome...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/IGC.js", "license": "bsd-2-clause", "size": 4790}
### File: src/ol/format/IIIFInfo.js /** * @module ol/format/IIIFInfo */ import {assert} from '../asserts.js'; /** * @typedef {Object} PreferredOptions * @property {string} [format] Preferred image format. Will be used if the image information * indicates support for that format. * @property {string} [quality] I...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/IIIFInfo.js", "license": "bsd-2-clause", "size": 14831}
### File: src/ol/format/JSONFeature.js /** * @module ol/format/JSONFeature */ import FeatureFormat from './Feature.js'; import FormatType from './FormatType.js'; import {abstract} from '../util.js'; /** * @classdesc * Abstract base class; normally only used for creating subclasses and not * instantiated in apps. ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/JSONFeature.js", "license": "bsd-2-clause", "size": 5638}
### File: src/ol/format/KML.js /** * @module ol/format/KML */ import Feature from '../Feature.js'; import Fill from '../style/Fill.js'; import GeometryCollection from '../geom/GeometryCollection.js'; import GeometryLayout from '../geom/GeometryLayout.js'; import GeometryType from '../geom/GeometryType.js'; import Ico...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/KML.js", "license": "bsd-2-clause", "size": 91826}
### File: src/ol/format/MVT.js /** * @module ol/format/MVT */ //FIXME Implement projection handling import FeatureFormat, {transformGeometryWithOptions} from './Feature.js'; import FormatType from './FormatType.js'; import GeometryLayout from '../geom/GeometryLayout.js'; import GeometryType from '../geom/GeometryTyp...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/MVT.js", "license": "bsd-2-clause", "size": 12594}
### File: src/ol/format/OSMXML.js /** * @module ol/format/OSMXML */ // FIXME add typedef for stack state objects import Feature from '../Feature.js'; import GeometryLayout from '../geom/GeometryLayout.js'; import LineString from '../geom/LineString.js'; import Point from '../geom/Point.js'; import Polygon from '../ge...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/OSMXML.js", "license": "bsd-2-clause", "size": 5030}
### File: src/ol/format/OWS.js /** * @module ol/format/OWS */ import XML from './XML.js'; import { makeObjectPropertyPusher, makeObjectPropertySetter, makeStructureNS, pushParseAndPop, } from '../xml.js'; import {readHref} from './XLink.js'; import {readString} from './xsd.js'; /** * @const * @type {Array<...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/OWS.js", "license": "bsd-2-clause", "size": 8683}
### File: src/ol/format/Polyline.js /** * @module ol/format/Polyline */ import Feature from '../Feature.js'; import GeometryLayout from '../geom/GeometryLayout.js'; import LineString from '../geom/LineString.js'; import TextFeature from './TextFeature.js'; import {assert} from '../asserts.js'; import {flipXY} from '....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/Polyline.js", "license": "bsd-2-clause", "size": 10135}
### File: src/ol/format/TextFeature.js /** * @module ol/format/TextFeature */ import FeatureFormat from '../format/Feature.js'; import FormatType from '../format/FormatType.js'; import {abstract} from '../util.js'; /** * @classdesc * Abstract base class; normally only used for creating subclasses and not * instan...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/TextFeature.js", "license": "bsd-2-clause", "size": 5331}
### File: src/ol/format/TopoJSON.js /** * @module ol/format/TopoJSON */ import Feature from '../Feature.js'; import JSONFeature from './JSONFeature.js'; import LineString from '../geom/LineString.js'; import MultiLineString from '../geom/MultiLineString.js'; import MultiPoint from '../geom/MultiPoint.js'; import Mult...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/TopoJSON.js", "license": "bsd-2-clause", "size": 13575}
### File: src/ol/format/WFS.js /** * @module ol/format/WFS */ import GML2 from './GML2.js'; import GML3 from './GML3.js'; import GMLBase, {GMLNS} from './GMLBase.js'; import XMLFeature from './XMLFeature.js'; import { XML_SCHEMA_INSTANCE_URI, createElementNS, isDocument, makeArrayPusher, makeChildAppender, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/WFS.js", "license": "bsd-2-clause", "size": 35360}
### File: src/ol/format/WKT.js /** * @module ol/format/WKT */ import Feature from '../Feature.js'; import GeometryCollection from '../geom/GeometryCollection.js'; import GeometryLayout from '../geom/GeometryLayout.js'; import GeometryType from '../geom/GeometryType.js'; import LineString from '../geom/LineString.js';...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/WKT.js", "license": "bsd-2-clause", "size": 22335}
### File: src/ol/format/WMSCapabilities.js /** * @module ol/format/WMSCapabilities */ import XML from './XML.js'; import { makeArrayPusher, makeObjectPropertyPusher, makeObjectPropertySetter, makeStructureNS, pushParseAndPop, } from '../xml.js'; import { readBooleanString, readDecimal, readDecimalStri...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/WMSCapabilities.js", "license": "bsd-2-clause", "size": 18184}
### File: src/ol/format/WMSGetFeatureInfo.js /** * @module ol/format/WMSGetFeatureInfo */ import GML2 from './GML2.js'; import XMLFeature from './XMLFeature.js'; import {assign} from '../obj.js'; import {extend, includes} from '../array.js'; import {makeArrayPusher, makeStructureNS, pushParseAndPop} from '../xml.js';...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/WMSGetFeatureInfo.js", "license": "bsd-2-clause", "size": 4064}
### File: src/ol/format/WMTSCapabilities.js /** * @module ol/format/WMTSCapabilities */ import OWS from './OWS.js'; import XML from './XML.js'; import {boundingExtent} from '../extent.js'; import { makeArrayPusher, makeObjectPropertyPusher, makeObjectPropertySetter, makeStructureNS, pushParseAndPop, } from ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/WMTSCapabilities.js", "license": "bsd-2-clause", "size": 10015}
### File: src/ol/format/XLink.js /** * @module ol/format/XLink */ /** * @const * @type {string} */ const NAMESPACE_URI = 'http://www.w3.org/1999/xlink'; /** * @param {Element} node Node. * @return {string|undefined} href. */ export function readHref(node) { return node.getAttributeNS(NAMESPACE_URI, 'href');...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/XLink.js", "license": "bsd-2-clause", "size": 290}
### File: src/ol/format/XML.js /** * @module ol/format/XML */ import {isDocument, parse} from '../xml.js'; /** * @classdesc * Generic format for reading non-feature XML data * * @abstract */ class XML { /** * Read the source document. * * @param {Document|Element|string} source The XML source. * @...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/XML.js", "license": "bsd-2-clause", "size": 1166}
### File: src/ol/format/XMLFeature.js /** * @module ol/format/XMLFeature */ import FeatureFormat from '../format/Feature.js'; import FormatType from '../format/FormatType.js'; import {abstract} from '../util.js'; import {extend} from '../array.js'; import {getXMLSerializer, isDocument, parse} from '../xml.js'; /** ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/XMLFeature.js", "license": "bsd-2-clause", "size": 8187}
### File: src/ol/format/filter.js /** * @module ol/format/filter */ import And from './filter/And.js'; import Bbox from './filter/Bbox.js'; import Contains from './filter/Contains.js'; import During from './filter/During.js'; import EqualTo from './filter/EqualTo.js'; import GreaterThan from './filter/GreaterThan.js'...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter.js", "license": "bsd-2-clause", "size": 8767}
### File: src/ol/format/filter/And.js /** * @module ol/format/filter/And */ import LogicalNary from './LogicalNary.js'; /** * @classdesc * Represents a logical `<And>` operator between two or more filter conditions. * * @abstract */ class And extends LogicalNary { /** * @param {...import("./Filter.js").def...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/And.js", "license": "bsd-2-clause", "size": 429}
### File: src/ol/format/filter/Bbox.js /** * @module ol/format/filter/Bbox */ import Filter from './Filter.js'; /** * @classdesc * Represents a `<BBOX>` operator to test whether a geometry-valued property * intersects a fixed bounding box * * @api */ class Bbox extends Filter { /** * @param {!string} geom...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/Bbox.js", "license": "bsd-2-clause", "size": 994}
### File: src/ol/format/filter/Comparison.js /** * @module ol/format/filter/Comparison */ import Filter from './Filter.js'; /** * @classdesc * Abstract class; normally only used for creating subclasses and not instantiated in apps. * Base class for WFS GetFeature property comparison filters. * * @abstract */ c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/Comparison.js", "license": "bsd-2-clause", "size": 631}
### File: src/ol/format/filter/ComparisonBinary.js /** * @module ol/format/filter/ComparisonBinary */ import Comparison from './Comparison.js'; /** * @classdesc * Abstract class; normally only used for creating subclasses and not instantiated in apps. * Base class for WFS GetFeature property binary comparison fil...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/ComparisonBinary.js", "license": "bsd-2-clause", "size": 917}
### File: src/ol/format/filter/Contains.js /** * @module ol/format/filter/Contains */ import Spatial from './Spatial.js'; /** * @classdesc * Represents a `<Contains>` operator to test whether a geometry-valued property * contains a given geometry. * @api */ class Contains extends Spatial { /** * @param {!s...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/Contains.js", "license": "bsd-2-clause", "size": 671}
### File: src/ol/format/filter/During.js /** * @module ol/format/filter/During */ import Comparison from './Comparison.js'; /** * @classdesc * Represents a `<During>` comparison operator. * @api */ class During extends Comparison { /** * @param {!string} propertyName Name of the context property to compare....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/During.js", "license": "bsd-2-clause", "size": 639}
### File: src/ol/format/filter/EqualTo.js /** * @module ol/format/filter/EqualTo */ import ComparisonBinary from './ComparisonBinary.js'; /** * @classdesc * Represents a `<PropertyIsEqualTo>` comparison operator. * @api */ class EqualTo extends ComparisonBinary { /** * @param {!string} propertyName Name of ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/EqualTo.js", "license": "bsd-2-clause", "size": 595}
### File: src/ol/format/filter/Filter.js /** * @module ol/format/filter/Filter */ /** * @classdesc * Abstract class; normally only used for creating subclasses and not instantiated in apps. * Base class for WFS GetFeature filters. * * @abstract */ class Filter { /** * @param {!string} tagName The XML tag ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/Filter.js", "license": "bsd-2-clause", "size": 572}
### File: src/ol/format/filter/GreaterThan.js /** * @module ol/format/filter/GreaterThan */ import ComparisonBinary from './ComparisonBinary.js'; /** * @classdesc * Represents a `<PropertyIsGreaterThan>` comparison operator. * @api */ class GreaterThan extends ComparisonBinary { /** * @param {!string} prope...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/GreaterThan.js", "license": "bsd-2-clause", "size": 523}
### File: src/ol/format/filter/GreaterThanOrEqualTo.js /** * @module ol/format/filter/GreaterThanOrEqualTo */ import ComparisonBinary from './ComparisonBinary.js'; /** * @classdesc * Represents a `<PropertyIsGreaterThanOrEqualTo>` comparison operator. * @api */ class GreaterThanOrEqualTo extends ComparisonBinary...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/GreaterThanOrEqualTo.js", "license": "bsd-2-clause", "size": 568}
### File: src/ol/format/filter/Intersects.js /** * @module ol/format/filter/Intersects */ import Spatial from './Spatial.js'; /** * @classdesc * Represents a `<Intersects>` operator to test whether a geometry-valued property * intersects a given geometry. * @api */ class Intersects extends Spatial { /** * ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/Intersects.js", "license": "bsd-2-clause", "size": 683}
### File: src/ol/format/filter/IsBetween.js /** * @module ol/format/filter/IsBetween */ import Comparison from './Comparison.js'; /** * @classdesc * Represents a `<PropertyIsBetween>` comparison operator. * @api */ class IsBetween extends Comparison { /** * @param {!string} propertyName Name of the context ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/IsBetween.js", "license": "bsd-2-clause", "size": 734}
### File: src/ol/format/filter/IsLike.js /** * @module ol/format/filter/IsLike */ import Comparison from './Comparison.js'; /** * @classdesc * Represents a `<PropertyIsLike>` comparison operator. * @api */ class IsLike extends Comparison { /** * [constructor description] * @param {!string} propertyName N...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/IsLike.js", "license": "bsd-2-clause", "size": 1507}
### File: src/ol/format/filter/IsNull.js /** * @module ol/format/filter/IsNull */ import Comparison from './Comparison.js'; /** * @classdesc * Represents a `<PropertyIsNull>` comparison operator. * @api */ class IsNull extends Comparison { /** * @param {!string} propertyName Name of the context property to ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/IsNull.js", "license": "bsd-2-clause", "size": 397}
### File: src/ol/format/filter/LessThan.js /** * @module ol/format/filter/LessThan */ import ComparisonBinary from './ComparisonBinary.js'; /** * @classdesc * Represents a `<PropertyIsLessThan>` comparison operator. * @api */ class LessThan extends ComparisonBinary { /** * @param {!string} propertyName Name...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/LessThan.js", "license": "bsd-2-clause", "size": 508}
### File: src/ol/format/filter/LessThanOrEqualTo.js /** * @module ol/format/filter/LessThanOrEqualTo */ import ComparisonBinary from './ComparisonBinary.js'; /** * @classdesc * Represents a `<PropertyIsLessThanOrEqualTo>` comparison operator. * @api */ class LessThanOrEqualTo extends ComparisonBinary { /** ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/LessThanOrEqualTo.js", "license": "bsd-2-clause", "size": 553}
### File: src/ol/format/filter/LogicalNary.js /** * @module ol/format/filter/LogicalNary */ import Filter from './Filter.js'; import {assert} from '../../asserts.js'; /** * @classdesc * Abstract class; normally only used for creating subclasses and not instantiated in apps. * Base class for WFS GetFeature n-ary l...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/LogicalNary.js", "license": "bsd-2-clause", "size": 774}
### File: src/ol/format/filter/Not.js /** * @module ol/format/filter/Not */ import Filter from './Filter.js'; /** * @classdesc * Represents a logical `<Not>` operator for a filter condition. * @api */ class Not extends Filter { /** * @param {!import("./Filter.js").default} condition Filter condition. */ ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/Not.js", "license": "bsd-2-clause", "size": 449}
### File: src/ol/format/filter/NotEqualTo.js /** * @module ol/format/filter/NotEqualTo */ import ComparisonBinary from './ComparisonBinary.js'; /** * @classdesc * Represents a `<PropertyIsNotEqualTo>` comparison operator. * @api */ class NotEqualTo extends ComparisonBinary { /** * @param {!string} propertyN...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/NotEqualTo.js", "license": "bsd-2-clause", "size": 610}
### File: src/ol/format/filter/Or.js /** * @module ol/format/filter/Or */ import LogicalNary from './LogicalNary.js'; /** * @classdesc * Represents a logical `<Or>` operator between two ore more filter conditions. * @api */ class Or extends LogicalNary { /** * @param {...import("./Filter.js").default} condi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/Or.js", "license": "bsd-2-clause", "size": 417}
### File: src/ol/format/filter/Spatial.js /** * @module ol/format/filter/Spatial */ import Filter from './Filter.js'; /** * @classdesc * Abstract class; normally only used for creating subclasses and not instantiated in apps. * Represents a spatial operator to test whether a geometry-valued property * relates to...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/Spatial.js", "license": "bsd-2-clause", "size": 1071}
### File: src/ol/format/filter/Within.js /** * @module ol/format/filter/Within */ import Spatial from './Spatial.js'; /** * @classdesc * Represents a `<Within>` operator to test whether a geometry-valued property * is within a given geometry. * @api */ class Within extends Spatial { /** * @param {!string} ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/filter/Within.js", "license": "bsd-2-clause", "size": 662}
### File: src/ol/format/xsd.js /** * @module ol/format/xsd */ import {getAllTextContent, getDocument} from '../xml.js'; import {padNumber} from '../string.js'; /** * @param {Node} node Node. * @return {boolean|undefined} Boolean. */ export function readBoolean(node) { const s = getAllTextContent(node, false); ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/format/xsd.js", "license": "bsd-2-clause", "size": 3844}
### File: src/ol/functions.js /** * @module ol/functions */ import {equals as arrayEquals} from './array.js'; /** * Always returns true. * @returns {boolean} true. */ export function TRUE() { return true; } /** * Always returns false. * @returns {boolean} false. */ export function FALSE() { return false;...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/functions.js", "license": "bsd-2-clause", "size": 1310}
### File: src/ol/geom.js /** * @module ol/geom */ export {default as Circle} from './geom/Circle.js'; export {default as Geometry} from './geom/Geometry.js'; export {default as GeometryCollection} from './geom/GeometryCollection.js'; export {default as LineString} from './geom/LineString.js'; export {default as Mult...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom.js", "license": "bsd-2-clause", "size": 630}
### File: src/ol/geom/Circle.js /** * @module ol/geom/Circle */ import GeometryType from './GeometryType.js'; import SimpleGeometry from './SimpleGeometry.js'; import {createOrUpdate, forEachCorner, intersects} from '../extent.js'; import {deflateCoordinate} from './flat/deflate.js'; import {rotate, translate} from '...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/Circle.js", "license": "bsd-2-clause", "size": 8617}
### File: src/ol/geom/Geometry.js /** * @module ol/geom/Geometry */ import BaseObject from '../Object.js'; import Units from '../proj/Units.js'; import {abstract} from '../util.js'; import { compose as composeTransform, create as createTransform, } from '../transform.js'; import {createEmpty, getHeight, returnOrU...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/Geometry.js", "license": "bsd-2-clause", "size": 9855}
### File: src/ol/geom/GeometryCollection.js /** * @module ol/geom/GeometryCollection */ import EventType from '../events/EventType.js'; import Geometry from './Geometry.js'; import GeometryType from './GeometryType.js'; import { closestSquaredDistanceXY, createOrUpdateEmpty, extend, getCenter, } from '../exte...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/GeometryCollection.js", "license": "bsd-2-clause", "size": 9300}
### File: src/ol/geom/GeometryLayout.js /** * @module ol/geom/GeometryLayout */ /** * The coordinate layout for geometries, indicating whether a 3rd or 4th z ('Z') * or measure ('M') coordinate is available. Supported values are `'XY'`, * `'XYZ'`, `'XYM'`, `'XYZM'`. * @enum {string} */ export default { XY: 'X...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/GeometryLayout.js", "license": "bsd-2-clause", "size": 331}
### File: src/ol/geom/GeometryType.js /** * @module ol/geom/GeometryType */ /** * The geometry type. One of `'Point'`, `'LineString'`, `'LinearRing'`, * `'Polygon'`, `'MultiPoint'`, `'MultiLineString'`, `'MultiPolygon'`, * `'GeometryCollection'`, `'Circle'`. * @enum {string} */ export default { POINT: 'Point'...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/GeometryType.js", "license": "bsd-2-clause", "size": 534}
### File: src/ol/geom/LineString.js /** * @module ol/geom/LineString */ import GeometryLayout from './GeometryLayout.js'; import GeometryType from './GeometryType.js'; import SimpleGeometry from './SimpleGeometry.js'; import {assignClosestPoint, maxSquaredDelta} from './flat/closest.js'; import {closestSquaredDistanc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/LineString.js", "license": "bsd-2-clause", "size": 8413}
### File: src/ol/geom/LinearRing.js /** * @module ol/geom/LinearRing */ import GeometryLayout from './GeometryLayout.js'; import GeometryType from './GeometryType.js'; import SimpleGeometry from './SimpleGeometry.js'; import {assignClosestPoint, maxSquaredDelta} from './flat/closest.js'; import {closestSquaredDistanc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/LinearRing.js", "license": "bsd-2-clause", "size": 4819}
### File: src/ol/geom/MultiLineString.js /** * @module ol/geom/MultiLineString */ import GeometryLayout from './GeometryLayout.js'; import GeometryType from './GeometryType.js'; import LineString from './LineString.js'; import SimpleGeometry from './SimpleGeometry.js'; import {arrayMaxSquaredDelta, assignClosestArray...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/MultiLineString.js", "license": "bsd-2-clause", "size": 9588}
### File: src/ol/geom/MultiPoint.js /** * @module ol/geom/MultiPoint */ import GeometryType from './GeometryType.js'; import Point from './Point.js'; import SimpleGeometry from './SimpleGeometry.js'; import {closestSquaredDistanceXY, containsXY} from '../extent.js'; import {deflateCoordinates} from './flat/deflate.js...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/MultiPoint.js", "license": "bsd-2-clause", "size": 5354}
### File: src/ol/geom/MultiPolygon.js /** * @module ol/geom/MultiPolygon */ import GeometryLayout from './GeometryLayout.js'; import GeometryType from './GeometryType.js'; import MultiPoint from './MultiPoint.js'; import Polygon from './Polygon.js'; import SimpleGeometry from './SimpleGeometry.js'; import { assignC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/MultiPolygon.js", "license": "bsd-2-clause", "size": 12492}
### File: src/ol/geom/Point.js /** * @module ol/geom/Point */ import GeometryType from './GeometryType.js'; import SimpleGeometry from './SimpleGeometry.js'; import {containsXY, createOrUpdateFromCoordinate} from '../extent.js'; import {deflateCoordinate} from './flat/deflate.js'; import {squaredDistance as squaredDx...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/Point.js", "license": "bsd-2-clause", "size": 3118}
### File: src/ol/geom/Polygon.js /** * @module ol/geom/Polygon */ import GeometryLayout from './GeometryLayout.js'; import GeometryType from './GeometryType.js'; import LinearRing from './LinearRing.js'; import Point from './Point.js'; import SimpleGeometry from './SimpleGeometry.js'; import {arrayMaxSquaredDelta, as...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/Polygon.js", "license": "bsd-2-clause", "size": 14558}
### File: src/ol/geom/SimpleGeometry.js /** * @module ol/geom/SimpleGeometry */ import Geometry from './Geometry.js'; import GeometryLayout from './GeometryLayout.js'; import {abstract} from '../util.js'; import {createOrUpdateFromFlatCoordinates, getCenter} from '../extent.js'; import {rotate, scale, transform2D, tr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/SimpleGeometry.js", "license": "bsd-2-clause", "size": 9531}
### File: src/ol/geom/flat/area.js /** * @module ol/geom/flat/area */ /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride Stride. * @return {number} Area. */ export function linearRing(flatCoordinates, offset, end, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/area.js", "license": "bsd-2-clause", "size": 1581}
### File: src/ol/geom/flat/center.js /** * @module ol/geom/flat/center */ import {createEmpty, createOrUpdateFromFlatCoordinates} from '../../extent.js'; /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {Array<Array<number>>} endss Endss. * @param {number} ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/center.js", "license": "bsd-2-clause", "size": 813}
### File: src/ol/geom/flat/closest.js /** * @module ol/geom/flat/closest */ import {lerp, squaredDistance as squaredDx} from '../../math.js'; /** * Returns the point on the 2D line segment flatCoordinates[offset1] to * flatCoordinates[offset2] that is closest to the point (x, y). Extra * dimensions are linearly ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/closest.js", "license": "bsd-2-clause", "size": 8915}
### File: src/ol/geom/flat/contains.js /** * @module ol/geom/flat/contains */ import {forEachCorner} from '../../extent.js'; /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride Stride. * @param {import("../../extent....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/contains.js", "license": "bsd-2-clause", "size": 3486}
### File: src/ol/geom/flat/deflate.js /** * @module ol/geom/flat/deflate */ /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {import("../../coordinate.js").Coordinate} coordinate Coordinate. * @param {number} stride Stride. * @return {number} offset Offset...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/deflate.js", "license": "bsd-2-clause", "size": 2592}
### File: src/ol/geom/flat/flip.js /** * @module ol/geom/flat/flip */ /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride Stride. * @param {Array<number>=} opt_dest Destination. * @param {number=} opt_destOffset Des...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/flip.js", "license": "bsd-2-clause", "size": 941}
### File: src/ol/geom/flat/geodesic.js /** * @module ol/geom/flat/geodesic */ import {get as getProjection, getTransform} from '../../proj.js'; import {squaredSegmentDistance, toDegrees, toRadians} from '../../math.js'; /** * @param {function(number): import("../../coordinate.js").Coordinate} interpolate Interpolat...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/geodesic.js", "license": "bsd-2-clause", "size": 5891}
### File: src/ol/geom/flat/inflate.js /** * @module ol/geom/flat/inflate */ /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride Stride. * @param {Array<import("../../coordinate.js").Coordinate>=} opt_coordinates Coor...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/inflate.js", "license": "bsd-2-clause", "size": 2488}
### File: src/ol/geom/flat/interiorpoint.js /** * @module ol/geom/flat/interiorpoint */ import {linearRingsContainsXY} from './contains.js'; import {numberSafeCompareFunction} from '../../array.js'; /** * Calculates a point that is likely to lie in the interior of the linear rings. * Inspired by JTS's com.vividsol...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/interiorpoint.js", "license": "bsd-2-clause", "size": 3389}
### File: src/ol/geom/flat/interpolate.js /** * @module ol/geom/flat/interpolate */ import {binarySearch} from '../../array.js'; import {lerp} from '../../math.js'; /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/interpolate.js", "license": "bsd-2-clause", "size": 5505}
### File: src/ol/geom/flat/intersectsextent.js /** * @module ol/geom/flat/intersectsextent */ import { containsExtent, createEmpty, extendFlatCoordinates, intersects, intersectsSegment, } from '../../extent.js'; import {forEach as forEachSegment} from './segments.js'; import {linearRingContainsExtent, linea...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/intersectsextent.js", "license": "bsd-2-clause", "size": 5052}
### File: src/ol/geom/flat/length.js /** * @module ol/geom/flat/length */ /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride Stride. * @return {number} Length. */ export function lineStringLength(flatCoordinates, o...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/length.js", "license": "bsd-2-clause", "size": 1208}
### File: src/ol/geom/flat/orient.js /** * @module ol/geom/flat/orient */ import {coordinates as reverseCoordinates} from './reverse.js'; /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride Stride. * @return {boolean...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/orient.js", "license": "bsd-2-clause", "size": 5115}
### File: src/ol/geom/flat/reverse.js /** * @module ol/geom/flat/reverse */ /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride Stride. */ export function coordinates(flatCoordinates, offset, end, stride) { while (...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/reverse.js", "license": "bsd-2-clause", "size": 564}
### File: src/ol/geom/flat/segments.js /** * @module ol/geom/flat/segments */ /** * This function calls `callback` for each segment of the flat coordinates * array. If the callback returns a truthy value the function returns that * value immediately. Otherwise the function returns `false`. * @param {Array<number...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/segments.js", "license": "bsd-2-clause", "size": 1107}
### File: src/ol/geom/flat/simplify.js /** * @module ol/geom/flat/simplify */ // Based on simplify-js https://github.com/mourner/simplify-js // Copyright (c) 2012, Vladimir Agafonkin // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provide...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/simplify.js", "license": "bsd-2-clause", "size": 14752}
### File: src/ol/geom/flat/straightchunk.js /** * @module ol/geom/flat/straightchunk */ /** * @param {number} maxAngle Maximum acceptable angle delta between segments. * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/straightchunk.js", "license": "bsd-2-clause", "size": 1355}
### File: src/ol/geom/flat/textpath.js /** * @module ol/geom/flat/textpath */ import {lerp} from '../../math.js'; /** * @param {Array<number>} flatCoordinates Path to put text on. * @param {number} offset Start offset of the `flatCoordinates`. * @param {number} end End offset of the `flatCoordinates`. * @param {...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/textpath.js", "license": "bsd-2-clause", "size": 2958}
### File: src/ol/geom/flat/topology.js /** * @module ol/geom/flat/topology */ import {linearRing as linearRingArea} from './area.js'; /** * Check if the linestring is a boundary. * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {numb...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/topology.js", "license": "bsd-2-clause", "size": 730}
### File: src/ol/geom/flat/transform.js /** * @module ol/geom/flat/transform */ /** * @param {Array<number>} flatCoordinates Flat coordinates. * @param {number} offset Offset. * @param {number} end End. * @param {number} stride Stride. * @param {import("../../transform.js").Transform} transform Transform. * @p...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/geom/flat/transform.js", "license": "bsd-2-clause", "size": 3831}
### File: src/ol/has.js /** * @module ol/has */ const ua = typeof navigator !== 'undefined' && typeof navigator.userAgent !== 'undefined' ? navigator.userAgent.toLowerCase() : ''; /** * User agent string says we are dealing with Firefox as browser. * @type {boolean} */ export const FIREFOX = ua.indexOf...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/has.js", "license": "bsd-2-clause", "size": 1936}
### File: src/ol/index.js /** * @module ol */ export {default as AssertionError} from './AssertionError.js'; export {default as Collection} from './Collection.js'; export {default as Disposable} from './Disposable.js'; export {default as Feature} from './Feature.js'; export {default as Geolocation} from './Geolocati...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/index.js", "license": "bsd-2-clause", "size": 1475}
### File: src/ol/interaction.js /** * @module ol/interaction */ import Collection from './Collection.js'; import DoubleClickZoom from './interaction/DoubleClickZoom.js'; import DragPan from './interaction/DragPan.js'; import DragRotate from './interaction/DragRotate.js'; import DragZoom from './interaction/DragZoom.j...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/interaction.js", "license": "bsd-2-clause", "size": 6543}
### File: src/ol/interaction/DoubleClickZoom.js /** * @module ol/interaction/DoubleClickZoom */ import Interaction, {zoomByDelta} from './Interaction.js'; import MapBrowserEventType from '../MapBrowserEventType.js'; /** * @typedef {Object} Options * @property {number} [duration=250] Animation duration in milliseco...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/interaction/DoubleClickZoom.js", "license": "bsd-2-clause", "size": 1769}
### File: src/ol/interaction/DragAndDrop.js /** * @module ol/interaction/DragAndDrop */ // FIXME should handle all geo-referenced data, not just vector data import Event from '../events/Event.js'; import EventType from '../events/EventType.js'; import Interaction from './Interaction.js'; import {TRUE} from '../funct...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/interaction/DragAndDrop.js", "license": "bsd-2-clause", "size": 6851}
### File: src/ol/interaction/DragBox.js /** * @module ol/interaction/DragBox */ // FIXME draw drag box import Event from '../events/Event.js'; import PointerInteraction from './Pointer.js'; import RenderBox from '../render/Box.js'; import {mouseActionButton} from '../events/condition.js'; /** * A function that take...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/interaction/DragBox.js", "license": "bsd-2-clause", "size": 6922}
### File: src/ol/interaction/DragPan.js /** * @module ol/interaction/DragPan */ import PointerInteraction, { centroid as centroidFromPointers, } from './Pointer.js'; import {FALSE} from '../functions.js'; import { all, focusWithTabindex, noModifierKeys, primaryAction, } from '../events/condition.js'; import...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/interaction/DragPan.js", "license": "bsd-2-clause", "size": 5524}
### File: src/ol/interaction/DragRotate.js /** * @module ol/interaction/DragRotate */ import PointerInteraction from './Pointer.js'; import {FALSE} from '../functions.js'; import { altShiftKeysOnly, mouseActionButton, mouseOnly, } from '../events/condition.js'; import {disable} from '../rotationconstraint.js'; ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/interaction/DragRotate.js", "license": "bsd-2-clause", "size": 3274}
### File: src/ol/interaction/DragRotateAndZoom.js /** * @module ol/interaction/DragRotateAndZoom */ import PointerInteraction from './Pointer.js'; import {mouseOnly, shiftKeyOnly} from '../events/condition.js'; /** * @typedef {Object} Options * @property {import("../events/condition.js").Condition} [condition] A f...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "src/ol/interaction/DragRotateAndZoom.js", "license": "bsd-2-clause", "size": 3800}