@arcgis/core 4.29.0-next.20231113 → 4.29.0-next.20231115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Camera.js +1 -1
- package/CameraLayout.d.ts +4 -0
- package/CameraLayout.js +5 -0
- package/README.md +14 -108
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/70ef5d24fded13eb918b.js +1 -0
- package/assets/esri/libs/linkchartlayout/lclayout.wasm +0 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/widgets/_FeatureTemplates.scss +0 -7
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/Theme.js +1 -1
- package/chunks/chartUtilsAm5.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/core/accessorSupport/Properties.js +1 -1
- package/core/accessorSupport/Property.js +1 -1
- package/core/accessorSupport/overrideDefaultsFrom.js +5 -0
- package/core/accessorSupport/tracking/Flags.js +1 -1
- package/interfaces.d.ts +158 -65
- package/package.json +2 -2
- package/rest/support/ParameterValue.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/environment/SceneViewEnvironment.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
- package/views/3d/layers/Tiles3DLayerView3D.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/CombinedElevationProvider.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/magnifier/overlay-svg.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/GroupInput.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/assets/esri/core/workers/chunks/0f804e3f888cb4998f46.js +0 -1
- package/widgets/FeatureForm/InputField.d.ts +0 -4
- package/widgets/FeatureForm/InputField.js +0 -5
- package/widgets/FeatureForm/InputFieldGroup.d.ts +0 -4
- package/widgets/FeatureForm/InputFieldGroup.js +0 -5
package/Camera.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{_ as o}from"./chunks/tslib.es6.js";import{ClonableMixin as
|
|
5
|
+
import{_ as o}from"./chunks/tslib.es6.js";import r from"./CameraLayout.js";import{ClonableMixin as t}from"./core/Clonable.js";import{cyclicalDegrees as e}from"./core/Cyclical.js";import{JSONSupport as s}from"./core/JSONSupport.js";import{clamp as i}from"./core/mathUtils.js";import{property as p}from"./core/accessorSupport/decorators/property.js";import{cast as n}from"./core/accessorSupport/decorators/cast.js";import"./core/RandomLCG.js";import"./core/has.js";import{reader as a}from"./core/accessorSupport/decorators/reader.js";import{subclass as l}from"./core/accessorSupport/decorators/subclass.js";import{writer as c}from"./core/accessorSupport/decorators/writer.js";import{ensureNumber as u}from"./core/accessorSupport/ensureType.js";import m from"./geometry/Point.js";let y=class extends(t(s)){constructor(...o){super(...o),this.position=new m([0,0,0]),this.heading=0,this.tilt=0,this.fov=55,this.layout=new r}normalizeCtorArgs(o,r,t,e){if(o&&"object"==typeof o&&("x"in o||Array.isArray(o))){const s={position:o};return null!=r&&(s.heading=r),null!=t&&(s.tilt=t),null!=e&&(s.fov=e),s}return o}writePosition(o,r,t,e){const s=o.clone();s.x=u(o.x||0),s.y=u(o.y||0),s.z=o.hasZ?u(o.z||0):o.z,r[t]=s.write({},e)}readPosition(o,r){const t=new m;return t.read(o,r),t.x=u(t.x||0),t.y=u(t.y||0),t.z=t.hasZ?u(t.z||0):t.z,t}equals(o){return null!=o&&(this.tilt===o.tilt&&this.heading===o.heading&&this.fov===o.fov&&this.position.equals(o.position)&&this.layout.equals(o.layout))}};o([p({type:m,json:{write:{isRequired:!0}}})],y.prototype,"position",void 0),o([c("position")],y.prototype,"writePosition",null),o([a("position")],y.prototype,"readPosition",null),o([p({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),n((o=>e.normalize(u(o))))],y.prototype,"heading",void 0),o([p({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),n((o=>i(u(o),-180,180)))],y.prototype,"tilt",void 0),o([p({type:Number,nonNullable:!0,json:{read:!1,write:!1}})],y.prototype,"fov",void 0),o([p({type:r,nonNullable:!0,json:{read:!1,write:!1}})],y.prototype,"layout",void 0),y=o([l("esri.Camera")],y);const d=y;export{d as default};
|
package/CameraLayout.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{_ as o}from"./chunks/tslib.es6.js";import{ClonableMixin as r}from"./core/Clonable.js";import{JSONSupport as s}from"./core/JSONSupport.js";import{property as e}from"./core/accessorSupport/decorators/property.js";import"./core/accessorSupport/ensureType.js";import"./core/RandomLCG.js";import"./core/has.js";import{subclass as t}from"./core/accessorSupport/decorators/subclass.js";let p=class extends(r(s)){constructor(){super(...arguments),this.row=0,this.column=0,this.rows=1,this.columns=1}equals(o){return null!=o&&(this.row===o.row&&this.rows===o.rows&&this.column===o.column&&this.columns===o.columns)}};o([e({type:Number,nonNullable:!0,json:{read:!1,write:!1}})],p.prototype,"row",void 0),o([e({type:Number,nonNullable:!0,json:{read:!1,write:!1}})],p.prototype,"column",void 0),o([e({type:Number,nonNullable:!0,json:{read:!1,write:!1}})],p.prototype,"rows",void 0),o([e({type:Number,nonNullable:!0,json:{read:!1,write:!1}})],p.prototype,"columns",void 0),p=o([t("esri.CameraLayout")],p);const l=p;export{l as default};
|
package/README.md
CHANGED
|
@@ -1,127 +1,33 @@
|
|
|
1
1
|
# @arcgis/core
|
|
2
2
|
|
|
3
|
-
A minified, unbuilt version of the [ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/) ES modules.
|
|
3
|
+
A minified, unbuilt version of the [ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/) ES modules. Use ArcGIS Maps SDK for JavaScript to build compelling web apps that unlock your data's potential with interactive user experiences and stunning 2D and 3D visualizations.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Want to get started immediately? See our [sample applications](https://github.com/Esri/jsapi-resources/tree/main/esm-samples) for using the package with popular frameworks, module bundlers and TypeScript.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Documentation
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Sample applications can be found at [github.com/Esri/jsapi-resources/](https://github.com/Esri/jsapi-resources/tree/main/esm-samples).
|
|
9
|
+
- [Key Features](https://developers.arcgis.com/javascript/latest/key-features/)
|
|
10
|
+
- [Build with ES modules](https://developers.arcgis.com/javascript/latest/es-modules/)
|
|
11
|
+
- [API Reference](https://developers.arcgis.com/javascript/latest/api-reference/)
|
|
12
|
+
- [Functionality samples](https://developers.arcgis.com/javascript/latest/sample-code/)
|
|
13
|
+
- [TypeScript setup](https://developers.arcgis.com/javascript/latest/typescript-setup/)
|
|
16
14
|
|
|
17
15
|
## Get started
|
|
18
16
|
|
|
19
17
|
Install the package into your project:
|
|
20
18
|
|
|
21
|
-
```
|
|
19
|
+
```sh
|
|
22
20
|
npm install @arcgis/core
|
|
23
21
|
```
|
|
24
22
|
|
|
25
|
-
## Configure CSS
|
|
26
|
-
|
|
27
|
-
Set the CSS to the same version as the installed package. You can verify the installed SDK version by running `npm list @arcgis/core`. If you are working with locally hosted assets skip to the _Manage assets locally_ section.
|
|
28
|
-
|
|
29
|
-
The first example shows importing CSS for the `latest` SDK version: `4.28.7`:
|
|
30
|
-
|
|
31
|
-
_index.css_
|
|
32
|
-
|
|
33
|
-
```css
|
|
34
|
-
@import "https://js.arcgis.com/4.28/@arcgis/core/assets/esri/themes/light/main.css";
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Working with assets
|
|
38
|
-
|
|
39
|
-
The default configuration for local builds is for the SDK to automatically pull assets from a CDN at runtime. There is no need for additional configuration. The assets include styles, images, web workers, wasm and localization files. `latest` and `rc` versions of the SDK's assets are hosted on the ArcGIS CDN, while `next` versions use assets hosted on the jsDelivr CDN.
|
|
40
|
-
|
|
41
|
-
### Manage assets locally
|
|
42
|
-
|
|
43
|
-
If you need to manage the assets locally, copy them into your project from `/node_modules/@arcgis/core/assets`, and then set `config.assetsPath` to ensure requests for assets are resolved correctly. A simple way to accomplish this is to configure an npm script that runs during your build process. For example, use `cp` on MacOS and Windows PowerShell, or [`xcopy`](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy) on Windows, and configure a script in the package.json to copy the folder.
|
|
44
|
-
|
|
45
|
-
**Important:** Every time you upgrade the SDK, be sure to recopy the new version of the assets into your project. This ensures the assets and API library stay synchronized.
|
|
46
|
-
|
|
47
|
-
Here’s a React example:
|
|
48
|
-
|
|
49
|
-
_package.json_
|
|
50
|
-
|
|
51
|
-
```json
|
|
52
|
-
{
|
|
53
|
-
"scripts": {
|
|
54
|
-
"start": "cp -R ./node_modules/@arcgis/core/assets ./public/assets && react-scripts start",
|
|
55
|
-
"build": "cp -R ./node_modules/@arcgis/core/assets ./public/assets && react-scripts build"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
_App.js_
|
|
61
|
-
|
|
62
|
-
```js
|
|
63
|
-
import esriConfig from "@arcgis/core/config.js";
|
|
64
|
-
esriConfig.assetsPath = "./assets";
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
_index.css_
|
|
68
|
-
|
|
69
|
-
```css
|
|
70
|
-
@import "@arcgis/core/assets/esri/themes/light/main.css";
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
For Angular, one example is to copy the asset files by configuring the `architect/build/options/assets` section of `angular.json`, for example:
|
|
74
|
-
|
|
75
|
-
_angular.json_
|
|
76
|
-
|
|
77
|
-
```json
|
|
78
|
-
{
|
|
79
|
-
"assets": [
|
|
80
|
-
{
|
|
81
|
-
"glob": "**/*",
|
|
82
|
-
"input": "node_modules/@arcgis/core/assets",
|
|
83
|
-
"output": "/assets/"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
_app.component.ts_
|
|
90
|
-
|
|
91
|
-
```ts
|
|
92
|
-
import esriConfig from "@arcgis/core/config.js";
|
|
93
|
-
esriConfig.assetsPath = "./assets";
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
_app.component.css_
|
|
97
|
-
|
|
98
|
-
Add the following line at the top of the css file:
|
|
99
|
-
|
|
100
|
-
```css
|
|
101
|
-
@import "@arcgis/core/assets/esri/themes/light/main.css";
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
For other installations, consider using this npm script as a starting point:
|
|
105
|
-
|
|
106
|
-
_package.json_
|
|
107
|
-
|
|
108
|
-
```json
|
|
109
|
-
{
|
|
110
|
-
"script": {
|
|
111
|
-
"copy": "cp -R ./node_modules/@arcgis/core/assets ./dist/assets"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## Requirements
|
|
117
|
-
|
|
118
|
-
Use of the ArcGIS Maps SDK for JavaScript is subject to [System Requirements](https://developers.arcgis.com/javascript/latest/system-requirements/), and the terms described in the product-specific [Terms of Use.](https://www.esri.com/en-us/legal/terms/product-specific-scope-of-use) Learn more about licensing [here](https://developers.arcgis.com/javascript/latest/licensing/).
|
|
119
|
-
|
|
120
23
|
## Resources
|
|
121
24
|
|
|
122
|
-
- [ArcGIS
|
|
123
|
-
- [http://blogs.esri.com/esri/arcgis/tag/javascript/](https://blogs.esri.com/esri/arcgis/tag/javascript/)
|
|
25
|
+
- [ArcGIS blog](https://blogs.esri.com/esri/arcgis/tag/javascript/)
|
|
124
26
|
- [twitter@EsriDevs](https://twitter.com/EsriDevs)
|
|
27
|
+
- [System Requirements](https://developers.arcgis.com/javascript/latest/system-requirements/)
|
|
28
|
+
- [Terms of Use](https://www.esri.com/en-us/legal/terms/product-specific-scope-of-use)
|
|
29
|
+
- [Licensing](https://developers.arcgis.com/javascript/latest/licensing/)
|
|
30
|
+
- [Working with `next` versions](https://github.com/Esri/feedback-js-api-next/blob/main/README.md))
|
|
125
31
|
|
|
126
32
|
## Issues
|
|
127
33
|
|