From 473a0dfba398cdc195526cf047abedbad1133a03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 20 Aug 2025 10:40:26 +0300 Subject: [PATCH 01/15] Phase 1: Basic tree-shaking - Enable sideEffects: false and remove inlineDynamicImports - Added sideEffects: false to package.json - Removed inlineDynamicImports from vite.config.ts - Achieved code splitting with main bundle reduced to ~0.7KB (ES) / ~1.2KB (CJS) - Multiple chunks created for proper tree-shaking --- package.json | 1 + vite.config.ts | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index 9d92f0f1..1f15cc2b 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "vue3-openlayers", "version": "11.3.4", "description": "OpenLayers Wrapper for Vue3", + "sideEffects": false, "repository": { "type": "git", "url": "https://github.com/MelihAltintas/vue3-openlayers" diff --git a/vite.config.ts b/vite.config.ts index d5f524b6..5e5dad10 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -42,12 +42,8 @@ export default defineConfig({ rollupOptions: { // make sure to externalize deps that should not be bundled // into your library - input: { - main: fileURLToPath(new URL("./src/index.ts", import.meta.url)), - }, external: ["vue", /^ol.*/, /^@turf.*/], // Avoid bundling ol imports into the final build output: { - inlineDynamicImports: true, exports: "named", globals: { vue: "Vue", From f70eff611541a7f86e37b85c81acd0f54fabc6fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 20 Aug 2025 10:52:59 +0300 Subject: [PATCH 02/15] feat: implement Phase 2 granular tree-shaking with category-specific entry points - Add tree-shaking entry points for 9 categories: map, layers, sources, controls, animations, geometries, interactions, styles, helpers - Create vite.treeshaking.config.ts for multi-entry tree-shaking builds - Update package.json with subpath exports for all categories - Add build:treeshaking and build:all npm scripts Bundle sizes achieved: - helpers: 343B ES / 443B CJS - controls: 701B ES / 1.3KB CJS - geometries: 5.0KB ES / 5.2KB CJS - animations: 6.2KB ES / 6.4KB CJS - layers: 20.9KB ES / 21.5KB CJS - interactions: 21.8KB ES / 22.7KB CJS - sources: 26.1KB ES / 26.6KB CJS - styles: 43.0KB ES / 43.6KB CJS - map: 183.7KB ES / 184.1KB CJS Enables selective imports like: import { OlMap } from 'vue3-openlayers/map' import { OlVectorLayer } from 'vue3-openlayers/layers' --- package.json | 47 +++++++++++++++++++++++++++++++++++ src/animations.ts | 2 ++ src/controls.ts | 2 ++ src/geometries.ts | 2 ++ src/helpers-entry.ts | 3 +++ src/interactions.ts | 2 ++ src/layers.ts | 2 ++ src/map.ts | 2 ++ src/sources.ts | 2 ++ src/styles.ts | 2 ++ vite.treeshaking.config.ts | 50 ++++++++++++++++++++++++++++++++++++++ 11 files changed, 116 insertions(+) create mode 100644 src/animations.ts create mode 100644 src/controls.ts create mode 100644 src/geometries.ts create mode 100644 src/helpers-entry.ts create mode 100644 src/interactions.ts create mode 100644 src/layers.ts create mode 100644 src/map.ts create mode 100644 src/sources.ts create mode 100644 src/styles.ts create mode 100644 vite.treeshaking.config.ts diff --git a/package.json b/package.json index 1f15cc2b..e005502f 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,51 @@ "require": "./dist/vue3-openlayers.umd.js", "types": "./dist/index.d.ts" }, + "./map": { + "import": "./dist/map.js", + "require": "./dist/map.cjs", + "types": "./dist/map.d.ts" + }, + "./layers": { + "import": "./dist/layers.js", + "require": "./dist/layers.cjs", + "types": "./dist/layers.d.ts" + }, + "./sources": { + "import": "./dist/sources.js", + "require": "./dist/sources.cjs", + "types": "./dist/sources.d.ts" + }, + "./controls": { + "import": "./dist/controls.js", + "require": "./dist/controls.cjs", + "types": "./dist/controls.d.ts" + }, + "./animations": { + "import": "./dist/animations.js", + "require": "./dist/animations.cjs", + "types": "./dist/animations.d.ts" + }, + "./geometries": { + "import": "./dist/geometries.js", + "require": "./dist/geometries.cjs", + "types": "./dist/geometries.d.ts" + }, + "./interactions": { + "import": "./dist/interactions.js", + "require": "./dist/interactions.cjs", + "types": "./dist/interactions.d.ts" + }, + "./styles": { + "import": "./dist/styles.js", + "require": "./dist/styles.cjs", + "types": "./dist/styles.d.ts" + }, + "./helpers": { + "import": "./dist/helpers.js", + "require": "./dist/helpers.cjs", + "types": "./dist/helpers.d.ts" + }, "./dist/vue3-openlayers.css": { "import": "./dist/styles.css", "require": "./dist/styles.css" @@ -54,6 +99,8 @@ }, "scripts": { "build": "vite build", + "build:treeshaking": "vite build --config vite.treeshaking.config.ts", + "build:all": "npm run build && npm run build:treeshaking", "serve": "npm run docs:dev", "docs:dev": "vitepress dev docs", "docs:dev:debug": "VITE_DEBUG=true npm run docs:dev", diff --git a/src/animations.ts b/src/animations.ts new file mode 100644 index 00000000..cdfe7fe1 --- /dev/null +++ b/src/animations.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for animation components +export * from "./components/animations"; diff --git a/src/controls.ts b/src/controls.ts new file mode 100644 index 00000000..0951c15e --- /dev/null +++ b/src/controls.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for control components +export * from "./components/mapControls"; diff --git a/src/geometries.ts b/src/geometries.ts new file mode 100644 index 00000000..c526ca27 --- /dev/null +++ b/src/geometries.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for geometry components +export * from "./components/geometries"; diff --git a/src/helpers-entry.ts b/src/helpers-entry.ts new file mode 100644 index 00000000..9cccfb8d --- /dev/null +++ b/src/helpers-entry.ts @@ -0,0 +1,3 @@ +// Tree-shaking entry point for helper utilities +export * from "./helpers/projection"; +export * from "./helpers/properties"; \ No newline at end of file diff --git a/src/interactions.ts b/src/interactions.ts new file mode 100644 index 00000000..3206eb10 --- /dev/null +++ b/src/interactions.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for interaction components +export * from "./components/interaction"; diff --git a/src/layers.ts b/src/layers.ts new file mode 100644 index 00000000..acdf272f --- /dev/null +++ b/src/layers.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for layer components +export * from "./components/layers"; diff --git a/src/map.ts b/src/map.ts new file mode 100644 index 00000000..9922abf1 --- /dev/null +++ b/src/map.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for map components +export * from "./components/map"; diff --git a/src/sources.ts b/src/sources.ts new file mode 100644 index 00000000..5bfaee84 --- /dev/null +++ b/src/sources.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for source components +export * from "./components/sources"; diff --git a/src/styles.ts b/src/styles.ts new file mode 100644 index 00000000..eddb0c51 --- /dev/null +++ b/src/styles.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for style components +export * from "./components/styles"; diff --git a/vite.treeshaking.config.ts b/vite.treeshaking.config.ts new file mode 100644 index 00000000..960b7b62 --- /dev/null +++ b/vite.treeshaking.config.ts @@ -0,0 +1,50 @@ +import vue from "@vitejs/plugin-vue"; +import { fileURLToPath, URL } from "url"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [vue()], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)), + "@components": fileURLToPath( + new URL("./src/components", import.meta.url), + ), + "@demos": fileURLToPath(new URL("./src/demos", import.meta.url)), + }, + preserveSymlinks: false, + dedupe: ["vue"], + extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"], + }, + build: { + cssCodeSplit: true, + lib: { + entry: { + map: fileURLToPath(new URL("./src/map.ts", import.meta.url)), + layers: fileURLToPath(new URL("./src/layers.ts", import.meta.url)), + sources: fileURLToPath(new URL("./src/sources.ts", import.meta.url)), + controls: fileURLToPath(new URL("./src/controls.ts", import.meta.url)), + animations: fileURLToPath( + new URL("./src/animations.ts", import.meta.url), + ), + geometries: fileURLToPath( + new URL("./src/geometries.ts", import.meta.url), + ), + interactions: fileURLToPath( + new URL("./src/interactions.ts", import.meta.url), + ), + styles: fileURLToPath(new URL("./src/styles.ts", import.meta.url)), + helpers: fileURLToPath(new URL("./src/helpers-entry.ts", import.meta.url)), + }, + name: "vue3-openlayers", + formats: ["es", "cjs"], + }, + minify: false, + rollupOptions: { + external: ["vue", /^ol.*/, /^@turf.*/], + output: { + exports: "named", + }, + }, + }, +}); From 5385b51e02b35775dc2455e77e483a62941ccb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 20 Aug 2025 10:59:04 +0300 Subject: [PATCH 03/15] feat: separate build configurations to prevent build failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Split UMD build into separate vite.umd.config.ts to avoid esbuild errors - Add emptyOutDir: false to all configs to prevent cleaning between builds - Update build scripts to run in sequence: ES/CJS → UMD → tree-shaking - All three build types now complete successfully without conflicts Builds generated: - vue3-openlayers.es.js (687B) - ES module - vue3-openlayers.cjs.js (1.2KB) - CommonJS - vue3-openlayers.umd.js (1.6MB) - UMD bundle - Category tree-shaking bundles (343B-184KB each) This resolves the previous esbuild syntax errors in UMD format. --- package.json | 3 +- src/helpers-entry.ts | 2 +- vite.config.ts | 3 +- vite.treeshaking.config.ts | 5 +- vite.umd.config.ts | 142 +++++++++++++++++++++++++++++++++++++ 5 files changed, 151 insertions(+), 4 deletions(-) create mode 100644 vite.umd.config.ts diff --git a/package.json b/package.json index e005502f..5bd82071 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,9 @@ }, "scripts": { "build": "vite build", + "build:umd": "vite build --config vite.umd.config.ts", "build:treeshaking": "vite build --config vite.treeshaking.config.ts", - "build:all": "npm run build && npm run build:treeshaking", + "build:all": "rm -rf dist && npm run build && npm run build:umd && npm run build:treeshaking", "serve": "npm run docs:dev", "docs:dev": "vitepress dev docs", "docs:dev:debug": "VITE_DEBUG=true npm run docs:dev", diff --git a/src/helpers-entry.ts b/src/helpers-entry.ts index 9cccfb8d..b30a8615 100644 --- a/src/helpers-entry.ts +++ b/src/helpers-entry.ts @@ -1,3 +1,3 @@ // Tree-shaking entry point for helper utilities export * from "./helpers/projection"; -export * from "./helpers/properties"; \ No newline at end of file +export * from "./helpers/properties"; diff --git a/vite.config.ts b/vite.config.ts index 5e5dad10..e43ff8cd 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -32,10 +32,11 @@ export default defineConfig({ }, build: { cssCodeSplit: true, + emptyOutDir: false, // Don't clean dist, allow multiple builds lib: { entry: fileURLToPath(new URL("./src/index.ts", import.meta.url)), name: "vue3-openlayers", - formats: ["es", "cjs", "umd"], + formats: ["es", "cjs"], fileName: (format) => `vue3-openlayers.${format}.js`, }, minify: false, diff --git a/vite.treeshaking.config.ts b/vite.treeshaking.config.ts index 960b7b62..ea01718e 100644 --- a/vite.treeshaking.config.ts +++ b/vite.treeshaking.config.ts @@ -18,6 +18,7 @@ export default defineConfig({ }, build: { cssCodeSplit: true, + emptyOutDir: false, // Don't clean dist, allow multiple builds lib: { entry: { map: fileURLToPath(new URL("./src/map.ts", import.meta.url)), @@ -34,7 +35,9 @@ export default defineConfig({ new URL("./src/interactions.ts", import.meta.url), ), styles: fileURLToPath(new URL("./src/styles.ts", import.meta.url)), - helpers: fileURLToPath(new URL("./src/helpers-entry.ts", import.meta.url)), + helpers: fileURLToPath( + new URL("./src/helpers-entry.ts", import.meta.url), + ), }, name: "vue3-openlayers", formats: ["es", "cjs"], diff --git a/vite.umd.config.ts b/vite.umd.config.ts new file mode 100644 index 00000000..e6f84d28 --- /dev/null +++ b/vite.umd.config.ts @@ -0,0 +1,142 @@ +import vue from "@vitejs/plugin-vue"; +import { fileURLToPath, URL } from "url"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [vue()], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)), + "@components": fileURLToPath( + new URL("./src/components", import.meta.url), + ), + "@demos": fileURLToPath(new URL("./src/demos", import.meta.url)), + }, + preserveSymlinks: false, + dedupe: ["vue"], + extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"], + }, + build: { + cssCodeSplit: false, // UMD should have single CSS file + emptyOutDir: false, // Don't clean dist, allow multiple builds + lib: { + entry: fileURLToPath(new URL("./src/index.ts", import.meta.url)), + name: "vue3-openlayers", + formats: ["umd"], + fileName: (format) => `vue3-openlayers.${format}.js`, + }, + minify: false, + rollupOptions: { + // make sure to externalize deps that should not be bundled + // into your library + external: ["vue", /^ol.*/, /^@turf.*/], // Avoid bundling ol imports into the final build + output: { + exports: "named", + globals: { + vue: "Vue", + "ol/Feature": "Feature", + "ol/geom": "geom", + "ol/format": "format", + "ol/loadingstrategy": "loadingstrategy", + "ol/events/condition": "selectconditions", + "ol/extent": "extent", + "ol/easing": "animations", + "ol/Geolocation": "Geolocation", + "ol/Map": "Map$1", + "ol/interaction/defaults": "defaults", + "ol/Overlay": "Overlay", + "ol/proj/proj4": "proj4$1", + "ol/proj/Projection": "Projection$1", + "ol/View": "View", + "ol/source": "source", + "ol-ext/layer/AnimatedCluster": "AnimatedCluster", + "ol/layer": "Layer", + "ol/layer/Heatmap": "HeatmapLayer", + "ol/layer/Image": "ImageLayer", + "ol/layer/Group": "LayerGroup", + "ol/layer/Tile": "TileLayer", + "ol/layer/Vector": "VectorLayer", + "ol/layer/VectorTile": "VectorLayerTile", + "ol/layer/VectorImage": "VectorImageLayer", + "ol/layer/WebGLPoints": "WebGLPointsLayer", + "ol/layer/WebGLVector": "WebGLVectorLayer", + "ol/layer/WebGLTile": "TileLayer$1", + "ol/source/BingMaps": "BingMaps", + "ol/source/Cluster": "Cluster", + "ol/source/ImageStatic": "Static", + "ol/proj": "proj", + "ol/source/ImageWMS": "ImageWMS", + "ol/source/GeoTIFF": "GeoTIFF", + "ol/source/OSM": "OSM", + "ol/source/StadiaMaps": "StadiaMaps", + "ol/source/TileDebug": "TileDebug", + "ol/source/WMTS": "WMTSSource", + "ol/tilegrid/WMTS": "TileGridWMTS", + "ol/source/TileArcGISRest": "TileArcGISRest", + "ol/tilegrid": "tilegrid", + "ol/source/TileJSON": "TileJSON", + "ol/source/TileWMS": "TileWMS", + "ol/source/Vector": "VectorSource", + "ol/source/VectorTile": "VectorSourceTile", + "ol/source/XYZ": "XYZ", + "ol/control": "control", + "ol/control/OverviewMap": "OverviewMap", + "ol-ext/control/Button": "Button", + "ol-contextmenu": "ContextMenu", + "ol-ext/control/Bar": "Bar", + "ol-ext/control/LayerSwitcher": "LayerSwitcher", + "ol-ext/control/LayerSwitcherImage": "LayerSwitcherImage", + "ol-ext/control/PrintDialog": "PrintDialog", + "ol/control/Rotate": "Rotate$1", + "ol-ext/control/Swipe": "Swipe", + "ol-ext/control/Search": "Search", + "ol-ext/control/Toggle": "Toggle", + "ol-ext/control/VideoRecorder": "VideoRecorder", + "ol-ext/control/MapZone": "MapZone", + "ol-ext/control/Profile": "Profile", + "ol/control/Zoom": "Zoom", + "ol/control/ZoomSlider": "ZoomSlider", + "ol/control/ZoomToExtent": "ZoomToExtent", + "ol/geom/Circle": "Circle", + "ol/geom/LineString": "LineString", + "ol/geom/MultiLineString": "MultiLineString", + "ol/geom/MultiPoint": "MultiPoint", + "ol/geom/MultiPolygon": "MultiPolygon", + "ol/geom/Point": "Point$2", + "ol/geom/Polygon": "Polygon", + "ol/style/Style": "Style", + "ol/interaction/Link": "Link", + "ol/interaction/Draw": "Draw", + "ol/interaction/DragBox": "DragBox", + "ol/interaction/Modify": "Modify", + "ol/interaction/Pointer": "Pointer", + "ol/style/Circle": "CircleStyle", + "ol/style/Fill": "Fill", + "ol/style/Stroke": "Stroke", + "ol/style/Icon": "Icon", + "ol/style/Text": "Text", + "ol-ext/style/FlowLine": "FlowLine", + "ol-ext/interaction/SelectCluster": "SelectCluster", + "ol/interaction/DragRotate": "DragRotate", + "ol/interaction/DragRotateAndZoom": "DragRotateAndZoom", + "ol/interaction/Select": "Select", + "ol/interaction/Snap": "Snap", + "ol-ext/interaction/Transform": "Transform$1", + "ol-ext/featureanimation/Drop": "Drop", + "ol-ext/featureanimation/Fade": "Fade", + "ol-ext/featureanimation/Path": "Path", + "ol-ext/featureanimation/Shake": "Shake", + "ol-ext/featureanimation/Slide": "Slide", + "ol-ext/featureanimation/Teleport": "Teleport", + "ol-ext/featureanimation/Zoom": "Zoom$1", + "ol/renderer/webgl/VectorLayer": "WebGLVectorLayerRenderer", + }, + assetFileNames: (assetInfo) => { + return assetInfo.name === "main.css" + ? "styles.css" + : assetInfo.name || ""; + }, + }, + }, + }, +}); From a6dec8702fc74ada0802823d2542d12214c355f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 20 Aug 2025 11:04:45 +0300 Subject: [PATCH 04/15] feat: add rollup bundle analyzer with environment variable - Add rollup-plugin-visualizer dependency for bundle analysis - Create build:analyze scripts that set VITE_ANALYZE=true - Conditionally include visualizer plugin when VITE_ANALYZE is set - Generate separate stats files for main build and tree-shaking builds Scripts added: - npm run build:analyze - Analyze main ES/CJS build - npm run build:analyze:treeshaking - Analyze tree-shaking builds - npm run build:analyze:all - Analyze both main and tree-shaking builds Outputs: - dist/stats.html - Main build visualization - dist/stats-treeshaking.html - Tree-shaking build visualization Both files show interactive bundle size analysis with gzip/brotli compression stats. --- package-lock.json | 239 ++++++++++++++++++++++++++++++++++++- package.json | 6 +- vite.config.ts | 11 ++ vite.treeshaking.config.ts | 15 ++- 4 files changed, 268 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e71ca7b4..7759146a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,6 +43,7 @@ "npm-keyword": "^8.0.0", "prettier": "^3.3.3", "release-it": "^17.6.0", + "rollup-plugin-visualizer": "^5.14.0", "typescript": "~5.5.4", "vite": "^5.3.5", "vite-plugin-dts": "^3.9.1", @@ -4005,6 +4006,61 @@ "node": ">= 12" } }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/clone": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", @@ -5096,7 +5152,6 @@ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, - "peer": true, "engines": { "node": ">=6" } @@ -5827,6 +5882,16 @@ "node": ">=10.19" } }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, "node_modules/get-east-asian-width": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.2.0.tgz", @@ -9387,6 +9452,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", @@ -9614,6 +9689,117 @@ "fsevents": "~2.3.2" } }, + "node_modules/rollup-plugin-visualizer": { + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.14.0.tgz", + "integrity": "sha512-VlDXneTDaKsHIw8yzJAFWtrzguoJ/LnQ+lMpoVfYJ3jJF4Ihe5oYLAqLklIK/35lgUY+1yEzCkHyZ1j4A5w5fA==", + "dev": true, + "license": "MIT", + "dependencies": { + "open": "^8.4.0", + "picomatch": "^4.0.2", + "source-map": "^0.7.4", + "yargs": "^17.5.1" + }, + "bin": { + "rollup-plugin-visualizer": "dist/bin/cli.js" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "rolldown": "1.x", + "rollup": "2.x || 3.x || 4.x" + }, + "peerDependenciesMeta": { + "rolldown": { + "optional": true + }, + "rollup": { + "optional": true + } + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/rollup-plugin-visualizer/node_modules/source-map": { + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz", + "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">= 12" + } + }, "node_modules/rrweb-cssom": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.7.1.tgz", @@ -11744,12 +11930,41 @@ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", @@ -11759,6 +11974,28 @@ "node": ">=12" } }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index 5bd82071..74162c8f 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,9 @@ "build:umd": "vite build --config vite.umd.config.ts", "build:treeshaking": "vite build --config vite.treeshaking.config.ts", "build:all": "rm -rf dist && npm run build && npm run build:umd && npm run build:treeshaking", + "build:analyze": "VITE_ANALYZE=true npm run build", + "build:analyze:treeshaking": "VITE_ANALYZE=true npm run build:treeshaking", + "build:analyze:all": "rm -rf dist && VITE_ANALYZE=true npm run build && VITE_ANALYZE=true npm run build:treeshaking", "serve": "npm run docs:dev", "docs:dev": "vitepress dev docs", "docs:dev:debug": "VITE_DEBUG=true npm run docs:dev", @@ -135,7 +138,7 @@ "ol-contextmenu": "^5.4.0", "ol-ext": "^4.0.21", "proj4": "^2.11.0", - "vue": "^3.4.35" + "vue": "^3.4.0" }, "peerDependencies": { "ol": "^10.0.0", @@ -176,6 +179,7 @@ "npm-keyword": "^8.0.0", "prettier": "^3.3.3", "release-it": "^17.6.0", + "rollup-plugin-visualizer": "^5.14.0", "typescript": "~5.5.4", "vite": "^5.3.5", "vite-plugin-dts": "^3.9.1", diff --git a/vite.config.ts b/vite.config.ts index e43ff8cd..f8e131e0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,6 +2,7 @@ import vue from "@vitejs/plugin-vue"; import { fileURLToPath, URL } from "url"; import { defineConfig } from "vite"; import dts from "vite-plugin-dts"; +import { visualizer } from "rollup-plugin-visualizer"; export default defineConfig({ plugins: [ @@ -17,6 +18,16 @@ export default defineConfig({ insertTypesEntry: true, }), vue(), + ...(process.env.VITE_ANALYZE + ? [ + visualizer({ + filename: "dist/stats.html", + open: true, + gzipSize: true, + brotliSize: true, + }), + ] + : []), ], resolve: { alias: { diff --git a/vite.treeshaking.config.ts b/vite.treeshaking.config.ts index ea01718e..654afb78 100644 --- a/vite.treeshaking.config.ts +++ b/vite.treeshaking.config.ts @@ -1,9 +1,22 @@ import vue from "@vitejs/plugin-vue"; import { fileURLToPath, URL } from "url"; import { defineConfig } from "vite"; +import { visualizer } from "rollup-plugin-visualizer"; export default defineConfig({ - plugins: [vue()], + plugins: [ + vue(), + ...(process.env.VITE_ANALYZE + ? [ + visualizer({ + filename: "dist/stats-treeshaking.html", + open: true, + gzipSize: true, + brotliSize: true, + }), + ] + : []), + ], resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), From 1a8429f5a7072717dcd6a928b65688eef373969b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 20 Aug 2025 11:12:00 +0300 Subject: [PATCH 05/15] feat: add missing providers and composables categories to Phase 2 tree-shaking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add providers-entry.ts for OpenLayers utilities and providers - Add composables-entry.ts for Vue composables - Update vite.treeshaking.config.ts with new entry points - Update package.json exports with subpath exports for new categories New tree-shaking bundles: - providers: 788B ES / 1.9KB CJS - OpenLayers utilities, format, geom, etc. - composables: 700B ES / 1.2KB CJS - Vue composables for layer, source, etc. Complete Phase 2 categories (11 total): ✅ map, layers, sources, controls, animations, geometries, interactions, styles, helpers, providers, composables This completes the comprehensive Phase 2 granular tree-shaking implementation. --- package.json | 10 ++++++++++ src/composables-entry.ts | 2 ++ src/providers-entry.ts | 2 ++ vite.treeshaking.config.ts | 6 ++++++ 4 files changed, 20 insertions(+) create mode 100644 src/composables-entry.ts create mode 100644 src/providers-entry.ts diff --git a/package.json b/package.json index 74162c8f..1b947ebc 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,16 @@ "require": "./dist/helpers.cjs", "types": "./dist/helpers.d.ts" }, + "./providers": { + "import": "./dist/providers.js", + "require": "./dist/providers.cjs", + "types": "./dist/providers.d.ts" + }, + "./composables": { + "import": "./dist/composables.js", + "require": "./dist/composables.cjs", + "types": "./dist/composables.d.ts" + }, "./dist/vue3-openlayers.css": { "import": "./dist/styles.css", "require": "./dist/styles.css" diff --git a/src/composables-entry.ts b/src/composables-entry.ts new file mode 100644 index 00000000..9b1d7db6 --- /dev/null +++ b/src/composables-entry.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for Vue composables +export * from "./composables"; diff --git a/src/providers-entry.ts b/src/providers-entry.ts new file mode 100644 index 00000000..24771ce6 --- /dev/null +++ b/src/providers-entry.ts @@ -0,0 +1,2 @@ +// Tree-shaking entry point for OpenLayers providers and utilities +export { default, install } from "./providers"; diff --git a/vite.treeshaking.config.ts b/vite.treeshaking.config.ts index 654afb78..1c9dc02f 100644 --- a/vite.treeshaking.config.ts +++ b/vite.treeshaking.config.ts @@ -51,6 +51,12 @@ export default defineConfig({ helpers: fileURLToPath( new URL("./src/helpers-entry.ts", import.meta.url), ), + providers: fileURLToPath( + new URL("./src/providers-entry.ts", import.meta.url), + ), + composables: fileURLToPath( + new URL("./src/composables-entry.ts", import.meta.url), + ), }, name: "vue3-openlayers", formats: ["es", "cjs"], From 871177950a3c2c8955ce76c9ef419ca7be4dc9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 20 Aug 2025 14:27:54 +0300 Subject: [PATCH 06/15] Individual components exported --- package.json | 436 +++++++++++++- .../OlAnimatedClusterlayer.ts | 1 + src/components-individual/OlAnimationDrop.ts | 1 + src/components-individual/OlAnimationFade.ts | 1 + src/components-individual/OlAnimationPath.ts | 1 + src/components-individual/OlAnimationShake.ts | 1 + src/components-individual/OlAnimationSlide.ts | 1 + .../OlAnimationTeleport.ts | 1 + src/components-individual/OlAnimationZoom.ts | 1 + .../OlAttributionControl.ts | 1 + src/components-individual/OlButtonControl.ts | 1 + .../OlContextMenuControl.ts | 1 + src/components-individual/OlControlBar.ts | 1 + src/components-individual/OlFeature.ts | 1 + .../OlFullscreenControl.ts | 1 + src/components-individual/OlGeolocation.ts | 1 + src/components-individual/OlGeomCircle.ts | 1 + src/components-individual/OlGeomLineString.ts | 1 + .../OlGeomMultiLineString.ts | 1 + src/components-individual/OlGeomMultiPoint.ts | 1 + .../OlGeomMultiPolygon.ts | 1 + src/components-individual/OlGeomPoint.ts | 1 + src/components-individual/OlGeomPolygon.ts | 1 + src/components-individual/OlHeatmapLayer.ts | 1 + src/components-individual/OlImageLayer.ts | 1 + .../OlInteractionClusterselect.ts | 1 + .../OlInteractionDragbox.ts | 1 + .../OlInteractionDragrotate.ts | 1 + .../OlInteractionDragrotatezoom.ts | 1 + .../OlInteractionDraw.ts | 1 + .../OlInteractionLink.ts | 1 + .../OlInteractionModify.ts | 1 + .../OlInteractionMouseWheelZoom.ts | 1 + .../OlInteractionPointer.ts | 1 + .../OlInteractionSelect.ts | 1 + .../OlInteractionSnap.ts | 1 + .../OlInteractionTransform.ts | 1 + src/components-individual/OlLayerGroup.ts | 1 + .../OlLayerswitcherControl.ts | 1 + .../OlLayerswitcherimageControl.ts | 1 + src/components-individual/OlMap.ts | 1 + .../OlMousepositionControl.ts | 1 + src/components-individual/OlOverlay.ts | 1 + .../OlOverviewmapControl.ts | 1 + .../OlPrintdialogControl.ts | 1 + src/components-individual/OlProfileControl.ts | 1 + .../OlProjectionRegister.ts | 1 + src/components-individual/OlRotateControl.ts | 1 + .../OlScalelineControl.ts | 1 + src/components-individual/OlSearchControl.ts | 1 + src/components-individual/OlSourceBingmaps.ts | 1 + src/components-individual/OlSourceCluster.ts | 1 + src/components-individual/OlSourceGeoTiff.ts | 1 + .../OlSourceImageStatic.ts | 1 + src/components-individual/OlSourceImageWms.ts | 1 + src/components-individual/OlSourceOSM.ts | 2 + src/components-individual/OlSourceOsm.ts | 1 + .../OlSourceStadiaMaps.ts | 1 + src/components-individual/OlSourceTianditu.ts | 1 + .../OlSourceTileArcgisRest.ts | 1 + .../OlSourceTileDebug.ts | 1 + src/components-individual/OlSourceTileJson.ts | 1 + src/components-individual/OlSourceTileWms.ts | 1 + src/components-individual/OlSourceVector.ts | 1 + .../OlSourceVectorTile.ts | 1 + src/components-individual/OlSourceWmts.ts | 1 + src/components-individual/OlSourceXyz.ts | 1 + src/components-individual/OlStyle.ts | 1 + src/components-individual/OlStyleCircle.ts | 1 + src/components-individual/OlStyleFill.ts | 1 + src/components-individual/OlStyleFlowline.ts | 1 + src/components-individual/OlStyleIcon.ts | 1 + src/components-individual/OlStyleStroke.ts | 1 + src/components-individual/OlStyleText.ts | 1 + src/components-individual/OlSwipeControl.ts | 1 + src/components-individual/OlTileLayer.ts | 1 + src/components-individual/OlToggleControl.ts | 1 + .../OlVectorImageLayer.ts | 1 + src/components-individual/OlVectorLayer.ts | 1 + .../OlVectorTileLayer.ts | 1 + .../OlVideorecorderControl.ts | 1 + src/components-individual/OlView.ts | 1 + src/components-individual/OlWebglTileLayer.ts | 1 + .../OlWebglVectorLayer.ts | 1 + src/components-individual/OlZoneControl.ts | 1 + src/components-individual/OlZoomControl.ts | 1 + .../OlZoomsliderControl.ts | 1 + .../OlZoomtoextentControl.ts | 1 + vite.individual.config.ts | 566 ++++++++++++++++++ 89 files changed, 1088 insertions(+), 2 deletions(-) create mode 100644 src/components-individual/OlAnimatedClusterlayer.ts create mode 100644 src/components-individual/OlAnimationDrop.ts create mode 100644 src/components-individual/OlAnimationFade.ts create mode 100644 src/components-individual/OlAnimationPath.ts create mode 100644 src/components-individual/OlAnimationShake.ts create mode 100644 src/components-individual/OlAnimationSlide.ts create mode 100644 src/components-individual/OlAnimationTeleport.ts create mode 100644 src/components-individual/OlAnimationZoom.ts create mode 100644 src/components-individual/OlAttributionControl.ts create mode 100644 src/components-individual/OlButtonControl.ts create mode 100644 src/components-individual/OlContextMenuControl.ts create mode 100644 src/components-individual/OlControlBar.ts create mode 100644 src/components-individual/OlFeature.ts create mode 100644 src/components-individual/OlFullscreenControl.ts create mode 100644 src/components-individual/OlGeolocation.ts create mode 100644 src/components-individual/OlGeomCircle.ts create mode 100644 src/components-individual/OlGeomLineString.ts create mode 100644 src/components-individual/OlGeomMultiLineString.ts create mode 100644 src/components-individual/OlGeomMultiPoint.ts create mode 100644 src/components-individual/OlGeomMultiPolygon.ts create mode 100644 src/components-individual/OlGeomPoint.ts create mode 100644 src/components-individual/OlGeomPolygon.ts create mode 100644 src/components-individual/OlHeatmapLayer.ts create mode 100644 src/components-individual/OlImageLayer.ts create mode 100644 src/components-individual/OlInteractionClusterselect.ts create mode 100644 src/components-individual/OlInteractionDragbox.ts create mode 100644 src/components-individual/OlInteractionDragrotate.ts create mode 100644 src/components-individual/OlInteractionDragrotatezoom.ts create mode 100644 src/components-individual/OlInteractionDraw.ts create mode 100644 src/components-individual/OlInteractionLink.ts create mode 100644 src/components-individual/OlInteractionModify.ts create mode 100644 src/components-individual/OlInteractionMouseWheelZoom.ts create mode 100644 src/components-individual/OlInteractionPointer.ts create mode 100644 src/components-individual/OlInteractionSelect.ts create mode 100644 src/components-individual/OlInteractionSnap.ts create mode 100644 src/components-individual/OlInteractionTransform.ts create mode 100644 src/components-individual/OlLayerGroup.ts create mode 100644 src/components-individual/OlLayerswitcherControl.ts create mode 100644 src/components-individual/OlLayerswitcherimageControl.ts create mode 100644 src/components-individual/OlMap.ts create mode 100644 src/components-individual/OlMousepositionControl.ts create mode 100644 src/components-individual/OlOverlay.ts create mode 100644 src/components-individual/OlOverviewmapControl.ts create mode 100644 src/components-individual/OlPrintdialogControl.ts create mode 100644 src/components-individual/OlProfileControl.ts create mode 100644 src/components-individual/OlProjectionRegister.ts create mode 100644 src/components-individual/OlRotateControl.ts create mode 100644 src/components-individual/OlScalelineControl.ts create mode 100644 src/components-individual/OlSearchControl.ts create mode 100644 src/components-individual/OlSourceBingmaps.ts create mode 100644 src/components-individual/OlSourceCluster.ts create mode 100644 src/components-individual/OlSourceGeoTiff.ts create mode 100644 src/components-individual/OlSourceImageStatic.ts create mode 100644 src/components-individual/OlSourceImageWms.ts create mode 100644 src/components-individual/OlSourceOSM.ts create mode 100644 src/components-individual/OlSourceOsm.ts create mode 100644 src/components-individual/OlSourceStadiaMaps.ts create mode 100644 src/components-individual/OlSourceTianditu.ts create mode 100644 src/components-individual/OlSourceTileArcgisRest.ts create mode 100644 src/components-individual/OlSourceTileDebug.ts create mode 100644 src/components-individual/OlSourceTileJson.ts create mode 100644 src/components-individual/OlSourceTileWms.ts create mode 100644 src/components-individual/OlSourceVector.ts create mode 100644 src/components-individual/OlSourceVectorTile.ts create mode 100644 src/components-individual/OlSourceWmts.ts create mode 100644 src/components-individual/OlSourceXyz.ts create mode 100644 src/components-individual/OlStyle.ts create mode 100644 src/components-individual/OlStyleCircle.ts create mode 100644 src/components-individual/OlStyleFill.ts create mode 100644 src/components-individual/OlStyleFlowline.ts create mode 100644 src/components-individual/OlStyleIcon.ts create mode 100644 src/components-individual/OlStyleStroke.ts create mode 100644 src/components-individual/OlStyleText.ts create mode 100644 src/components-individual/OlSwipeControl.ts create mode 100644 src/components-individual/OlTileLayer.ts create mode 100644 src/components-individual/OlToggleControl.ts create mode 100644 src/components-individual/OlVectorImageLayer.ts create mode 100644 src/components-individual/OlVectorLayer.ts create mode 100644 src/components-individual/OlVectorTileLayer.ts create mode 100644 src/components-individual/OlVideorecorderControl.ts create mode 100644 src/components-individual/OlView.ts create mode 100644 src/components-individual/OlWebglTileLayer.ts create mode 100644 src/components-individual/OlWebglVectorLayer.ts create mode 100644 src/components-individual/OlZoneControl.ts create mode 100644 src/components-individual/OlZoomControl.ts create mode 100644 src/components-individual/OlZoomsliderControl.ts create mode 100644 src/components-individual/OlZoomtoextentControl.ts create mode 100644 vite.individual.config.ts diff --git a/package.json b/package.json index 1b947ebc..92eee75c 100644 --- a/package.json +++ b/package.json @@ -99,6 +99,436 @@ "./styles.css": { "import": "./dist/styles.css", "require": "./dist/styles.css" + }, + "./OlFeature": { + "import": "./dist/OlFeature.js", + "require": "./dist/OlFeature.cjs", + "types": "./dist/OlFeature.d.ts" + }, + "./OlGeolocation": { + "import": "./dist/OlGeolocation.js", + "require": "./dist/OlGeolocation.cjs", + "types": "./dist/OlGeolocation.d.ts" + }, + "./OlMap": { + "import": "./dist/OlMap.js", + "require": "./dist/OlMap.cjs", + "types": "./dist/OlMap.d.ts" + }, + "./OlOverlay": { + "import": "./dist/OlOverlay.js", + "require": "./dist/OlOverlay.cjs", + "types": "./dist/OlOverlay.d.ts" + }, + "./OlProjectionRegister": { + "import": "./dist/OlProjectionRegister.js", + "require": "./dist/OlProjectionRegister.cjs", + "types": "./dist/OlProjectionRegister.d.ts" + }, + "./OlView": { + "import": "./dist/OlView.js", + "require": "./dist/OlView.cjs", + "types": "./dist/OlView.d.ts" + }, + "./OlAnimatedClusterlayer": { + "import": "./dist/OlAnimatedClusterlayer.js", + "require": "./dist/OlAnimatedClusterlayer.cjs", + "types": "./dist/OlAnimatedClusterlayer.d.ts" + }, + "./OlHeatmapLayer": { + "import": "./dist/OlHeatmapLayer.js", + "require": "./dist/OlHeatmapLayer.cjs", + "types": "./dist/OlHeatmapLayer.d.ts" + }, + "./OlImageLayer": { + "import": "./dist/OlImageLayer.js", + "require": "./dist/OlImageLayer.cjs", + "types": "./dist/OlImageLayer.d.ts" + }, + "./OlLayerGroup": { + "import": "./dist/OlLayerGroup.js", + "require": "./dist/OlLayerGroup.cjs", + "types": "./dist/OlLayerGroup.d.ts" + }, + "./OlTileLayer": { + "import": "./dist/OlTileLayer.js", + "require": "./dist/OlTileLayer.cjs", + "types": "./dist/OlTileLayer.d.ts" + }, + "./OlVectorImageLayer": { + "import": "./dist/OlVectorImageLayer.js", + "require": "./dist/OlVectorImageLayer.cjs", + "types": "./dist/OlVectorImageLayer.d.ts" + }, + "./OlVectorLayer": { + "import": "./dist/OlVectorLayer.js", + "require": "./dist/OlVectorLayer.cjs", + "types": "./dist/OlVectorLayer.d.ts" + }, + "./OlVectorTileLayer": { + "import": "./dist/OlVectorTileLayer.js", + "require": "./dist/OlVectorTileLayer.cjs", + "types": "./dist/OlVectorTileLayer.d.ts" + }, + "./OlWebglTileLayer": { + "import": "./dist/OlWebglTileLayer.js", + "require": "./dist/OlWebglTileLayer.cjs", + "types": "./dist/OlWebglTileLayer.d.ts" + }, + "./OlWebglVectorLayer": { + "import": "./dist/OlWebglVectorLayer.js", + "require": "./dist/OlWebglVectorLayer.cjs", + "types": "./dist/OlWebglVectorLayer.d.ts" + }, + "./OlSourceBingmaps": { + "import": "./dist/OlSourceBingmaps.js", + "require": "./dist/OlSourceBingmaps.cjs", + "types": "./dist/OlSourceBingmaps.d.ts" + }, + "./OlSourceCluster": { + "import": "./dist/OlSourceCluster.js", + "require": "./dist/OlSourceCluster.cjs", + "types": "./dist/OlSourceCluster.d.ts" + }, + "./OlSourceImageStatic": { + "import": "./dist/OlSourceImageStatic.js", + "require": "./dist/OlSourceImageStatic.cjs", + "types": "./dist/OlSourceImageStatic.d.ts" + }, + "./OlSourceImageWms": { + "import": "./dist/OlSourceImageWms.js", + "require": "./dist/OlSourceImageWms.cjs", + "types": "./dist/OlSourceImageWms.d.ts" + }, + "./OlSourceOsm": { + "import": "./dist/OlSourceOsm.js", + "require": "./dist/OlSourceOsm.cjs", + "types": "./dist/OlSourceOsm.d.ts" + }, + "./OlSourceStadiaMaps": { + "import": "./dist/OlSourceStadiaMaps.js", + "require": "./dist/OlSourceStadiaMaps.cjs", + "types": "./dist/OlSourceStadiaMaps.d.ts" + }, + "./OlSourceTianditu": { + "import": "./dist/OlSourceTianditu.js", + "require": "./dist/OlSourceTianditu.cjs", + "types": "./dist/OlSourceTianditu.d.ts" + }, + "./OlSourceTileArcgisRest": { + "import": "./dist/OlSourceTileArcgisRest.js", + "require": "./dist/OlSourceTileArcgisRest.cjs", + "types": "./dist/OlSourceTileArcgisRest.d.ts" + }, + "./OlSourceTileDebug": { + "import": "./dist/OlSourceTileDebug.js", + "require": "./dist/OlSourceTileDebug.cjs", + "types": "./dist/OlSourceTileDebug.d.ts" + }, + "./OlSourceGeoTiff": { + "import": "./dist/OlSourceGeoTiff.js", + "require": "./dist/OlSourceGeoTiff.cjs", + "types": "./dist/OlSourceGeoTiff.d.ts" + }, + "./OlSourceTileJson": { + "import": "./dist/OlSourceTileJson.js", + "require": "./dist/OlSourceTileJson.cjs", + "types": "./dist/OlSourceTileJson.d.ts" + }, + "./OlSourceTileWms": { + "import": "./dist/OlSourceTileWms.js", + "require": "./dist/OlSourceTileWms.cjs", + "types": "./dist/OlSourceTileWms.d.ts" + }, + "./OlSourceVector": { + "import": "./dist/OlSourceVector.js", + "require": "./dist/OlSourceVector.cjs", + "types": "./dist/OlSourceVector.d.ts" + }, + "./OlSourceVectorTile": { + "import": "./dist/OlSourceVectorTile.js", + "require": "./dist/OlSourceVectorTile.cjs", + "types": "./dist/OlSourceVectorTile.d.ts" + }, + "./OlSourceXyz": { + "import": "./dist/OlSourceXyz.js", + "require": "./dist/OlSourceXyz.cjs", + "types": "./dist/OlSourceXyz.d.ts" + }, + "./OlSourceWmts": { + "import": "./dist/OlSourceWmts.js", + "require": "./dist/OlSourceWmts.cjs", + "types": "./dist/OlSourceWmts.d.ts" + }, + "./OlAttributionControl": { + "import": "./dist/OlAttributionControl.js", + "require": "./dist/OlAttributionControl.cjs", + "types": "./dist/OlAttributionControl.d.ts" + }, + "./OlButtonControl": { + "import": "./dist/OlButtonControl.js", + "require": "./dist/OlButtonControl.cjs", + "types": "./dist/OlButtonControl.d.ts" + }, + "./OlContextMenuControl": { + "import": "./dist/OlContextMenuControl.js", + "require": "./dist/OlContextMenuControl.cjs", + "types": "./dist/OlContextMenuControl.d.ts" + }, + "./OlControlBar": { + "import": "./dist/OlControlBar.js", + "require": "./dist/OlControlBar.cjs", + "types": "./dist/OlControlBar.d.ts" + }, + "./OlFullscreenControl": { + "import": "./dist/OlFullscreenControl.js", + "require": "./dist/OlFullscreenControl.cjs", + "types": "./dist/OlFullscreenControl.d.ts" + }, + "./OlLayerswitcherControl": { + "import": "./dist/OlLayerswitcherControl.js", + "require": "./dist/OlLayerswitcherControl.cjs", + "types": "./dist/OlLayerswitcherControl.d.ts" + }, + "./OlLayerswitcherimageControl": { + "import": "./dist/OlLayerswitcherimageControl.js", + "require": "./dist/OlLayerswitcherimageControl.cjs", + "types": "./dist/OlLayerswitcherimageControl.d.ts" + }, + "./OlMousepositionControl": { + "import": "./dist/OlMousepositionControl.js", + "require": "./dist/OlMousepositionControl.cjs", + "types": "./dist/OlMousepositionControl.d.ts" + }, + "./OlOverviewmapControl": { + "import": "./dist/OlOverviewmapControl.js", + "require": "./dist/OlOverviewmapControl.cjs", + "types": "./dist/OlOverviewmapControl.d.ts" + }, + "./OlPrintdialogControl": { + "import": "./dist/OlPrintdialogControl.js", + "require": "./dist/OlPrintdialogControl.cjs", + "types": "./dist/OlPrintdialogControl.d.ts" + }, + "./OlProfileControl": { + "import": "./dist/OlProfileControl.js", + "require": "./dist/OlProfileControl.cjs", + "types": "./dist/OlProfileControl.d.ts" + }, + "./OlRotateControl": { + "import": "./dist/OlRotateControl.js", + "require": "./dist/OlRotateControl.cjs", + "types": "./dist/OlRotateControl.d.ts" + }, + "./OlScalelineControl": { + "import": "./dist/OlScalelineControl.js", + "require": "./dist/OlScalelineControl.cjs", + "types": "./dist/OlScalelineControl.d.ts" + }, + "./OlSearchControl": { + "import": "./dist/OlSearchControl.js", + "require": "./dist/OlSearchControl.cjs", + "types": "./dist/OlSearchControl.d.ts" + }, + "./OlSwipeControl": { + "import": "./dist/OlSwipeControl.js", + "require": "./dist/OlSwipeControl.cjs", + "types": "./dist/OlSwipeControl.d.ts" + }, + "./OlToggleControl": { + "import": "./dist/OlToggleControl.js", + "require": "./dist/OlToggleControl.cjs", + "types": "./dist/OlToggleControl.d.ts" + }, + "./OlVideorecorderControl": { + "import": "./dist/OlVideorecorderControl.js", + "require": "./dist/OlVideorecorderControl.cjs", + "types": "./dist/OlVideorecorderControl.d.ts" + }, + "./OlZoneControl": { + "import": "./dist/OlZoneControl.js", + "require": "./dist/OlZoneControl.cjs", + "types": "./dist/OlZoneControl.d.ts" + }, + "./OlZoomControl": { + "import": "./dist/OlZoomControl.js", + "require": "./dist/OlZoomControl.cjs", + "types": "./dist/OlZoomControl.d.ts" + }, + "./OlZoomsliderControl": { + "import": "./dist/OlZoomsliderControl.js", + "require": "./dist/OlZoomsliderControl.cjs", + "types": "./dist/OlZoomsliderControl.d.ts" + }, + "./OlZoomtoextentControl": { + "import": "./dist/OlZoomtoextentControl.js", + "require": "./dist/OlZoomtoextentControl.cjs", + "types": "./dist/OlZoomtoextentControl.d.ts" + }, + "./OlGeomCircle": { + "import": "./dist/OlGeomCircle.js", + "require": "./dist/OlGeomCircle.cjs", + "types": "./dist/OlGeomCircle.d.ts" + }, + "./OlGeomLineString": { + "import": "./dist/OlGeomLineString.js", + "require": "./dist/OlGeomLineString.cjs", + "types": "./dist/OlGeomLineString.d.ts" + }, + "./OlGeomMultiLineString": { + "import": "./dist/OlGeomMultiLineString.js", + "require": "./dist/OlGeomMultiLineString.cjs", + "types": "./dist/OlGeomMultiLineString.d.ts" + }, + "./OlGeomMultiPoint": { + "import": "./dist/OlGeomMultiPoint.js", + "require": "./dist/OlGeomMultiPoint.cjs", + "types": "./dist/OlGeomMultiPoint.d.ts" + }, + "./OlGeomMultiPolygon": { + "import": "./dist/OlGeomMultiPolygon.js", + "require": "./dist/OlGeomMultiPolygon.cjs", + "types": "./dist/OlGeomMultiPolygon.d.ts" + }, + "./OlGeomPoint": { + "import": "./dist/OlGeomPoint.js", + "require": "./dist/OlGeomPoint.cjs", + "types": "./dist/OlGeomPoint.d.ts" + }, + "./OlGeomPolygon": { + "import": "./dist/OlGeomPolygon.js", + "require": "./dist/OlGeomPolygon.cjs", + "types": "./dist/OlGeomPolygon.d.ts" + }, + "./OlStyle": { + "import": "./dist/OlStyle.js", + "require": "./dist/OlStyle.cjs", + "types": "./dist/OlStyle.d.ts" + }, + "./OlStyleStroke": { + "import": "./dist/OlStyleStroke.js", + "require": "./dist/OlStyleStroke.cjs", + "types": "./dist/OlStyleStroke.d.ts" + }, + "./OlStyleFill": { + "import": "./dist/OlStyleFill.js", + "require": "./dist/OlStyleFill.cjs", + "types": "./dist/OlStyleFill.d.ts" + }, + "./OlStyleIcon": { + "import": "./dist/OlStyleIcon.js", + "require": "./dist/OlStyleIcon.cjs", + "types": "./dist/OlStyleIcon.d.ts" + }, + "./OlStyleText": { + "import": "./dist/OlStyleText.js", + "require": "./dist/OlStyleText.cjs", + "types": "./dist/OlStyleText.d.ts" + }, + "./OlStyleFlowline": { + "import": "./dist/OlStyleFlowline.js", + "require": "./dist/OlStyleFlowline.cjs", + "types": "./dist/OlStyleFlowline.d.ts" + }, + "./OlStyleCircle": { + "import": "./dist/OlStyleCircle.js", + "require": "./dist/OlStyleCircle.cjs", + "types": "./dist/OlStyleCircle.d.ts" + }, + "./OlInteractionClusterselect": { + "import": "./dist/OlInteractionClusterselect.js", + "require": "./dist/OlInteractionClusterselect.cjs", + "types": "./dist/OlInteractionClusterselect.d.ts" + }, + "./OlInteractionDragbox": { + "import": "./dist/OlInteractionDragbox.js", + "require": "./dist/OlInteractionDragbox.cjs", + "types": "./dist/OlInteractionDragbox.d.ts" + }, + "./OlInteractionDragrotate": { + "import": "./dist/OlInteractionDragrotate.js", + "require": "./dist/OlInteractionDragrotate.cjs", + "types": "./dist/OlInteractionDragrotate.d.ts" + }, + "./OlInteractionDragrotatezoom": { + "import": "./dist/OlInteractionDragrotatezoom.js", + "require": "./dist/OlInteractionDragrotatezoom.cjs", + "types": "./dist/OlInteractionDragrotatezoom.d.ts" + }, + "./OlInteractionLink": { + "import": "./dist/OlInteractionLink.js", + "require": "./dist/OlInteractionLink.cjs", + "types": "./dist/OlInteractionLink.d.ts" + }, + "./OlInteractionSelect": { + "import": "./dist/OlInteractionSelect.js", + "require": "./dist/OlInteractionSelect.cjs", + "types": "./dist/OlInteractionSelect.d.ts" + }, + "./OlInteractionDraw": { + "import": "./dist/OlInteractionDraw.js", + "require": "./dist/OlInteractionDraw.cjs", + "types": "./dist/OlInteractionDraw.d.ts" + }, + "./OlInteractionModify": { + "import": "./dist/OlInteractionModify.js", + "require": "./dist/OlInteractionModify.cjs", + "types": "./dist/OlInteractionModify.d.ts" + }, + "./OlInteractionPointer": { + "import": "./dist/OlInteractionPointer.js", + "require": "./dist/OlInteractionPointer.cjs", + "types": "./dist/OlInteractionPointer.d.ts" + }, + "./OlInteractionSnap": { + "import": "./dist/OlInteractionSnap.js", + "require": "./dist/OlInteractionSnap.cjs", + "types": "./dist/OlInteractionSnap.d.ts" + }, + "./OlInteractionTransform": { + "import": "./dist/OlInteractionTransform.js", + "require": "./dist/OlInteractionTransform.cjs", + "types": "./dist/OlInteractionTransform.d.ts" + }, + "./OlInteractionMouseWheelZoom": { + "import": "./dist/OlInteractionMouseWheelZoom.js", + "require": "./dist/OlInteractionMouseWheelZoom.cjs", + "types": "./dist/OlInteractionMouseWheelZoom.d.ts" + }, + "./OlAnimationDrop": { + "import": "./dist/OlAnimationDrop.js", + "require": "./dist/OlAnimationDrop.cjs", + "types": "./dist/OlAnimationDrop.d.ts" + }, + "./OlAnimationFade": { + "import": "./dist/OlAnimationFade.js", + "require": "./dist/OlAnimationFade.cjs", + "types": "./dist/OlAnimationFade.d.ts" + }, + "./OlAnimationPath": { + "import": "./dist/OlAnimationPath.js", + "require": "./dist/OlAnimationPath.cjs", + "types": "./dist/OlAnimationPath.d.ts" + }, + "./OlAnimationShake": { + "import": "./dist/OlAnimationShake.js", + "require": "./dist/OlAnimationShake.cjs", + "types": "./dist/OlAnimationShake.d.ts" + }, + "./OlAnimationSlide": { + "import": "./dist/OlAnimationSlide.js", + "require": "./dist/OlAnimationSlide.cjs", + "types": "./dist/OlAnimationSlide.d.ts" + }, + "./OlAnimationTeleport": { + "import": "./dist/OlAnimationTeleport.js", + "require": "./dist/OlAnimationTeleport.cjs", + "types": "./dist/OlAnimationTeleport.d.ts" + }, + "./OlAnimationZoom": { + "import": "./dist/OlAnimationZoom.js", + "require": "./dist/OlAnimationZoom.cjs", + "types": "./dist/OlAnimationZoom.d.ts" } }, "files": [ @@ -111,10 +541,12 @@ "build": "vite build", "build:umd": "vite build --config vite.umd.config.ts", "build:treeshaking": "vite build --config vite.treeshaking.config.ts", - "build:all": "rm -rf dist && npm run build && npm run build:umd && npm run build:treeshaking", + "build:individual": "vite build --config vite.individual.config.ts", + "build:all": "rm -rf dist && npm run build && npm run build:umd && npm run build:treeshaking && npm run build:individual", "build:analyze": "VITE_ANALYZE=true npm run build", "build:analyze:treeshaking": "VITE_ANALYZE=true npm run build:treeshaking", - "build:analyze:all": "rm -rf dist && VITE_ANALYZE=true npm run build && VITE_ANALYZE=true npm run build:treeshaking", + "build:analyze:individual": "VITE_ANALYZE=true npm run build:individual", + "build:analyze:all": "rm -rf dist && VITE_ANALYZE=true npm run build && VITE_ANALYZE=true npm run build:treeshaking && VITE_ANALYZE=true npm run build:individual", "serve": "npm run docs:dev", "docs:dev": "vitepress dev docs", "docs:dev:debug": "VITE_DEBUG=true npm run docs:dev", diff --git a/src/components-individual/OlAnimatedClusterlayer.ts b/src/components-individual/OlAnimatedClusterlayer.ts new file mode 100644 index 00000000..c0600ec0 --- /dev/null +++ b/src/components-individual/OlAnimatedClusterlayer.ts @@ -0,0 +1 @@ +export { default as OlAnimatedClusterlayer } from "../components/layers/OlAnimatedClusterlayer.vue"; diff --git a/src/components-individual/OlAnimationDrop.ts b/src/components-individual/OlAnimationDrop.ts new file mode 100644 index 00000000..8b414710 --- /dev/null +++ b/src/components-individual/OlAnimationDrop.ts @@ -0,0 +1 @@ +export { default as OlAnimationDrop } from "../components/animations/OlAnimationDrop.vue"; diff --git a/src/components-individual/OlAnimationFade.ts b/src/components-individual/OlAnimationFade.ts new file mode 100644 index 00000000..f8e417d7 --- /dev/null +++ b/src/components-individual/OlAnimationFade.ts @@ -0,0 +1 @@ +export { default as OlAnimationFade } from "../components/animations/OlAnimationFade.vue"; diff --git a/src/components-individual/OlAnimationPath.ts b/src/components-individual/OlAnimationPath.ts new file mode 100644 index 00000000..6dd4159e --- /dev/null +++ b/src/components-individual/OlAnimationPath.ts @@ -0,0 +1 @@ +export { default as OlAnimationPath } from "../components/animations/OlAnimationPath.vue"; diff --git a/src/components-individual/OlAnimationShake.ts b/src/components-individual/OlAnimationShake.ts new file mode 100644 index 00000000..1e5dd4ac --- /dev/null +++ b/src/components-individual/OlAnimationShake.ts @@ -0,0 +1 @@ +export { default as OlAnimationShake } from "../components/animations/OlAnimationShake.vue"; diff --git a/src/components-individual/OlAnimationSlide.ts b/src/components-individual/OlAnimationSlide.ts new file mode 100644 index 00000000..1a5ea269 --- /dev/null +++ b/src/components-individual/OlAnimationSlide.ts @@ -0,0 +1 @@ +export { default as OlAnimationSlide } from "../components/animations/OlAnimationSlide.vue"; diff --git a/src/components-individual/OlAnimationTeleport.ts b/src/components-individual/OlAnimationTeleport.ts new file mode 100644 index 00000000..eaf2b40f --- /dev/null +++ b/src/components-individual/OlAnimationTeleport.ts @@ -0,0 +1 @@ +export { default as OlAnimationTeleport } from "../components/animations/OlAnimationTeleport.vue"; diff --git a/src/components-individual/OlAnimationZoom.ts b/src/components-individual/OlAnimationZoom.ts new file mode 100644 index 00000000..06425660 --- /dev/null +++ b/src/components-individual/OlAnimationZoom.ts @@ -0,0 +1 @@ +export { default as OlAnimationZoom } from "../components/animations/OlAnimationZoom.vue"; diff --git a/src/components-individual/OlAttributionControl.ts b/src/components-individual/OlAttributionControl.ts new file mode 100644 index 00000000..5be7948b --- /dev/null +++ b/src/components-individual/OlAttributionControl.ts @@ -0,0 +1 @@ +export { default as OlAttributionControl } from "../components/mapControls/OlAttributionControl.vue"; diff --git a/src/components-individual/OlButtonControl.ts b/src/components-individual/OlButtonControl.ts new file mode 100644 index 00000000..c5ab916a --- /dev/null +++ b/src/components-individual/OlButtonControl.ts @@ -0,0 +1 @@ +export { default as OlButtonControl } from "../components/mapControls/OlButtonControl.vue"; diff --git a/src/components-individual/OlContextMenuControl.ts b/src/components-individual/OlContextMenuControl.ts new file mode 100644 index 00000000..6b541167 --- /dev/null +++ b/src/components-individual/OlContextMenuControl.ts @@ -0,0 +1 @@ +export { default as OlContextMenuControl } from "../components/mapControls/OlContextMenuControl.vue"; diff --git a/src/components-individual/OlControlBar.ts b/src/components-individual/OlControlBar.ts new file mode 100644 index 00000000..c796e8be --- /dev/null +++ b/src/components-individual/OlControlBar.ts @@ -0,0 +1 @@ +export { default as OlControlBar } from "../components/mapControls/OlControlBar.vue"; diff --git a/src/components-individual/OlFeature.ts b/src/components-individual/OlFeature.ts new file mode 100644 index 00000000..8b8dacf7 --- /dev/null +++ b/src/components-individual/OlFeature.ts @@ -0,0 +1 @@ +export { default as OlFeature } from "../components/map/OlFeature.vue"; diff --git a/src/components-individual/OlFullscreenControl.ts b/src/components-individual/OlFullscreenControl.ts new file mode 100644 index 00000000..b13a6d1f --- /dev/null +++ b/src/components-individual/OlFullscreenControl.ts @@ -0,0 +1 @@ +export { default as OlFullscreenControl } from "../components/mapControls/OlFullscreenControl.vue"; diff --git a/src/components-individual/OlGeolocation.ts b/src/components-individual/OlGeolocation.ts new file mode 100644 index 00000000..33b44669 --- /dev/null +++ b/src/components-individual/OlGeolocation.ts @@ -0,0 +1 @@ +export { default as OlGeolocation } from "../components/map/OlGeolocation.vue"; diff --git a/src/components-individual/OlGeomCircle.ts b/src/components-individual/OlGeomCircle.ts new file mode 100644 index 00000000..cdee4fbc --- /dev/null +++ b/src/components-individual/OlGeomCircle.ts @@ -0,0 +1 @@ +export { default as OlGeomCircle } from "../components/geometries/OlGeomCircle.vue"; diff --git a/src/components-individual/OlGeomLineString.ts b/src/components-individual/OlGeomLineString.ts new file mode 100644 index 00000000..46b8e3d1 --- /dev/null +++ b/src/components-individual/OlGeomLineString.ts @@ -0,0 +1 @@ +export { default as OlGeomLineString } from "../components/geometries/OlGeomLineString.vue"; diff --git a/src/components-individual/OlGeomMultiLineString.ts b/src/components-individual/OlGeomMultiLineString.ts new file mode 100644 index 00000000..4ec198c9 --- /dev/null +++ b/src/components-individual/OlGeomMultiLineString.ts @@ -0,0 +1 @@ +export { default as OlGeomMultiLineString } from "../components/geometries/OlGeomMultiLineString.vue"; diff --git a/src/components-individual/OlGeomMultiPoint.ts b/src/components-individual/OlGeomMultiPoint.ts new file mode 100644 index 00000000..8d4eb26f --- /dev/null +++ b/src/components-individual/OlGeomMultiPoint.ts @@ -0,0 +1 @@ +export { default as OlGeomMultiPoint } from "../components/geometries/OlGeomMultiPoint.vue"; diff --git a/src/components-individual/OlGeomMultiPolygon.ts b/src/components-individual/OlGeomMultiPolygon.ts new file mode 100644 index 00000000..018ece1b --- /dev/null +++ b/src/components-individual/OlGeomMultiPolygon.ts @@ -0,0 +1 @@ +export { default as OlGeomMultiPolygon } from "../components/geometries/OlGeomMultiPolygon.vue"; diff --git a/src/components-individual/OlGeomPoint.ts b/src/components-individual/OlGeomPoint.ts new file mode 100644 index 00000000..91fd292e --- /dev/null +++ b/src/components-individual/OlGeomPoint.ts @@ -0,0 +1 @@ +export { default as OlGeomPoint } from "../components/geometries/OlGeomPoint.vue"; diff --git a/src/components-individual/OlGeomPolygon.ts b/src/components-individual/OlGeomPolygon.ts new file mode 100644 index 00000000..e900e1bf --- /dev/null +++ b/src/components-individual/OlGeomPolygon.ts @@ -0,0 +1 @@ +export { default as OlGeomPolygon } from "../components/geometries/OlGeomPolygon.vue"; diff --git a/src/components-individual/OlHeatmapLayer.ts b/src/components-individual/OlHeatmapLayer.ts new file mode 100644 index 00000000..4e3971fc --- /dev/null +++ b/src/components-individual/OlHeatmapLayer.ts @@ -0,0 +1 @@ +export { default as OlHeatmapLayer } from "../components/layers/OlHeatmapLayer.vue"; diff --git a/src/components-individual/OlImageLayer.ts b/src/components-individual/OlImageLayer.ts new file mode 100644 index 00000000..b2ff0b97 --- /dev/null +++ b/src/components-individual/OlImageLayer.ts @@ -0,0 +1 @@ +export { default as OlImageLayer } from "../components/layers/OlImageLayer.vue"; diff --git a/src/components-individual/OlInteractionClusterselect.ts b/src/components-individual/OlInteractionClusterselect.ts new file mode 100644 index 00000000..e0562f4d --- /dev/null +++ b/src/components-individual/OlInteractionClusterselect.ts @@ -0,0 +1 @@ +export { default as OlInteractionClusterselect } from "../components/interaction/OlInteractionClusterselect.vue"; diff --git a/src/components-individual/OlInteractionDragbox.ts b/src/components-individual/OlInteractionDragbox.ts new file mode 100644 index 00000000..adf1b1fa --- /dev/null +++ b/src/components-individual/OlInteractionDragbox.ts @@ -0,0 +1 @@ +export { default as OlInteractionDragbox } from "../components/interaction/OlInteractionDragbox.vue"; diff --git a/src/components-individual/OlInteractionDragrotate.ts b/src/components-individual/OlInteractionDragrotate.ts new file mode 100644 index 00000000..482aea4f --- /dev/null +++ b/src/components-individual/OlInteractionDragrotate.ts @@ -0,0 +1 @@ +export { default as OlInteractionDragrotate } from "../components/interaction/OlInteractionDragrotate.vue"; diff --git a/src/components-individual/OlInteractionDragrotatezoom.ts b/src/components-individual/OlInteractionDragrotatezoom.ts new file mode 100644 index 00000000..7eff5fac --- /dev/null +++ b/src/components-individual/OlInteractionDragrotatezoom.ts @@ -0,0 +1 @@ +export { default as OlInteractionDragrotatezoom } from "../components/interaction/OlInteractionDragrotatezoom.vue"; diff --git a/src/components-individual/OlInteractionDraw.ts b/src/components-individual/OlInteractionDraw.ts new file mode 100644 index 00000000..5dac8781 --- /dev/null +++ b/src/components-individual/OlInteractionDraw.ts @@ -0,0 +1 @@ +export { default as OlInteractionDraw } from "../components/interaction/OlInteractionDraw.vue"; diff --git a/src/components-individual/OlInteractionLink.ts b/src/components-individual/OlInteractionLink.ts new file mode 100644 index 00000000..31797028 --- /dev/null +++ b/src/components-individual/OlInteractionLink.ts @@ -0,0 +1 @@ +export { default as OlInteractionLink } from "../components/interaction/OlInteractionLink.vue"; diff --git a/src/components-individual/OlInteractionModify.ts b/src/components-individual/OlInteractionModify.ts new file mode 100644 index 00000000..69b5fbb3 --- /dev/null +++ b/src/components-individual/OlInteractionModify.ts @@ -0,0 +1 @@ +export { default as OlInteractionModify } from "../components/interaction/OlInteractionModify.vue"; diff --git a/src/components-individual/OlInteractionMouseWheelZoom.ts b/src/components-individual/OlInteractionMouseWheelZoom.ts new file mode 100644 index 00000000..d88fc1ea --- /dev/null +++ b/src/components-individual/OlInteractionMouseWheelZoom.ts @@ -0,0 +1 @@ +export { default as OlInteractionMouseWheelZoom } from "../components/interaction/OlInteractionMouseWheelZoom.vue"; diff --git a/src/components-individual/OlInteractionPointer.ts b/src/components-individual/OlInteractionPointer.ts new file mode 100644 index 00000000..c6ee7678 --- /dev/null +++ b/src/components-individual/OlInteractionPointer.ts @@ -0,0 +1 @@ +export { default as OlInteractionPointer } from "../components/interaction/OlInteractionPointer.vue"; diff --git a/src/components-individual/OlInteractionSelect.ts b/src/components-individual/OlInteractionSelect.ts new file mode 100644 index 00000000..3972fe07 --- /dev/null +++ b/src/components-individual/OlInteractionSelect.ts @@ -0,0 +1 @@ +export { default as OlInteractionSelect } from "../components/interaction/OlInteractionSelect.vue"; diff --git a/src/components-individual/OlInteractionSnap.ts b/src/components-individual/OlInteractionSnap.ts new file mode 100644 index 00000000..c745e342 --- /dev/null +++ b/src/components-individual/OlInteractionSnap.ts @@ -0,0 +1 @@ +export { default as OlInteractionSnap } from "../components/interaction/OlInteractionSnap.vue"; diff --git a/src/components-individual/OlInteractionTransform.ts b/src/components-individual/OlInteractionTransform.ts new file mode 100644 index 00000000..c6f8e4df --- /dev/null +++ b/src/components-individual/OlInteractionTransform.ts @@ -0,0 +1 @@ +export { default as OlInteractionTransform } from "../components/interaction/OlInteractionTransform.vue"; diff --git a/src/components-individual/OlLayerGroup.ts b/src/components-individual/OlLayerGroup.ts new file mode 100644 index 00000000..7a460023 --- /dev/null +++ b/src/components-individual/OlLayerGroup.ts @@ -0,0 +1 @@ +export { default as OlLayerGroup } from "../components/layers/OlLayerGroup.vue"; diff --git a/src/components-individual/OlLayerswitcherControl.ts b/src/components-individual/OlLayerswitcherControl.ts new file mode 100644 index 00000000..cc42c571 --- /dev/null +++ b/src/components-individual/OlLayerswitcherControl.ts @@ -0,0 +1 @@ +export { default as OlLayerswitcherControl } from "../components/mapControls/OlLayerswitcherControl.vue"; diff --git a/src/components-individual/OlLayerswitcherimageControl.ts b/src/components-individual/OlLayerswitcherimageControl.ts new file mode 100644 index 00000000..fd714be9 --- /dev/null +++ b/src/components-individual/OlLayerswitcherimageControl.ts @@ -0,0 +1 @@ +export { default as OlLayerswitcherimageControl } from "../components/mapControls/OlLayerswitcherimageControl.vue"; diff --git a/src/components-individual/OlMap.ts b/src/components-individual/OlMap.ts new file mode 100644 index 00000000..3968a65b --- /dev/null +++ b/src/components-individual/OlMap.ts @@ -0,0 +1 @@ +export { default as OlMap } from "../components/map/OlMap.vue"; diff --git a/src/components-individual/OlMousepositionControl.ts b/src/components-individual/OlMousepositionControl.ts new file mode 100644 index 00000000..1938c22e --- /dev/null +++ b/src/components-individual/OlMousepositionControl.ts @@ -0,0 +1 @@ +export { default as OlMousepositionControl } from "../components/mapControls/OlMousepositionControl.vue"; diff --git a/src/components-individual/OlOverlay.ts b/src/components-individual/OlOverlay.ts new file mode 100644 index 00000000..8b096d6f --- /dev/null +++ b/src/components-individual/OlOverlay.ts @@ -0,0 +1 @@ +export { default as OlOverlay } from "../components/map/OlOverlay.vue"; diff --git a/src/components-individual/OlOverviewmapControl.ts b/src/components-individual/OlOverviewmapControl.ts new file mode 100644 index 00000000..452e49a0 --- /dev/null +++ b/src/components-individual/OlOverviewmapControl.ts @@ -0,0 +1 @@ +export { default as OlOverviewmapControl } from "../components/mapControls/OlOverviewmapControl.vue"; diff --git a/src/components-individual/OlPrintdialogControl.ts b/src/components-individual/OlPrintdialogControl.ts new file mode 100644 index 00000000..c64221f0 --- /dev/null +++ b/src/components-individual/OlPrintdialogControl.ts @@ -0,0 +1 @@ +export { default as OlPrintdialogControl } from "../components/mapControls/OlPrintdialogControl.vue"; diff --git a/src/components-individual/OlProfileControl.ts b/src/components-individual/OlProfileControl.ts new file mode 100644 index 00000000..fa6046b6 --- /dev/null +++ b/src/components-individual/OlProfileControl.ts @@ -0,0 +1 @@ +export { default as OlProfileControl } from "../components/mapControls/OlProfileControl.vue"; diff --git a/src/components-individual/OlProjectionRegister.ts b/src/components-individual/OlProjectionRegister.ts new file mode 100644 index 00000000..06b6ecc9 --- /dev/null +++ b/src/components-individual/OlProjectionRegister.ts @@ -0,0 +1 @@ +export { default as OlProjectionRegister } from "../components/map/OlProjectionRegister.vue"; diff --git a/src/components-individual/OlRotateControl.ts b/src/components-individual/OlRotateControl.ts new file mode 100644 index 00000000..c03cbe98 --- /dev/null +++ b/src/components-individual/OlRotateControl.ts @@ -0,0 +1 @@ +export { default as OlRotateControl } from "../components/mapControls/OlRotateControl.vue"; diff --git a/src/components-individual/OlScalelineControl.ts b/src/components-individual/OlScalelineControl.ts new file mode 100644 index 00000000..2f0999b2 --- /dev/null +++ b/src/components-individual/OlScalelineControl.ts @@ -0,0 +1 @@ +export { default as OlScalelineControl } from "../components/mapControls/OlScalelineControl.vue"; diff --git a/src/components-individual/OlSearchControl.ts b/src/components-individual/OlSearchControl.ts new file mode 100644 index 00000000..3e360657 --- /dev/null +++ b/src/components-individual/OlSearchControl.ts @@ -0,0 +1 @@ +export { default as OlSearchControl } from "../components/mapControls/OlSearchControl.vue"; diff --git a/src/components-individual/OlSourceBingmaps.ts b/src/components-individual/OlSourceBingmaps.ts new file mode 100644 index 00000000..99994158 --- /dev/null +++ b/src/components-individual/OlSourceBingmaps.ts @@ -0,0 +1 @@ +export { default as OlSourceBingmaps } from "../components/sources/OlSourceBingmaps.vue"; diff --git a/src/components-individual/OlSourceCluster.ts b/src/components-individual/OlSourceCluster.ts new file mode 100644 index 00000000..5f98eb30 --- /dev/null +++ b/src/components-individual/OlSourceCluster.ts @@ -0,0 +1 @@ +export { default as OlSourceCluster } from "../components/sources/OlSourceCluster.vue"; diff --git a/src/components-individual/OlSourceGeoTiff.ts b/src/components-individual/OlSourceGeoTiff.ts new file mode 100644 index 00000000..a5a09c9e --- /dev/null +++ b/src/components-individual/OlSourceGeoTiff.ts @@ -0,0 +1 @@ +export { default as OlSourceGeoTiff } from "../components/sources/OlSourceGeoTiff.vue"; diff --git a/src/components-individual/OlSourceImageStatic.ts b/src/components-individual/OlSourceImageStatic.ts new file mode 100644 index 00000000..fd573367 --- /dev/null +++ b/src/components-individual/OlSourceImageStatic.ts @@ -0,0 +1 @@ +export { default as OlSourceImageStatic } from "../components/sources/OlSourceImageStatic.vue"; diff --git a/src/components-individual/OlSourceImageWms.ts b/src/components-individual/OlSourceImageWms.ts new file mode 100644 index 00000000..876557f5 --- /dev/null +++ b/src/components-individual/OlSourceImageWms.ts @@ -0,0 +1 @@ +export { default as OlSourceImageWms } from "../components/sources/OlSourceImageWms.vue"; diff --git a/src/components-individual/OlSourceOSM.ts b/src/components-individual/OlSourceOSM.ts new file mode 100644 index 00000000..b0033858 --- /dev/null +++ b/src/components-individual/OlSourceOSM.ts @@ -0,0 +1,2 @@ +// Individual tree-shaking entry point for OlSourceOSM component +export { default as OlSourceOSM } from "../components/sources/OlSourceOSM.vue"; diff --git a/src/components-individual/OlSourceOsm.ts b/src/components-individual/OlSourceOsm.ts new file mode 100644 index 00000000..eca3c169 --- /dev/null +++ b/src/components-individual/OlSourceOsm.ts @@ -0,0 +1 @@ +export { default as OlSourceOsm } from "../components/sources/OlSourceOsm.vue"; diff --git a/src/components-individual/OlSourceStadiaMaps.ts b/src/components-individual/OlSourceStadiaMaps.ts new file mode 100644 index 00000000..50ab58cd --- /dev/null +++ b/src/components-individual/OlSourceStadiaMaps.ts @@ -0,0 +1 @@ +export { default as OlSourceStadiaMaps } from "../components/sources/OlSourceStadiaMaps.vue"; diff --git a/src/components-individual/OlSourceTianditu.ts b/src/components-individual/OlSourceTianditu.ts new file mode 100644 index 00000000..fd870cf1 --- /dev/null +++ b/src/components-individual/OlSourceTianditu.ts @@ -0,0 +1 @@ +export { default as OlSourceTianditu } from "../components/sources/OlSourceTianditu.vue"; diff --git a/src/components-individual/OlSourceTileArcgisRest.ts b/src/components-individual/OlSourceTileArcgisRest.ts new file mode 100644 index 00000000..5cf96e61 --- /dev/null +++ b/src/components-individual/OlSourceTileArcgisRest.ts @@ -0,0 +1 @@ +export { default as OlSourceTileArcgisRest } from "../components/sources/OlSourceTileArcgisRest.vue"; diff --git a/src/components-individual/OlSourceTileDebug.ts b/src/components-individual/OlSourceTileDebug.ts new file mode 100644 index 00000000..115ffe44 --- /dev/null +++ b/src/components-individual/OlSourceTileDebug.ts @@ -0,0 +1 @@ +export { default as OlSourceTileDebug } from "../components/sources/OlSourceTileDebug.vue"; diff --git a/src/components-individual/OlSourceTileJson.ts b/src/components-individual/OlSourceTileJson.ts new file mode 100644 index 00000000..92990064 --- /dev/null +++ b/src/components-individual/OlSourceTileJson.ts @@ -0,0 +1 @@ +export { default as OlSourceTileJson } from "../components/sources/OlSourceTileJson.vue"; diff --git a/src/components-individual/OlSourceTileWms.ts b/src/components-individual/OlSourceTileWms.ts new file mode 100644 index 00000000..5ad955b9 --- /dev/null +++ b/src/components-individual/OlSourceTileWms.ts @@ -0,0 +1 @@ +export { default as OlSourceTileWms } from "../components/sources/OlSourceTileWms.vue"; diff --git a/src/components-individual/OlSourceVector.ts b/src/components-individual/OlSourceVector.ts new file mode 100644 index 00000000..e7584b0e --- /dev/null +++ b/src/components-individual/OlSourceVector.ts @@ -0,0 +1 @@ +export { default as OlSourceVector } from "../components/sources/OlSourceVector.vue"; diff --git a/src/components-individual/OlSourceVectorTile.ts b/src/components-individual/OlSourceVectorTile.ts new file mode 100644 index 00000000..7279fa49 --- /dev/null +++ b/src/components-individual/OlSourceVectorTile.ts @@ -0,0 +1 @@ +export { default as OlSourceVectorTile } from "../components/sources/OlSourceVectorTile.vue"; diff --git a/src/components-individual/OlSourceWmts.ts b/src/components-individual/OlSourceWmts.ts new file mode 100644 index 00000000..68eec7b6 --- /dev/null +++ b/src/components-individual/OlSourceWmts.ts @@ -0,0 +1 @@ +export { default as OlSourceWmts } from "../components/sources/OlSourceWmts.vue"; diff --git a/src/components-individual/OlSourceXyz.ts b/src/components-individual/OlSourceXyz.ts new file mode 100644 index 00000000..bd925bb8 --- /dev/null +++ b/src/components-individual/OlSourceXyz.ts @@ -0,0 +1 @@ +export { default as OlSourceXyz } from "../components/sources/OlSourceXyz.vue"; diff --git a/src/components-individual/OlStyle.ts b/src/components-individual/OlStyle.ts new file mode 100644 index 00000000..ce7bfff9 --- /dev/null +++ b/src/components-individual/OlStyle.ts @@ -0,0 +1 @@ +export { default as OlStyle } from "../components/styles/OlStyle.vue"; diff --git a/src/components-individual/OlStyleCircle.ts b/src/components-individual/OlStyleCircle.ts new file mode 100644 index 00000000..18e8b3a1 --- /dev/null +++ b/src/components-individual/OlStyleCircle.ts @@ -0,0 +1 @@ +export { default as OlStyleCircle } from "../components/styles/OlStyleCircle.vue"; diff --git a/src/components-individual/OlStyleFill.ts b/src/components-individual/OlStyleFill.ts new file mode 100644 index 00000000..220c2348 --- /dev/null +++ b/src/components-individual/OlStyleFill.ts @@ -0,0 +1 @@ +export { default as OlStyleFill } from "../components/styles/OlStyleFill.vue"; diff --git a/src/components-individual/OlStyleFlowline.ts b/src/components-individual/OlStyleFlowline.ts new file mode 100644 index 00000000..6c6781c1 --- /dev/null +++ b/src/components-individual/OlStyleFlowline.ts @@ -0,0 +1 @@ +export { default as OlStyleFlowline } from "../components/styles/OlStyleFlowline.vue"; diff --git a/src/components-individual/OlStyleIcon.ts b/src/components-individual/OlStyleIcon.ts new file mode 100644 index 00000000..b70880ed --- /dev/null +++ b/src/components-individual/OlStyleIcon.ts @@ -0,0 +1 @@ +export { default as OlStyleIcon } from "../components/styles/OlStyleIcon.vue"; diff --git a/src/components-individual/OlStyleStroke.ts b/src/components-individual/OlStyleStroke.ts new file mode 100644 index 00000000..f2374b1b --- /dev/null +++ b/src/components-individual/OlStyleStroke.ts @@ -0,0 +1 @@ +export { default as OlStyleStroke } from "../components/styles/OlStyleStroke.vue"; diff --git a/src/components-individual/OlStyleText.ts b/src/components-individual/OlStyleText.ts new file mode 100644 index 00000000..3e0059a0 --- /dev/null +++ b/src/components-individual/OlStyleText.ts @@ -0,0 +1 @@ +export { default as OlStyleText } from "../components/styles/OlStyleText.vue"; diff --git a/src/components-individual/OlSwipeControl.ts b/src/components-individual/OlSwipeControl.ts new file mode 100644 index 00000000..45d3cd3a --- /dev/null +++ b/src/components-individual/OlSwipeControl.ts @@ -0,0 +1 @@ +export { default as OlSwipeControl } from "../components/mapControls/OlSwipeControl.vue"; diff --git a/src/components-individual/OlTileLayer.ts b/src/components-individual/OlTileLayer.ts new file mode 100644 index 00000000..2506083c --- /dev/null +++ b/src/components-individual/OlTileLayer.ts @@ -0,0 +1 @@ +export { default as OlTileLayer } from "../components/layers/OlTileLayer.vue"; diff --git a/src/components-individual/OlToggleControl.ts b/src/components-individual/OlToggleControl.ts new file mode 100644 index 00000000..16b268d2 --- /dev/null +++ b/src/components-individual/OlToggleControl.ts @@ -0,0 +1 @@ +export { default as OlToggleControl } from "../components/mapControls/OlToggleControl.vue"; diff --git a/src/components-individual/OlVectorImageLayer.ts b/src/components-individual/OlVectorImageLayer.ts new file mode 100644 index 00000000..c36e9dd1 --- /dev/null +++ b/src/components-individual/OlVectorImageLayer.ts @@ -0,0 +1 @@ +export { default as OlVectorImageLayer } from "../components/layers/OlVectorImageLayer.vue"; diff --git a/src/components-individual/OlVectorLayer.ts b/src/components-individual/OlVectorLayer.ts new file mode 100644 index 00000000..700c2a4c --- /dev/null +++ b/src/components-individual/OlVectorLayer.ts @@ -0,0 +1 @@ +export { default as OlVectorLayer } from "../components/layers/OlVectorLayer.vue"; diff --git a/src/components-individual/OlVectorTileLayer.ts b/src/components-individual/OlVectorTileLayer.ts new file mode 100644 index 00000000..d84058aa --- /dev/null +++ b/src/components-individual/OlVectorTileLayer.ts @@ -0,0 +1 @@ +export { default as OlVectorTileLayer } from "../components/layers/OlVectorTileLayer.vue"; diff --git a/src/components-individual/OlVideorecorderControl.ts b/src/components-individual/OlVideorecorderControl.ts new file mode 100644 index 00000000..0e63746c --- /dev/null +++ b/src/components-individual/OlVideorecorderControl.ts @@ -0,0 +1 @@ +export { default as OlVideorecorderControl } from "../components/mapControls/OlVideorecorderControl.vue"; diff --git a/src/components-individual/OlView.ts b/src/components-individual/OlView.ts new file mode 100644 index 00000000..aaac1ad9 --- /dev/null +++ b/src/components-individual/OlView.ts @@ -0,0 +1 @@ +export { default as OlView } from "../components/map/OlView.vue"; diff --git a/src/components-individual/OlWebglTileLayer.ts b/src/components-individual/OlWebglTileLayer.ts new file mode 100644 index 00000000..3cfc9a41 --- /dev/null +++ b/src/components-individual/OlWebglTileLayer.ts @@ -0,0 +1 @@ +export { default as OlWebglTileLayer } from "../components/layers/OlWebglTileLayer.vue"; diff --git a/src/components-individual/OlWebglVectorLayer.ts b/src/components-individual/OlWebglVectorLayer.ts new file mode 100644 index 00000000..3067578c --- /dev/null +++ b/src/components-individual/OlWebglVectorLayer.ts @@ -0,0 +1 @@ +export { default as OlWebglVectorLayer } from "../components/layers/OlWebglVectorLayer.vue"; diff --git a/src/components-individual/OlZoneControl.ts b/src/components-individual/OlZoneControl.ts new file mode 100644 index 00000000..c4241b23 --- /dev/null +++ b/src/components-individual/OlZoneControl.ts @@ -0,0 +1 @@ +export { default as OlZoneControl } from "../components/mapControls/OlZoneControl.vue"; diff --git a/src/components-individual/OlZoomControl.ts b/src/components-individual/OlZoomControl.ts new file mode 100644 index 00000000..d68d4f75 --- /dev/null +++ b/src/components-individual/OlZoomControl.ts @@ -0,0 +1 @@ +export { default as OlZoomControl } from "../components/mapControls/OlZoomControl.vue"; diff --git a/src/components-individual/OlZoomsliderControl.ts b/src/components-individual/OlZoomsliderControl.ts new file mode 100644 index 00000000..0b4e053f --- /dev/null +++ b/src/components-individual/OlZoomsliderControl.ts @@ -0,0 +1 @@ +export { default as OlZoomsliderControl } from "../components/mapControls/OlZoomsliderControl.vue"; diff --git a/src/components-individual/OlZoomtoextentControl.ts b/src/components-individual/OlZoomtoextentControl.ts new file mode 100644 index 00000000..0c4e1c59 --- /dev/null +++ b/src/components-individual/OlZoomtoextentControl.ts @@ -0,0 +1 @@ +export { default as OlZoomtoextentControl } from "../components/mapControls/OlZoomtoextentControl.vue"; diff --git a/vite.individual.config.ts b/vite.individual.config.ts new file mode 100644 index 00000000..4666247d --- /dev/null +++ b/vite.individual.config.ts @@ -0,0 +1,566 @@ +import vue from "@vitejs/plugin-vue"; +import { fileURLToPath, URL } from "url"; +import { defineConfig } from "vite"; +import { visualizer } from "rollup-plugin-visualizer"; + +export default defineConfig({ + plugins: [ + vue(), + ...(process.env.VITE_ANALYZE + ? [ + visualizer({ + filename: "dist/stats-individual.html", + open: true, + gzipSize: true, + brotliSize: true, + }), + ] + : []), + ], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)), + "@components": fileURLToPath( + new URL("./src/components", import.meta.url), + ), + "@demos": fileURLToPath(new URL("./src/demos", import.meta.url)), + }, + preserveSymlinks: false, + dedupe: ["vue"], + extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"], + }, + build: { + cssCodeSplit: true, + emptyOutDir: false, // Don't clean dist, allow multiple builds + lib: { + entry: { + // All components + OlFeature: fileURLToPath( + new URL( + "./src/components-individual/OlFeature.ts", + import.meta.url, + ), + ), + OlGeolocation: fileURLToPath( + new URL( + "./src/components-individual/OlGeolocation.ts", + import.meta.url, + ), + ), + OlMap: fileURLToPath( + new URL( + "./src/components-individual/OlMap.ts", + import.meta.url, + ), + ), + OlOverlay: fileURLToPath( + new URL( + "./src/components-individual/OlOverlay.ts", + import.meta.url, + ), + ), + OlProjectionRegister: fileURLToPath( + new URL( + "./src/components-individual/OlProjectionRegister.ts", + import.meta.url, + ), + ), + OlView: fileURLToPath( + new URL( + "./src/components-individual/OlView.ts", + import.meta.url, + ), + ), + OlAnimatedClusterlayer: fileURLToPath( + new URL( + "./src/components-individual/OlAnimatedClusterlayer.ts", + import.meta.url, + ), + ), + OlHeatmapLayer: fileURLToPath( + new URL( + "./src/components-individual/OlHeatmapLayer.ts", + import.meta.url, + ), + ), + OlImageLayer: fileURLToPath( + new URL( + "./src/components-individual/OlImageLayer.ts", + import.meta.url, + ), + ), + OlLayerGroup: fileURLToPath( + new URL( + "./src/components-individual/OlLayerGroup.ts", + import.meta.url, + ), + ), + OlTileLayer: fileURLToPath( + new URL( + "./src/components-individual/OlTileLayer.ts", + import.meta.url, + ), + ), + OlVectorImageLayer: fileURLToPath( + new URL( + "./src/components-individual/OlVectorImageLayer.ts", + import.meta.url, + ), + ), + OlVectorLayer: fileURLToPath( + new URL( + "./src/components-individual/OlVectorLayer.ts", + import.meta.url, + ), + ), + OlVectorTileLayer: fileURLToPath( + new URL( + "./src/components-individual/OlVectorTileLayer.ts", + import.meta.url, + ), + ), + OlWebglTileLayer: fileURLToPath( + new URL( + "./src/components-individual/OlWebglTileLayer.ts", + import.meta.url, + ), + ), + OlWebglVectorLayer: fileURLToPath( + new URL( + "./src/components-individual/OlWebglVectorLayer.ts", + import.meta.url, + ), + ), + OlSourceBingmaps: fileURLToPath( + new URL( + "./src/components-individual/OlSourceBingmaps.ts", + import.meta.url, + ), + ), + OlSourceCluster: fileURLToPath( + new URL( + "./src/components-individual/OlSourceCluster.ts", + import.meta.url, + ), + ), + OlSourceImageStatic: fileURLToPath( + new URL( + "./src/components-individual/OlSourceImageStatic.ts", + import.meta.url, + ), + ), + OlSourceImageWms: fileURLToPath( + new URL( + "./src/components-individual/OlSourceImageWms.ts", + import.meta.url, + ), + ), + OlSourceOsm: fileURLToPath( + new URL( + "./src/components-individual/OlSourceOsm.ts", + import.meta.url, + ), + ), + OlSourceStadiaMaps: fileURLToPath( + new URL( + "./src/components-individual/OlSourceStadiaMaps.ts", + import.meta.url, + ), + ), + OlSourceTianditu: fileURLToPath( + new URL( + "./src/components-individual/OlSourceTianditu.ts", + import.meta.url, + ), + ), + OlSourceTileArcgisRest: fileURLToPath( + new URL( + "./src/components-individual/OlSourceTileArcgisRest.ts", + import.meta.url, + ), + ), + OlSourceTileDebug: fileURLToPath( + new URL( + "./src/components-individual/OlSourceTileDebug.ts", + import.meta.url, + ), + ), + OlSourceGeoTiff: fileURLToPath( + new URL( + "./src/components-individual/OlSourceGeoTiff.ts", + import.meta.url, + ), + ), + OlSourceTileJson: fileURLToPath( + new URL( + "./src/components-individual/OlSourceTileJson.ts", + import.meta.url, + ), + ), + OlSourceTileWms: fileURLToPath( + new URL( + "./src/components-individual/OlSourceTileWms.ts", + import.meta.url, + ), + ), + OlSourceVector: fileURLToPath( + new URL( + "./src/components-individual/OlSourceVector.ts", + import.meta.url, + ), + ), + OlSourceVectorTile: fileURLToPath( + new URL( + "./src/components-individual/OlSourceVectorTile.ts", + import.meta.url, + ), + ), + OlSourceXyz: fileURLToPath( + new URL( + "./src/components-individual/OlSourceXyz.ts", + import.meta.url, + ), + ), + OlSourceWmts: fileURLToPath( + new URL( + "./src/components-individual/OlSourceWmts.ts", + import.meta.url, + ), + ), + OlAttributionControl: fileURLToPath( + new URL( + "./src/components-individual/OlAttributionControl.ts", + import.meta.url, + ), + ), + OlButtonControl: fileURLToPath( + new URL( + "./src/components-individual/OlButtonControl.ts", + import.meta.url, + ), + ), + OlContextMenuControl: fileURLToPath( + new URL( + "./src/components-individual/OlContextMenuControl.ts", + import.meta.url, + ), + ), + OlControlBar: fileURLToPath( + new URL( + "./src/components-individual/OlControlBar.ts", + import.meta.url, + ), + ), + OlFullscreenControl: fileURLToPath( + new URL( + "./src/components-individual/OlFullscreenControl.ts", + import.meta.url, + ), + ), + OlLayerswitcherControl: fileURLToPath( + new URL( + "./src/components-individual/OlLayerswitcherControl.ts", + import.meta.url, + ), + ), + OlLayerswitcherimageControl: fileURLToPath( + new URL( + "./src/components-individual/OlLayerswitcherimageControl.ts", + import.meta.url, + ), + ), + OlMousepositionControl: fileURLToPath( + new URL( + "./src/components-individual/OlMousepositionControl.ts", + import.meta.url, + ), + ), + OlOverviewmapControl: fileURLToPath( + new URL( + "./src/components-individual/OlOverviewmapControl.ts", + import.meta.url, + ), + ), + OlPrintdialogControl: fileURLToPath( + new URL( + "./src/components-individual/OlPrintdialogControl.ts", + import.meta.url, + ), + ), + OlProfileControl: fileURLToPath( + new URL( + "./src/components-individual/OlProfileControl.ts", + import.meta.url, + ), + ), + OlRotateControl: fileURLToPath( + new URL( + "./src/components-individual/OlRotateControl.ts", + import.meta.url, + ), + ), + OlScalelineControl: fileURLToPath( + new URL( + "./src/components-individual/OlScalelineControl.ts", + import.meta.url, + ), + ), + OlSearchControl: fileURLToPath( + new URL( + "./src/components-individual/OlSearchControl.ts", + import.meta.url, + ), + ), + OlSwipeControl: fileURLToPath( + new URL( + "./src/components-individual/OlSwipeControl.ts", + import.meta.url, + ), + ), + OlToggleControl: fileURLToPath( + new URL( + "./src/components-individual/OlToggleControl.ts", + import.meta.url, + ), + ), + OlVideorecorderControl: fileURLToPath( + new URL( + "./src/components-individual/OlVideorecorderControl.ts", + import.meta.url, + ), + ), + OlZoneControl: fileURLToPath( + new URL( + "./src/components-individual/OlZoneControl.ts", + import.meta.url, + ), + ), + OlZoomControl: fileURLToPath( + new URL( + "./src/components-individual/OlZoomControl.ts", + import.meta.url, + ), + ), + OlZoomsliderControl: fileURLToPath( + new URL( + "./src/components-individual/OlZoomsliderControl.ts", + import.meta.url, + ), + ), + OlZoomtoextentControl: fileURLToPath( + new URL( + "./src/components-individual/OlZoomtoextentControl.ts", + import.meta.url, + ), + ), + OlGeomCircle: fileURLToPath( + new URL( + "./src/components-individual/OlGeomCircle.ts", + import.meta.url, + ), + ), + OlGeomLineString: fileURLToPath( + new URL( + "./src/components-individual/OlGeomLineString.ts", + import.meta.url, + ), + ), + OlGeomMultiLineString: fileURLToPath( + new URL( + "./src/components-individual/OlGeomMultiLineString.ts", + import.meta.url, + ), + ), + OlGeomMultiPoint: fileURLToPath( + new URL( + "./src/components-individual/OlGeomMultiPoint.ts", + import.meta.url, + ), + ), + OlGeomMultiPolygon: fileURLToPath( + new URL( + "./src/components-individual/OlGeomMultiPolygon.ts", + import.meta.url, + ), + ), + OlGeomPoint: fileURLToPath( + new URL( + "./src/components-individual/OlGeomPoint.ts", + import.meta.url, + ), + ), + OlGeomPolygon: fileURLToPath( + new URL( + "./src/components-individual/OlGeomPolygon.ts", + import.meta.url, + ), + ), + OlStyle: fileURLToPath( + new URL( + "./src/components-individual/OlStyle.ts", + import.meta.url, + ), + ), + OlStyleStroke: fileURLToPath( + new URL( + "./src/components-individual/OlStyleStroke.ts", + import.meta.url, + ), + ), + OlStyleFill: fileURLToPath( + new URL( + "./src/components-individual/OlStyleFill.ts", + import.meta.url, + ), + ), + OlStyleIcon: fileURLToPath( + new URL( + "./src/components-individual/OlStyleIcon.ts", + import.meta.url, + ), + ), + OlStyleText: fileURLToPath( + new URL( + "./src/components-individual/OlStyleText.ts", + import.meta.url, + ), + ), + OlStyleFlowline: fileURLToPath( + new URL( + "./src/components-individual/OlStyleFlowline.ts", + import.meta.url, + ), + ), + OlStyleCircle: fileURLToPath( + new URL( + "./src/components-individual/OlStyleCircle.ts", + import.meta.url, + ), + ), + OlInteractionClusterselect: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionClusterselect.ts", + import.meta.url, + ), + ), + OlInteractionDragbox: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionDragbox.ts", + import.meta.url, + ), + ), + OlInteractionDragrotate: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionDragrotate.ts", + import.meta.url, + ), + ), + OlInteractionDragrotatezoom: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionDragrotatezoom.ts", + import.meta.url, + ), + ), + OlInteractionLink: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionLink.ts", + import.meta.url, + ), + ), + OlInteractionSelect: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionSelect.ts", + import.meta.url, + ), + ), + OlInteractionDraw: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionDraw.ts", + import.meta.url, + ), + ), + OlInteractionModify: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionModify.ts", + import.meta.url, + ), + ), + OlInteractionPointer: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionPointer.ts", + import.meta.url, + ), + ), + OlInteractionSnap: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionSnap.ts", + import.meta.url, + ), + ), + OlInteractionTransform: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionTransform.ts", + import.meta.url, + ), + ), + OlInteractionMouseWheelZoom: fileURLToPath( + new URL( + "./src/components-individual/OlInteractionMouseWheelZoom.ts", + import.meta.url, + ), + ), + OlAnimationDrop: fileURLToPath( + new URL( + "./src/components-individual/OlAnimationDrop.ts", + import.meta.url, + ), + ), + OlAnimationFade: fileURLToPath( + new URL( + "./src/components-individual/OlAnimationFade.ts", + import.meta.url, + ), + ), + OlAnimationPath: fileURLToPath( + new URL( + "./src/components-individual/OlAnimationPath.ts", + import.meta.url, + ), + ), + OlAnimationShake: fileURLToPath( + new URL( + "./src/components-individual/OlAnimationShake.ts", + import.meta.url, + ), + ), + OlAnimationSlide: fileURLToPath( + new URL( + "./src/components-individual/OlAnimationSlide.ts", + import.meta.url, + ), + ), + OlAnimationTeleport: fileURLToPath( + new URL( + "./src/components-individual/OlAnimationTeleport.ts", + import.meta.url, + ), + ), + OlAnimationZoom: fileURLToPath( + new URL( + "./src/components-individual/OlAnimationZoom.ts", + import.meta.url, + ), + ), + }, + name: "vue3-openlayers", + formats: ["es", "cjs"], + }, + minify: false, + rollupOptions: { + external: ["vue", /^ol.*/, /^@turf.*/], + output: { + exports: "named", + }, + }, + }, +}); From dc9db363ffa1a5b956428bc77e4ee14d47d3a424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 20 Aug 2025 16:53:14 +0300 Subject: [PATCH 07/15] Expose each component individually --- package.json | 502 +--------------- .../OlAnimatedClusterlayer.ts | 1 - src/components-individual/OlAnimationDrop.ts | 1 - src/components-individual/OlAnimationFade.ts | 1 - src/components-individual/OlAnimationPath.ts | 1 - src/components-individual/OlAnimationShake.ts | 1 - src/components-individual/OlAnimationSlide.ts | 1 - .../OlAnimationTeleport.ts | 1 - src/components-individual/OlAnimationZoom.ts | 1 - .../OlAttributionControl.ts | 1 - src/components-individual/OlButtonControl.ts | 1 - .../OlContextMenuControl.ts | 1 - src/components-individual/OlControlBar.ts | 1 - src/components-individual/OlFeature.ts | 1 - .../OlFullscreenControl.ts | 1 - src/components-individual/OlGeolocation.ts | 1 - src/components-individual/OlGeomCircle.ts | 1 - src/components-individual/OlGeomLineString.ts | 1 - .../OlGeomMultiLineString.ts | 1 - src/components-individual/OlGeomMultiPoint.ts | 1 - .../OlGeomMultiPolygon.ts | 1 - src/components-individual/OlGeomPoint.ts | 1 - src/components-individual/OlGeomPolygon.ts | 1 - src/components-individual/OlHeatmapLayer.ts | 1 - src/components-individual/OlImageLayer.ts | 1 - .../OlInteractionClusterselect.ts | 1 - .../OlInteractionDragbox.ts | 1 - .../OlInteractionDragrotate.ts | 1 - .../OlInteractionDragrotatezoom.ts | 1 - .../OlInteractionDraw.ts | 1 - .../OlInteractionLink.ts | 1 - .../OlInteractionModify.ts | 1 - .../OlInteractionMouseWheelZoom.ts | 1 - .../OlInteractionPointer.ts | 1 - .../OlInteractionSelect.ts | 1 - .../OlInteractionSnap.ts | 1 - .../OlInteractionTransform.ts | 1 - src/components-individual/OlLayerGroup.ts | 1 - .../OlLayerswitcherControl.ts | 1 - .../OlLayerswitcherimageControl.ts | 1 - src/components-individual/OlMap.ts | 1 - .../OlMousepositionControl.ts | 1 - src/components-individual/OlOverlay.ts | 1 - .../OlOverviewmapControl.ts | 1 - .../OlPrintdialogControl.ts | 1 - src/components-individual/OlProfileControl.ts | 1 - .../OlProjectionRegister.ts | 1 - src/components-individual/OlRotateControl.ts | 1 - .../OlScalelineControl.ts | 1 - src/components-individual/OlSearchControl.ts | 1 - src/components-individual/OlSourceBingmaps.ts | 1 - src/components-individual/OlSourceCluster.ts | 1 - src/components-individual/OlSourceGeoTiff.ts | 1 - .../OlSourceImageStatic.ts | 1 - src/components-individual/OlSourceImageWms.ts | 1 - src/components-individual/OlSourceOSM.ts | 2 - src/components-individual/OlSourceOsm.ts | 1 - .../OlSourceStadiaMaps.ts | 1 - src/components-individual/OlSourceTianditu.ts | 1 - .../OlSourceTileArcgisRest.ts | 1 - .../OlSourceTileDebug.ts | 1 - src/components-individual/OlSourceTileJson.ts | 1 - src/components-individual/OlSourceTileWms.ts | 1 - src/components-individual/OlSourceVector.ts | 1 - .../OlSourceVectorTile.ts | 1 - src/components-individual/OlSourceWmts.ts | 1 - src/components-individual/OlSourceXyz.ts | 1 - src/components-individual/OlStyle.ts | 1 - src/components-individual/OlStyleCircle.ts | 1 - src/components-individual/OlStyleFill.ts | 1 - src/components-individual/OlStyleFlowline.ts | 1 - src/components-individual/OlStyleIcon.ts | 1 - src/components-individual/OlStyleStroke.ts | 1 - src/components-individual/OlStyleText.ts | 1 - src/components-individual/OlSwipeControl.ts | 1 - src/components-individual/OlTileLayer.ts | 1 - src/components-individual/OlToggleControl.ts | 1 - .../OlVectorImageLayer.ts | 1 - src/components-individual/OlVectorLayer.ts | 1 - .../OlVectorTileLayer.ts | 1 - .../OlVideorecorderControl.ts | 1 - src/components-individual/OlView.ts | 1 - src/components-individual/OlWebglTileLayer.ts | 1 - .../OlWebglVectorLayer.ts | 1 - src/components-individual/OlZoneControl.ts | 1 - src/components-individual/OlZoomControl.ts | 1 - .../OlZoomsliderControl.ts | 1 - .../OlZoomtoextentControl.ts | 1 - vite.individual.config.ts | 566 ------------------ vite.split.config.ts | 145 +++++ vite.treeshaking.config.ts | 72 --- 91 files changed, 154 insertions(+), 1219 deletions(-) delete mode 100644 src/components-individual/OlAnimatedClusterlayer.ts delete mode 100644 src/components-individual/OlAnimationDrop.ts delete mode 100644 src/components-individual/OlAnimationFade.ts delete mode 100644 src/components-individual/OlAnimationPath.ts delete mode 100644 src/components-individual/OlAnimationShake.ts delete mode 100644 src/components-individual/OlAnimationSlide.ts delete mode 100644 src/components-individual/OlAnimationTeleport.ts delete mode 100644 src/components-individual/OlAnimationZoom.ts delete mode 100644 src/components-individual/OlAttributionControl.ts delete mode 100644 src/components-individual/OlButtonControl.ts delete mode 100644 src/components-individual/OlContextMenuControl.ts delete mode 100644 src/components-individual/OlControlBar.ts delete mode 100644 src/components-individual/OlFeature.ts delete mode 100644 src/components-individual/OlFullscreenControl.ts delete mode 100644 src/components-individual/OlGeolocation.ts delete mode 100644 src/components-individual/OlGeomCircle.ts delete mode 100644 src/components-individual/OlGeomLineString.ts delete mode 100644 src/components-individual/OlGeomMultiLineString.ts delete mode 100644 src/components-individual/OlGeomMultiPoint.ts delete mode 100644 src/components-individual/OlGeomMultiPolygon.ts delete mode 100644 src/components-individual/OlGeomPoint.ts delete mode 100644 src/components-individual/OlGeomPolygon.ts delete mode 100644 src/components-individual/OlHeatmapLayer.ts delete mode 100644 src/components-individual/OlImageLayer.ts delete mode 100644 src/components-individual/OlInteractionClusterselect.ts delete mode 100644 src/components-individual/OlInteractionDragbox.ts delete mode 100644 src/components-individual/OlInteractionDragrotate.ts delete mode 100644 src/components-individual/OlInteractionDragrotatezoom.ts delete mode 100644 src/components-individual/OlInteractionDraw.ts delete mode 100644 src/components-individual/OlInteractionLink.ts delete mode 100644 src/components-individual/OlInteractionModify.ts delete mode 100644 src/components-individual/OlInteractionMouseWheelZoom.ts delete mode 100644 src/components-individual/OlInteractionPointer.ts delete mode 100644 src/components-individual/OlInteractionSelect.ts delete mode 100644 src/components-individual/OlInteractionSnap.ts delete mode 100644 src/components-individual/OlInteractionTransform.ts delete mode 100644 src/components-individual/OlLayerGroup.ts delete mode 100644 src/components-individual/OlLayerswitcherControl.ts delete mode 100644 src/components-individual/OlLayerswitcherimageControl.ts delete mode 100644 src/components-individual/OlMap.ts delete mode 100644 src/components-individual/OlMousepositionControl.ts delete mode 100644 src/components-individual/OlOverlay.ts delete mode 100644 src/components-individual/OlOverviewmapControl.ts delete mode 100644 src/components-individual/OlPrintdialogControl.ts delete mode 100644 src/components-individual/OlProfileControl.ts delete mode 100644 src/components-individual/OlProjectionRegister.ts delete mode 100644 src/components-individual/OlRotateControl.ts delete mode 100644 src/components-individual/OlScalelineControl.ts delete mode 100644 src/components-individual/OlSearchControl.ts delete mode 100644 src/components-individual/OlSourceBingmaps.ts delete mode 100644 src/components-individual/OlSourceCluster.ts delete mode 100644 src/components-individual/OlSourceGeoTiff.ts delete mode 100644 src/components-individual/OlSourceImageStatic.ts delete mode 100644 src/components-individual/OlSourceImageWms.ts delete mode 100644 src/components-individual/OlSourceOSM.ts delete mode 100644 src/components-individual/OlSourceOsm.ts delete mode 100644 src/components-individual/OlSourceStadiaMaps.ts delete mode 100644 src/components-individual/OlSourceTianditu.ts delete mode 100644 src/components-individual/OlSourceTileArcgisRest.ts delete mode 100644 src/components-individual/OlSourceTileDebug.ts delete mode 100644 src/components-individual/OlSourceTileJson.ts delete mode 100644 src/components-individual/OlSourceTileWms.ts delete mode 100644 src/components-individual/OlSourceVector.ts delete mode 100644 src/components-individual/OlSourceVectorTile.ts delete mode 100644 src/components-individual/OlSourceWmts.ts delete mode 100644 src/components-individual/OlSourceXyz.ts delete mode 100644 src/components-individual/OlStyle.ts delete mode 100644 src/components-individual/OlStyleCircle.ts delete mode 100644 src/components-individual/OlStyleFill.ts delete mode 100644 src/components-individual/OlStyleFlowline.ts delete mode 100644 src/components-individual/OlStyleIcon.ts delete mode 100644 src/components-individual/OlStyleStroke.ts delete mode 100644 src/components-individual/OlStyleText.ts delete mode 100644 src/components-individual/OlSwipeControl.ts delete mode 100644 src/components-individual/OlTileLayer.ts delete mode 100644 src/components-individual/OlToggleControl.ts delete mode 100644 src/components-individual/OlVectorImageLayer.ts delete mode 100644 src/components-individual/OlVectorLayer.ts delete mode 100644 src/components-individual/OlVectorTileLayer.ts delete mode 100644 src/components-individual/OlVideorecorderControl.ts delete mode 100644 src/components-individual/OlView.ts delete mode 100644 src/components-individual/OlWebglTileLayer.ts delete mode 100644 src/components-individual/OlWebglVectorLayer.ts delete mode 100644 src/components-individual/OlZoneControl.ts delete mode 100644 src/components-individual/OlZoomControl.ts delete mode 100644 src/components-individual/OlZoomsliderControl.ts delete mode 100644 src/components-individual/OlZoomtoextentControl.ts delete mode 100644 vite.individual.config.ts create mode 100644 vite.split.config.ts delete mode 100644 vite.treeshaking.config.ts diff --git a/package.json b/package.json index 92eee75c..74d2e8a0 100644 --- a/package.json +++ b/package.json @@ -33,64 +33,14 @@ "types": "./dist/index.d.ts", "exports": { ".": { - "import": "./dist/vue3-openlayers.es.js", - "require": "./dist/vue3-openlayers.umd.js", + "import": "./dist/index.es.js", + "require": "./dist/index.cjs", "types": "./dist/index.d.ts" }, - "./map": { - "import": "./dist/map.js", - "require": "./dist/map.cjs", - "types": "./dist/map.d.ts" - }, - "./layers": { - "import": "./dist/layers.js", - "require": "./dist/layers.cjs", - "types": "./dist/layers.d.ts" - }, - "./sources": { - "import": "./dist/sources.js", - "require": "./dist/sources.cjs", - "types": "./dist/sources.d.ts" - }, - "./controls": { - "import": "./dist/controls.js", - "require": "./dist/controls.cjs", - "types": "./dist/controls.d.ts" - }, - "./animations": { - "import": "./dist/animations.js", - "require": "./dist/animations.cjs", - "types": "./dist/animations.d.ts" - }, - "./geometries": { - "import": "./dist/geometries.js", - "require": "./dist/geometries.cjs", - "types": "./dist/geometries.d.ts" - }, - "./interactions": { - "import": "./dist/interactions.js", - "require": "./dist/interactions.cjs", - "types": "./dist/interactions.d.ts" - }, - "./styles": { - "import": "./dist/styles.js", - "require": "./dist/styles.cjs", - "types": "./dist/styles.d.ts" - }, - "./helpers": { - "import": "./dist/helpers.js", - "require": "./dist/helpers.cjs", - "types": "./dist/helpers.d.ts" - }, - "./providers": { - "import": "./dist/providers.js", - "require": "./dist/providers.cjs", - "types": "./dist/providers.d.ts" - }, - "./composables": { - "import": "./dist/composables.js", - "require": "./dist/composables.cjs", - "types": "./dist/composables.d.ts" + "./*": { + "import": "./dist/esm/*.js", + "require": "./dist/cjs/*.js", + "types": "./dist/esm/*.d.ts" }, "./dist/vue3-openlayers.css": { "import": "./dist/styles.css", @@ -99,436 +49,6 @@ "./styles.css": { "import": "./dist/styles.css", "require": "./dist/styles.css" - }, - "./OlFeature": { - "import": "./dist/OlFeature.js", - "require": "./dist/OlFeature.cjs", - "types": "./dist/OlFeature.d.ts" - }, - "./OlGeolocation": { - "import": "./dist/OlGeolocation.js", - "require": "./dist/OlGeolocation.cjs", - "types": "./dist/OlGeolocation.d.ts" - }, - "./OlMap": { - "import": "./dist/OlMap.js", - "require": "./dist/OlMap.cjs", - "types": "./dist/OlMap.d.ts" - }, - "./OlOverlay": { - "import": "./dist/OlOverlay.js", - "require": "./dist/OlOverlay.cjs", - "types": "./dist/OlOverlay.d.ts" - }, - "./OlProjectionRegister": { - "import": "./dist/OlProjectionRegister.js", - "require": "./dist/OlProjectionRegister.cjs", - "types": "./dist/OlProjectionRegister.d.ts" - }, - "./OlView": { - "import": "./dist/OlView.js", - "require": "./dist/OlView.cjs", - "types": "./dist/OlView.d.ts" - }, - "./OlAnimatedClusterlayer": { - "import": "./dist/OlAnimatedClusterlayer.js", - "require": "./dist/OlAnimatedClusterlayer.cjs", - "types": "./dist/OlAnimatedClusterlayer.d.ts" - }, - "./OlHeatmapLayer": { - "import": "./dist/OlHeatmapLayer.js", - "require": "./dist/OlHeatmapLayer.cjs", - "types": "./dist/OlHeatmapLayer.d.ts" - }, - "./OlImageLayer": { - "import": "./dist/OlImageLayer.js", - "require": "./dist/OlImageLayer.cjs", - "types": "./dist/OlImageLayer.d.ts" - }, - "./OlLayerGroup": { - "import": "./dist/OlLayerGroup.js", - "require": "./dist/OlLayerGroup.cjs", - "types": "./dist/OlLayerGroup.d.ts" - }, - "./OlTileLayer": { - "import": "./dist/OlTileLayer.js", - "require": "./dist/OlTileLayer.cjs", - "types": "./dist/OlTileLayer.d.ts" - }, - "./OlVectorImageLayer": { - "import": "./dist/OlVectorImageLayer.js", - "require": "./dist/OlVectorImageLayer.cjs", - "types": "./dist/OlVectorImageLayer.d.ts" - }, - "./OlVectorLayer": { - "import": "./dist/OlVectorLayer.js", - "require": "./dist/OlVectorLayer.cjs", - "types": "./dist/OlVectorLayer.d.ts" - }, - "./OlVectorTileLayer": { - "import": "./dist/OlVectorTileLayer.js", - "require": "./dist/OlVectorTileLayer.cjs", - "types": "./dist/OlVectorTileLayer.d.ts" - }, - "./OlWebglTileLayer": { - "import": "./dist/OlWebglTileLayer.js", - "require": "./dist/OlWebglTileLayer.cjs", - "types": "./dist/OlWebglTileLayer.d.ts" - }, - "./OlWebglVectorLayer": { - "import": "./dist/OlWebglVectorLayer.js", - "require": "./dist/OlWebglVectorLayer.cjs", - "types": "./dist/OlWebglVectorLayer.d.ts" - }, - "./OlSourceBingmaps": { - "import": "./dist/OlSourceBingmaps.js", - "require": "./dist/OlSourceBingmaps.cjs", - "types": "./dist/OlSourceBingmaps.d.ts" - }, - "./OlSourceCluster": { - "import": "./dist/OlSourceCluster.js", - "require": "./dist/OlSourceCluster.cjs", - "types": "./dist/OlSourceCluster.d.ts" - }, - "./OlSourceImageStatic": { - "import": "./dist/OlSourceImageStatic.js", - "require": "./dist/OlSourceImageStatic.cjs", - "types": "./dist/OlSourceImageStatic.d.ts" - }, - "./OlSourceImageWms": { - "import": "./dist/OlSourceImageWms.js", - "require": "./dist/OlSourceImageWms.cjs", - "types": "./dist/OlSourceImageWms.d.ts" - }, - "./OlSourceOsm": { - "import": "./dist/OlSourceOsm.js", - "require": "./dist/OlSourceOsm.cjs", - "types": "./dist/OlSourceOsm.d.ts" - }, - "./OlSourceStadiaMaps": { - "import": "./dist/OlSourceStadiaMaps.js", - "require": "./dist/OlSourceStadiaMaps.cjs", - "types": "./dist/OlSourceStadiaMaps.d.ts" - }, - "./OlSourceTianditu": { - "import": "./dist/OlSourceTianditu.js", - "require": "./dist/OlSourceTianditu.cjs", - "types": "./dist/OlSourceTianditu.d.ts" - }, - "./OlSourceTileArcgisRest": { - "import": "./dist/OlSourceTileArcgisRest.js", - "require": "./dist/OlSourceTileArcgisRest.cjs", - "types": "./dist/OlSourceTileArcgisRest.d.ts" - }, - "./OlSourceTileDebug": { - "import": "./dist/OlSourceTileDebug.js", - "require": "./dist/OlSourceTileDebug.cjs", - "types": "./dist/OlSourceTileDebug.d.ts" - }, - "./OlSourceGeoTiff": { - "import": "./dist/OlSourceGeoTiff.js", - "require": "./dist/OlSourceGeoTiff.cjs", - "types": "./dist/OlSourceGeoTiff.d.ts" - }, - "./OlSourceTileJson": { - "import": "./dist/OlSourceTileJson.js", - "require": "./dist/OlSourceTileJson.cjs", - "types": "./dist/OlSourceTileJson.d.ts" - }, - "./OlSourceTileWms": { - "import": "./dist/OlSourceTileWms.js", - "require": "./dist/OlSourceTileWms.cjs", - "types": "./dist/OlSourceTileWms.d.ts" - }, - "./OlSourceVector": { - "import": "./dist/OlSourceVector.js", - "require": "./dist/OlSourceVector.cjs", - "types": "./dist/OlSourceVector.d.ts" - }, - "./OlSourceVectorTile": { - "import": "./dist/OlSourceVectorTile.js", - "require": "./dist/OlSourceVectorTile.cjs", - "types": "./dist/OlSourceVectorTile.d.ts" - }, - "./OlSourceXyz": { - "import": "./dist/OlSourceXyz.js", - "require": "./dist/OlSourceXyz.cjs", - "types": "./dist/OlSourceXyz.d.ts" - }, - "./OlSourceWmts": { - "import": "./dist/OlSourceWmts.js", - "require": "./dist/OlSourceWmts.cjs", - "types": "./dist/OlSourceWmts.d.ts" - }, - "./OlAttributionControl": { - "import": "./dist/OlAttributionControl.js", - "require": "./dist/OlAttributionControl.cjs", - "types": "./dist/OlAttributionControl.d.ts" - }, - "./OlButtonControl": { - "import": "./dist/OlButtonControl.js", - "require": "./dist/OlButtonControl.cjs", - "types": "./dist/OlButtonControl.d.ts" - }, - "./OlContextMenuControl": { - "import": "./dist/OlContextMenuControl.js", - "require": "./dist/OlContextMenuControl.cjs", - "types": "./dist/OlContextMenuControl.d.ts" - }, - "./OlControlBar": { - "import": "./dist/OlControlBar.js", - "require": "./dist/OlControlBar.cjs", - "types": "./dist/OlControlBar.d.ts" - }, - "./OlFullscreenControl": { - "import": "./dist/OlFullscreenControl.js", - "require": "./dist/OlFullscreenControl.cjs", - "types": "./dist/OlFullscreenControl.d.ts" - }, - "./OlLayerswitcherControl": { - "import": "./dist/OlLayerswitcherControl.js", - "require": "./dist/OlLayerswitcherControl.cjs", - "types": "./dist/OlLayerswitcherControl.d.ts" - }, - "./OlLayerswitcherimageControl": { - "import": "./dist/OlLayerswitcherimageControl.js", - "require": "./dist/OlLayerswitcherimageControl.cjs", - "types": "./dist/OlLayerswitcherimageControl.d.ts" - }, - "./OlMousepositionControl": { - "import": "./dist/OlMousepositionControl.js", - "require": "./dist/OlMousepositionControl.cjs", - "types": "./dist/OlMousepositionControl.d.ts" - }, - "./OlOverviewmapControl": { - "import": "./dist/OlOverviewmapControl.js", - "require": "./dist/OlOverviewmapControl.cjs", - "types": "./dist/OlOverviewmapControl.d.ts" - }, - "./OlPrintdialogControl": { - "import": "./dist/OlPrintdialogControl.js", - "require": "./dist/OlPrintdialogControl.cjs", - "types": "./dist/OlPrintdialogControl.d.ts" - }, - "./OlProfileControl": { - "import": "./dist/OlProfileControl.js", - "require": "./dist/OlProfileControl.cjs", - "types": "./dist/OlProfileControl.d.ts" - }, - "./OlRotateControl": { - "import": "./dist/OlRotateControl.js", - "require": "./dist/OlRotateControl.cjs", - "types": "./dist/OlRotateControl.d.ts" - }, - "./OlScalelineControl": { - "import": "./dist/OlScalelineControl.js", - "require": "./dist/OlScalelineControl.cjs", - "types": "./dist/OlScalelineControl.d.ts" - }, - "./OlSearchControl": { - "import": "./dist/OlSearchControl.js", - "require": "./dist/OlSearchControl.cjs", - "types": "./dist/OlSearchControl.d.ts" - }, - "./OlSwipeControl": { - "import": "./dist/OlSwipeControl.js", - "require": "./dist/OlSwipeControl.cjs", - "types": "./dist/OlSwipeControl.d.ts" - }, - "./OlToggleControl": { - "import": "./dist/OlToggleControl.js", - "require": "./dist/OlToggleControl.cjs", - "types": "./dist/OlToggleControl.d.ts" - }, - "./OlVideorecorderControl": { - "import": "./dist/OlVideorecorderControl.js", - "require": "./dist/OlVideorecorderControl.cjs", - "types": "./dist/OlVideorecorderControl.d.ts" - }, - "./OlZoneControl": { - "import": "./dist/OlZoneControl.js", - "require": "./dist/OlZoneControl.cjs", - "types": "./dist/OlZoneControl.d.ts" - }, - "./OlZoomControl": { - "import": "./dist/OlZoomControl.js", - "require": "./dist/OlZoomControl.cjs", - "types": "./dist/OlZoomControl.d.ts" - }, - "./OlZoomsliderControl": { - "import": "./dist/OlZoomsliderControl.js", - "require": "./dist/OlZoomsliderControl.cjs", - "types": "./dist/OlZoomsliderControl.d.ts" - }, - "./OlZoomtoextentControl": { - "import": "./dist/OlZoomtoextentControl.js", - "require": "./dist/OlZoomtoextentControl.cjs", - "types": "./dist/OlZoomtoextentControl.d.ts" - }, - "./OlGeomCircle": { - "import": "./dist/OlGeomCircle.js", - "require": "./dist/OlGeomCircle.cjs", - "types": "./dist/OlGeomCircle.d.ts" - }, - "./OlGeomLineString": { - "import": "./dist/OlGeomLineString.js", - "require": "./dist/OlGeomLineString.cjs", - "types": "./dist/OlGeomLineString.d.ts" - }, - "./OlGeomMultiLineString": { - "import": "./dist/OlGeomMultiLineString.js", - "require": "./dist/OlGeomMultiLineString.cjs", - "types": "./dist/OlGeomMultiLineString.d.ts" - }, - "./OlGeomMultiPoint": { - "import": "./dist/OlGeomMultiPoint.js", - "require": "./dist/OlGeomMultiPoint.cjs", - "types": "./dist/OlGeomMultiPoint.d.ts" - }, - "./OlGeomMultiPolygon": { - "import": "./dist/OlGeomMultiPolygon.js", - "require": "./dist/OlGeomMultiPolygon.cjs", - "types": "./dist/OlGeomMultiPolygon.d.ts" - }, - "./OlGeomPoint": { - "import": "./dist/OlGeomPoint.js", - "require": "./dist/OlGeomPoint.cjs", - "types": "./dist/OlGeomPoint.d.ts" - }, - "./OlGeomPolygon": { - "import": "./dist/OlGeomPolygon.js", - "require": "./dist/OlGeomPolygon.cjs", - "types": "./dist/OlGeomPolygon.d.ts" - }, - "./OlStyle": { - "import": "./dist/OlStyle.js", - "require": "./dist/OlStyle.cjs", - "types": "./dist/OlStyle.d.ts" - }, - "./OlStyleStroke": { - "import": "./dist/OlStyleStroke.js", - "require": "./dist/OlStyleStroke.cjs", - "types": "./dist/OlStyleStroke.d.ts" - }, - "./OlStyleFill": { - "import": "./dist/OlStyleFill.js", - "require": "./dist/OlStyleFill.cjs", - "types": "./dist/OlStyleFill.d.ts" - }, - "./OlStyleIcon": { - "import": "./dist/OlStyleIcon.js", - "require": "./dist/OlStyleIcon.cjs", - "types": "./dist/OlStyleIcon.d.ts" - }, - "./OlStyleText": { - "import": "./dist/OlStyleText.js", - "require": "./dist/OlStyleText.cjs", - "types": "./dist/OlStyleText.d.ts" - }, - "./OlStyleFlowline": { - "import": "./dist/OlStyleFlowline.js", - "require": "./dist/OlStyleFlowline.cjs", - "types": "./dist/OlStyleFlowline.d.ts" - }, - "./OlStyleCircle": { - "import": "./dist/OlStyleCircle.js", - "require": "./dist/OlStyleCircle.cjs", - "types": "./dist/OlStyleCircle.d.ts" - }, - "./OlInteractionClusterselect": { - "import": "./dist/OlInteractionClusterselect.js", - "require": "./dist/OlInteractionClusterselect.cjs", - "types": "./dist/OlInteractionClusterselect.d.ts" - }, - "./OlInteractionDragbox": { - "import": "./dist/OlInteractionDragbox.js", - "require": "./dist/OlInteractionDragbox.cjs", - "types": "./dist/OlInteractionDragbox.d.ts" - }, - "./OlInteractionDragrotate": { - "import": "./dist/OlInteractionDragrotate.js", - "require": "./dist/OlInteractionDragrotate.cjs", - "types": "./dist/OlInteractionDragrotate.d.ts" - }, - "./OlInteractionDragrotatezoom": { - "import": "./dist/OlInteractionDragrotatezoom.js", - "require": "./dist/OlInteractionDragrotatezoom.cjs", - "types": "./dist/OlInteractionDragrotatezoom.d.ts" - }, - "./OlInteractionLink": { - "import": "./dist/OlInteractionLink.js", - "require": "./dist/OlInteractionLink.cjs", - "types": "./dist/OlInteractionLink.d.ts" - }, - "./OlInteractionSelect": { - "import": "./dist/OlInteractionSelect.js", - "require": "./dist/OlInteractionSelect.cjs", - "types": "./dist/OlInteractionSelect.d.ts" - }, - "./OlInteractionDraw": { - "import": "./dist/OlInteractionDraw.js", - "require": "./dist/OlInteractionDraw.cjs", - "types": "./dist/OlInteractionDraw.d.ts" - }, - "./OlInteractionModify": { - "import": "./dist/OlInteractionModify.js", - "require": "./dist/OlInteractionModify.cjs", - "types": "./dist/OlInteractionModify.d.ts" - }, - "./OlInteractionPointer": { - "import": "./dist/OlInteractionPointer.js", - "require": "./dist/OlInteractionPointer.cjs", - "types": "./dist/OlInteractionPointer.d.ts" - }, - "./OlInteractionSnap": { - "import": "./dist/OlInteractionSnap.js", - "require": "./dist/OlInteractionSnap.cjs", - "types": "./dist/OlInteractionSnap.d.ts" - }, - "./OlInteractionTransform": { - "import": "./dist/OlInteractionTransform.js", - "require": "./dist/OlInteractionTransform.cjs", - "types": "./dist/OlInteractionTransform.d.ts" - }, - "./OlInteractionMouseWheelZoom": { - "import": "./dist/OlInteractionMouseWheelZoom.js", - "require": "./dist/OlInteractionMouseWheelZoom.cjs", - "types": "./dist/OlInteractionMouseWheelZoom.d.ts" - }, - "./OlAnimationDrop": { - "import": "./dist/OlAnimationDrop.js", - "require": "./dist/OlAnimationDrop.cjs", - "types": "./dist/OlAnimationDrop.d.ts" - }, - "./OlAnimationFade": { - "import": "./dist/OlAnimationFade.js", - "require": "./dist/OlAnimationFade.cjs", - "types": "./dist/OlAnimationFade.d.ts" - }, - "./OlAnimationPath": { - "import": "./dist/OlAnimationPath.js", - "require": "./dist/OlAnimationPath.cjs", - "types": "./dist/OlAnimationPath.d.ts" - }, - "./OlAnimationShake": { - "import": "./dist/OlAnimationShake.js", - "require": "./dist/OlAnimationShake.cjs", - "types": "./dist/OlAnimationShake.d.ts" - }, - "./OlAnimationSlide": { - "import": "./dist/OlAnimationSlide.js", - "require": "./dist/OlAnimationSlide.cjs", - "types": "./dist/OlAnimationSlide.d.ts" - }, - "./OlAnimationTeleport": { - "import": "./dist/OlAnimationTeleport.js", - "require": "./dist/OlAnimationTeleport.cjs", - "types": "./dist/OlAnimationTeleport.d.ts" - }, - "./OlAnimationZoom": { - "import": "./dist/OlAnimationZoom.js", - "require": "./dist/OlAnimationZoom.cjs", - "types": "./dist/OlAnimationZoom.d.ts" } }, "files": [ @@ -539,14 +59,10 @@ }, "scripts": { "build": "vite build", + "build:split": "vite build --config vite.split.config.ts", "build:umd": "vite build --config vite.umd.config.ts", - "build:treeshaking": "vite build --config vite.treeshaking.config.ts", - "build:individual": "vite build --config vite.individual.config.ts", - "build:all": "rm -rf dist && npm run build && npm run build:umd && npm run build:treeshaking && npm run build:individual", - "build:analyze": "VITE_ANALYZE=true npm run build", - "build:analyze:treeshaking": "VITE_ANALYZE=true npm run build:treeshaking", - "build:analyze:individual": "VITE_ANALYZE=true npm run build:individual", - "build:analyze:all": "rm -rf dist && VITE_ANALYZE=true npm run build && VITE_ANALYZE=true npm run build:treeshaking && VITE_ANALYZE=true npm run build:individual", + "build:all": "rm -rf dist && npm run build && npm run build:umd && npm run build:split", + "build:analyze:all": "rm -rf dist && VITE_ANALYZE=true npm run build && VITE_ANALYZE=true npm run build:umd && VITE_ANALYZE=true npm run build:split", "serve": "npm run docs:dev", "docs:dev": "vitepress dev docs", "docs:dev:debug": "VITE_DEBUG=true npm run docs:dev", diff --git a/src/components-individual/OlAnimatedClusterlayer.ts b/src/components-individual/OlAnimatedClusterlayer.ts deleted file mode 100644 index c0600ec0..00000000 --- a/src/components-individual/OlAnimatedClusterlayer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlAnimatedClusterlayer } from "../components/layers/OlAnimatedClusterlayer.vue"; diff --git a/src/components-individual/OlAnimationDrop.ts b/src/components-individual/OlAnimationDrop.ts deleted file mode 100644 index 8b414710..00000000 --- a/src/components-individual/OlAnimationDrop.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlAnimationDrop } from "../components/animations/OlAnimationDrop.vue"; diff --git a/src/components-individual/OlAnimationFade.ts b/src/components-individual/OlAnimationFade.ts deleted file mode 100644 index f8e417d7..00000000 --- a/src/components-individual/OlAnimationFade.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlAnimationFade } from "../components/animations/OlAnimationFade.vue"; diff --git a/src/components-individual/OlAnimationPath.ts b/src/components-individual/OlAnimationPath.ts deleted file mode 100644 index 6dd4159e..00000000 --- a/src/components-individual/OlAnimationPath.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlAnimationPath } from "../components/animations/OlAnimationPath.vue"; diff --git a/src/components-individual/OlAnimationShake.ts b/src/components-individual/OlAnimationShake.ts deleted file mode 100644 index 1e5dd4ac..00000000 --- a/src/components-individual/OlAnimationShake.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlAnimationShake } from "../components/animations/OlAnimationShake.vue"; diff --git a/src/components-individual/OlAnimationSlide.ts b/src/components-individual/OlAnimationSlide.ts deleted file mode 100644 index 1a5ea269..00000000 --- a/src/components-individual/OlAnimationSlide.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlAnimationSlide } from "../components/animations/OlAnimationSlide.vue"; diff --git a/src/components-individual/OlAnimationTeleport.ts b/src/components-individual/OlAnimationTeleport.ts deleted file mode 100644 index eaf2b40f..00000000 --- a/src/components-individual/OlAnimationTeleport.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlAnimationTeleport } from "../components/animations/OlAnimationTeleport.vue"; diff --git a/src/components-individual/OlAnimationZoom.ts b/src/components-individual/OlAnimationZoom.ts deleted file mode 100644 index 06425660..00000000 --- a/src/components-individual/OlAnimationZoom.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlAnimationZoom } from "../components/animations/OlAnimationZoom.vue"; diff --git a/src/components-individual/OlAttributionControl.ts b/src/components-individual/OlAttributionControl.ts deleted file mode 100644 index 5be7948b..00000000 --- a/src/components-individual/OlAttributionControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlAttributionControl } from "../components/mapControls/OlAttributionControl.vue"; diff --git a/src/components-individual/OlButtonControl.ts b/src/components-individual/OlButtonControl.ts deleted file mode 100644 index c5ab916a..00000000 --- a/src/components-individual/OlButtonControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlButtonControl } from "../components/mapControls/OlButtonControl.vue"; diff --git a/src/components-individual/OlContextMenuControl.ts b/src/components-individual/OlContextMenuControl.ts deleted file mode 100644 index 6b541167..00000000 --- a/src/components-individual/OlContextMenuControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlContextMenuControl } from "../components/mapControls/OlContextMenuControl.vue"; diff --git a/src/components-individual/OlControlBar.ts b/src/components-individual/OlControlBar.ts deleted file mode 100644 index c796e8be..00000000 --- a/src/components-individual/OlControlBar.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlControlBar } from "../components/mapControls/OlControlBar.vue"; diff --git a/src/components-individual/OlFeature.ts b/src/components-individual/OlFeature.ts deleted file mode 100644 index 8b8dacf7..00000000 --- a/src/components-individual/OlFeature.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlFeature } from "../components/map/OlFeature.vue"; diff --git a/src/components-individual/OlFullscreenControl.ts b/src/components-individual/OlFullscreenControl.ts deleted file mode 100644 index b13a6d1f..00000000 --- a/src/components-individual/OlFullscreenControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlFullscreenControl } from "../components/mapControls/OlFullscreenControl.vue"; diff --git a/src/components-individual/OlGeolocation.ts b/src/components-individual/OlGeolocation.ts deleted file mode 100644 index 33b44669..00000000 --- a/src/components-individual/OlGeolocation.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlGeolocation } from "../components/map/OlGeolocation.vue"; diff --git a/src/components-individual/OlGeomCircle.ts b/src/components-individual/OlGeomCircle.ts deleted file mode 100644 index cdee4fbc..00000000 --- a/src/components-individual/OlGeomCircle.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlGeomCircle } from "../components/geometries/OlGeomCircle.vue"; diff --git a/src/components-individual/OlGeomLineString.ts b/src/components-individual/OlGeomLineString.ts deleted file mode 100644 index 46b8e3d1..00000000 --- a/src/components-individual/OlGeomLineString.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlGeomLineString } from "../components/geometries/OlGeomLineString.vue"; diff --git a/src/components-individual/OlGeomMultiLineString.ts b/src/components-individual/OlGeomMultiLineString.ts deleted file mode 100644 index 4ec198c9..00000000 --- a/src/components-individual/OlGeomMultiLineString.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlGeomMultiLineString } from "../components/geometries/OlGeomMultiLineString.vue"; diff --git a/src/components-individual/OlGeomMultiPoint.ts b/src/components-individual/OlGeomMultiPoint.ts deleted file mode 100644 index 8d4eb26f..00000000 --- a/src/components-individual/OlGeomMultiPoint.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlGeomMultiPoint } from "../components/geometries/OlGeomMultiPoint.vue"; diff --git a/src/components-individual/OlGeomMultiPolygon.ts b/src/components-individual/OlGeomMultiPolygon.ts deleted file mode 100644 index 018ece1b..00000000 --- a/src/components-individual/OlGeomMultiPolygon.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlGeomMultiPolygon } from "../components/geometries/OlGeomMultiPolygon.vue"; diff --git a/src/components-individual/OlGeomPoint.ts b/src/components-individual/OlGeomPoint.ts deleted file mode 100644 index 91fd292e..00000000 --- a/src/components-individual/OlGeomPoint.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlGeomPoint } from "../components/geometries/OlGeomPoint.vue"; diff --git a/src/components-individual/OlGeomPolygon.ts b/src/components-individual/OlGeomPolygon.ts deleted file mode 100644 index e900e1bf..00000000 --- a/src/components-individual/OlGeomPolygon.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlGeomPolygon } from "../components/geometries/OlGeomPolygon.vue"; diff --git a/src/components-individual/OlHeatmapLayer.ts b/src/components-individual/OlHeatmapLayer.ts deleted file mode 100644 index 4e3971fc..00000000 --- a/src/components-individual/OlHeatmapLayer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlHeatmapLayer } from "../components/layers/OlHeatmapLayer.vue"; diff --git a/src/components-individual/OlImageLayer.ts b/src/components-individual/OlImageLayer.ts deleted file mode 100644 index b2ff0b97..00000000 --- a/src/components-individual/OlImageLayer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlImageLayer } from "../components/layers/OlImageLayer.vue"; diff --git a/src/components-individual/OlInteractionClusterselect.ts b/src/components-individual/OlInteractionClusterselect.ts deleted file mode 100644 index e0562f4d..00000000 --- a/src/components-individual/OlInteractionClusterselect.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionClusterselect } from "../components/interaction/OlInteractionClusterselect.vue"; diff --git a/src/components-individual/OlInteractionDragbox.ts b/src/components-individual/OlInteractionDragbox.ts deleted file mode 100644 index adf1b1fa..00000000 --- a/src/components-individual/OlInteractionDragbox.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionDragbox } from "../components/interaction/OlInteractionDragbox.vue"; diff --git a/src/components-individual/OlInteractionDragrotate.ts b/src/components-individual/OlInteractionDragrotate.ts deleted file mode 100644 index 482aea4f..00000000 --- a/src/components-individual/OlInteractionDragrotate.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionDragrotate } from "../components/interaction/OlInteractionDragrotate.vue"; diff --git a/src/components-individual/OlInteractionDragrotatezoom.ts b/src/components-individual/OlInteractionDragrotatezoom.ts deleted file mode 100644 index 7eff5fac..00000000 --- a/src/components-individual/OlInteractionDragrotatezoom.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionDragrotatezoom } from "../components/interaction/OlInteractionDragrotatezoom.vue"; diff --git a/src/components-individual/OlInteractionDraw.ts b/src/components-individual/OlInteractionDraw.ts deleted file mode 100644 index 5dac8781..00000000 --- a/src/components-individual/OlInteractionDraw.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionDraw } from "../components/interaction/OlInteractionDraw.vue"; diff --git a/src/components-individual/OlInteractionLink.ts b/src/components-individual/OlInteractionLink.ts deleted file mode 100644 index 31797028..00000000 --- a/src/components-individual/OlInteractionLink.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionLink } from "../components/interaction/OlInteractionLink.vue"; diff --git a/src/components-individual/OlInteractionModify.ts b/src/components-individual/OlInteractionModify.ts deleted file mode 100644 index 69b5fbb3..00000000 --- a/src/components-individual/OlInteractionModify.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionModify } from "../components/interaction/OlInteractionModify.vue"; diff --git a/src/components-individual/OlInteractionMouseWheelZoom.ts b/src/components-individual/OlInteractionMouseWheelZoom.ts deleted file mode 100644 index d88fc1ea..00000000 --- a/src/components-individual/OlInteractionMouseWheelZoom.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionMouseWheelZoom } from "../components/interaction/OlInteractionMouseWheelZoom.vue"; diff --git a/src/components-individual/OlInteractionPointer.ts b/src/components-individual/OlInteractionPointer.ts deleted file mode 100644 index c6ee7678..00000000 --- a/src/components-individual/OlInteractionPointer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionPointer } from "../components/interaction/OlInteractionPointer.vue"; diff --git a/src/components-individual/OlInteractionSelect.ts b/src/components-individual/OlInteractionSelect.ts deleted file mode 100644 index 3972fe07..00000000 --- a/src/components-individual/OlInteractionSelect.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionSelect } from "../components/interaction/OlInteractionSelect.vue"; diff --git a/src/components-individual/OlInteractionSnap.ts b/src/components-individual/OlInteractionSnap.ts deleted file mode 100644 index c745e342..00000000 --- a/src/components-individual/OlInteractionSnap.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionSnap } from "../components/interaction/OlInteractionSnap.vue"; diff --git a/src/components-individual/OlInteractionTransform.ts b/src/components-individual/OlInteractionTransform.ts deleted file mode 100644 index c6f8e4df..00000000 --- a/src/components-individual/OlInteractionTransform.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlInteractionTransform } from "../components/interaction/OlInteractionTransform.vue"; diff --git a/src/components-individual/OlLayerGroup.ts b/src/components-individual/OlLayerGroup.ts deleted file mode 100644 index 7a460023..00000000 --- a/src/components-individual/OlLayerGroup.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlLayerGroup } from "../components/layers/OlLayerGroup.vue"; diff --git a/src/components-individual/OlLayerswitcherControl.ts b/src/components-individual/OlLayerswitcherControl.ts deleted file mode 100644 index cc42c571..00000000 --- a/src/components-individual/OlLayerswitcherControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlLayerswitcherControl } from "../components/mapControls/OlLayerswitcherControl.vue"; diff --git a/src/components-individual/OlLayerswitcherimageControl.ts b/src/components-individual/OlLayerswitcherimageControl.ts deleted file mode 100644 index fd714be9..00000000 --- a/src/components-individual/OlLayerswitcherimageControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlLayerswitcherimageControl } from "../components/mapControls/OlLayerswitcherimageControl.vue"; diff --git a/src/components-individual/OlMap.ts b/src/components-individual/OlMap.ts deleted file mode 100644 index 3968a65b..00000000 --- a/src/components-individual/OlMap.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlMap } from "../components/map/OlMap.vue"; diff --git a/src/components-individual/OlMousepositionControl.ts b/src/components-individual/OlMousepositionControl.ts deleted file mode 100644 index 1938c22e..00000000 --- a/src/components-individual/OlMousepositionControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlMousepositionControl } from "../components/mapControls/OlMousepositionControl.vue"; diff --git a/src/components-individual/OlOverlay.ts b/src/components-individual/OlOverlay.ts deleted file mode 100644 index 8b096d6f..00000000 --- a/src/components-individual/OlOverlay.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlOverlay } from "../components/map/OlOverlay.vue"; diff --git a/src/components-individual/OlOverviewmapControl.ts b/src/components-individual/OlOverviewmapControl.ts deleted file mode 100644 index 452e49a0..00000000 --- a/src/components-individual/OlOverviewmapControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlOverviewmapControl } from "../components/mapControls/OlOverviewmapControl.vue"; diff --git a/src/components-individual/OlPrintdialogControl.ts b/src/components-individual/OlPrintdialogControl.ts deleted file mode 100644 index c64221f0..00000000 --- a/src/components-individual/OlPrintdialogControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlPrintdialogControl } from "../components/mapControls/OlPrintdialogControl.vue"; diff --git a/src/components-individual/OlProfileControl.ts b/src/components-individual/OlProfileControl.ts deleted file mode 100644 index fa6046b6..00000000 --- a/src/components-individual/OlProfileControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlProfileControl } from "../components/mapControls/OlProfileControl.vue"; diff --git a/src/components-individual/OlProjectionRegister.ts b/src/components-individual/OlProjectionRegister.ts deleted file mode 100644 index 06b6ecc9..00000000 --- a/src/components-individual/OlProjectionRegister.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlProjectionRegister } from "../components/map/OlProjectionRegister.vue"; diff --git a/src/components-individual/OlRotateControl.ts b/src/components-individual/OlRotateControl.ts deleted file mode 100644 index c03cbe98..00000000 --- a/src/components-individual/OlRotateControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlRotateControl } from "../components/mapControls/OlRotateControl.vue"; diff --git a/src/components-individual/OlScalelineControl.ts b/src/components-individual/OlScalelineControl.ts deleted file mode 100644 index 2f0999b2..00000000 --- a/src/components-individual/OlScalelineControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlScalelineControl } from "../components/mapControls/OlScalelineControl.vue"; diff --git a/src/components-individual/OlSearchControl.ts b/src/components-individual/OlSearchControl.ts deleted file mode 100644 index 3e360657..00000000 --- a/src/components-individual/OlSearchControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSearchControl } from "../components/mapControls/OlSearchControl.vue"; diff --git a/src/components-individual/OlSourceBingmaps.ts b/src/components-individual/OlSourceBingmaps.ts deleted file mode 100644 index 99994158..00000000 --- a/src/components-individual/OlSourceBingmaps.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceBingmaps } from "../components/sources/OlSourceBingmaps.vue"; diff --git a/src/components-individual/OlSourceCluster.ts b/src/components-individual/OlSourceCluster.ts deleted file mode 100644 index 5f98eb30..00000000 --- a/src/components-individual/OlSourceCluster.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceCluster } from "../components/sources/OlSourceCluster.vue"; diff --git a/src/components-individual/OlSourceGeoTiff.ts b/src/components-individual/OlSourceGeoTiff.ts deleted file mode 100644 index a5a09c9e..00000000 --- a/src/components-individual/OlSourceGeoTiff.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceGeoTiff } from "../components/sources/OlSourceGeoTiff.vue"; diff --git a/src/components-individual/OlSourceImageStatic.ts b/src/components-individual/OlSourceImageStatic.ts deleted file mode 100644 index fd573367..00000000 --- a/src/components-individual/OlSourceImageStatic.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceImageStatic } from "../components/sources/OlSourceImageStatic.vue"; diff --git a/src/components-individual/OlSourceImageWms.ts b/src/components-individual/OlSourceImageWms.ts deleted file mode 100644 index 876557f5..00000000 --- a/src/components-individual/OlSourceImageWms.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceImageWms } from "../components/sources/OlSourceImageWms.vue"; diff --git a/src/components-individual/OlSourceOSM.ts b/src/components-individual/OlSourceOSM.ts deleted file mode 100644 index b0033858..00000000 --- a/src/components-individual/OlSourceOSM.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Individual tree-shaking entry point for OlSourceOSM component -export { default as OlSourceOSM } from "../components/sources/OlSourceOSM.vue"; diff --git a/src/components-individual/OlSourceOsm.ts b/src/components-individual/OlSourceOsm.ts deleted file mode 100644 index eca3c169..00000000 --- a/src/components-individual/OlSourceOsm.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceOsm } from "../components/sources/OlSourceOsm.vue"; diff --git a/src/components-individual/OlSourceStadiaMaps.ts b/src/components-individual/OlSourceStadiaMaps.ts deleted file mode 100644 index 50ab58cd..00000000 --- a/src/components-individual/OlSourceStadiaMaps.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceStadiaMaps } from "../components/sources/OlSourceStadiaMaps.vue"; diff --git a/src/components-individual/OlSourceTianditu.ts b/src/components-individual/OlSourceTianditu.ts deleted file mode 100644 index fd870cf1..00000000 --- a/src/components-individual/OlSourceTianditu.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceTianditu } from "../components/sources/OlSourceTianditu.vue"; diff --git a/src/components-individual/OlSourceTileArcgisRest.ts b/src/components-individual/OlSourceTileArcgisRest.ts deleted file mode 100644 index 5cf96e61..00000000 --- a/src/components-individual/OlSourceTileArcgisRest.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceTileArcgisRest } from "../components/sources/OlSourceTileArcgisRest.vue"; diff --git a/src/components-individual/OlSourceTileDebug.ts b/src/components-individual/OlSourceTileDebug.ts deleted file mode 100644 index 115ffe44..00000000 --- a/src/components-individual/OlSourceTileDebug.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceTileDebug } from "../components/sources/OlSourceTileDebug.vue"; diff --git a/src/components-individual/OlSourceTileJson.ts b/src/components-individual/OlSourceTileJson.ts deleted file mode 100644 index 92990064..00000000 --- a/src/components-individual/OlSourceTileJson.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceTileJson } from "../components/sources/OlSourceTileJson.vue"; diff --git a/src/components-individual/OlSourceTileWms.ts b/src/components-individual/OlSourceTileWms.ts deleted file mode 100644 index 5ad955b9..00000000 --- a/src/components-individual/OlSourceTileWms.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceTileWms } from "../components/sources/OlSourceTileWms.vue"; diff --git a/src/components-individual/OlSourceVector.ts b/src/components-individual/OlSourceVector.ts deleted file mode 100644 index e7584b0e..00000000 --- a/src/components-individual/OlSourceVector.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceVector } from "../components/sources/OlSourceVector.vue"; diff --git a/src/components-individual/OlSourceVectorTile.ts b/src/components-individual/OlSourceVectorTile.ts deleted file mode 100644 index 7279fa49..00000000 --- a/src/components-individual/OlSourceVectorTile.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceVectorTile } from "../components/sources/OlSourceVectorTile.vue"; diff --git a/src/components-individual/OlSourceWmts.ts b/src/components-individual/OlSourceWmts.ts deleted file mode 100644 index 68eec7b6..00000000 --- a/src/components-individual/OlSourceWmts.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceWmts } from "../components/sources/OlSourceWmts.vue"; diff --git a/src/components-individual/OlSourceXyz.ts b/src/components-individual/OlSourceXyz.ts deleted file mode 100644 index bd925bb8..00000000 --- a/src/components-individual/OlSourceXyz.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSourceXyz } from "../components/sources/OlSourceXyz.vue"; diff --git a/src/components-individual/OlStyle.ts b/src/components-individual/OlStyle.ts deleted file mode 100644 index ce7bfff9..00000000 --- a/src/components-individual/OlStyle.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlStyle } from "../components/styles/OlStyle.vue"; diff --git a/src/components-individual/OlStyleCircle.ts b/src/components-individual/OlStyleCircle.ts deleted file mode 100644 index 18e8b3a1..00000000 --- a/src/components-individual/OlStyleCircle.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlStyleCircle } from "../components/styles/OlStyleCircle.vue"; diff --git a/src/components-individual/OlStyleFill.ts b/src/components-individual/OlStyleFill.ts deleted file mode 100644 index 220c2348..00000000 --- a/src/components-individual/OlStyleFill.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlStyleFill } from "../components/styles/OlStyleFill.vue"; diff --git a/src/components-individual/OlStyleFlowline.ts b/src/components-individual/OlStyleFlowline.ts deleted file mode 100644 index 6c6781c1..00000000 --- a/src/components-individual/OlStyleFlowline.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlStyleFlowline } from "../components/styles/OlStyleFlowline.vue"; diff --git a/src/components-individual/OlStyleIcon.ts b/src/components-individual/OlStyleIcon.ts deleted file mode 100644 index b70880ed..00000000 --- a/src/components-individual/OlStyleIcon.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlStyleIcon } from "../components/styles/OlStyleIcon.vue"; diff --git a/src/components-individual/OlStyleStroke.ts b/src/components-individual/OlStyleStroke.ts deleted file mode 100644 index f2374b1b..00000000 --- a/src/components-individual/OlStyleStroke.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlStyleStroke } from "../components/styles/OlStyleStroke.vue"; diff --git a/src/components-individual/OlStyleText.ts b/src/components-individual/OlStyleText.ts deleted file mode 100644 index 3e0059a0..00000000 --- a/src/components-individual/OlStyleText.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlStyleText } from "../components/styles/OlStyleText.vue"; diff --git a/src/components-individual/OlSwipeControl.ts b/src/components-individual/OlSwipeControl.ts deleted file mode 100644 index 45d3cd3a..00000000 --- a/src/components-individual/OlSwipeControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlSwipeControl } from "../components/mapControls/OlSwipeControl.vue"; diff --git a/src/components-individual/OlTileLayer.ts b/src/components-individual/OlTileLayer.ts deleted file mode 100644 index 2506083c..00000000 --- a/src/components-individual/OlTileLayer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlTileLayer } from "../components/layers/OlTileLayer.vue"; diff --git a/src/components-individual/OlToggleControl.ts b/src/components-individual/OlToggleControl.ts deleted file mode 100644 index 16b268d2..00000000 --- a/src/components-individual/OlToggleControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlToggleControl } from "../components/mapControls/OlToggleControl.vue"; diff --git a/src/components-individual/OlVectorImageLayer.ts b/src/components-individual/OlVectorImageLayer.ts deleted file mode 100644 index c36e9dd1..00000000 --- a/src/components-individual/OlVectorImageLayer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlVectorImageLayer } from "../components/layers/OlVectorImageLayer.vue"; diff --git a/src/components-individual/OlVectorLayer.ts b/src/components-individual/OlVectorLayer.ts deleted file mode 100644 index 700c2a4c..00000000 --- a/src/components-individual/OlVectorLayer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlVectorLayer } from "../components/layers/OlVectorLayer.vue"; diff --git a/src/components-individual/OlVectorTileLayer.ts b/src/components-individual/OlVectorTileLayer.ts deleted file mode 100644 index d84058aa..00000000 --- a/src/components-individual/OlVectorTileLayer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlVectorTileLayer } from "../components/layers/OlVectorTileLayer.vue"; diff --git a/src/components-individual/OlVideorecorderControl.ts b/src/components-individual/OlVideorecorderControl.ts deleted file mode 100644 index 0e63746c..00000000 --- a/src/components-individual/OlVideorecorderControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlVideorecorderControl } from "../components/mapControls/OlVideorecorderControl.vue"; diff --git a/src/components-individual/OlView.ts b/src/components-individual/OlView.ts deleted file mode 100644 index aaac1ad9..00000000 --- a/src/components-individual/OlView.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlView } from "../components/map/OlView.vue"; diff --git a/src/components-individual/OlWebglTileLayer.ts b/src/components-individual/OlWebglTileLayer.ts deleted file mode 100644 index 3cfc9a41..00000000 --- a/src/components-individual/OlWebglTileLayer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlWebglTileLayer } from "../components/layers/OlWebglTileLayer.vue"; diff --git a/src/components-individual/OlWebglVectorLayer.ts b/src/components-individual/OlWebglVectorLayer.ts deleted file mode 100644 index 3067578c..00000000 --- a/src/components-individual/OlWebglVectorLayer.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlWebglVectorLayer } from "../components/layers/OlWebglVectorLayer.vue"; diff --git a/src/components-individual/OlZoneControl.ts b/src/components-individual/OlZoneControl.ts deleted file mode 100644 index c4241b23..00000000 --- a/src/components-individual/OlZoneControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlZoneControl } from "../components/mapControls/OlZoneControl.vue"; diff --git a/src/components-individual/OlZoomControl.ts b/src/components-individual/OlZoomControl.ts deleted file mode 100644 index d68d4f75..00000000 --- a/src/components-individual/OlZoomControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlZoomControl } from "../components/mapControls/OlZoomControl.vue"; diff --git a/src/components-individual/OlZoomsliderControl.ts b/src/components-individual/OlZoomsliderControl.ts deleted file mode 100644 index 0b4e053f..00000000 --- a/src/components-individual/OlZoomsliderControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlZoomsliderControl } from "../components/mapControls/OlZoomsliderControl.vue"; diff --git a/src/components-individual/OlZoomtoextentControl.ts b/src/components-individual/OlZoomtoextentControl.ts deleted file mode 100644 index 0c4e1c59..00000000 --- a/src/components-individual/OlZoomtoextentControl.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as OlZoomtoextentControl } from "../components/mapControls/OlZoomtoextentControl.vue"; diff --git a/vite.individual.config.ts b/vite.individual.config.ts deleted file mode 100644 index 4666247d..00000000 --- a/vite.individual.config.ts +++ /dev/null @@ -1,566 +0,0 @@ -import vue from "@vitejs/plugin-vue"; -import { fileURLToPath, URL } from "url"; -import { defineConfig } from "vite"; -import { visualizer } from "rollup-plugin-visualizer"; - -export default defineConfig({ - plugins: [ - vue(), - ...(process.env.VITE_ANALYZE - ? [ - visualizer({ - filename: "dist/stats-individual.html", - open: true, - gzipSize: true, - brotliSize: true, - }), - ] - : []), - ], - resolve: { - alias: { - "@": fileURLToPath(new URL("./src", import.meta.url)), - "@components": fileURLToPath( - new URL("./src/components", import.meta.url), - ), - "@demos": fileURLToPath(new URL("./src/demos", import.meta.url)), - }, - preserveSymlinks: false, - dedupe: ["vue"], - extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"], - }, - build: { - cssCodeSplit: true, - emptyOutDir: false, // Don't clean dist, allow multiple builds - lib: { - entry: { - // All components - OlFeature: fileURLToPath( - new URL( - "./src/components-individual/OlFeature.ts", - import.meta.url, - ), - ), - OlGeolocation: fileURLToPath( - new URL( - "./src/components-individual/OlGeolocation.ts", - import.meta.url, - ), - ), - OlMap: fileURLToPath( - new URL( - "./src/components-individual/OlMap.ts", - import.meta.url, - ), - ), - OlOverlay: fileURLToPath( - new URL( - "./src/components-individual/OlOverlay.ts", - import.meta.url, - ), - ), - OlProjectionRegister: fileURLToPath( - new URL( - "./src/components-individual/OlProjectionRegister.ts", - import.meta.url, - ), - ), - OlView: fileURLToPath( - new URL( - "./src/components-individual/OlView.ts", - import.meta.url, - ), - ), - OlAnimatedClusterlayer: fileURLToPath( - new URL( - "./src/components-individual/OlAnimatedClusterlayer.ts", - import.meta.url, - ), - ), - OlHeatmapLayer: fileURLToPath( - new URL( - "./src/components-individual/OlHeatmapLayer.ts", - import.meta.url, - ), - ), - OlImageLayer: fileURLToPath( - new URL( - "./src/components-individual/OlImageLayer.ts", - import.meta.url, - ), - ), - OlLayerGroup: fileURLToPath( - new URL( - "./src/components-individual/OlLayerGroup.ts", - import.meta.url, - ), - ), - OlTileLayer: fileURLToPath( - new URL( - "./src/components-individual/OlTileLayer.ts", - import.meta.url, - ), - ), - OlVectorImageLayer: fileURLToPath( - new URL( - "./src/components-individual/OlVectorImageLayer.ts", - import.meta.url, - ), - ), - OlVectorLayer: fileURLToPath( - new URL( - "./src/components-individual/OlVectorLayer.ts", - import.meta.url, - ), - ), - OlVectorTileLayer: fileURLToPath( - new URL( - "./src/components-individual/OlVectorTileLayer.ts", - import.meta.url, - ), - ), - OlWebglTileLayer: fileURLToPath( - new URL( - "./src/components-individual/OlWebglTileLayer.ts", - import.meta.url, - ), - ), - OlWebglVectorLayer: fileURLToPath( - new URL( - "./src/components-individual/OlWebglVectorLayer.ts", - import.meta.url, - ), - ), - OlSourceBingmaps: fileURLToPath( - new URL( - "./src/components-individual/OlSourceBingmaps.ts", - import.meta.url, - ), - ), - OlSourceCluster: fileURLToPath( - new URL( - "./src/components-individual/OlSourceCluster.ts", - import.meta.url, - ), - ), - OlSourceImageStatic: fileURLToPath( - new URL( - "./src/components-individual/OlSourceImageStatic.ts", - import.meta.url, - ), - ), - OlSourceImageWms: fileURLToPath( - new URL( - "./src/components-individual/OlSourceImageWms.ts", - import.meta.url, - ), - ), - OlSourceOsm: fileURLToPath( - new URL( - "./src/components-individual/OlSourceOsm.ts", - import.meta.url, - ), - ), - OlSourceStadiaMaps: fileURLToPath( - new URL( - "./src/components-individual/OlSourceStadiaMaps.ts", - import.meta.url, - ), - ), - OlSourceTianditu: fileURLToPath( - new URL( - "./src/components-individual/OlSourceTianditu.ts", - import.meta.url, - ), - ), - OlSourceTileArcgisRest: fileURLToPath( - new URL( - "./src/components-individual/OlSourceTileArcgisRest.ts", - import.meta.url, - ), - ), - OlSourceTileDebug: fileURLToPath( - new URL( - "./src/components-individual/OlSourceTileDebug.ts", - import.meta.url, - ), - ), - OlSourceGeoTiff: fileURLToPath( - new URL( - "./src/components-individual/OlSourceGeoTiff.ts", - import.meta.url, - ), - ), - OlSourceTileJson: fileURLToPath( - new URL( - "./src/components-individual/OlSourceTileJson.ts", - import.meta.url, - ), - ), - OlSourceTileWms: fileURLToPath( - new URL( - "./src/components-individual/OlSourceTileWms.ts", - import.meta.url, - ), - ), - OlSourceVector: fileURLToPath( - new URL( - "./src/components-individual/OlSourceVector.ts", - import.meta.url, - ), - ), - OlSourceVectorTile: fileURLToPath( - new URL( - "./src/components-individual/OlSourceVectorTile.ts", - import.meta.url, - ), - ), - OlSourceXyz: fileURLToPath( - new URL( - "./src/components-individual/OlSourceXyz.ts", - import.meta.url, - ), - ), - OlSourceWmts: fileURLToPath( - new URL( - "./src/components-individual/OlSourceWmts.ts", - import.meta.url, - ), - ), - OlAttributionControl: fileURLToPath( - new URL( - "./src/components-individual/OlAttributionControl.ts", - import.meta.url, - ), - ), - OlButtonControl: fileURLToPath( - new URL( - "./src/components-individual/OlButtonControl.ts", - import.meta.url, - ), - ), - OlContextMenuControl: fileURLToPath( - new URL( - "./src/components-individual/OlContextMenuControl.ts", - import.meta.url, - ), - ), - OlControlBar: fileURLToPath( - new URL( - "./src/components-individual/OlControlBar.ts", - import.meta.url, - ), - ), - OlFullscreenControl: fileURLToPath( - new URL( - "./src/components-individual/OlFullscreenControl.ts", - import.meta.url, - ), - ), - OlLayerswitcherControl: fileURLToPath( - new URL( - "./src/components-individual/OlLayerswitcherControl.ts", - import.meta.url, - ), - ), - OlLayerswitcherimageControl: fileURLToPath( - new URL( - "./src/components-individual/OlLayerswitcherimageControl.ts", - import.meta.url, - ), - ), - OlMousepositionControl: fileURLToPath( - new URL( - "./src/components-individual/OlMousepositionControl.ts", - import.meta.url, - ), - ), - OlOverviewmapControl: fileURLToPath( - new URL( - "./src/components-individual/OlOverviewmapControl.ts", - import.meta.url, - ), - ), - OlPrintdialogControl: fileURLToPath( - new URL( - "./src/components-individual/OlPrintdialogControl.ts", - import.meta.url, - ), - ), - OlProfileControl: fileURLToPath( - new URL( - "./src/components-individual/OlProfileControl.ts", - import.meta.url, - ), - ), - OlRotateControl: fileURLToPath( - new URL( - "./src/components-individual/OlRotateControl.ts", - import.meta.url, - ), - ), - OlScalelineControl: fileURLToPath( - new URL( - "./src/components-individual/OlScalelineControl.ts", - import.meta.url, - ), - ), - OlSearchControl: fileURLToPath( - new URL( - "./src/components-individual/OlSearchControl.ts", - import.meta.url, - ), - ), - OlSwipeControl: fileURLToPath( - new URL( - "./src/components-individual/OlSwipeControl.ts", - import.meta.url, - ), - ), - OlToggleControl: fileURLToPath( - new URL( - "./src/components-individual/OlToggleControl.ts", - import.meta.url, - ), - ), - OlVideorecorderControl: fileURLToPath( - new URL( - "./src/components-individual/OlVideorecorderControl.ts", - import.meta.url, - ), - ), - OlZoneControl: fileURLToPath( - new URL( - "./src/components-individual/OlZoneControl.ts", - import.meta.url, - ), - ), - OlZoomControl: fileURLToPath( - new URL( - "./src/components-individual/OlZoomControl.ts", - import.meta.url, - ), - ), - OlZoomsliderControl: fileURLToPath( - new URL( - "./src/components-individual/OlZoomsliderControl.ts", - import.meta.url, - ), - ), - OlZoomtoextentControl: fileURLToPath( - new URL( - "./src/components-individual/OlZoomtoextentControl.ts", - import.meta.url, - ), - ), - OlGeomCircle: fileURLToPath( - new URL( - "./src/components-individual/OlGeomCircle.ts", - import.meta.url, - ), - ), - OlGeomLineString: fileURLToPath( - new URL( - "./src/components-individual/OlGeomLineString.ts", - import.meta.url, - ), - ), - OlGeomMultiLineString: fileURLToPath( - new URL( - "./src/components-individual/OlGeomMultiLineString.ts", - import.meta.url, - ), - ), - OlGeomMultiPoint: fileURLToPath( - new URL( - "./src/components-individual/OlGeomMultiPoint.ts", - import.meta.url, - ), - ), - OlGeomMultiPolygon: fileURLToPath( - new URL( - "./src/components-individual/OlGeomMultiPolygon.ts", - import.meta.url, - ), - ), - OlGeomPoint: fileURLToPath( - new URL( - "./src/components-individual/OlGeomPoint.ts", - import.meta.url, - ), - ), - OlGeomPolygon: fileURLToPath( - new URL( - "./src/components-individual/OlGeomPolygon.ts", - import.meta.url, - ), - ), - OlStyle: fileURLToPath( - new URL( - "./src/components-individual/OlStyle.ts", - import.meta.url, - ), - ), - OlStyleStroke: fileURLToPath( - new URL( - "./src/components-individual/OlStyleStroke.ts", - import.meta.url, - ), - ), - OlStyleFill: fileURLToPath( - new URL( - "./src/components-individual/OlStyleFill.ts", - import.meta.url, - ), - ), - OlStyleIcon: fileURLToPath( - new URL( - "./src/components-individual/OlStyleIcon.ts", - import.meta.url, - ), - ), - OlStyleText: fileURLToPath( - new URL( - "./src/components-individual/OlStyleText.ts", - import.meta.url, - ), - ), - OlStyleFlowline: fileURLToPath( - new URL( - "./src/components-individual/OlStyleFlowline.ts", - import.meta.url, - ), - ), - OlStyleCircle: fileURLToPath( - new URL( - "./src/components-individual/OlStyleCircle.ts", - import.meta.url, - ), - ), - OlInteractionClusterselect: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionClusterselect.ts", - import.meta.url, - ), - ), - OlInteractionDragbox: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionDragbox.ts", - import.meta.url, - ), - ), - OlInteractionDragrotate: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionDragrotate.ts", - import.meta.url, - ), - ), - OlInteractionDragrotatezoom: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionDragrotatezoom.ts", - import.meta.url, - ), - ), - OlInteractionLink: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionLink.ts", - import.meta.url, - ), - ), - OlInteractionSelect: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionSelect.ts", - import.meta.url, - ), - ), - OlInteractionDraw: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionDraw.ts", - import.meta.url, - ), - ), - OlInteractionModify: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionModify.ts", - import.meta.url, - ), - ), - OlInteractionPointer: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionPointer.ts", - import.meta.url, - ), - ), - OlInteractionSnap: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionSnap.ts", - import.meta.url, - ), - ), - OlInteractionTransform: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionTransform.ts", - import.meta.url, - ), - ), - OlInteractionMouseWheelZoom: fileURLToPath( - new URL( - "./src/components-individual/OlInteractionMouseWheelZoom.ts", - import.meta.url, - ), - ), - OlAnimationDrop: fileURLToPath( - new URL( - "./src/components-individual/OlAnimationDrop.ts", - import.meta.url, - ), - ), - OlAnimationFade: fileURLToPath( - new URL( - "./src/components-individual/OlAnimationFade.ts", - import.meta.url, - ), - ), - OlAnimationPath: fileURLToPath( - new URL( - "./src/components-individual/OlAnimationPath.ts", - import.meta.url, - ), - ), - OlAnimationShake: fileURLToPath( - new URL( - "./src/components-individual/OlAnimationShake.ts", - import.meta.url, - ), - ), - OlAnimationSlide: fileURLToPath( - new URL( - "./src/components-individual/OlAnimationSlide.ts", - import.meta.url, - ), - ), - OlAnimationTeleport: fileURLToPath( - new URL( - "./src/components-individual/OlAnimationTeleport.ts", - import.meta.url, - ), - ), - OlAnimationZoom: fileURLToPath( - new URL( - "./src/components-individual/OlAnimationZoom.ts", - import.meta.url, - ), - ), - }, - name: "vue3-openlayers", - formats: ["es", "cjs"], - }, - minify: false, - rollupOptions: { - external: ["vue", /^ol.*/, /^@turf.*/], - output: { - exports: "named", - }, - }, - }, -}); diff --git a/vite.split.config.ts b/vite.split.config.ts new file mode 100644 index 00000000..e07201f1 --- /dev/null +++ b/vite.split.config.ts @@ -0,0 +1,145 @@ +import vue from "@vitejs/plugin-vue"; +import { fileURLToPath, URL } from "url"; +import { defineConfig } from "vite"; +import { visualizer } from "rollup-plugin-visualizer"; +import fs from "fs"; +import path from "path"; + +// Dynamically discover components using the actual directory structure +function discoverComponents() { + const componentsDir = fileURLToPath( + new URL("./src/components", import.meta.url), + ); + + if (!fs.existsSync(componentsDir)) { + console.warn("Components directory not found:", componentsDir); + return {}; + } + + const categories: Record = {}; + + // Read each subdirectory in components/ + const subdirs = fs + .readdirSync(componentsDir, { withFileTypes: true }) + .filter((dirent) => dirent.isDirectory()) + .map((dirent) => dirent.name); + + subdirs.forEach((subdir) => { + // Map directory names to category names + const categoryName = + subdir === "mapControls" + ? "controls" + : subdir === "interaction" + ? "interactions" + : subdir; + + const subdirPath = path.join(componentsDir, subdir); + + // Find all .vue component files in this directory + const componentFiles = fs + .readdirSync(subdirPath) + .filter((file) => file.endsWith(".vue")) + .map((file) => file.replace(".vue", "")); + + if (componentFiles.length > 0) { + categories[categoryName] = componentFiles; + } + }); + + return categories; +} + +// Generate entry points dynamically +function generateEntryPoints() { + const entries: Record = {}; + const componentCategories = discoverComponents(); + + Object.entries(componentCategories).forEach(([category, components]) => { + // Map category back to directory name for file paths + const dirName = + category === "controls" + ? "mapControls" + : category === "interactions" + ? "interaction" + : category; + + (components as string[]).forEach((component) => { + const componentPath = fileURLToPath( + new URL( + `./src/components/${dirName}/${component}.vue`, + import.meta.url, + ), + ); + + if (fs.existsSync(componentPath)) { + entries[`${category}/${component}`] = componentPath; + } + }); + }); + + console.log( + `📦 Discovered ${Object.keys(entries).length} components across ${Object.keys(componentCategories).length} categories`, + ); + Object.entries(componentCategories).forEach(([category, components]) => { + console.log( + ` ${category}: ${(components as string[]).length} components`, + ); + }); + + return entries; +} + +export default defineConfig({ + plugins: [ + vue(), + ...(process.env.VITE_ANALYZE + ? [ + visualizer({ + filename: "dist/stats-individual.html", + open: true, + gzipSize: true, + brotliSize: true, + }), + ] + : []), + ], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)), + "@components": fileURLToPath( + new URL("./src/components", import.meta.url), + ), + "@demos": fileURLToPath(new URL("./src/demos", import.meta.url)), + }, + preserveSymlinks: false, + dedupe: ["vue"], + extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"], + }, + build: { + cssCodeSplit: true, + emptyOutDir: false, // Don't clean dist, allow multiple builds + lib: { + entry: generateEntryPoints(), + name: "vue3-openlayers", + formats: ["es", "cjs"], + }, + minify: false, + rollupOptions: { + external: ["vue", /^ol.*/, /^@turf.*/], + output: [ + { + format: "es", + exports: "named", + entryFileNames: "esm/[name].js", + chunkFileNames: "esm/[name]-[hash].js", + }, + { + format: "cjs", + exports: "named", + entryFileNames: "cjs/[name].js", + chunkFileNames: "cjs/[name]-[hash].js", + }, + ], + }, + }, +}); diff --git a/vite.treeshaking.config.ts b/vite.treeshaking.config.ts deleted file mode 100644 index 1c9dc02f..00000000 --- a/vite.treeshaking.config.ts +++ /dev/null @@ -1,72 +0,0 @@ -import vue from "@vitejs/plugin-vue"; -import { fileURLToPath, URL } from "url"; -import { defineConfig } from "vite"; -import { visualizer } from "rollup-plugin-visualizer"; - -export default defineConfig({ - plugins: [ - vue(), - ...(process.env.VITE_ANALYZE - ? [ - visualizer({ - filename: "dist/stats-treeshaking.html", - open: true, - gzipSize: true, - brotliSize: true, - }), - ] - : []), - ], - resolve: { - alias: { - "@": fileURLToPath(new URL("./src", import.meta.url)), - "@components": fileURLToPath( - new URL("./src/components", import.meta.url), - ), - "@demos": fileURLToPath(new URL("./src/demos", import.meta.url)), - }, - preserveSymlinks: false, - dedupe: ["vue"], - extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"], - }, - build: { - cssCodeSplit: true, - emptyOutDir: false, // Don't clean dist, allow multiple builds - lib: { - entry: { - map: fileURLToPath(new URL("./src/map.ts", import.meta.url)), - layers: fileURLToPath(new URL("./src/layers.ts", import.meta.url)), - sources: fileURLToPath(new URL("./src/sources.ts", import.meta.url)), - controls: fileURLToPath(new URL("./src/controls.ts", import.meta.url)), - animations: fileURLToPath( - new URL("./src/animations.ts", import.meta.url), - ), - geometries: fileURLToPath( - new URL("./src/geometries.ts", import.meta.url), - ), - interactions: fileURLToPath( - new URL("./src/interactions.ts", import.meta.url), - ), - styles: fileURLToPath(new URL("./src/styles.ts", import.meta.url)), - helpers: fileURLToPath( - new URL("./src/helpers-entry.ts", import.meta.url), - ), - providers: fileURLToPath( - new URL("./src/providers-entry.ts", import.meta.url), - ), - composables: fileURLToPath( - new URL("./src/composables-entry.ts", import.meta.url), - ), - }, - name: "vue3-openlayers", - formats: ["es", "cjs"], - }, - minify: false, - rollupOptions: { - external: ["vue", /^ol.*/, /^@turf.*/], - output: { - exports: "named", - }, - }, - }, -}); From da5214c6b39045c235c2c7245028b27c67cc737d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 20 Aug 2025 17:46:54 +0300 Subject: [PATCH 08/15] Removed all differently-cased files --- ...ect.vue => OlInteractionClusterSelect.vue} | 0 ...onDragbox.vue => OlInteractionDragBox.vue} | 0 ...rotate.vue => OlInteractionDragRotate.vue} | 0 ...vue => OlInteractionDragRotateAndZoom.vue} | 0 src/components/interaction/index.ts | 27 +++--- .../layers/OlAnimatedClusterlayer.vue | 73 ---------------- src/components/layers/index.ts | 6 +- src/components/map/OlGeolocation.vue | 86 ------------------- src/components/map/index.ts | 6 +- .../mapControls/OlFullscreenControl.vue | 28 ------ .../mapControls/OlLayerswitcherControl.vue | 44 ---------- .../OlLayerswitcherimageControl.vue | 45 ---------- .../mapControls/OlMousepositionControl.vue | 29 ------- .../mapControls/OlOverviewmapControl.vue | 29 ------- .../mapControls/OlPrintdialogControl.vue | 68 --------------- ...lineControl.vue => OlScaleLineControl.vue} | 0 .../mapControls/OlVideorecorderControl.vue | 53 ------------ .../mapControls/OlZoomsliderControl.vue | 21 ----- .../mapControls/OlZoomtoextentControl.vue | 21 ----- src/components/mapControls/index.ts | 60 ++++++------- src/components/sources/OlSourceBingmaps.vue | 36 -------- src/components/sources/OlSourceGeoTiff.vue | 31 ------- src/components/sources/OlSourceImageWms.vue | 46 ---------- src/components/sources/OlSourceOsm.vue | 31 ------- .../sources/OlSourceTileArcgisRest.vue | 47 ---------- src/components/sources/OlSourceTileJson.vue | 31 ------- src/components/sources/OlSourceTileWms.vue | 47 ---------- .../{OlSourceWmts.vue => OlSourceWMTS.vue} | 0 src/components/sources/OlSourceXyz.vue | 41 --------- src/components/sources/index.ts | 54 ++++++------ ...lStyleFlowline.vue => OlStyleFlowLine.vue} | 0 src/components/styles/index.ts | 6 +- 32 files changed, 81 insertions(+), 885 deletions(-) rename src/components/interaction/{OlInteractionClusterselect.vue => OlInteractionClusterSelect.vue} (100%) rename src/components/interaction/{OlInteractionDragbox.vue => OlInteractionDragBox.vue} (100%) rename src/components/interaction/{OlInteractionDragrotate.vue => OlInteractionDragRotate.vue} (100%) rename src/components/interaction/{OlInteractionDragrotatezoom.vue => OlInteractionDragRotateAndZoom.vue} (100%) delete mode 100644 src/components/layers/OlAnimatedClusterlayer.vue delete mode 100644 src/components/map/OlGeolocation.vue delete mode 100644 src/components/mapControls/OlFullscreenControl.vue delete mode 100644 src/components/mapControls/OlLayerswitcherControl.vue delete mode 100644 src/components/mapControls/OlLayerswitcherimageControl.vue delete mode 100644 src/components/mapControls/OlMousepositionControl.vue delete mode 100644 src/components/mapControls/OlOverviewmapControl.vue delete mode 100644 src/components/mapControls/OlPrintdialogControl.vue rename src/components/mapControls/{OlScalelineControl.vue => OlScaleLineControl.vue} (100%) delete mode 100644 src/components/mapControls/OlVideorecorderControl.vue delete mode 100644 src/components/mapControls/OlZoomsliderControl.vue delete mode 100644 src/components/mapControls/OlZoomtoextentControl.vue delete mode 100644 src/components/sources/OlSourceBingmaps.vue delete mode 100644 src/components/sources/OlSourceGeoTiff.vue delete mode 100644 src/components/sources/OlSourceImageWms.vue delete mode 100644 src/components/sources/OlSourceOsm.vue delete mode 100644 src/components/sources/OlSourceTileArcgisRest.vue delete mode 100644 src/components/sources/OlSourceTileJson.vue delete mode 100644 src/components/sources/OlSourceTileWms.vue rename src/components/sources/{OlSourceWmts.vue => OlSourceWMTS.vue} (100%) delete mode 100644 src/components/sources/OlSourceXyz.vue rename src/components/styles/{OlStyleFlowline.vue => OlStyleFlowLine.vue} (100%) diff --git a/src/components/interaction/OlInteractionClusterselect.vue b/src/components/interaction/OlInteractionClusterSelect.vue similarity index 100% rename from src/components/interaction/OlInteractionClusterselect.vue rename to src/components/interaction/OlInteractionClusterSelect.vue diff --git a/src/components/interaction/OlInteractionDragbox.vue b/src/components/interaction/OlInteractionDragBox.vue similarity index 100% rename from src/components/interaction/OlInteractionDragbox.vue rename to src/components/interaction/OlInteractionDragBox.vue diff --git a/src/components/interaction/OlInteractionDragrotate.vue b/src/components/interaction/OlInteractionDragRotate.vue similarity index 100% rename from src/components/interaction/OlInteractionDragrotate.vue rename to src/components/interaction/OlInteractionDragRotate.vue diff --git a/src/components/interaction/OlInteractionDragrotatezoom.vue b/src/components/interaction/OlInteractionDragRotateAndZoom.vue similarity index 100% rename from src/components/interaction/OlInteractionDragrotatezoom.vue rename to src/components/interaction/OlInteractionDragRotateAndZoom.vue diff --git a/src/components/interaction/index.ts b/src/components/interaction/index.ts index 7af2d0c9..3e781fff 100644 --- a/src/components/interaction/index.ts +++ b/src/components/interaction/index.ts @@ -1,8 +1,8 @@ import type { App } from "vue"; -import OlInteractionClusterselect from "./OlInteractionClusterselect.vue"; -import OlInteractionDragbox from "./OlInteractionDragbox.vue"; -import OlInteractionDragrotate from "./OlInteractionDragrotate.vue"; -import OlInteractionDragrotatezoom from "./OlInteractionDragrotatezoom.vue"; +import OlInteractionClusterSelect from "./OlInteractionClusterSelect.vue"; +import OlInteractionDragBox from "./OlInteractionDragBox.vue"; +import OlInteractionDragRotate from "./OlInteractionDragRotate.vue"; +import OlInteractionDragRotateAndZoom from "./OlInteractionDragRotateAndZoom.vue"; import OlInteractionLink from "./OlInteractionLink.vue"; import OlInteractionSelect from "./OlInteractionSelect.vue"; import OlInteractionDraw from "./OlInteractionDraw.vue"; @@ -14,10 +14,13 @@ import OlInteractionMouseWheelZoom from "./OlInteractionMouseWheelZoom.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlInteractionClusterselect", OlInteractionClusterselect); - app.component("OlInteractionDragbox", OlInteractionDragbox); - app.component("OlInteractionDragrotate", OlInteractionDragrotate); - app.component("OlInteractionDragrotatezoom", OlInteractionDragrotatezoom); + app.component("OlInteractionClusterSelect", OlInteractionClusterSelect); + app.component("OlInteractionDragBox", OlInteractionDragBox); + app.component("OlInteractionDragAndRotate", OlInteractionDragRotate); + app.component( + "OlInteractionDragRotateAndZoom", + OlInteractionDragRotateAndZoom, + ); app.component("OlInteractionLink", OlInteractionLink); app.component("OlInteractionSelect", OlInteractionSelect); app.component("OlInteractionDraw", OlInteractionDraw); @@ -40,10 +43,10 @@ export default install; export { install, - OlInteractionClusterselect, - OlInteractionDragbox, - OlInteractionDragrotate, - OlInteractionDragrotatezoom, + OlInteractionClusterSelect, + OlInteractionDragBox, + OlInteractionDragRotate, + OlInteractionDragRotateAndZoom, OlInteractionLink, OlInteractionSelect, OlInteractionDraw, diff --git a/src/components/layers/OlAnimatedClusterlayer.vue b/src/components/layers/OlAnimatedClusterlayer.vue deleted file mode 100644 index 8eeb023e..00000000 --- a/src/components/layers/OlAnimatedClusterlayer.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - diff --git a/src/components/layers/index.ts b/src/components/layers/index.ts index 215812e1..d67cc679 100644 --- a/src/components/layers/index.ts +++ b/src/components/layers/index.ts @@ -1,5 +1,5 @@ import type { App } from "vue"; -import OlAnimatedClusterlayer from "./OlAnimatedClusterlayer.vue"; +import OlAnimatedClusterLayer from "./OlAnimatedClusterLayer.vue"; import OlHeatmapLayer from "./OlHeatmapLayer.vue"; import OlImageLayer from "./OlImageLayer.vue"; import OlLayerGroup from "./OlLayerGroup.vue"; @@ -12,7 +12,7 @@ import OlWebglVectorLayer from "./OlWebglVectorLayer.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlAnimatedClusterlayer", OlAnimatedClusterlayer); + app.component("OlAnimatedClusterLayer", OlAnimatedClusterLayer); app.component("OlHeatmapLayer", OlHeatmapLayer); app.component("OlImageLayer", OlImageLayer); app.component("OlLayerGroup", OlLayerGroup); @@ -36,7 +36,7 @@ export default install; export { install, - OlAnimatedClusterlayer, + OlAnimatedClusterLayer, OlHeatmapLayer, OlImageLayer, OlLayerGroup, diff --git a/src/components/map/OlGeolocation.vue b/src/components/map/OlGeolocation.vue deleted file mode 100644 index b79ea664..00000000 --- a/src/components/map/OlGeolocation.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/src/components/map/index.ts b/src/components/map/index.ts index 2f9d4f1b..5798bf20 100644 --- a/src/components/map/index.ts +++ b/src/components/map/index.ts @@ -1,6 +1,6 @@ import type { App } from "vue"; import OlFeature from "./OlFeature.vue"; -import OlGeolocation from "./OlGeolocation.vue"; +import OlGeoLocation from "./OlGeoLocation.vue"; import OlMap from "./OlMap.vue"; import OlOverlay from "./OlOverlay.vue"; import OlProjectionRegister from "./OlProjectionRegister.vue"; @@ -9,7 +9,7 @@ import type { Vue3OpenlayersGlobalOptions } from "@/types"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { app.component("OlFeature", OlFeature); - app.component("OlGeolocation", OlGeolocation); + app.component("OlGeoLocation", OlGeoLocation); app.component("OlMap", OlMap); app.component("OlOverlay", OlOverlay); app.component("OlProjectionRegister", OlProjectionRegister); @@ -29,7 +29,7 @@ export default install; export { install, OlFeature, - OlGeolocation, + OlGeoLocation, OlMap, OlOverlay, OlProjectionRegister, diff --git a/src/components/mapControls/OlFullscreenControl.vue b/src/components/mapControls/OlFullscreenControl.vue deleted file mode 100644 index d7fa0c41..00000000 --- a/src/components/mapControls/OlFullscreenControl.vue +++ /dev/null @@ -1,28 +0,0 @@ - - diff --git a/src/components/mapControls/OlLayerswitcherControl.vue b/src/components/mapControls/OlLayerswitcherControl.vue deleted file mode 100644 index 6f1431ad..00000000 --- a/src/components/mapControls/OlLayerswitcherControl.vue +++ /dev/null @@ -1,44 +0,0 @@ - - diff --git a/src/components/mapControls/OlLayerswitcherimageControl.vue b/src/components/mapControls/OlLayerswitcherimageControl.vue deleted file mode 100644 index 8e90c081..00000000 --- a/src/components/mapControls/OlLayerswitcherimageControl.vue +++ /dev/null @@ -1,45 +0,0 @@ - - diff --git a/src/components/mapControls/OlMousepositionControl.vue b/src/components/mapControls/OlMousepositionControl.vue deleted file mode 100644 index 50bd731d..00000000 --- a/src/components/mapControls/OlMousepositionControl.vue +++ /dev/null @@ -1,29 +0,0 @@ - - diff --git a/src/components/mapControls/OlOverviewmapControl.vue b/src/components/mapControls/OlOverviewmapControl.vue deleted file mode 100644 index 1dfc6c83..00000000 --- a/src/components/mapControls/OlOverviewmapControl.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - diff --git a/src/components/mapControls/OlPrintdialogControl.vue b/src/components/mapControls/OlPrintdialogControl.vue deleted file mode 100644 index 78f3f62c..00000000 --- a/src/components/mapControls/OlPrintdialogControl.vue +++ /dev/null @@ -1,68 +0,0 @@ - - diff --git a/src/components/mapControls/OlScalelineControl.vue b/src/components/mapControls/OlScaleLineControl.vue similarity index 100% rename from src/components/mapControls/OlScalelineControl.vue rename to src/components/mapControls/OlScaleLineControl.vue diff --git a/src/components/mapControls/OlVideorecorderControl.vue b/src/components/mapControls/OlVideorecorderControl.vue deleted file mode 100644 index e2c3d223..00000000 --- a/src/components/mapControls/OlVideorecorderControl.vue +++ /dev/null @@ -1,53 +0,0 @@ - - diff --git a/src/components/mapControls/OlZoomsliderControl.vue b/src/components/mapControls/OlZoomsliderControl.vue deleted file mode 100644 index 3fd8fffe..00000000 --- a/src/components/mapControls/OlZoomsliderControl.vue +++ /dev/null @@ -1,21 +0,0 @@ - - diff --git a/src/components/mapControls/OlZoomtoextentControl.vue b/src/components/mapControls/OlZoomtoextentControl.vue deleted file mode 100644 index 2a019bc8..00000000 --- a/src/components/mapControls/OlZoomtoextentControl.vue +++ /dev/null @@ -1,21 +0,0 @@ - - diff --git a/src/components/mapControls/index.ts b/src/components/mapControls/index.ts index 2556cd1a..968e751f 100644 --- a/src/components/mapControls/index.ts +++ b/src/components/mapControls/index.ts @@ -3,34 +3,34 @@ import OlAttributionControl from "./OlAttributionControl.vue"; import OlButtonControl from "./OlButtonControl.vue"; import OlContextMenuControl from "./OlContextMenuControl.vue"; import OlControlBar from "./OlControlBar.vue"; -import OlFullscreenControl from "./OlFullscreenControl.vue"; -import OlLayerswitcherControl from "./OlLayerswitcherControl.vue"; -import OlLayerswitcherimageControl from "./OlLayerswitcherimageControl.vue"; -import OlMousepositionControl from "./OlMousepositionControl.vue"; -import OlOverviewmapControl from "./OlOverviewmapControl.vue"; -import OlPrintdialogControl from "./OlPrintdialogControl.vue"; +import OlFullScreenControl from "./OlFullScreenControl.vue"; +import OlLayerSwitcherControl from "./OlLayerSwitcherControl.vue"; +import OlLayerSwitcherImageControl from "./OlLayerSwitcherImageControl.vue"; +import OlMousePositionControl from "./OlMousePositionControl.vue"; +import OlOverviewMapControl from "./OlOverviewMapControl.vue"; +import OlPrintDialogControl from "./OlPrintDialogControl.vue"; import OlProfileControl from "./OlProfileControl.vue"; import OlRotateControl from "./OlRotateControl.vue"; -import OlScalelineControl from "./OlScalelineControl.vue"; +import OlScaleLineControl from "./OlScaleLineControl.vue"; import OlSearchControl from "./OlSearchControl.vue"; import OlSwipeControl from "./OlSwipeControl.vue"; import OlToggleControl from "./OlToggleControl.vue"; -import OlVideorecorderControl from "./OlVideorecorderControl.vue"; +import OlVideoRecorderControl from "./OlVideoRecorderControl.vue"; import OlZoneControl from "./OlZoneControl.vue"; import OlZoomControl from "./OlZoomControl.vue"; -import OlZoomsliderControl from "./OlZoomsliderControl.vue"; -import OlZoomtoextentControl from "./OlZoomtoextentControl.vue"; +import OlZoomSliderControl from "./OlZoomSliderControl.vue"; +import OlZoomToExtentControl from "./OlZoomToExtentControl.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { app.component("OlAttributionControl", OlAttributionControl); - app.component("OlFullscreenControl", OlFullscreenControl); - app.component("OlMousepositionControl", OlMousepositionControl); - app.component("OlOverviewmapControl", OlOverviewmapControl); - app.component("OlScalelineControl", OlScalelineControl); + app.component("OlFullScreenControl", OlFullScreenControl); + app.component("OlMousePositionControl", OlMousePositionControl); + app.component("OlOverviewMapControl", OlOverviewMapControl); + app.component("OlScaleLineControl", OlScaleLineControl); app.component("OlZoomControl", OlZoomControl); - app.component("OlZoomsliderControl", OlZoomsliderControl); - app.component("OlZoomtoextentControl", OlZoomtoextentControl); + app.component("OlZoomSliderControl", OlZoomSliderControl); + app.component("OlZoomToExtentControl", OlZoomToExtentControl); app.component("OlRotateControl", OlRotateControl); app.component("OlContextMenuControl", OlContextMenuControl); app.component("OlSearchControl", OlSearchControl); @@ -38,11 +38,11 @@ function install(app: App, options?: Vue3OpenlayersGlobalOptions) { app.component("OlControlBar", OlControlBar); app.component("OlToggleControl", OlToggleControl); app.component("OlButtonControl", OlButtonControl); - app.component("OlPrintdialogControl", OlPrintdialogControl); + app.component("OlPrintDialogControl", OlPrintDialogControl); app.component("OlProfileControl", OlProfileControl); - app.component("OlVideorecorderControl", OlVideorecorderControl); - app.component("OlLayerswitcherControl", OlLayerswitcherControl); - app.component("OlLayerswitcherimageControl", OlLayerswitcherimageControl); + app.component("OlVideoRecorderControl", OlVideoRecorderControl); + app.component("OlLayerSwitcherControl", OlLayerSwitcherControl); + app.component("OlLayerSwitcherImageControl", OlLayerSwitcherImageControl); app.component("OlZoneControl", OlZoneControl); if (options) { @@ -62,21 +62,21 @@ export { OlButtonControl, OlContextMenuControl, OlControlBar, - OlFullscreenControl, - OlLayerswitcherControl, - OlLayerswitcherimageControl, - OlMousepositionControl, - OlOverviewmapControl, - OlPrintdialogControl, + OlFullScreenControl, + OlLayerSwitcherControl, + OlLayerSwitcherImageControl, + OlMousePositionControl, + OlOverviewMapControl, + OlPrintDialogControl, OlProfileControl, OlRotateControl, - OlScalelineControl, + OlScaleLineControl, OlSearchControl, OlSwipeControl, OlToggleControl, - OlVideorecorderControl, + OlVideoRecorderControl, OlZoneControl, OlZoomControl, - OlZoomsliderControl, - OlZoomtoextentControl, + OlZoomSliderControl, + OlZoomToExtentControl, }; diff --git a/src/components/sources/OlSourceBingmaps.vue b/src/components/sources/OlSourceBingmaps.vue deleted file mode 100644 index bf768bb9..00000000 --- a/src/components/sources/OlSourceBingmaps.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - diff --git a/src/components/sources/OlSourceGeoTiff.vue b/src/components/sources/OlSourceGeoTiff.vue deleted file mode 100644 index 64eff5c0..00000000 --- a/src/components/sources/OlSourceGeoTiff.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - diff --git a/src/components/sources/OlSourceImageWms.vue b/src/components/sources/OlSourceImageWms.vue deleted file mode 100644 index 28f3a452..00000000 --- a/src/components/sources/OlSourceImageWms.vue +++ /dev/null @@ -1,46 +0,0 @@ - - diff --git a/src/components/sources/OlSourceOsm.vue b/src/components/sources/OlSourceOsm.vue deleted file mode 100644 index 0a4006b7..00000000 --- a/src/components/sources/OlSourceOsm.vue +++ /dev/null @@ -1,31 +0,0 @@ - - diff --git a/src/components/sources/OlSourceTileArcgisRest.vue b/src/components/sources/OlSourceTileArcgisRest.vue deleted file mode 100644 index 8df4c243..00000000 --- a/src/components/sources/OlSourceTileArcgisRest.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/src/components/sources/OlSourceTileJson.vue b/src/components/sources/OlSourceTileJson.vue deleted file mode 100644 index 04a338c5..00000000 --- a/src/components/sources/OlSourceTileJson.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - diff --git a/src/components/sources/OlSourceTileWms.vue b/src/components/sources/OlSourceTileWms.vue deleted file mode 100644 index fc3ef1f6..00000000 --- a/src/components/sources/OlSourceTileWms.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/src/components/sources/OlSourceWmts.vue b/src/components/sources/OlSourceWMTS.vue similarity index 100% rename from src/components/sources/OlSourceWmts.vue rename to src/components/sources/OlSourceWMTS.vue diff --git a/src/components/sources/OlSourceXyz.vue b/src/components/sources/OlSourceXyz.vue deleted file mode 100644 index 0a3cbb3d..00000000 --- a/src/components/sources/OlSourceXyz.vue +++ /dev/null @@ -1,41 +0,0 @@ - - diff --git a/src/components/sources/index.ts b/src/components/sources/index.ts index 11b69304..e0f23892 100644 --- a/src/components/sources/index.ts +++ b/src/components/sources/index.ts @@ -1,39 +1,39 @@ import type { App } from "vue"; -import OlSourceBingmaps from "./OlSourceBingmaps.vue"; +import OlSourceBingMaps from "./OlSourceBingMaps.vue"; import OlSourceCluster from "./OlSourceCluster.vue"; import OlSourceImageStatic from "./OlSourceImageStatic.vue"; -import OlSourceImageWms from "./OlSourceImageWms.vue"; -import OlSourceOsm from "./OlSourceOsm.vue"; +import OlSourceImageWMS from "./OlSourceImageWMS.vue"; +import OlSourceOSM from "./OlSourceOSM.vue"; import OlSourceStadiaMaps from "./OlSourceStadiaMaps.vue"; import OlSourceTianditu from "./OlSourceTianditu.vue"; -import OlSourceTileArcgisRest from "@/components/sources/OlSourceTileArcgisRest.vue"; +import OlSourceTileArcGISRest from "@/components/sources/OlSourceTileArcGISRest.vue"; import OlSourceTileDebug from "./OlSourceTileDebug.vue"; -import OlSourceGeoTiff from "./OlSourceGeoTiff.vue"; -import OlSourceTileJson from "./OlSourceTileJson.vue"; -import OlSourceTileWms from "./OlSourceTileWms.vue"; +import OlSourceGeoTIFF from "./OlSourceGeoTIFF.vue"; +import OlSourceTileJSON from "./OlSourceTileJSON.vue"; +import OlSourceTileWMS from "./OlSourceTileWMS.vue"; import OlSourceVector from "./OlSourceVector.vue"; import OlSourceVectorTile from "./OlSourceVectorTile.vue"; -import OlSourceXyz from "./OlSourceXyz.vue"; -import OlSourceWmts from "./OlSourceWmts.vue"; +import OlSourceXYZ from "./OlSourceXYZ.vue"; +import OlSourceWMTS from "./OlSourceWMTS.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlSourceBingmaps", OlSourceBingmaps); + app.component("OlSourceBingMaps", OlSourceBingMaps); app.component("OlSourceCluster", OlSourceCluster); app.component("OlSourceImageStatic", OlSourceImageStatic); - app.component("OlSourceImageWms", OlSourceImageWms); - app.component("OlSourceOsm", OlSourceOsm); + app.component("OlSourceImageWMS", OlSourceImageWMS); + app.component("OlSourceOSM", OlSourceOSM); app.component("OlSourceStadiaMaps", OlSourceStadiaMaps); app.component("OlSourceTianditu", OlSourceTianditu); - app.component("OlSourceTileArcgisRest", OlSourceTileArcgisRest); + app.component("OlSourceTileArcGISRest", OlSourceTileArcGISRest); app.component("OlSourceTileDebug", OlSourceTileDebug); - app.component("OlSourceGeoTiff", OlSourceGeoTiff); - app.component("OlSourceTileJson", OlSourceTileJson); - app.component("OlSourceTileWms", OlSourceTileWms); + app.component("OlSourceGeoTIFF", OlSourceGeoTIFF); + app.component("OlSourceTileJSON", OlSourceTileJSON); + app.component("OlSourceTileWMS", OlSourceTileWMS); app.component("OlSourceVector", OlSourceVector); app.component("OlSourceVectorTile", OlSourceVectorTile); - app.component("OlSourceXyz", OlSourceXyz); - app.component("OlSourceWmts", OlSourceWmts); + app.component("OlSourceXYZ", OlSourceXYZ); + app.component("OlSourceWMTS", OlSourceWMTS); if (options) { app.provide("ol-options", options); @@ -48,20 +48,20 @@ export default install; export { install, - OlSourceBingmaps, + OlSourceBingMaps, OlSourceCluster, OlSourceImageStatic, - OlSourceImageWms, - OlSourceOsm, + OlSourceImageWMS, + OlSourceOSM, OlSourceStadiaMaps, OlSourceTianditu, - OlSourceTileArcgisRest, + OlSourceTileArcGISRest, OlSourceTileDebug, - OlSourceGeoTiff, - OlSourceTileJson, - OlSourceTileWms, + OlSourceGeoTIFF, + OlSourceTileJSON, + OlSourceTileWMS, OlSourceVector, OlSourceVectorTile, - OlSourceXyz, - OlSourceWmts, + OlSourceXYZ, + OlSourceWMTS, }; diff --git a/src/components/styles/OlStyleFlowline.vue b/src/components/styles/OlStyleFlowLine.vue similarity index 100% rename from src/components/styles/OlStyleFlowline.vue rename to src/components/styles/OlStyleFlowLine.vue diff --git a/src/components/styles/index.ts b/src/components/styles/index.ts index 83e2309a..c774be1d 100644 --- a/src/components/styles/index.ts +++ b/src/components/styles/index.ts @@ -5,7 +5,7 @@ import OlStyleStroke from "./OlStyleStroke.vue"; import OlStyleFill from "./OlStyleFill.vue"; import OlStyleIcon from "./OlStyleIcon.vue"; import OlStyleText from "./OlStyleText.vue"; -import OlStyleFlowline from "./OlStyleFlowline.vue"; +import OlStyleFlowLine from "./OlStyleFlowLine.vue"; import type { FeatureLike } from "ol/Feature"; import type { Style } from "ol/style"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; @@ -29,7 +29,7 @@ function install(app: App, options?: Vue3OpenlayersGlobalOptions) { app.component("OlStyleFill", OlStyleFill); app.component("OlStyleIcon", OlStyleIcon); app.component("OlStyleText", OlStyleText); - app.component("OlStyleFlowline", OlStyleFlowline); + app.component("OlStyleFlowLine", OlStyleFlowLine); if (options) { app.provide("ol-options", options); @@ -49,7 +49,7 @@ export { OlStyleFill, OlStyleIcon, OlStyleText, - OlStyleFlowline, + OlStyleFlowLine, OlStyleCircle, type OverrideStyleFunction, type Gradient, From 930a60a623061c329a95d57d834ba82313e2e5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 20 Aug 2025 17:53:37 +0300 Subject: [PATCH 09/15] Fix casing in docs --- docs/componentsguide/geolocation/index.md | 2 +- docs/componentsguide/layers/animatedclusterlayer/index.md | 2 +- docs/componentsguide/mapcontrols/fullscreen/index.md | 2 +- docs/componentsguide/mapcontrols/layerswitcher/index.md | 2 +- .../componentsguide/mapcontrols/layerswitcherimage/index.md | 2 +- docs/componentsguide/mapcontrols/mouseposition/index.md | 2 +- docs/componentsguide/mapcontrols/overviewmap/index.md | 2 +- docs/componentsguide/mapcontrols/printdialog/index.md | 2 +- docs/componentsguide/mapcontrols/videorecorder/index.md | 2 +- docs/componentsguide/mapcontrols/zoomslider/index.md | 2 +- docs/componentsguide/mapcontrols/zoomtoextent/index.md | 2 +- docs/componentsguide/sources/arcgisrest/index.md | 2 +- docs/componentsguide/sources/bing/index.md | 2 +- docs/componentsguide/sources/geotiff/index.md | 2 +- docs/componentsguide/sources/imagewms/index.md | 2 +- docs/componentsguide/sources/osm/index.md | 2 +- docs/componentsguide/sources/tilejson/index.md | 2 +- docs/componentsguide/sources/tilewms/index.md | 2 +- docs/componentsguide/sources/xyz/index.md | 2 +- docs/get-started.md | 6 +++--- 20 files changed, 22 insertions(+), 22 deletions(-) diff --git a/docs/componentsguide/geolocation/index.md b/docs/componentsguide/geolocation/index.md index dcd6836b..812eeecd 100644 --- a/docs/componentsguide/geolocation/index.md +++ b/docs/componentsguide/geolocation/index.md @@ -26,7 +26,7 @@ import GeoLocationDemo from "@demos/GeoLocationDemo.vue" | Plugin Usage | Explicit Import | | ------------------ | :-------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/layers/animatedclusterlayer/index.md b/docs/componentsguide/layers/animatedclusterlayer/index.md index dfcfd315..303c5f76 100644 --- a/docs/componentsguide/layers/animatedclusterlayer/index.md +++ b/docs/componentsguide/layers/animatedclusterlayer/index.md @@ -26,7 +26,7 @@ import AnimatedClusterDemo from "@demos/AnimatedClusterDemo.vue" | Plugin Usage | Explicit Import | | ---------------------------- | :-------------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/fullscreen/index.md b/docs/componentsguide/mapcontrols/fullscreen/index.md index 8f1d4010..c5d55b43 100644 --- a/docs/componentsguide/mapcontrols/fullscreen/index.md +++ b/docs/componentsguide/mapcontrols/fullscreen/index.md @@ -21,7 +21,7 @@ import FullscreenControlDemo from "@demos/FullscreenControlDemo.vue" | Plugin Usage | Explicit Import | | ------------------------- | :---------------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/layerswitcher/index.md b/docs/componentsguide/mapcontrols/layerswitcher/index.md index 41063868..e3d07bb1 100644 --- a/docs/componentsguide/mapcontrols/layerswitcher/index.md +++ b/docs/componentsguide/mapcontrols/layerswitcher/index.md @@ -21,7 +21,7 @@ import LayerswitcherControlDemo from "@demos/LayerswitcherControlDemo.vue" | Plugin Usage | Explicit Import | |------------------------------|:--------------------------------------:| -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/layerswitcherimage/index.md b/docs/componentsguide/mapcontrols/layerswitcherimage/index.md index 0710639c..4f9eb4a0 100644 --- a/docs/componentsguide/mapcontrols/layerswitcherimage/index.md +++ b/docs/componentsguide/mapcontrols/layerswitcherimage/index.md @@ -25,7 +25,7 @@ import LayerswitcherimageControlDemo from "@demos/LayerswitcherimageControlDemo. | Plugin Usage | Explicit Import | | --------------------------------- | :-----------------------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/mouseposition/index.md b/docs/componentsguide/mapcontrols/mouseposition/index.md index b92c36e1..4d9c9e0d 100644 --- a/docs/componentsguide/mapcontrols/mouseposition/index.md +++ b/docs/componentsguide/mapcontrols/mouseposition/index.md @@ -21,7 +21,7 @@ import MousepositionControlDemo from "@demos/MousepositionControlDemo.vue" | Plugin Usage | Explicit Import | | ---------------------------- | :------------------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/overviewmap/index.md b/docs/componentsguide/mapcontrols/overviewmap/index.md index e4c46e0c..40fdd2d6 100644 --- a/docs/componentsguide/mapcontrols/overviewmap/index.md +++ b/docs/componentsguide/mapcontrols/overviewmap/index.md @@ -21,7 +21,7 @@ import OverviewmapControlDemo from "@demos/OverviewmapControlDemo.vue" | Plugin Usage | Explicit Import | | -------------------------- | :----------------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/printdialog/index.md b/docs/componentsguide/mapcontrols/printdialog/index.md index 06c0c3c1..86d11fc9 100644 --- a/docs/componentsguide/mapcontrols/printdialog/index.md +++ b/docs/componentsguide/mapcontrols/printdialog/index.md @@ -21,7 +21,7 @@ import PrintdialogControlDemo from "@demos/PrintdialogControlDemo.vue" | Plugin Usage | Explicit Import | | -------------------------- | :----------------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/videorecorder/index.md b/docs/componentsguide/mapcontrols/videorecorder/index.md index 0ab846f4..f2052cd3 100644 --- a/docs/componentsguide/mapcontrols/videorecorder/index.md +++ b/docs/componentsguide/mapcontrols/videorecorder/index.md @@ -21,7 +21,7 @@ import VideorecorderControlDemo from "@demos/VideorecorderControlDemo.vue" | Plugin Usage | Explicit Import | | ---------------------------- | :------------------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/zoomslider/index.md b/docs/componentsguide/mapcontrols/zoomslider/index.md index f9a3bdf1..e03750ea 100644 --- a/docs/componentsguide/mapcontrols/zoomslider/index.md +++ b/docs/componentsguide/mapcontrols/zoomslider/index.md @@ -21,7 +21,7 @@ import ZoomsliderControlDemo from "@demos/ZoomsliderControlDemo.vue" | Plugin Usage | Explicit Import | | ------------------------- | :---------------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/zoomtoextent/index.md b/docs/componentsguide/mapcontrols/zoomtoextent/index.md index 73ec6e4d..2950b848 100644 --- a/docs/componentsguide/mapcontrols/zoomtoextent/index.md +++ b/docs/componentsguide/mapcontrols/zoomtoextent/index.md @@ -21,7 +21,7 @@ import ZoomtoextentControlDemo from "@demos/ZoomtoextentControlDemo.vue" | Plugin Usage | Explicit Import | | --------------------------- | :-----------------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/sources/arcgisrest/index.md b/docs/componentsguide/sources/arcgisrest/index.md index fb611de4..ea8fad98 100644 --- a/docs/componentsguide/sources/arcgisrest/index.md +++ b/docs/componentsguide/sources/arcgisrest/index.md @@ -24,7 +24,7 @@ import TileArcGISRestSourceDemo from "@demos/TileArcGISRestSourceDemo.vue" | Plugin Usage | Explicit Import | | ------------------------------ | :--------------------------------: | -| `` | `` | +| `` | `` | Example of `ol-source-tile-arcgis-rest` usage. Information about the arcgis service used, available at https://pkk.rosreestr.ru/arcgis/rest/services/PKK6/CadastreObjects/MapServer. diff --git a/docs/componentsguide/sources/bing/index.md b/docs/componentsguide/sources/bing/index.md index 7a242ac7..6e100f9a 100644 --- a/docs/componentsguide/sources/bing/index.md +++ b/docs/componentsguide/sources/bing/index.md @@ -25,7 +25,7 @@ import BingMapsDemo from "@demos/BingMapsDemo.vue" | Plugin Usage | Explicit Import | | ---------------------- | :--------------------------: | -| `` | `` | +| `` | `` | Example of `ol-source-bingmaps` usage diff --git a/docs/componentsguide/sources/geotiff/index.md b/docs/componentsguide/sources/geotiff/index.md index aad8bccd..80ea2d04 100644 --- a/docs/componentsguide/sources/geotiff/index.md +++ b/docs/componentsguide/sources/geotiff/index.md @@ -22,7 +22,7 @@ import GeoTIFFDemo from "@demos/GeoTIFFDemo.vue" | Plugin Usage | Explicit Import | | ---------------------- | :-------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/sources/imagewms/index.md b/docs/componentsguide/sources/imagewms/index.md index 3c18e4ea..f4811d83 100644 --- a/docs/componentsguide/sources/imagewms/index.md +++ b/docs/componentsguide/sources/imagewms/index.md @@ -22,7 +22,7 @@ import ImageWMSDemo from "@demos/ImageWMSDemo.vue" | Plugin Usage | Explicit Import | | ----------------------- | :--------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/sources/osm/index.md b/docs/componentsguide/sources/osm/index.md index 5a229c31..f986f5a9 100644 --- a/docs/componentsguide/sources/osm/index.md +++ b/docs/componentsguide/sources/osm/index.md @@ -22,7 +22,7 @@ import ViewDemo from "@demos/ViewDemo.vue" | Plugin Usage | Explicit Import | | ----------------- | :---------------------: | -| `` | `` | +| `` | `` | Loading a simple OSM base layer. diff --git a/docs/componentsguide/sources/tilejson/index.md b/docs/componentsguide/sources/tilejson/index.md index 509836c3..484e2668 100644 --- a/docs/componentsguide/sources/tilejson/index.md +++ b/docs/componentsguide/sources/tilejson/index.md @@ -22,7 +22,7 @@ import TileJSONDemo from "@demos/TileJSONDemo.vue" | Plugin Usage | Explicit Import | | ----------------------- | :--------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/sources/tilewms/index.md b/docs/componentsguide/sources/tilewms/index.md index 2ede5451..64e100ec 100644 --- a/docs/componentsguide/sources/tilewms/index.md +++ b/docs/componentsguide/sources/tilewms/index.md @@ -22,7 +22,7 @@ import TileWMSDemo from "@demos/TileWMSDemo.vue" | Plugin Usage | Explicit Import | | ---------------------- | :-------------------------: | -| `` | `` | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/sources/xyz/index.md b/docs/componentsguide/sources/xyz/index.md index 36b909bb..33f8a1d9 100644 --- a/docs/componentsguide/sources/xyz/index.md +++ b/docs/componentsguide/sources/xyz/index.md @@ -24,7 +24,7 @@ import XYZSourceDemo from "@demos/XYZSourceDemo.vue" | Plugin Usage | Explicit Import | | ----------------- | :---------------------: | -| `` | `` | +| `` | `` | Example of ol-source-xyz loading OSM tiles (Note that if you need an OSM layer you're better off using ol-source-osm, this is for demonstration purposes only). diff --git a/docs/get-started.md b/docs/get-started.md index 38a754bb..e27be323 100644 --- a/docs/get-started.md +++ b/docs/get-started.md @@ -112,7 +112,7 @@ import { Map, Layers, Sources } from "vue3-openlayers"; - + @@ -148,7 +148,7 @@ You can also specifically render the map only at client side, by putting inside - + @@ -233,7 +233,7 @@ provide("ol-options", options); - + From 56f4a56a318bec49dee26d578fd89ac1a23d20df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Thu, 21 Aug 2025 14:37:58 +0300 Subject: [PATCH 10/15] Fix demo/documentation references --- docs/.vitepress/config.ts | 24 +++++----- docs/componentsguide/geolocation/index.md | 12 ++--- .../interactions/clusterselect/index.md | 8 ++-- .../layers/animatedclusterlayer/index.md | 16 +++---- .../mapcontrols/layerswitcher/index.md | 8 ++-- .../mapcontrols/layerswitcherimage/index.md | 8 ++-- .../mapcontrols/mouseposition/index.md | 8 ++-- .../mapcontrols/overviewmap/index.md | 12 ++--- .../mapcontrols/printdialog/index.md | 8 ++-- .../mapcontrols/videorecorder/index.md | 12 ++--- .../mapcontrols/zoomslider/index.md | 8 ++-- .../mapcontrols/zoomtoextent/index.md | 8 ++-- docs/componentsguide/sources/bing/index.md | 18 +++---- src/components/animations/index.ts | 15 +++--- src/components/geometries/index.ts | 15 +++--- src/components/layers/index.ts | 21 +++++---- src/components/map/index.ts | 13 ++--- src/components/mapControls/index.ts | 47 ++++++++++--------- src/components/registerWithAliases.ts | 29 ++++++++++++ src/components/sources/index.ts | 33 ++++++------- src/components/styles/index.ts | 15 +++--- src/demos/AnimatedClusterDemo.vue | 8 ++-- src/demos/AnimatedClusterDemo2.vue | 11 +++-- src/demos/AppDemo.vue | 24 +++++----- src/demos/BingMapsDemo.vue | 2 +- src/demos/ControlBarDemo.vue | 4 +- src/demos/ExistingMapDemo.vue | 2 +- src/demos/GeoLocationDemo.vue | 4 +- src/demos/LayerswitcherControlDemo.vue | 2 +- src/demos/LayerswitcherimageControlDemo.vue | 4 +- src/demos/MousepositionControlDemo.vue | 2 +- src/demos/OverviewmapControlDemo.vue | 4 +- src/demos/PrintdialogControlDemo.vue | 2 +- src/demos/VideorecorderControlDemo.vue | 2 +- src/demos/ZoomsliderControlDemo.vue | 2 +- src/demos/ZoomtoextentControlDemo.vue | 2 +- 36 files changed, 227 insertions(+), 186 deletions(-) create mode 100644 src/components/registerWithAliases.ts diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index b3406fbd..df352b5a 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -69,7 +69,7 @@ export const config: UserConfig = { link: "/componentsguide/overlay/", }, { - text: "ol-geolocation", + text: "ol-geo-location", link: "/componentsguide/geolocation/", }, { @@ -91,7 +91,7 @@ export const config: UserConfig = { link: "/componentsguide/layers/group/", }, { - text: "ol-animated-clusterlayer", + text: "ol-animated-cluster-layer", link: "/componentsguide/layers/animatedclusterlayer/", }, { @@ -133,7 +133,7 @@ export const config: UserConfig = { collapsed: true, items: [ { - text: "ol-source-bingmaps", + text: "ol-source-bing-maps", link: "/componentsguide/sources/bing/", }, { @@ -219,23 +219,23 @@ export const config: UserConfig = { link: "/componentsguide/mapcontrols/fullscreen/", }, { - text: "ol-layerswitcher-control", + text: "ol-layer-switcher-control", link: "/componentsguide/mapcontrols/layerswitcher/", }, { - text: "ol-layerswitcherimage-control", + text: "ol-layer-switcher-image-control", link: "/componentsguide/mapcontrols/layerswitcherimage/", }, { - text: "ol-mouseposition-control", + text: "ol-mouse-position-control", link: "/componentsguide/mapcontrols/mouseposition/", }, { - text: "ol-overviewmap-control", + text: "ol-overview-map-control", link: "/componentsguide/mapcontrols/overviewmap/", }, { - text: "ol-printdialog-control", + text: "ol-print-dialog-control", link: "/componentsguide/mapcontrols/printdialog/", }, { @@ -263,7 +263,7 @@ export const config: UserConfig = { link: "/componentsguide/mapcontrols/toggle/", }, { - text: "ol-videorecorder-control", + text: "ol-video-recorder-control", link: "/componentsguide/mapcontrols/videorecorder/", }, { @@ -275,11 +275,11 @@ export const config: UserConfig = { link: "/componentsguide/mapcontrols/zoom/", }, { - text: "ol-zoomslider-control", + text: "ol-zoom-slider-control", link: "/componentsguide/mapcontrols/zoomslider/", }, { - text: "ol-zoomtoextent-control", + text: "ol-zoom-to-extent-control", link: "/componentsguide/mapcontrols/zoomtoextent/", }, ], @@ -357,7 +357,7 @@ export const config: UserConfig = { collapsed: true, items: [ { - text: "ol-interaction-clusterselect", + text: "ol-interaction-cluster-select", link: "/componentsguide/interactions/clusterselect/", }, { diff --git a/docs/componentsguide/geolocation/index.md b/docs/componentsguide/geolocation/index.md index 812eeecd..bfbb4c89 100644 --- a/docs/componentsguide/geolocation/index.md +++ b/docs/componentsguide/geolocation/index.md @@ -1,4 +1,4 @@ -# ol-geolocation +# ol-geo-location > HTML5 Geolocation wrapper @@ -24,9 +24,9 @@ import GeoLocationDemo from "@demos/GeoLocationDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| ------------------ | :-------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| ------------------- | :-------------------: | +| `` | `` | ::: code-group @@ -53,7 +53,7 @@ You have access to all Events from the underlying OpenLayers Geolocation API. Check out [the official OpenLayers docs](https://openlayers.org/en/latest/apidoc/module-ol_Geolocation-Geolocation.html) to see the available events tht will be fired. ```html - + ``` ## Methods @@ -66,7 +66,7 @@ To access the source, you can use a `ref()` as shown below: ```vue diff --git a/docs/componentsguide/interactions/clusterselect/index.md b/docs/componentsguide/interactions/clusterselect/index.md index fe899f13..3a784cf6 100644 --- a/docs/componentsguide/interactions/clusterselect/index.md +++ b/docs/componentsguide/interactions/clusterselect/index.md @@ -1,4 +1,4 @@ -# ol-interaction-clusterselect +# ol-interaction-cluster-select > Interaction for selecting vector cluster features @@ -22,9 +22,9 @@ import AnimatedClusterDemo from "@demos/AnimatedClusterDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| -------------------------------- | :-----------------------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| --------------------------------- | :-----------------------------------------: | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/layers/animatedclusterlayer/index.md b/docs/componentsguide/layers/animatedclusterlayer/index.md index 303c5f76..848d117e 100644 --- a/docs/componentsguide/layers/animatedclusterlayer/index.md +++ b/docs/componentsguide/layers/animatedclusterlayer/index.md @@ -1,7 +1,7 @@ -# ol-animated-clusterlayer +# ol-animated-cluster-layer -`ol-animated-clusterlayer` is a layer that animates clusters on zoom change. -`ol-interaction-clusterselect`. is a select interaction. +`ol-animated-cluster-layer` is a layer that animates clusters on zoom change. +`ol-interaction-cluster-select`. is a select interaction. On select cluster springs apart to reveal the features. The revealed features are themselves selectable. Revealed features are themselves a cluster with an attribute 'features' that contain the original feature. @@ -24,9 +24,9 @@ import AnimatedClusterDemo from "@demos/AnimatedClusterDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| ---------------------------- | :-------------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| ----------------------------- | :-------------------------------: | +| `` | `` | ::: code-group @@ -49,7 +49,7 @@ You can find more information in the [performance section for `ol-source-vector` > - + @@ -154,5 +154,5 @@ You have access to all Events from the underlying `Cluster` source. Check out [the official OpenLayers docs](https://openlayers.org/en/latest/apidoc/module-ol_source_Cluster-Cluster.html) to see the available events tht will be fired. ```html - + ``` diff --git a/docs/componentsguide/mapcontrols/layerswitcher/index.md b/docs/componentsguide/mapcontrols/layerswitcher/index.md index e3d07bb1..9967bd21 100644 --- a/docs/componentsguide/mapcontrols/layerswitcher/index.md +++ b/docs/componentsguide/mapcontrols/layerswitcher/index.md @@ -1,4 +1,4 @@ -# ol-layerswitcher-control +# ol-layer-switcher-control > A control for switching between layers. @@ -19,9 +19,9 @@ import LayerswitcherControlDemo from "@demos/LayerswitcherControlDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -|------------------------------|:--------------------------------------:| -| `` | `` | +| Plugin Usage | Explicit Import | +| ----------------------------- | :------------------------------------: | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/layerswitcherimage/index.md b/docs/componentsguide/mapcontrols/layerswitcherimage/index.md index 4f9eb4a0..3ec642f4 100644 --- a/docs/componentsguide/mapcontrols/layerswitcherimage/index.md +++ b/docs/componentsguide/mapcontrols/layerswitcherimage/index.md @@ -1,4 +1,4 @@ -# ol-layerswitcherimage-control +# ol-layer-switcher-image-control > A control for switching between layers. @@ -23,9 +23,9 @@ import LayerswitcherimageControlDemo from "@demos/LayerswitcherimageControlDemo. ## Usage -| Plugin Usage | Explicit Import | -| --------------------------------- | :-----------------------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| ----------------------------------- | :-----------------------------------------: | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/mouseposition/index.md b/docs/componentsguide/mapcontrols/mouseposition/index.md index 4d9c9e0d..01c8fba9 100644 --- a/docs/componentsguide/mapcontrols/mouseposition/index.md +++ b/docs/componentsguide/mapcontrols/mouseposition/index.md @@ -1,4 +1,4 @@ -# ol-mouseposition-control +# ol-mouse-position-control > A Mouse Position control for OpenLayers. @@ -19,9 +19,9 @@ import MousepositionControlDemo from "@demos/MousepositionControlDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| ---------------------------- | :------------------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| ----------------------------- | :------------------------------------: | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/overviewmap/index.md b/docs/componentsguide/mapcontrols/overviewmap/index.md index 40fdd2d6..7c0517c6 100644 --- a/docs/componentsguide/mapcontrols/overviewmap/index.md +++ b/docs/componentsguide/mapcontrols/overviewmap/index.md @@ -1,4 +1,4 @@ -# ol-overviewmap-control +# ol-overview-map-control > A Overview Map control for OpenLayers. @@ -19,9 +19,9 @@ import OverviewmapControlDemo from "@demos/OverviewmapControlDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| -------------------------- | :----------------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| --------------------------- | :----------------------------------: | +| `` | `` | ::: code-group @@ -52,9 +52,9 @@ To access the source, you can use a `ref()` as shown below: ```vue diff --git a/docs/componentsguide/mapcontrols/printdialog/index.md b/docs/componentsguide/mapcontrols/printdialog/index.md index 86d11fc9..cbcde3e2 100644 --- a/docs/componentsguide/mapcontrols/printdialog/index.md +++ b/docs/componentsguide/mapcontrols/printdialog/index.md @@ -1,4 +1,4 @@ -# ol-printdialog-control +# ol-print-dialog-control > A print dialog to print the current map canvas content. @@ -19,9 +19,9 @@ import PrintdialogControlDemo from "@demos/PrintdialogControlDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| -------------------------- | :----------------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| --------------------------- | :----------------------------------: | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/videorecorder/index.md b/docs/componentsguide/mapcontrols/videorecorder/index.md index f2052cd3..9bb71ec6 100644 --- a/docs/componentsguide/mapcontrols/videorecorder/index.md +++ b/docs/componentsguide/mapcontrols/videorecorder/index.md @@ -1,4 +1,4 @@ -# ol-videorecorder-control +# ol-video-recorder-control > A simple toggle control The control can be created with an interaction to control its activation. @@ -19,9 +19,9 @@ import VideorecorderControlDemo from "@demos/VideorecorderControlDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| ---------------------------- | :------------------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| ----------------------------- | :------------------------------------: | +| `` | `` | ::: code-group @@ -52,7 +52,7 @@ You have access to all Events from the underlying control. Check out [the official docs](https://viglino.github.io/ol-ext/doc/doc-pages/ol.control.VideoRecorder.html) to see the available events tht will be fired. ```html - + ``` ## Methods @@ -65,7 +65,7 @@ To access the source, you can use a `ref()` as shown below: ```vue diff --git a/docs/componentsguide/mapcontrols/zoomslider/index.md b/docs/componentsguide/mapcontrols/zoomslider/index.md index e03750ea..50d17608 100644 --- a/docs/componentsguide/mapcontrols/zoomslider/index.md +++ b/docs/componentsguide/mapcontrols/zoomslider/index.md @@ -1,4 +1,4 @@ -# ol-zoomslider-control +# ol-zoom-slider-control > A Zoom Slider control for OpenLayers. @@ -19,9 +19,9 @@ import ZoomsliderControlDemo from "@demos/ZoomsliderControlDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| ------------------------- | :---------------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| -------------------------- | :---------------------------------: | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/mapcontrols/zoomtoextent/index.md b/docs/componentsguide/mapcontrols/zoomtoextent/index.md index 2950b848..669c63a6 100644 --- a/docs/componentsguide/mapcontrols/zoomtoextent/index.md +++ b/docs/componentsguide/mapcontrols/zoomtoextent/index.md @@ -1,4 +1,4 @@ -# ol-zoomtoextent-control +# ol-zoom-to-extent-control > A Zoom to extent control for OpenLayers. @@ -19,9 +19,9 @@ import ZoomtoextentControlDemo from "@demos/ZoomtoextentControlDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| --------------------------- | :-----------------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| ----------------------------- | :-----------------------------------: | +| `` | `` | ::: code-group diff --git a/docs/componentsguide/sources/bing/index.md b/docs/componentsguide/sources/bing/index.md index 6e100f9a..0773bd73 100644 --- a/docs/componentsguide/sources/bing/index.md +++ b/docs/componentsguide/sources/bing/index.md @@ -1,8 +1,8 @@ -# ol-source-bingmaps +# ol-source-bing-maps > Layer source for [Bing Maps API](https://www.bing.com/maps) -`ol-source-bingmaps` adds ability to display tile data from Bing Maps. To use +`ol-source-bing-maps` adds ability to display tile data from Bing Maps. To use this source you should get **API key** at https://www.bingmapsportal.com. [[toc]] @@ -23,11 +23,11 @@ import BingMapsDemo from "@demos/BingMapsDemo.vue" ## Usage -| Plugin Usage | Explicit Import | -| ---------------------- | :--------------------------: | -| `` | `` | +| Plugin Usage | Explicit Import | +| ----------------------- | :--------------------------: | +| `` | `` | -Example of `ol-source-bingmaps` usage +Example of `ol-source-bing-maps` usage ::: code-group @@ -52,7 +52,7 @@ The property `key` from OpenLayers BingMaps is exposed as `apiKey` as the `key` Please refer to the `key` property [in the official OpenLayers docs](https://openlayers.org/en/latest/apidoc/module-ol_source_BingMaps-BingMaps.html) but pass it as `apiKey`. ```html - + ``` ## Events @@ -61,7 +61,7 @@ You have access to all Events from the underlying source. Check out [the official OpenLayers docs](https://openlayers.org/en/latest/apidoc/module-ol_source_BingMaps-BingMaps.html) to see the available events tht will be fired. ```html - + ``` ## Methods @@ -74,7 +74,7 @@ To access the source, you can use a `ref()` as shown below: ```vue diff --git a/src/components/animations/index.ts b/src/components/animations/index.ts index 6af9a12c..987690cd 100644 --- a/src/components/animations/index.ts +++ b/src/components/animations/index.ts @@ -7,15 +7,16 @@ import OlAnimationSlide from "./OlAnimationSlide.vue"; import OlAnimationTeleport from "./OlAnimationTeleport.vue"; import OlAnimationZoom from "./OlAnimationZoom.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; +import { registerWithAliases } from "../registerWithAliases"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlAnimationDrop", OlAnimationDrop); - app.component("OlAnimationFade", OlAnimationFade); - app.component("OlAnimationPath", OlAnimationPath); - app.component("OlAnimationShake", OlAnimationShake); - app.component("OlAnimationSlide", OlAnimationSlide); - app.component("OlAnimationTeleport", OlAnimationTeleport); - app.component("OlAnimationZoom", OlAnimationZoom); + registerWithAliases(app, "OlAnimationDrop", OlAnimationDrop); + registerWithAliases(app, "OlAnimationFade", OlAnimationFade); + registerWithAliases(app, "OlAnimationPath", OlAnimationPath); + registerWithAliases(app, "OlAnimationShake", OlAnimationShake); + registerWithAliases(app, "OlAnimationSlide", OlAnimationSlide); + registerWithAliases(app, "OlAnimationTeleport", OlAnimationTeleport); + registerWithAliases(app, "OlAnimationZoom", OlAnimationZoom); if (options) { app.provide("ol-options", options); diff --git a/src/components/geometries/index.ts b/src/components/geometries/index.ts index ab19c2a8..7c9f2571 100644 --- a/src/components/geometries/index.ts +++ b/src/components/geometries/index.ts @@ -7,15 +7,16 @@ import OlGeomMultiPolygon from "./OlGeomMultiPolygon.vue"; import OlGeomPoint from "./OlGeomPoint.vue"; import OlGeomPolygon from "./OlGeomPolygon.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; +import { registerWithAliases } from "../registerWithAliases"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlGeomCircle", OlGeomCircle); - app.component("OlGeomLineString", OlGeomLineString); - app.component("OlGeomMultiLineString", OlGeomMultiLineString); - app.component("OlGeomMultiPoint", OlGeomMultiPoint); - app.component("OlGeomMultiPolygon", OlGeomMultiPolygon); - app.component("OlGeomPoint", OlGeomPoint); - app.component("OlGeomPolygon", OlGeomPolygon); + registerWithAliases(app, "OlGeomCircle", OlGeomCircle); + registerWithAliases(app, "OlGeomLineString", OlGeomLineString); + registerWithAliases(app, "OlGeomMultiLineString", OlGeomMultiLineString); + registerWithAliases(app, "OlGeomMultiPoint", OlGeomMultiPoint); + registerWithAliases(app, "OlGeomMultiPolygon", OlGeomMultiPolygon); + registerWithAliases(app, "OlGeomPoint", OlGeomPoint); + registerWithAliases(app, "OlGeomPolygon", OlGeomPolygon); if (options) { app.provide("ol-options", options); diff --git a/src/components/layers/index.ts b/src/components/layers/index.ts index d67cc679..2a889949 100644 --- a/src/components/layers/index.ts +++ b/src/components/layers/index.ts @@ -10,18 +10,19 @@ import OlVectorImageLayer from "./OlVectorImageLayer.vue"; import OlWebglTileLayer from "./OlWebglTileLayer.vue"; import OlWebglVectorLayer from "./OlWebglVectorLayer.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; +import { registerWithAliases } from "../registerWithAliases"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlAnimatedClusterLayer", OlAnimatedClusterLayer); - app.component("OlHeatmapLayer", OlHeatmapLayer); - app.component("OlImageLayer", OlImageLayer); - app.component("OlLayerGroup", OlLayerGroup); - app.component("OlTileLayer", OlTileLayer); - app.component("OlVectorImageLayer", OlVectorImageLayer); - app.component("OlVectorLayer", OlVectorLayer); - app.component("OlVectorTileLayer", OlVectorTileLayer); - app.component("OlWebglTileLayer", OlWebglTileLayer); - app.component("OlWebglVectorLayer", OlWebglVectorLayer); + registerWithAliases(app, "OlAnimatedClusterLayer", OlAnimatedClusterLayer); + registerWithAliases(app, "OlHeatmapLayer", OlHeatmapLayer); + registerWithAliases(app, "OlImageLayer", OlImageLayer); + registerWithAliases(app, "OlLayerGroup", OlLayerGroup); + registerWithAliases(app, "OlTileLayer", OlTileLayer); + registerWithAliases(app, "OlVectorImageLayer", OlVectorImageLayer); + registerWithAliases(app, "OlVectorLayer", OlVectorLayer); + registerWithAliases(app, "OlVectorTileLayer", OlVectorTileLayer); + registerWithAliases(app, "OlWebglTileLayer", OlWebglTileLayer); + registerWithAliases(app, "OlWebglVectorLayer", OlWebglVectorLayer); if (options) { app.provide("ol-options", options); diff --git a/src/components/map/index.ts b/src/components/map/index.ts index 5798bf20..ac1e9fad 100644 --- a/src/components/map/index.ts +++ b/src/components/map/index.ts @@ -6,14 +6,15 @@ import OlOverlay from "./OlOverlay.vue"; import OlProjectionRegister from "./OlProjectionRegister.vue"; import OlView from "./OlView.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; +import { registerWithAliases } from "../registerWithAliases"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlFeature", OlFeature); - app.component("OlGeoLocation", OlGeoLocation); - app.component("OlMap", OlMap); - app.component("OlOverlay", OlOverlay); - app.component("OlProjectionRegister", OlProjectionRegister); - app.component("OlView", OlView); + registerWithAliases(app, "OlFeature", OlFeature); + registerWithAliases(app, "OlGeoLocation", OlGeoLocation); + registerWithAliases(app, "OlMap", OlMap); + registerWithAliases(app, "OlOverlay", OlOverlay); + registerWithAliases(app, "OlProjectionRegister", OlProjectionRegister); + registerWithAliases(app, "OlView", OlView); if (options) { app.provide("ol-options", options); diff --git a/src/components/mapControls/index.ts b/src/components/mapControls/index.ts index 968e751f..76a5180b 100644 --- a/src/components/mapControls/index.ts +++ b/src/components/mapControls/index.ts @@ -21,29 +21,34 @@ import OlZoomControl from "./OlZoomControl.vue"; import OlZoomSliderControl from "./OlZoomSliderControl.vue"; import OlZoomToExtentControl from "./OlZoomToExtentControl.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; +import { registerWithAliases } from "../registerWithAliases"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlAttributionControl", OlAttributionControl); - app.component("OlFullScreenControl", OlFullScreenControl); - app.component("OlMousePositionControl", OlMousePositionControl); - app.component("OlOverviewMapControl", OlOverviewMapControl); - app.component("OlScaleLineControl", OlScaleLineControl); - app.component("OlZoomControl", OlZoomControl); - app.component("OlZoomSliderControl", OlZoomSliderControl); - app.component("OlZoomToExtentControl", OlZoomToExtentControl); - app.component("OlRotateControl", OlRotateControl); - app.component("OlContextMenuControl", OlContextMenuControl); - app.component("OlSearchControl", OlSearchControl); - app.component("OlSwipeControl", OlSwipeControl); - app.component("OlControlBar", OlControlBar); - app.component("OlToggleControl", OlToggleControl); - app.component("OlButtonControl", OlButtonControl); - app.component("OlPrintDialogControl", OlPrintDialogControl); - app.component("OlProfileControl", OlProfileControl); - app.component("OlVideoRecorderControl", OlVideoRecorderControl); - app.component("OlLayerSwitcherControl", OlLayerSwitcherControl); - app.component("OlLayerSwitcherImageControl", OlLayerSwitcherImageControl); - app.component("OlZoneControl", OlZoneControl); + registerWithAliases(app, "OlAttributionControl", OlAttributionControl); + registerWithAliases(app, "OlFullScreenControl", OlFullScreenControl); + registerWithAliases(app, "OlMousePositionControl", OlMousePositionControl); + registerWithAliases(app, "OlOverviewMapControl", OlOverviewMapControl); + registerWithAliases(app, "OlScaleLineControl", OlScaleLineControl); + registerWithAliases(app, "OlZoomControl", OlZoomControl); + registerWithAliases(app, "OlZoomSliderControl", OlZoomSliderControl); + registerWithAliases(app, "OlZoomToExtentControl", OlZoomToExtentControl); + registerWithAliases(app, "OlRotateControl", OlRotateControl); + registerWithAliases(app, "OlContextMenuControl", OlContextMenuControl); + registerWithAliases(app, "OlSearchControl", OlSearchControl); + registerWithAliases(app, "OlSwipeControl", OlSwipeControl); + registerWithAliases(app, "OlControlBar", OlControlBar); + registerWithAliases(app, "OlToggleControl", OlToggleControl); + registerWithAliases(app, "OlButtonControl", OlButtonControl); + registerWithAliases(app, "OlPrintDialogControl", OlPrintDialogControl); + registerWithAliases(app, "OlProfileControl", OlProfileControl); + registerWithAliases(app, "OlVideoRecorderControl", OlVideoRecorderControl); + registerWithAliases(app, "OlLayerSwitcherControl", OlLayerSwitcherControl); + registerWithAliases( + app, + "OlLayerSwitcherImageControl", + OlLayerSwitcherImageControl, + ); + registerWithAliases(app, "OlZoneControl", OlZoneControl); if (options) { app.provide("ol-options", options); diff --git a/src/components/registerWithAliases.ts b/src/components/registerWithAliases.ts new file mode 100644 index 00000000..d615433a --- /dev/null +++ b/src/components/registerWithAliases.ts @@ -0,0 +1,29 @@ +import type { App, Component } from "vue"; + +/** + * Converts a PascalCase name to both standard kebab-case and split-abbreviation kebab-case aliases. + * E.g. OlWMSLayer -> ["ol-wms-layer", "ol-w-m-s-layer"] + */ +export function pascalToKebabWithAbbr(name: string): string[] { + // Standard kebab-case (OlWMSLayer -> ol-wms-layer) + const kebab = name + .replace(/([a-z0-9])([A-Z])/g, "$1-$2") + .replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2") + .toLowerCase(); + // Only one alias is needed now, as abbreviations are grouped + return [kebab]; +} + +/** + * Registers a component with all kebab-case and split-abbreviation aliases, and the original name. + */ +export function registerWithAliases( + app: App, + name: string, + component: Component, +) { + for (const alias of pascalToKebabWithAbbr(name)) { + app.component(alias, component); + } + app.component(name, component); +} diff --git a/src/components/sources/index.ts b/src/components/sources/index.ts index e0f23892..0a030ebe 100644 --- a/src/components/sources/index.ts +++ b/src/components/sources/index.ts @@ -16,24 +16,25 @@ import OlSourceVectorTile from "./OlSourceVectorTile.vue"; import OlSourceXYZ from "./OlSourceXYZ.vue"; import OlSourceWMTS from "./OlSourceWMTS.vue"; import type { Vue3OpenlayersGlobalOptions } from "@/types"; +import { registerWithAliases } from "../registerWithAliases"; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlSourceBingMaps", OlSourceBingMaps); - app.component("OlSourceCluster", OlSourceCluster); - app.component("OlSourceImageStatic", OlSourceImageStatic); - app.component("OlSourceImageWMS", OlSourceImageWMS); - app.component("OlSourceOSM", OlSourceOSM); - app.component("OlSourceStadiaMaps", OlSourceStadiaMaps); - app.component("OlSourceTianditu", OlSourceTianditu); - app.component("OlSourceTileArcGISRest", OlSourceTileArcGISRest); - app.component("OlSourceTileDebug", OlSourceTileDebug); - app.component("OlSourceGeoTIFF", OlSourceGeoTIFF); - app.component("OlSourceTileJSON", OlSourceTileJSON); - app.component("OlSourceTileWMS", OlSourceTileWMS); - app.component("OlSourceVector", OlSourceVector); - app.component("OlSourceVectorTile", OlSourceVectorTile); - app.component("OlSourceXYZ", OlSourceXYZ); - app.component("OlSourceWMTS", OlSourceWMTS); + registerWithAliases(app, "OlSourceBingMaps", OlSourceBingMaps); + registerWithAliases(app, "OlSourceCluster", OlSourceCluster); + registerWithAliases(app, "OlSourceImageStatic", OlSourceImageStatic); + registerWithAliases(app, "OlSourceImageWMS", OlSourceImageWMS); + registerWithAliases(app, "OlSourceOSM", OlSourceOSM); + registerWithAliases(app, "OlSourceStadiaMaps", OlSourceStadiaMaps); + registerWithAliases(app, "OlSourceTianditu", OlSourceTianditu); + registerWithAliases(app, "OlSourceTileArcGISRest", OlSourceTileArcGISRest); + registerWithAliases(app, "OlSourceTileDebug", OlSourceTileDebug); + registerWithAliases(app, "OlSourceGeoTIFF", OlSourceGeoTIFF); + registerWithAliases(app, "OlSourceTileJSON", OlSourceTileJSON); + registerWithAliases(app, "OlSourceTileWMS", OlSourceTileWMS); + registerWithAliases(app, "OlSourceVector", OlSourceVector); + registerWithAliases(app, "OlSourceVectorTile", OlSourceVectorTile); + registerWithAliases(app, "OlSourceXYZ", OlSourceXYZ); + registerWithAliases(app, "OlSourceWMTS", OlSourceWMTS); if (options) { app.provide("ol-options", options); diff --git a/src/components/styles/index.ts b/src/components/styles/index.ts index c774be1d..4a2bd934 100644 --- a/src/components/styles/index.ts +++ b/src/components/styles/index.ts @@ -15,6 +15,7 @@ import type { RadialGradient, LinearGradient, } from "./OlStyleFill.vue"; +import { registerWithAliases } from "../registerWithAliases"; type OverrideStyleFunction = ( feature: FeatureLike, @@ -23,13 +24,13 @@ type OverrideStyleFunction = ( ) => Style | Style[] | void; function install(app: App, options?: Vue3OpenlayersGlobalOptions) { - app.component("OlStyle", OlStyle); - app.component("OlStyleCircle", OlStyleCircle); - app.component("OlStyleStroke", OlStyleStroke); - app.component("OlStyleFill", OlStyleFill); - app.component("OlStyleIcon", OlStyleIcon); - app.component("OlStyleText", OlStyleText); - app.component("OlStyleFlowLine", OlStyleFlowLine); + registerWithAliases(app, "OlStyle", OlStyle); + registerWithAliases(app, "OlStyleCircle", OlStyleCircle); + registerWithAliases(app, "OlStyleStroke", OlStyleStroke); + registerWithAliases(app, "OlStyleFill", OlStyleFill); + registerWithAliases(app, "OlStyleIcon", OlStyleIcon); + registerWithAliases(app, "OlStyleText", OlStyleText); + registerWithAliases(app, "OlStyleFlowLine", OlStyleFlowLine); if (options) { app.provide("ol-options", options); diff --git a/src/demos/AnimatedClusterDemo.vue b/src/demos/AnimatedClusterDemo.vue index 434b8003..506312d1 100644 --- a/src/demos/AnimatedClusterDemo.vue +++ b/src/demos/AnimatedClusterDemo.vue @@ -16,7 +16,7 @@ - - + - + - + diff --git a/src/demos/AnimatedClusterDemo2.vue b/src/demos/AnimatedClusterDemo2.vue index aab53595..ff019fe7 100644 --- a/src/demos/AnimatedClusterDemo2.vue +++ b/src/demos/AnimatedClusterDemo2.vue @@ -19,15 +19,15 @@ - + - + - + - + @@ -65,6 +65,7 @@ import { arrayWith50000Points } from "./points"; import { GeoJSON } from "ol/format"; import type { FeatureLike } from "ol/Feature"; import type { SelectEvent } from "ol/interaction/Select"; +import type { Style } from "ol/style"; const center = ref([40, 40]); const projection = ref("EPSG:4326"); @@ -94,7 +95,7 @@ const geoJsonFeatures = computed(() => { return geoJson.readFeatures(providerFeatureCollection); }); -const overrideStyleFunction = (feature: FeatureLike, style) => { +const overrideStyleFunction = (feature: FeatureLike, style: Style) => { const clusteredFeatures = feature.get("features"); const size = clusteredFeatures.length; diff --git a/src/demos/AppDemo.vue b/src/demos/AppDemo.vue index 6b5542b1..70ff9b6d 100644 --- a/src/demos/AppDemo.vue +++ b/src/demos/AppDemo.vue @@ -19,7 +19,7 @@ :layerList="layerList" /> - + - - + + - + - + - + - - + - + - + - - + - diff --git a/src/demos/ControlBarDemo.vue b/src/demos/ControlBarDemo.vue index 39f2423a..ca537b40 100644 --- a/src/demos/ControlBarDemo.vue +++ b/src/demos/ControlBarDemo.vue @@ -41,8 +41,8 @@ title="LineString" :onToggle="(active) => changeDrawType(active, 'LineString')" /> - - + +
- + diff --git a/src/demos/GeoLocationDemo.vue b/src/demos/GeoLocationDemo.vue index da6e8deb..ca1382af 100644 --- a/src/demos/GeoLocationDemo.vue +++ b/src/demos/GeoLocationDemo.vue @@ -16,7 +16,7 @@ - + - + diff --git a/src/demos/LayerswitcherControlDemo.vue b/src/demos/LayerswitcherControlDemo.vue index 99864e84..d99d0c4d 100644 --- a/src/demos/LayerswitcherControlDemo.vue +++ b/src/demos/LayerswitcherControlDemo.vue @@ -27,7 +27,7 @@ - + diff --git a/src/demos/LayerswitcherimageControlDemo.vue b/src/demos/LayerswitcherimageControlDemo.vue index 70e67e80..71ebe061 100644 --- a/src/demos/LayerswitcherimageControlDemo.vue +++ b/src/demos/LayerswitcherimageControlDemo.vue @@ -15,7 +15,7 @@ - @@ -42,7 +42,7 @@ - + diff --git a/src/demos/MousepositionControlDemo.vue b/src/demos/MousepositionControlDemo.vue index 7cae6888..13b08a92 100644 --- a/src/demos/MousepositionControlDemo.vue +++ b/src/demos/MousepositionControlDemo.vue @@ -10,7 +10,7 @@ - + diff --git a/src/demos/OverviewmapControlDemo.vue b/src/demos/OverviewmapControlDemo.vue index 5b1ac7e6..71a544f8 100644 --- a/src/demos/OverviewmapControlDemo.vue +++ b/src/demos/OverviewmapControlDemo.vue @@ -11,11 +11,11 @@ - + - + diff --git a/src/demos/PrintdialogControlDemo.vue b/src/demos/PrintdialogControlDemo.vue index 364b6b71..e3699ab3 100644 --- a/src/demos/PrintdialogControlDemo.vue +++ b/src/demos/PrintdialogControlDemo.vue @@ -10,7 +10,7 @@ - + diff --git a/src/demos/VideorecorderControlDemo.vue b/src/demos/VideorecorderControlDemo.vue index 9708573c..1c233b09 100644 --- a/src/demos/VideorecorderControlDemo.vue +++ b/src/demos/VideorecorderControlDemo.vue @@ -5,7 +5,7 @@ - + diff --git a/src/demos/ZoomsliderControlDemo.vue b/src/demos/ZoomsliderControlDemo.vue index b22495bf..8a8e7e9b 100644 --- a/src/demos/ZoomsliderControlDemo.vue +++ b/src/demos/ZoomsliderControlDemo.vue @@ -5,7 +5,7 @@ - + diff --git a/src/demos/ZoomtoextentControlDemo.vue b/src/demos/ZoomtoextentControlDemo.vue index 3c5fc96c..77d5f2d4 100644 --- a/src/demos/ZoomtoextentControlDemo.vue +++ b/src/demos/ZoomtoextentControlDemo.vue @@ -5,7 +5,7 @@ - + From 7bd1d5789e3c2c7b24b0998a43abc5cacb425ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Fri, 22 Aug 2025 09:37:02 +0300 Subject: [PATCH 11/15] Correct package.json exports --- package.json | 56 +++++++++++++++++++++++++++++++++++++++++--------- src/types.ts | 2 +- vite.config.ts | 1 + 3 files changed, 48 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 74d2e8a0..2e001404 100644 --- a/package.json +++ b/package.json @@ -28,27 +28,63 @@ "license": "MIT", "private": false, "type": "module", - "main": "./dist/vue3-openlayers.umd.js", + "main": "./dist/vue3-openlayers.cjs.js", "module": "./dist/vue3-openlayers.es.js", "types": "./dist/index.d.ts", "exports": { ".": { - "import": "./dist/index.es.js", - "require": "./dist/index.cjs", + "import": "./dist/vue3-openlayers.es.js", + "require": "./dist/vue3-openlayers.cjs.js", "types": "./dist/index.d.ts" }, + "./animations/*": { + "import": "./dist/esm/animations/*.js", + "require": "./dist/cjs/animations/*.js", + "types": "./dist/components/animations/*.d.ts" + }, + "./controls/*": { + "import": "./dist/esm/controls/*.js", + "require": "./dist/cjs/controls/*.js", + "types": "./dist/components/controls/*.d.ts" + }, + "./geometries/*": { + "import": "./dist/esm/geometries/*.js", + "require": "./dist/cjs/geometries/*.js", + "types": "./dist/components/geometries/*.d.ts" + }, + "./interactions/*": { + "import": "./dist/esm/interactions/*.js", + "require": "./dist/cjs/interactions/*.js", + "types": "./dist/components/interactions/*.d.ts" + }, + "./layers/*": { + "import": "./dist/esm/layers/*.js", + "require": "./dist/cjs/layers/*.js", + "types": "./dist/components/layers/*.d.ts" + }, + "./map/*": { + "import": "./dist/esm/map/*.js", + "require": "./dist/cjs/map/*.js", + "types": "./dist/components/map/*.d.ts" + }, + "./styles/*": { + "import": "./dist/esm/styles/*.js", + "require": "./dist/cjs/styles/*.js", + "types": "./dist/components/styles/*.d.ts" + }, + "./sources/*": { + "import": "./dist/esm/sources/*.js", + "require": "./dist/cjs/sources/*.js", + "types": "./dist/components/sources/*.d.ts" + }, "./*": { "import": "./dist/esm/*.js", "require": "./dist/cjs/*.js", "types": "./dist/esm/*.d.ts" }, - "./dist/vue3-openlayers.css": { - "import": "./dist/styles.css", - "require": "./dist/styles.css" - }, - "./styles.css": { - "import": "./dist/styles.css", - "require": "./dist/styles.css" + "./vue3-openlayers.css": { + "import": "./dist/style.css", + "require": "./dist/style.css" } }, "files": [ diff --git a/src/types.ts b/src/types.ts index 2bcb3252..d2d5ae54 100644 --- a/src/types.ts +++ b/src/types.ts @@ -31,5 +31,5 @@ export type LayerSwitcherOptions = { name?: string; allwaysOnTop?: boolean; // typo in original code, see https://github.com/Viglino/ol-ext/issues/1128 baseLayer?: boolean; - displayInLayerSwitcher: boolean; + displayInLayerSwitcher?: boolean; }; diff --git a/vite.config.ts b/vite.config.ts index f8e131e0..3cd53444 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ staticImport: true, // rollupTypes: true, insertTypesEntry: true, + cleanVueFileName: true, }), vue(), ...(process.env.VITE_ANALYZE From 62e3b86ebc4a092600b61a9e7fa7e75a9653ee5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Fri, 22 Aug 2025 10:42:47 +0300 Subject: [PATCH 12/15] Exclude __tests__ from d.ts generation --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 3cd53444..adaf52af 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,7 +11,7 @@ export default defineConfig({ // copyDtsFiles: false, outDir: ["dist"], // include: ['src/index.ts'], - exclude: ["src/main.ts"], + exclude: ["src/main.ts", "**/__tests__/**"], aliasesExclude: [/^@demos/], staticImport: true, // rollupTypes: true, From 4d0f39ab5715a2e2ec54b15e1c5d4a391571a6ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygimantas=20Ar=C5=ABna?= Date: Wed, 27 Aug 2025 14:48:28 +0300 Subject: [PATCH 13/15] Fixed the remaining build issues --- package.json | 82 ++++++++++-- .../interaction/OlInteractionModify.vue | 2 +- .../interaction/OlInteractionSelect.vue | 2 +- src/composables/useGeometry.ts | 2 +- src/composables/useSource.ts | 2 +- vite.config.ts | 118 ++---------------- vite.split.config.ts | 102 ++++++++------- vite.umd.config.ts | 117 +++++++++-------- 8 files changed, 206 insertions(+), 221 deletions(-) diff --git a/package.json b/package.json index e2df2b32..56d50a94 100644 --- a/package.json +++ b/package.json @@ -30,57 +30,117 @@ "type": "module", "main": "./dist/vue3-openlayers.cjs.js", "module": "./dist/vue3-openlayers.es.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "exports": { ".": { "import": "./dist/vue3-openlayers.es.js", "require": "./dist/vue3-openlayers.cjs.js", - "types": "./dist/index.d.ts" + "types": "./dist/types/index.d.ts" + }, + "./animations": { + "import": "./dist/esm/animations/index.js", + "require": "./dist/cjs/animations/index.js", + "types": "./dist/types/components/animations/index.d.ts" }, "./animations/*": { "import": "./dist/esm/animations/*.js", "require": "./dist/cjs/animations/*.js", - "types": "./dist/components/animations/*.d.ts" + "types": "./dist/types/components/animations/*.d.ts" + }, + "./composables": { + "import": "./dist/esm/composables/index.js", + "require": "./dist/cjs/composables/index.js", + "types": "./dist/types/composables/index.d.ts" + }, + "./composables/*": { + "import": "./dist/esm/composables/*.js", + "require": "./dist/cjs/composables/*.js", + "types": "./dist/types/composables/*.d.ts" + }, + "./controls": { + "import": "./dist/esm/controls/index.js", + "require": "./dist/cjs/controls/index.js", + "types": "./dist/types/components/controls/index.d.ts" }, "./controls/*": { "import": "./dist/esm/controls/*.js", "require": "./dist/cjs/controls/*.js", - "types": "./dist/components/controls/*.d.ts" + "types": "./dist/types/components/controls/*.d.ts" + }, + "./geometries": { + "import": "./dist/esm/geometries/index.js", + "require": "./dist/cjs/geometries/index.js", + "types": "./dist/types/components/geometries/index.d.ts" }, "./geometries/*": { "import": "./dist/esm/geometries/*.js", "require": "./dist/cjs/geometries/*.js", - "types": "./dist/components/geometries/*.d.ts" + "types": "./dist/types/components/geometries/*.d.ts" + }, + "./helpers": { + "import": "./dist/esm/helpers/index.js", + "require": "./dist/cjs/helpers/index.js", + "types": "./dist/types/helpers/index.d.ts" + }, + "./helpers/*": { + "import": "./dist/esm/helpers/*.js", + "require": "./dist/cjs/helpers/*.js", + "types": "./dist/types/helpers/*.d.ts" + }, + "./interactions": { + "import": "./dist/esm/interactions/index.js", + "require": "./dist/cjs/interactions/index.js", + "types": "./dist/types/components/interactions/index.d.ts" }, "./interactions/*": { "import": "./dist/esm/interactions/*.js", "require": "./dist/cjs/interactions/*.js", - "types": "./dist/components/interactions/*.d.ts" + "types": "./dist/types/components/interactions/*.d.ts" + }, + "./layers": { + "import": "./dist/esm/layers/index.js", + "require": "./dist/cjs/layers/index.js", + "types": "./dist/types/components/layers/index.d.ts" }, "./layers/*": { "import": "./dist/esm/layers/*.js", "require": "./dist/cjs/layers/*.js", - "types": "./dist/components/layers/*.d.ts" + "types": "./dist/types/components/layers/*.d.ts" + }, + "./map": { + "import": "./dist/esm/map/index.js", + "require": "./dist/cjs/map/index.js", + "types": "./dist/types/components/map/index.d.ts" }, "./map/*": { "import": "./dist/esm/map/*.js", "require": "./dist/cjs/map/*.js", - "types": "./dist/components/map/*.d.ts" + "types": "./dist/types/components/map/*.d.ts" + }, + "./styles": { + "import": "./dist/esm/styles/index.js", + "require": "./dist/cjs/styles/index.js", + "types": "./dist/types/components/styles/index.d.ts" }, "./styles/*": { "import": "./dist/esm/styles/*.js", "require": "./dist/cjs/styles/*.js", - "types": "./dist/components/styles/*.d.ts" + "types": "./dist/types/components/styles/*.d.ts" + }, + "./sources": { + "import": "./dist/esm/sources/index.js", + "require": "./dist/cjs/sources/index.js", + "types": "./dist/types/components/sources/index.d.ts" }, "./sources/*": { "import": "./dist/esm/sources/*.js", "require": "./dist/cjs/sources/*.js", - "types": "./dist/components/sources/*.d.ts" + "types": "./dist/types/components/sources/*.d.ts" }, "./*": { "import": "./dist/esm/*.js", "require": "./dist/cjs/*.js", - "types": "./dist/esm/*.d.ts" + "types": "./dist/types/*.d.ts" }, "./vue3-openlayers.css": { "import": "./dist/style.css", diff --git a/src/components/interaction/OlInteractionModify.vue b/src/components/interaction/OlInteractionModify.vue index a49ee2b5..dfdaf7ee 100644 --- a/src/components/interaction/OlInteractionModify.vue +++ b/src/components/interaction/OlInteractionModify.vue @@ -13,7 +13,7 @@ import { toRefs, watch, } from "vue"; -import Modify, { ModifyEvent, type Options } from "ol/interaction/Modify"; +import Modify, { type ModifyEvent, type Options } from "ol/interaction/Modify"; import type Map from "ol/Map"; import type VectorSource from "ol/source/Vector"; import { diff --git a/src/components/interaction/OlInteractionSelect.vue b/src/components/interaction/OlInteractionSelect.vue index 6e6a18da..7e131cdc 100644 --- a/src/components/interaction/OlInteractionSelect.vue +++ b/src/components/interaction/OlInteractionSelect.vue @@ -4,7 +4,7 @@