import ModelFileInfo from "@arcgis/core/layers/scene/ModelFileInfo.js";
Inheritance
ModelFileInfoAccessor
Since
ArcGIS Maps SDK for JavaScript 5.1

Metadata about a file that belongs to a model associated with a 3D object feature.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
readonly inherited
readonly
readonly

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

name

readonly Property
Type
string

Path of the file within the model. Note that the path may include directory information.

Default value
""

size

readonly Property
Type
number

File size in bytes.

Default value
0

Methods

MethodSignatureClass
arrayBuffer(options?: AbortOptions): Promise<ArrayBuffer>

arrayBuffer

Method
Signature
arrayBuffer (options?: AbortOptions): Promise<ArrayBuffer>

Downloads the file as an array buffer.

Call this method when you need the actual file content. The SceneLayer.queryModel() and SceneLayer.queryModels() methods return file metadata first, so you can inspect names and sizes before downloading any bytes.

Parameters

ParameterTypeDescriptionRequired
options

Optional request options.

Returns
Promise<ArrayBuffer>

Resolves to an array buffer containing the file content.