From c2e7aef97970bcd24d77bd45d4aa63be177ccb12 Mon Sep 17 00:00:00 2001 From: zouyaoji <370681295@qq.com> Date: Thu, 29 Apr 2021 17:27:21 +0800 Subject: [PATCH] update --- .eslintrc.js | 72 + .gitignore | 2 +- README.md | 34 + index.html | 2 +- package-lock.json | 2448 +- package.json | 18 +- public/Cesium/Cesium.d.ts | 20758 ++++---- public/Cesium/Cesium.js | 2 +- public/Cesium/ThirdParty/Workers/deflate.js | 2 +- public/Cesium/ThirdParty/Workers/inflate.js | 2 +- ...rcType-dc1c5aee.js => ArcType-2b58731c.js} | 0 ...2f.js => AttributeCompression-10c27d9c.js} | 2 +- .../Workers/BoundingRectangle-07202124.js | 1 + .../Workers/BoundingRectangle-7ee12c46.js | 1 - ...ry-c7d4febc.js => BoxGeometry-0609cbde.js} | 2 +- public/Cesium/Workers/Cartesian2-8417ca3d.js | 1 - public/Cesium/Workers/Cartesian2-8646c5a1.js | 1 + public/Cesium/Workers/Check-24483042.js | 1 + public/Cesium/Workers/Check-d18af7c4.js | 1 - .../{Color-b0d12252.js => Color-98c5f877.js} | 2 +- ...4e9f6.js => ComponentDatatype-1a100acd.js} | 2 +- ...CoplanarPolygonGeometryLibrary-32520d7a.js | 1 + ...CoplanarPolygonGeometryLibrary-6c63fe5e.js | 1 - .../CorridorGeometryLibrary-1ea8b9ee.js | 1 + .../CorridorGeometryLibrary-dd337458.js | 1 - .../Workers/CylinderGeometry-7778847f.js | 1 - .../Workers/CylinderGeometry-a5313e27.js | 1 + .../CylinderGeometryLibrary-85e5e690.js | 1 + .../CylinderGeometryLibrary-daf6cec5.js | 1 - ...2ee4ae7.js => EllipseGeometry-8e3bce61.js} | 2 +- .../EllipseGeometryLibrary-2412418f.js | 1 - .../EllipseGeometryLibrary-e452d6b7.js | 1 + ....js => EllipseOutlineGeometry-61cb55e1.js} | 2 +- ...5072b.js => EllipsoidGeodesic-cc216670.js} | 2 +- .../Workers/EllipsoidGeometry-8e9adb8a.js | 1 + .../Workers/EllipsoidGeometry-cb484b79.js | 1 - ...s => EllipsoidOutlineGeometry-b505f2ae.js} | 2 +- .../Workers/EllipsoidRhumbLine-2b7999f3.js | 1 + .../Workers/EllipsoidRhumbLine-8cb2e5a4.js | 1 - ...b.js => EllipsoidTangentPlane-325a8e68.js} | 2 +- ...933de.js => EncodedCartesian3-bf827957.js} | 2 +- .../Workers/FrustumGeometry-00e2e34e.js | 1 - .../Workers/FrustumGeometry-c7d19501.js | 1 + ...19cfe.js => GeometryAttribute-374f805d.js} | 2 +- ...94d8.js => GeometryAttributes-caa08d6c.js} | 2 +- .../Workers/GeometryInstance-6aa9010a.js | 1 + .../Workers/GeometryInstance-d919cab6.js | 1 - .../GeometryOffsetAttribute-718fa138.js | 1 + .../GeometryOffsetAttribute-def3b741.js | 1 - .../Workers/GeometryPipeline-571ff4c9.js | 1 + .../Workers/GeometryPipeline-5e672526.js | 1 - ...-d47ad6f6.js => IndexDatatype-82ceea78.js} | 2 +- .../Workers/IntersectionTests-5394f658.js | 1 + .../Workers/IntersectionTests-7d224a2f.js | 1 - .../{Math-4e53b694.js => Math-d6182036.js} | 2 +- .../Workers/OrientedBoundingBox-18b4901f.js | 1 - .../Workers/OrientedBoundingBox-eb360dc3.js | 1 + .../{Plane-4aa8974d.js => Plane-13ae4b1b.js} | 2 +- ....js => PolygonGeometryLibrary-2a7648d9.js} | 2 +- ...fd1975b.js => PolygonPipeline-97a7160d.js} | 2 +- .../Workers/PolylinePipeline-232a4d9a.js | 1 - .../Workers/PolylinePipeline-3803a6c2.js | 1 + .../PolylineVolumeGeometryLibrary-4d0ebb44.js | 1 + .../PolylineVolumeGeometryLibrary-a2a20b2b.js | 1 - .../Workers/PrimitivePipeline-5ce755e1.js | 1 - .../Workers/PrimitivePipeline-c76ef883.js | 1 + .../RectangleGeometryLibrary-57cd4923.js | 1 + .../RectangleGeometryLibrary-b88eec5f.js | 1 - .../Cesium/Workers/RuntimeError-7f634f5d.js | 1 - .../Cesium/Workers/RuntimeError-88a32665.js | 1 + ...3cbc4e6.js => TerrainEncoding-c552e269.js} | 2 +- public/Cesium/Workers/Transforms-79117a7b.js | 1 + public/Cesium/Workers/Transforms-a73b3b3b.js | 1 - .../Cesium/Workers/VertexFormat-81ec7207.js | 1 + .../Cesium/Workers/VertexFormat-e8cbf5b3.js | 1 - ...01b.js => WallGeometryLibrary-0e5f04d3.js} | 2 +- ...76bb35d1.js => WebGLConstants-95ceb4e9.js} | 0 ...8.js => WebMercatorProjection-66cc0482.js} | 2 +- .../Workers/arrayRemoveDuplicates-0f62a181.js | 1 - .../Workers/arrayRemoveDuplicates-3fea1e5f.js | 1 + .../Workers/cesiumWorkerBootstrapper.js | 2 +- public/Cesium/Workers/combineGeometry.js | 2 +- public/Cesium/Workers/createBoxGeometry.js | 2 +- .../Workers/createBoxOutlineGeometry.js | 2 +- public/Cesium/Workers/createCircleGeometry.js | 2 +- .../Workers/createCircleOutlineGeometry.js | 2 +- .../Workers/createCoplanarPolygonGeometry.js | 2 +- .../createCoplanarPolygonOutlineGeometry.js | 2 +- .../Cesium/Workers/createCorridorGeometry.js | 2 +- .../Workers/createCorridorOutlineGeometry.js | 2 +- .../Cesium/Workers/createCylinderGeometry.js | 2 +- .../Workers/createCylinderOutlineGeometry.js | 2 +- .../Cesium/Workers/createEllipseGeometry.js | 2 +- .../Workers/createEllipseOutlineGeometry.js | 2 +- .../Cesium/Workers/createEllipsoidGeometry.js | 2 +- .../Workers/createEllipsoidOutlineGeometry.js | 2 +- .../Cesium/Workers/createFrustumGeometry.js | 2 +- .../Workers/createFrustumOutlineGeometry.js | 2 +- public/Cesium/Workers/createGeometry.js | 2 +- .../Workers/createGroundPolylineGeometry.js | 2 +- public/Cesium/Workers/createPlaneGeometry.js | 2 +- .../Workers/createPlaneOutlineGeometry.js | 2 +- .../Cesium/Workers/createPolygonGeometry.js | 2 +- .../Workers/createPolygonOutlineGeometry.js | 2 +- .../Cesium/Workers/createPolylineGeometry.js | 2 +- .../Workers/createPolylineVolumeGeometry.js | 2 +- .../createPolylineVolumeOutlineGeometry.js | 2 +- .../Cesium/Workers/createRectangleGeometry.js | 2 +- .../Workers/createRectangleOutlineGeometry.js | 2 +- .../Workers/createSimplePolylineGeometry.js | 2 +- public/Cesium/Workers/createSphereGeometry.js | 2 +- .../Workers/createSphereOutlineGeometry.js | 2 +- .../Workers/createTaskProcessorWorker.js | 2 +- .../createVectorTileClampedPolylines.js | 1 + .../Workers/createVectorTileGeometries.js | 2 +- .../Cesium/Workers/createVectorTilePoints.js | 2 +- .../Workers/createVectorTilePolygons.js | 2 +- .../Workers/createVectorTilePolylines.js | 2 +- ...VerticesFromGoogleEarthEnterpriseBuffer.js | 2 +- .../Workers/createVerticesFromHeightmap.js | 2 +- .../createVerticesFromQuantizedTerrainMesh.js | 2 +- public/Cesium/Workers/createWallGeometry.js | 2 +- .../Workers/createWallOutlineGeometry.js | 2 +- public/Cesium/Workers/decodeDraco.js | 2 +- .../decodeGoogleEarthEnterprisePacket.js | 2 +- public/Cesium/Workers/transcodeCRNToDXT.js | 2 +- .../Cesium/Workers/transferTypedArrayTest.js | 2 +- .../Workers/upsampleQuantizedTerrainMesh.js | 2 +- .../{when-208fe5b0.js => when-54335d57.js} | 2 +- public/favicon.ico | Bin 4286 -> 4286 bytes src/App.vue | 22 +- src/components/HelloWorld.vue | 114 +- src/main.js | 15 - src/main.ts | 18 + src/shims-vue.d.ts | 5 + src/vue-cesium.d.ts | 42445 ++++++++++++++++ tsconfig.json | 15 + vite.config.js => vite.config.ts | 0 138 files changed, 55461 insertions(+), 10698 deletions(-) create mode 100644 .eslintrc.js create mode 100644 README.md rename public/Cesium/Workers/{ArcType-dc1c5aee.js => ArcType-2b58731c.js} (100%) rename public/Cesium/Workers/{AttributeCompression-f02ec82f.js => AttributeCompression-10c27d9c.js} (52%) create mode 100644 public/Cesium/Workers/BoundingRectangle-07202124.js delete mode 100644 public/Cesium/Workers/BoundingRectangle-7ee12c46.js rename public/Cesium/Workers/{BoxGeometry-c7d4febc.js => BoxGeometry-0609cbde.js} (75%) delete mode 100644 public/Cesium/Workers/Cartesian2-8417ca3d.js create mode 100644 public/Cesium/Workers/Cartesian2-8646c5a1.js create mode 100644 public/Cesium/Workers/Check-24483042.js delete mode 100644 public/Cesium/Workers/Check-d18af7c4.js rename public/Cesium/Workers/{Color-b0d12252.js => Color-98c5f877.js} (98%) rename public/Cesium/Workers/{ComponentDatatype-9204e9f6.js => ComponentDatatype-1a100acd.js} (94%) create mode 100644 public/Cesium/Workers/CoplanarPolygonGeometryLibrary-32520d7a.js delete mode 100644 public/Cesium/Workers/CoplanarPolygonGeometryLibrary-6c63fe5e.js create mode 100644 public/Cesium/Workers/CorridorGeometryLibrary-1ea8b9ee.js delete mode 100644 public/Cesium/Workers/CorridorGeometryLibrary-dd337458.js delete mode 100644 public/Cesium/Workers/CylinderGeometry-7778847f.js create mode 100644 public/Cesium/Workers/CylinderGeometry-a5313e27.js create mode 100644 public/Cesium/Workers/CylinderGeometryLibrary-85e5e690.js delete mode 100644 public/Cesium/Workers/CylinderGeometryLibrary-daf6cec5.js rename public/Cesium/Workers/{EllipseGeometry-42ee4ae7.js => EllipseGeometry-8e3bce61.js} (85%) delete mode 100644 public/Cesium/Workers/EllipseGeometryLibrary-2412418f.js create mode 100644 public/Cesium/Workers/EllipseGeometryLibrary-e452d6b7.js rename public/Cesium/Workers/{EllipseOutlineGeometry-ab13c628.js => EllipseOutlineGeometry-61cb55e1.js} (86%) rename public/Cesium/Workers/{EllipsoidGeodesic-8015072b.js => EllipsoidGeodesic-cc216670.js} (53%) create mode 100644 public/Cesium/Workers/EllipsoidGeometry-8e9adb8a.js delete mode 100644 public/Cesium/Workers/EllipsoidGeometry-cb484b79.js rename public/Cesium/Workers/{EllipsoidOutlineGeometry-dd7f7ad1.js => EllipsoidOutlineGeometry-b505f2ae.js} (56%) create mode 100644 public/Cesium/Workers/EllipsoidRhumbLine-2b7999f3.js delete mode 100644 public/Cesium/Workers/EllipsoidRhumbLine-8cb2e5a4.js rename public/Cesium/Workers/{EllipsoidTangentPlane-9123a53b.js => EllipsoidTangentPlane-325a8e68.js} (95%) rename public/Cesium/Workers/{EncodedCartesian3-874933de.js => EncodedCartesian3-bf827957.js} (83%) delete mode 100644 public/Cesium/Workers/FrustumGeometry-00e2e34e.js create mode 100644 public/Cesium/Workers/FrustumGeometry-c7d19501.js rename public/Cesium/Workers/{GeometryAttribute-04a19cfe.js => GeometryAttribute-374f805d.js} (95%) rename public/Cesium/Workers/{GeometryAttributes-b0b294d8.js => GeometryAttributes-caa08d6c.js} (76%) create mode 100644 public/Cesium/Workers/GeometryInstance-6aa9010a.js delete mode 100644 public/Cesium/Workers/GeometryInstance-d919cab6.js create mode 100644 public/Cesium/Workers/GeometryOffsetAttribute-718fa138.js delete mode 100644 public/Cesium/Workers/GeometryOffsetAttribute-def3b741.js create mode 100644 public/Cesium/Workers/GeometryPipeline-571ff4c9.js delete mode 100644 public/Cesium/Workers/GeometryPipeline-5e672526.js rename public/Cesium/Workers/{IndexDatatype-d47ad6f6.js => IndexDatatype-82ceea78.js} (87%) create mode 100644 public/Cesium/Workers/IntersectionTests-5394f658.js delete mode 100644 public/Cesium/Workers/IntersectionTests-7d224a2f.js rename public/Cesium/Workers/{Math-4e53b694.js => Math-d6182036.js} (97%) delete mode 100644 public/Cesium/Workers/OrientedBoundingBox-18b4901f.js create mode 100644 public/Cesium/Workers/OrientedBoundingBox-eb360dc3.js rename public/Cesium/Workers/{Plane-4aa8974d.js => Plane-13ae4b1b.js} (84%) rename public/Cesium/Workers/{PolygonGeometryLibrary-d175a7f1.js => PolygonGeometryLibrary-2a7648d9.js} (93%) rename public/Cesium/Workers/{PolygonPipeline-bfd1975b.js => PolygonPipeline-97a7160d.js} (75%) delete mode 100644 public/Cesium/Workers/PolylinePipeline-232a4d9a.js create mode 100644 public/Cesium/Workers/PolylinePipeline-3803a6c2.js create mode 100644 public/Cesium/Workers/PolylineVolumeGeometryLibrary-4d0ebb44.js delete mode 100644 public/Cesium/Workers/PolylineVolumeGeometryLibrary-a2a20b2b.js delete mode 100644 public/Cesium/Workers/PrimitivePipeline-5ce755e1.js create mode 100644 public/Cesium/Workers/PrimitivePipeline-c76ef883.js create mode 100644 public/Cesium/Workers/RectangleGeometryLibrary-57cd4923.js delete mode 100644 public/Cesium/Workers/RectangleGeometryLibrary-b88eec5f.js delete mode 100644 public/Cesium/Workers/RuntimeError-7f634f5d.js create mode 100644 public/Cesium/Workers/RuntimeError-88a32665.js rename public/Cesium/Workers/{TerrainEncoding-73cbc4e6.js => TerrainEncoding-c552e269.js} (77%) create mode 100644 public/Cesium/Workers/Transforms-79117a7b.js delete mode 100644 public/Cesium/Workers/Transforms-a73b3b3b.js create mode 100644 public/Cesium/Workers/VertexFormat-81ec7207.js delete mode 100644 public/Cesium/Workers/VertexFormat-e8cbf5b3.js rename public/Cesium/Workers/{WallGeometryLibrary-1012701b.js => WallGeometryLibrary-0e5f04d3.js} (80%) rename public/Cesium/Workers/{WebGLConstants-76bb35d1.js => WebGLConstants-95ceb4e9.js} (100%) rename public/Cesium/Workers/{WebMercatorProjection-ffb6b9f8.js => WebMercatorProjection-66cc0482.js} (56%) delete mode 100644 public/Cesium/Workers/arrayRemoveDuplicates-0f62a181.js create mode 100644 public/Cesium/Workers/arrayRemoveDuplicates-3fea1e5f.js create mode 100644 public/Cesium/Workers/createVectorTileClampedPolylines.js rename public/Cesium/Workers/{when-208fe5b0.js => when-54335d57.js} (77%) delete mode 100644 src/main.js create mode 100644 src/main.ts create mode 100644 src/shims-vue.d.ts create mode 100644 src/vue-cesium.d.ts create mode 100644 tsconfig.json rename vite.config.js => vite.config.ts (100%) diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..9833865 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,72 @@ +module.exports = { + env: { + browser: true, + es2021: true, + }, + extends: [ + 'plugin:@typescript-eslint/recommended', + 'plugin:vue/vue3-recommended', + ], + parserOptions: { + ecmaVersion: 12, + parser: '@typescript-eslint/parser', + sourceType: 'module', + }, + plugins: ['vue', '@typescript-eslint'], + rules: { + // js/ts + 'eol-last': 'error', + 'no-trailing-spaces': 'error', + 'comma-style': ['error', 'last'], + // 'comma-dangle': ['error', 'always-multiline'], + quotes: [ + 'error', + 'single', + { avoidEscape: true, allowTemplateLiterals: true }, + ], + camelcase: ['error', { properties: 'never' }], + semi: ['error', 'never'], + indent: ['error', 2, { SwitchCase: 1 }], + 'object-curly-spacing': ['error', 'always'], + 'arrow-parens': ['error', 'as-needed'], + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unused-vars': 'off', + '@typescript-eslint/member-delimiter-style': [ + 'error', + { + multiline: { + delimiter: 'none', + requireLast: false, + }, + singleline: { + delimiter: 'semi', + requireLast: true, + }, + }, + ], + '@typescript-eslint/no-this-alias': 'off', + // vue + 'vue/no-v-html': 'off', + 'vue/singleline-html-element-content-newline': 'off', + 'vue/html-self-closing': [ + 'error', + { + html: { + void: 'never', + normal: 'never', + component: 'always', + }, + }, + ], + 'vue/max-attributes-per-line': [ + 'error', + { + singleline: 4, + multiline: 1, + }, + ], + 'vue/require-default-prop': 'off', + 'vue/html-closing-bracket-spacing': 'error', + }, +}; diff --git a/.gitignore b/.gitignore index 53f7466..d451ff1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ node_modules .DS_Store dist dist-ssr -*.local \ No newline at end of file +*.local diff --git a/README.md b/README.md new file mode 100644 index 0000000..b74b2a5 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# element-plus-vite-starter + +> A starter kit for vue-cesium generated by vue-cli + +
+ +
+ + +This template should help get you started developing with Vue 3 and Typescript in Vite. + +## Recommended IDE Setup + +[VSCode](https://code.visualstudio.com/) + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur). Make sure to enable `vetur.experimental.templateInterpolationService` in settings! + +### If Using ` +