@itwin/core-frontend 5.1.0-dev.54 → 5.1.0-dev.56

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.
Files changed (72) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/lib/cjs/DisplayStyleState.d.ts +37 -0
  3. package/lib/cjs/DisplayStyleState.d.ts.map +1 -1
  4. package/lib/cjs/DisplayStyleState.js +65 -0
  5. package/lib/cjs/DisplayStyleState.js.map +1 -1
  6. package/lib/cjs/Viewport.d.ts.map +1 -1
  7. package/lib/cjs/Viewport.js +16 -0
  8. package/lib/cjs/Viewport.js.map +1 -1
  9. package/lib/cjs/common/gltf/GltfSchema.d.ts +9 -0
  10. package/lib/cjs/common/gltf/GltfSchema.d.ts.map +1 -1
  11. package/lib/cjs/common/gltf/GltfSchema.js +1 -0
  12. package/lib/cjs/common/gltf/GltfSchema.js.map +1 -1
  13. package/lib/cjs/core-frontend.d.ts +1 -1
  14. package/lib/cjs/core-frontend.js +1 -1
  15. package/lib/cjs/core-frontend.js.map +1 -1
  16. package/lib/cjs/internal/ScriptUtils.d.ts +5 -0
  17. package/lib/cjs/internal/ScriptUtils.d.ts.map +1 -0
  18. package/lib/cjs/internal/ScriptUtils.js +120 -0
  19. package/lib/cjs/internal/ScriptUtils.js.map +1 -0
  20. package/lib/cjs/internal/tile/IModelTile.js.map +1 -1
  21. package/lib/cjs/internal/tile/IModelTileTree.d.ts +4 -2
  22. package/lib/cjs/internal/tile/IModelTileTree.d.ts.map +1 -1
  23. package/lib/cjs/internal/tile/IModelTileTree.js +58 -0
  24. package/lib/cjs/internal/tile/IModelTileTree.js.map +1 -1
  25. package/lib/cjs/internal/tile/PrimaryTileTree.js +1 -1
  26. package/lib/cjs/internal/tile/PrimaryTileTree.js.map +1 -1
  27. package/lib/cjs/tile/GltfReader.d.ts +4 -2
  28. package/lib/cjs/tile/GltfReader.d.ts.map +1 -1
  29. package/lib/cjs/tile/GltfReader.js +85 -18
  30. package/lib/cjs/tile/GltfReader.js.map +1 -1
  31. package/lib/cjs/tile/ImdlReader.js.map +1 -1
  32. package/lib/cjs/tile/TileTree.d.ts +14 -1
  33. package/lib/cjs/tile/TileTree.d.ts.map +1 -1
  34. package/lib/cjs/tile/TileTree.js +13 -0
  35. package/lib/cjs/tile/TileTree.js.map +1 -1
  36. package/lib/esm/DisplayStyleState.d.ts +37 -0
  37. package/lib/esm/DisplayStyleState.d.ts.map +1 -1
  38. package/lib/esm/DisplayStyleState.js +65 -0
  39. package/lib/esm/DisplayStyleState.js.map +1 -1
  40. package/lib/esm/Viewport.d.ts.map +1 -1
  41. package/lib/esm/Viewport.js +16 -0
  42. package/lib/esm/Viewport.js.map +1 -1
  43. package/lib/esm/common/gltf/GltfSchema.d.ts +9 -0
  44. package/lib/esm/common/gltf/GltfSchema.d.ts.map +1 -1
  45. package/lib/esm/common/gltf/GltfSchema.js +1 -0
  46. package/lib/esm/common/gltf/GltfSchema.js.map +1 -1
  47. package/lib/esm/core-frontend.d.ts +1 -1
  48. package/lib/esm/core-frontend.js +1 -1
  49. package/lib/esm/core-frontend.js.map +1 -1
  50. package/lib/esm/internal/ScriptUtils.d.ts +5 -0
  51. package/lib/esm/internal/ScriptUtils.d.ts.map +1 -0
  52. package/lib/esm/internal/ScriptUtils.js +117 -0
  53. package/lib/esm/internal/ScriptUtils.js.map +1 -0
  54. package/lib/esm/internal/tile/IModelTile.js.map +1 -1
  55. package/lib/esm/internal/tile/IModelTileTree.d.ts +4 -2
  56. package/lib/esm/internal/tile/IModelTileTree.d.ts.map +1 -1
  57. package/lib/esm/internal/tile/IModelTileTree.js +60 -2
  58. package/lib/esm/internal/tile/IModelTileTree.js.map +1 -1
  59. package/lib/esm/internal/tile/PrimaryTileTree.js +1 -1
  60. package/lib/esm/internal/tile/PrimaryTileTree.js.map +1 -1
  61. package/lib/esm/tile/GltfReader.d.ts +4 -2
  62. package/lib/esm/tile/GltfReader.d.ts.map +1 -1
  63. package/lib/esm/tile/GltfReader.js +84 -18
  64. package/lib/esm/tile/GltfReader.js.map +1 -1
  65. package/lib/esm/tile/ImdlReader.js.map +1 -1
  66. package/lib/esm/tile/TileTree.d.ts +14 -1
  67. package/lib/esm/tile/TileTree.d.ts.map +1 -1
  68. package/lib/esm/tile/TileTree.js +13 -0
  69. package/lib/esm/tile/TileTree.js.map +1 -1
  70. package/lib/public/scripts/parse-imdl-worker.js +1 -1
  71. package/lib/workers/webpack/parse-imdl-worker.js +1 -1
  72. package/package.json +20 -20
@@ -7,6 +7,7 @@
7
7
  export declare enum GltfMeshMode {
8
8
  Points = 0,
9
9
  Lines = 1,
10
+ LineLoop = 2,
10
11
  LineStrip = 3,
11
12
  Triangles = 4,
12
13
  /** Not currently supported. */
@@ -161,6 +162,14 @@ export interface GltfMesh extends GltfChildOfRootProperty {
161
162
  primitives?: GltfMeshPrimitive[];
162
163
  /** For morph targets - currently unsupported. */
163
164
  weights?: number[];
165
+ extensions?: GltfExtensions & {
166
+ EXT_mesh_primitive_restart?: {
167
+ primitiveGroups: Array<{
168
+ primitives: number[];
169
+ indices: number;
170
+ }>;
171
+ };
172
+ };
164
173
  }
165
174
  /** Properties common to [[Gltf1Node]] and [[Gltf2Node]]. @internal */
166
175
  export interface GltfNodeBaseProps {
@@ -1 +1 @@
1
- {"version":3,"file":"GltfSchema.d.ts","sourceRoot":"","sources":["../../../../src/common/gltf/GltfSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,oBAAY,YAAY;IACtB,MAAM,IAAI;IACV,KAAK,IAAI;IACT,SAAS,IAAI;IACb,SAAS,IAAI;IACb,+BAA+B;IAC/B,aAAa,IAAI;IACjB,+BAA+B;IAC/B,WAAW,IAAI;CAChB;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,UAAU,OAAS;IACnB,YAAY,OAAS;IACrB,WAAW,OAAO;IAClB,aAAa,OAAO;IACpB,MAAM,OAAO;IACb,KAAK,OAAO;IACZ,GAAG,OAAO;IACV,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AAW,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAClD,0BAA0B;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACnC,+BAA+B;IAC/B,KAAK,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACvC,wEAAwE;IACxE,UAAU,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;CAC5C"}
@@ -19,6 +19,7 @@ var GltfMeshMode;
19
19
  (function (GltfMeshMode) {
20
20
  GltfMeshMode[GltfMeshMode["Points"] = 0] = "Points";
21
21
  GltfMeshMode[GltfMeshMode["Lines"] = 1] = "Lines";
22
+ GltfMeshMode[GltfMeshMode["LineLoop"] = 2] = "LineLoop";
22
23
  GltfMeshMode[GltfMeshMode["LineStrip"] = 3] = "LineStrip";
23
24
  GltfMeshMode[GltfMeshMode["Triangles"] = 4] = "Triangles";
24
25
  /** Not currently supported. */
@@ -1 +1 @@
1
- {"version":3,"file":"GltfSchema.js","sourceRoot":"","sources":["../../../../src/common/gltf/GltfSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AA+FH,wDAWC;AAoLD,gDAOC;AAGD,8CAeC;AA+LD,0CAGC;AAvfD;;GAEG;AACH,IAAY,YASX;AATD,WAAY,YAAY;IACtB,mDAAU,CAAA;IACV,iD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,iBAAiB,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC;gBACpE,MAAM,KAAK,CAAC;IAClB,CAAC;AACH,CAAC;AA+FD;;GAEG;AACH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,8BAA8B;IAC9B,gEAAY,CAAA;AACd,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAyFD,gBAAgB;AAChB,SAAgB,eAAe,CAAC,QAAsB;IACpD,MAAM,IAAI,GAAG,QAAyB,CAAC;IACvC,OAAO,SAAS,KAAK,IAAI,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC,MAAM,CAAC;AACnE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\n/** Enumerates the types of [[GltfMeshPrimitive]] topologies.\n * @internal\n */\nexport enum GltfMeshMode {\n Points = 0,\n Lines = 1,\n LineStrip = 3,\n Triangles = 4,\n /** Not currently supported. */\n TriangleStrip = 5,\n /** Not currently supported. */\n TriangleFan = 6,\n}\n\n/** Enumerates the basic data types supported by accessors, material values, technique uniforms, etc.\n * @internal\n */\nexport enum GltfDataType {\n SignedByte = 0x1400,\n UnsignedByte = 0x1401,\n SignedShort = 5122,\n UnsignedShort = 5123,\n UInt32 = 5125,\n Float = 5126,\n Rgb = 6407,\n Rgba = 6408,\n IntVec2 = 0x8b53,\n IntVec3 = 0x8b54,\n FloatVec2 = 35664,\n FloatVec3 = 35665,\n FloatVec4 = 35666,\n FloatMat3 = 35675,\n FloatMat4 = 35676,\n Sampler2d = 35678,\n}\n\n/** @internal */\nexport enum GltfMagFilter {\n Nearest = 9728,\n Linear = 9729,\n}\n\n/** @internal */\nexport enum GltfMinFilter {\n Nearest = GltfMagFilter.Nearest,\n Linear = GltfMagFilter.Linear,\n NearestMipMapNearest = 9984,\n LinearMipMapNearest = 9985,\n NearestMipMapLinear = 9986,\n LinearMipMapLinear = 9987,\n}\n\n/** Describes how texture coordinates outside of the range [0..1] are handled.\n * @internal\n */\nexport enum GltfWrapMode {\n ClampToEdge = 33071,\n MirroredRepeat = 33648,\n Repeat = 10497,\n}\n\n/** Describes the intended target of a [[GltfBufferViewProps]].\n * @internal\n */\nexport enum GltfBufferTarget {\n ArrayBuffer = 34962,\n ElementArrayBuffer = 24963,\n}\n\n/** The type used to refer to an entry in a GltfDictionary in a glTF 1.0 asset. @internal */\nexport type Gltf1Id = string;\n/** The type used to refer to an entry in a GltfDictionary in a glTF 2.0 asset. @internal */\nexport type Gltf2Id = number;\n/** The type used to refer to an entry in a GltfDictionary. @internal */\nexport type GltfId = Gltf1Id | Gltf2Id;\n\n/** A collection of resources of some type defined at the top-level of a [[GltfDocument]].\n * In glTF 1.0, these are defined as objects; each resource is referenced and accessed by its string key.\n * In glTF 2.0, these are defined as arrays; each resource is referenced and accessed by its integer array index.\n * @internal\n */\nexport interface GltfDictionary<T extends GltfChildOfRootProperty> {\n [key: GltfId]: T | undefined;\n}\n\n/** @internal */\nexport interface GltfStringMap<T> {\n [key: string]: T | undefined;\n}\n\n/** Iterate the contents of a [[GltfDictionary]].\n * @internal\n */\nexport function * gltfDictionaryIterator<T extends GltfChildOfRootProperty>(dict: GltfDictionary<T>): Iterable<T> {\n if (Array.isArray(dict)) {\n for (const elem of dict)\n yield elem;\n } else {\n for (const key of Object.keys(dict)) {\n const value = dict[key];\n if (undefined !== value)\n yield value;\n }\n }\n}\n\n/** Optional extensions applied to a [[GltfProperty]] to enable behavior not defined in the core specification.\n * @internal\n */\nexport type GltfExtensions = GltfStringMap<unknown>;\n\n/** The base interface provided by most objects in a glTF asset, permitting additional data to be associated with the object.\n * @internal\n */\nexport interface GltfProperty {\n extensions?: GltfExtensions;\n extras?: any;\n}\n\n/** The base interface provided by top-level properties of a [[GltfDocument]].\n * @internal\n */\nexport interface GltfChildOfRootProperty extends GltfProperty {\n /** Optional name, strictly for human consumption. */\n name?: string;\n}\n\n/** @internal */\nexport interface DracoMeshCompression {\n bufferView: GltfId;\n // TEXCOORD_0, POSITION, etc\n attributes: GltfStringMap<number>;\n}\n\n/** @internal */\nexport interface MeshFeature extends GltfProperty {\n featureCount: number;\n nullFeatureId?: number;\n label?: string;\n propertyTable?: number;\n texture?: unknown;\n attribute?: number;\n}\n\n/** @internal */\nexport interface MeshFeatures {\n featureIds: MeshFeature[];\n}\n\n/** A unit of geometry belonging to a [[GltfMesh]]. @internal */\nexport interface GltfMeshPrimitive extends GltfProperty {\n /** Maps the name of each mesh attribute semantic to the Id of the [[GltfAccessor]] providing the attribute's data. */\n attributes: GltfStringMap<GltfId>;\n /** The Id of the [[GltfAccessor]] providing the vertex indices. */\n indices?: GltfId;\n /** The Id of the [[GltfMaterial]] to apply to the primitive when rendering. */\n material?: GltfId;\n /** The primitive topology type. */\n mode?: GltfMeshMode;\n /** Morph targets - currently unsupported. */\n targets?: GltfStringMap<GltfId>;\n extensions?: GltfExtensions & {\n /** The [CESIUM_primitive_outline](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/CESIUM_primitive_outline) extension\n * describes how to draw outline edges for a triangle mesh.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n CESIUM_primitive_outline?: {\n /** The Id of the [[GltfBufferViewProps]] supplying the endpoints of each edge as indices into the triangle mesh's vertex array.\n * The number of indices must be even; each consecutive pair of indices describes one line segment. No connectivity between\n * line segments is implied.\n */\n indices?: GltfId;\n };\n /** The [KHR_draco_mesh_compression](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_draco_mesh_compression/README.md) extension\n * allows glTF to support geometry compressed with Draco geometry compression.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_draco_mesh_compression?: DracoMeshCompression;\n // eslint-disable-next-line @typescript-eslint/naming-convention\n EXT_mesh_features?: MeshFeatures;\n };\n}\n\n/** A collection of [[GltfMeshPrimitive]]s to be rendered. Each mesh is referenced by a node. Multiple nodes can refer to the same mesh.\n * The node's transform is applied when rendering the mesh.\n * @internal\n */\nexport interface GltfMesh extends GltfChildOfRootProperty {\n /** The collection of primitives to be rendered. */\n primitives?: GltfMeshPrimitive[];\n /** For morph targets - currently unsupported. */\n weights?: number[];\n}\n\n/** Properties common to [[Gltf1Node]] and [[Gltf2Node]]. @internal */\nexport interface GltfNodeBaseProps {\n /** The Ids of the child nodes. @see [[GltfNode]]. */\n children?: GltfId[];\n /** Currently ignored. */\n camera?: GltfId;\n /** Currently ignored. */\n skin?: GltfId;\n /** A 4x4 column-major transformation matrix. Mutually exclusive with [[rotation]], [[scale]], and [[translation]]. */\n matrix?: number[];\n /** Unit quaternion as [x, y, z, w], where w is the scalar. */\n rotation?: [number, number, number, number];\n /** Non-uniform scale as [x, y, z]. */\n scale?: [number, number, number];\n /** Translation as [x, y, z]. */\n translation?: [number, number, number];\n}\n\n/** glTF 1.0 representation of a [[GltfNode]]. Unlike a [[Gltf2Node]], a Gltf1Node may refer to any number of [[GltfMesh]]es.\n * @internal\n */\nexport interface Gltf1Node extends GltfChildOfRootProperty, GltfNodeBaseProps {\n /** The Ids of the [[GltfMesh]]es to be rendered by this node.\n * @note The spec defines this as an array of strings, but the original implementation of [[GltfReader]] was written to treat it as a string instead.\n * In case this was because of non-spec-compliant glTF that placed a string here instead of an array, either is permitted.\n */\n meshes?: GltfId[] | string;\n mesh?: never;\n /** Currently ignored. */\n jointName?: GltfId;\n /** Currently ignored. */\n skeletons?: GltfId[];\n}\n\n/** glTF 2.0 representation of a [[GltfNode]]. Unlike a [[Gltf1Node]], a Gltf2Node may refer to at most one [[GltfMesh]].\n * @internal\n */\nexport interface Gltf2Node extends GltfChildOfRootProperty, GltfNodeBaseProps {\n /** The Id of the [[GltfMesh]] to be rendered by this node. */\n mesh?: GltfId;\n meshes?: never;\n /** Morph targets - currently ignored. */\n weights?: number[];\n extensions?: GltfExtensions & {\n /** The [EXT_mesh_gpu_instancing](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_mesh_gpu_instancing/README.md) extension permits multiple\n * instances of the same mesh to be rendered with different translation, rotation, and/or scale.\n * All of the attribute accessors must have the same count (which indicates the number of instances to be drawn).\n * All attributes are optional (though omitting all of them would be silly).\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n EXT_mesh_gpu_instancing?: {\n attributes?: {\n /** VEC3; FLOAT */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n TRANSLATION?: GltfId;\n /** VEC4 (quaternion); FLOAT, normalized BYTE, or normalized SHORT */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n ROTATION?: GltfId;\n /** VEC3; FLOAT */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n SCALE?: GltfId;\n };\n };\n /** The [EXT_instance_features](https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_instance_features/README.md)\n * extension permits assigning identifiers to individual instances of a mesh, which can be used to look up per-instance data in a property table.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n EXT_instance_features?: {\n featureIds: {\n attribute?: number;\n featureCount: number;\n label?: string;\n nullFeatureId?: number;\n propertyTable: number;\n }[];\n };\n };\n}\n\n/** Describes a node in a [[GltfScene]]. Each node may be associated with zero, one (glTF 2.0), or any number of (glTF 1.0) [[GltfMesh]]es.\n * Each node may define a transform. Each node may have any number of child nodes. A child node's transform is multiplied by its parent node's transform.\n * Some nodes may be associated with other types of data like cameras, skins, lights, etc - these types of data are currently unsupported.\n * Rendering a node means rendering its meshes and the meshes of all of its descendants, with transforms applied.\n * @internal\n */\nexport type GltfNode = Gltf1Node | Gltf2Node;\n\n/** Get the Ids of the meshes associated with a node.\n * @internal\n */\nexport function getGltfNodeMeshIds(node: GltfNode): GltfId[] {\n if (undefined !== node.meshes)\n return typeof node.meshes === \"string\" ? [node.meshes] : node.meshes;\n else if (undefined !== node.mesh)\n return [node.mesh];\n\n return [];\n}\n\n/** @internal */\nexport function * traverseGltfNodes(ids: Iterable<GltfId>, nodes: GltfDictionary<GltfNode>, traversed: Set<GltfId>): Iterable<GltfNode> {\n for (const id of ids) {\n if (traversed.has(id))\n throw new Error(\"Cycle detected while traversing glTF nodes\");\n\n const node = nodes[id];\n if (!node)\n continue;\n\n traversed.add(id);\n yield node;\n if (node.children)\n for (const child of traverseGltfNodes(node.children, nodes, traversed))\n yield child;\n }\n}\n\n/** Describes a scene graph that composes any number of [[GltfNode]]s to produce a rendering of the [[GltfDocument]] asset.\n * An asset may define any number of scenes; the default scene is specified by [[Gltf.scene]].\n * @internal\n */\nexport interface GltfScene extends GltfChildOfRootProperty {\n /** The Ids of the nodes comprising the scene graph. */\n nodes?: GltfId[];\n}\n\n/** Provides metadata about a [[GltfDocument]] asset.\n * @internal\n */\nexport interface GltfAsset extends GltfProperty {\n /** A copyright message suitable for display to credit the content creator. */\n copyright?: string;\n /** The name of the tool that generated the asset. */\n generator?: string;\n /** The glTF version targeted by the asset, in the form \"major.minor\" where \"major\" and \"minor\" are integers. */\n version: string;\n /** The minimum glTF version required to properly load this asset, in the same form as [[version]].\n * This minimum version must be no greater than [[version]].\n */\n minVersion?: string;\n}\n\n/** Describes an image such as one used for a [[GltfTexture]]. The image may be referenced by a [[uri]] or a [[bufferView]].\n * @internal\n */\nexport interface GltfImage extends GltfChildOfRootProperty {\n /** URI from which the image data can be obtained, either as a base-64-encoded data URI or an external resource.\n * Mutually exclusive with [[bufferView]].\n */\n uri?: string;\n /** The image's media type. This property is required if [[bufferView]] is defined. */\n mimeType?: \"image/jpeg\" | \"image/png\";\n /** The Id of the [[GltfBufferViewProps]] containing the image data. Mutually exclusive with [[uri]]. */\n bufferView?: GltfId;\n extensions?: GltfExtensions & {\n /** The [KHR_binary_glTF](https://github.com/KhronosGroup/glTF/tree/main/extensions/1.0/Khronos/KHR_binary_glTF) allows an image to\n * be embedded in a binary chunk appended to the glTF asset's JSON, instead of being referenced by an external URI.\n * This is superseded in glTF 2.0 by support for the glb file format specification.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_binary_glTF?: {\n /** The Id of the [[GltfBufferViewProps]] that contains the binary image data. */\n bufferView?: GltfId;\n /** Required - @see [[GltfImage.mimeType]]. */\n mimeType?: string;\n };\n };\n}\n\n/** Describes a reference to a [[GltfTexture]]. @internal */\nexport interface GltfTextureInfo extends GltfProperty {\n /** The Id of the [[GltfTexture]]. */\n index: GltfId;\n /** The set index of the texture's TEXCOORD attribute used for texture coordinate mapping.\n * For example, if `texCoord` is `2`, an attribute named `TEXCOORD_2` must exist containing the texture coordinates.\n * Default: 0.\n */\n texCoord?: number;\n}\n\n/** Describes a texture and its sampler.\n * @internal\n */\nexport interface GltfTexture extends GltfChildOfRootProperty {\n /** The Id of the [[GltfSampler]] used by this texture.\n * If undefined, a sampler with repeat wrapping and auto filtering should be used by default.\n */\n sampler?: GltfId;\n /** The Id of the [[GltfImage]] used by this texture.\n * If undefined, an extension or other mechanism should supply an alternate image source - otherwise, the behavior is undefined.\n */\n source?: GltfId;\n}\n\n/** Describes the filtering and wrapping behavior to be applied to a [[GltfTexture]].\n * @note The implementation currently does not support MirroredRepeat and does not support different wrapping for U and V;\n * effectively, unless `wrapS` or `wrapT` is set to ClampToEdge, the sampler will use GltfWrapMode.Repeat.\n * @internal\n */\nexport interface GltfSampler extends GltfChildOfRootProperty {\n /** Magnification filter. */\n magFilter?: GltfMagFilter;\n /** Minification filter. */\n minFilter?: GltfMinFilter;\n /** S (U) wrapping mode. Default: Repeat. */\n wrapS?: GltfWrapMode;\n /** T (V) wrapping mode. Default: Repeat. */\n wrapT?: GltfWrapMode;\n}\n\n/** GL states that can be enabled by a [[GltfTechnique]]. Only those queried by this implementation are enumerated.\n * @internal\n */\nexport enum GltfTechniqueState {\n /** Enables alpha blending. */\n Blend = 3042,\n}\n\n/** For glTF 1.0 only, describes shader programs and shader state associated with a [[Gltf1Material]], used to render meshes associated with the material.\n * This implementation uses it strictly to identify techniques that require alpha blending.\n * @internal\n */\nexport interface GltfTechnique extends GltfChildOfRootProperty {\n /** GL render states to be applied by the technique. */\n states?: {\n /** An array of integers corresponding to boolean GL states that should be enabled using GL's `enable` function.\n * For example, the value [[GltfTechniqueState.Blend]] (3042) indicates that blending should be enabled.\n */\n enable?: GltfTechniqueState[];\n };\n}\n\n/** @internal */\nexport interface Gltf1Material extends GltfChildOfRootProperty {\n diffuse?: string;\n emission?: number[];\n shininess?: number;\n specular?: number[];\n technique?: GltfId;\n values?: {\n texStep?: number[];\n color?: number[];\n tex?: number | string;\n };\n}\n\n/** @internal */\nexport interface GltfMaterialPbrMetallicRoughness extends GltfProperty {\n // Default [1,1,1,1]\n baseColorFactor?: number[];\n baseColorTexture?: GltfTextureInfo;\n // Default 1\n metallicFactor?: number;\n // Default 1\n roughnessFactor?: number;\n metallicRoughnessTexture?: GltfTextureInfo;\n}\n\n/** @internal */\nexport type GltfAlphaMode = \"OPAQUE\" | \"MASK\" | \"BLEND\";\n\n/** @internal */\nexport interface Gltf2Material extends GltfChildOfRootProperty {\n pbrMetallicRoughness?: GltfMaterialPbrMetallicRoughness;\n normalTexture?: GltfTextureInfo;\n occlusionTexture?: unknown;\n emissiveTexture?: GltfTextureInfo;\n emissiveFactor?: number[];\n // Default OPAQUE\n alphaMode?: GltfAlphaMode;\n // Default 0.5. Ignored unless alphaMode=MASK\n alphaCutoff?: number;\n doubleSided?: boolean;\n extensions?: GltfExtensions & {\n /** The [KHR_materials_unlit](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_unlit) extension\n * indicates that the material should be displayed without lighting. The extension adds no additional properties; it is effectively a boolean flag.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_materials_unlit?: object;\n /** The [KHR_techniques_webgl extension](https://github.com/KhronosGroup/glTF/blob/c1c12bd100e88ff468ccef1cb88cfbec56a69af2/extensions/2.0/Khronos/KHR_techniques_webgl/README.md)\n * allows \"techniques\" to be associated with [[GltfMaterial]]s. Techniques can supply custom shader programs to render geometry; this was a core feature of glTF 1.0 (see [[GltfTechnique]]).\n * Here, it is only used to extract uniform values.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_techniques_webgl?: {\n technique?: number;\n // An object containing uniform values. Each property name corresponds to a uniform in the material's technique and must conform to that uniform's type and count properties.\n // A handful of uniforms referenced in this implementation by name are defined below.\n values?: {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n u_texStep?: number[];\n // eslint-disable-next-line @typescript-eslint/naming-convention\n u_color?: number[];\n // Diffuse texture.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n u_diffuse?: { index: number, texCoord: number };\n [k: string]: unknown;\n };\n };\n };\n}\n\n/** @internal */\nexport type GltfMaterial = Gltf1Material | Gltf2Material;\n\n/** @internal */\nexport function isGltf1Material(material: GltfMaterial): material is Gltf1Material {\n const mat1 = material as Gltf1Material;\n return undefined !== mat1.technique || undefined !== mat1.values;\n}\n\n/** @internal */\nexport interface GltfBuffer extends GltfChildOfRootProperty {\n uri?: string;\n byteLength?: number;\n extensions?: GltfExtensions & {\n // https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_meshopt_compression/README.md\n EXT_meshopt_compression?: { // eslint-disable-line @typescript-eslint/naming-convention\n fallback?: boolean;\n };\n };\n}\n\n/** @internal */\nexport type ExtMeshoptCompressionMode = \"ATTRIBUTES\" | \"TRIANGLES\" | \"INDICES\";\n\n/** @internal */\nexport type ExtMeshoptCompressionFilter = \"NONE\" | \"OCTAHEDRAL\" | \"QUATERNION\";\n\n/** https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_meshopt_compression/README.md\n * @internal\n*/\nexport interface GltfBufferViewMeshoptCompressionExtension {\n buffer: number;\n byteOffset?: number;\n byteLength: number;\n byteStride: number;\n count: number;\n mode: ExtMeshoptCompressionMode;\n filter?: ExtMeshoptCompressionFilter;\n}\n\n/** @internal */\nexport interface GltfBufferViewProps extends GltfChildOfRootProperty {\n buffer: GltfId;\n byteLength?: number;\n byteOffset?: number;\n byteStride?: number;\n target?: GltfBufferTarget;\n extensions?: GltfExtensions & {\n EXT_meshopt_compression?: GltfBufferViewMeshoptCompressionExtension; // eslint-disable-line @typescript-eslint/naming-convention\n };\n}\n\n/** @internal */\nexport interface GltfAccessor extends GltfChildOfRootProperty {\n bufferView?: GltfId;\n byteOffset?: number;\n componentType?: GltfDataType.SignedByte | GltfDataType.UnsignedByte | GltfDataType.SignedShort | GltfDataType.UnsignedShort | GltfDataType.UInt32 | GltfDataType.Float;\n normalized?: boolean;\n count: number;\n type: \"SCALAR\" | \"VEC2\" | \"VEC3\" | \"VEC4\" | \"MAT2\" | \"MAT3\" | \"MAT4\";\n max?: number[];\n min?: number[];\n sparse?: unknown; // ###TODO sparse accessors\n extensions?: GltfExtensions & {\n /** Quantized attributes for glTF 1.0. Superceded by KHR_mesh_quantization. */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n WEB3D_quantized_attributes?: {\n decodedMin: number[];\n decodedMax: number[];\n /** Currently ignored. */\n decodeMatrix: number[];\n };\n };\n}\n\n/** @internal */\nexport namespace GltfStructuralMetadata {\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n export type ClassPropertyType = \"SCALAR\" | \"STRING\" | \"BOOLEAN\" | \"ENUM\" | \"VEC2\" | \"VEC3\" | \"VEC4\" | \"MAT2\" | \"MAT3\" | \"MAT4\" | string;\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n export type ClassPropertyComponentType = \"INT8\" | \"UINT8\" | \"INT16\" | \"UINT16\" | \"INT32\" | \"UINT32\" | \"INT64\" | \"UINT64\" | \"FLOAT32\" | \"FLOAT64\" | string;\n\n // Ignoring VECN and MATN types because they complicate offset, scale, min, and max, all of which are otherwise only relevant to SCALAR in which case they're all just numbers.\n export interface ClassProperty extends GltfProperty {\n type: ClassPropertyType;\n name?: string;\n description?: string;\n componentType?: ClassPropertyComponentType;\n enumType?: string;\n array?: boolean;\n count?: number;\n normalized?: boolean;\n offset?: number;\n scale?: number;\n min?: number;\n max?: number;\n required?: boolean;\n noData?: unknown;\n default?: unknown;\n semantic?: string;\n }\n\n export interface EnumValue extends GltfProperty {\n name: string;\n value: number; // an integer\n description?: string;\n }\n\n export interface Enum extends GltfProperty {\n values: EnumValue[];\n // Default: UINT16\n valueType?: \"INT8\" | \"UINT8\" | \"INT16\" | \"UINT16\" | \"INT32\" | \"UINT32\" | \"INT64\" | \"UINT64\" | string; // eslint-disable-line @typescript-eslint/no-redundant-type-constituents\n name?: string;\n description?: string;\n }\n\n export interface Class extends GltfProperty {\n name?: string;\n description?: string;\n properties?: {\n [propertyId: string]: ClassProperty | undefined;\n };\n }\n\n export interface Schema extends GltfProperty {\n id: string;\n name?: string;\n description?: string;\n version?: string;\n classes?: {\n [classId: string]: Class | undefined;\n };\n enums?: Enum[];\n }\n\n // Ignoring VECN and MATN types because they complicate offset, scale, min, and max, all of which are otherwise only relevant to SCALAR in which case they're all just numbers.\n export interface PropertyTableProperty extends GltfProperty {\n values: GltfId;\n arrayOffsets?: GltfId;\n stringOffsets?: GltfId;\n arrayOffsetType?: \"UINT8\" | \"UINT16\" | \"UINT32\" | \"UINT64\" | string; // eslint-disable-line @typescript-eslint/no-redundant-type-constituents\n stringOffsetType?: \"UINT8\" | \"UINT16\" | \"UINT32\" | \"UINT64\" | string; // eslint-disable-line @typescript-eslint/no-redundant-type-constituents\n offset?: number;\n scale?: number;\n min?: number;\n max?: number;\n }\n\n export interface PropertyTable {\n class: string;\n count: number;\n properties?: {\n [propertyId: string]: PropertyTableProperty | undefined;\n };\n }\n\n export interface Extension extends GltfProperty {\n // Exactly one of schema or schemaUri must be present.\n schemaUri?: string;\n schema?: Schema;\n propertyTables?: PropertyTable[];\n propertyTextures?: unknown;\n propertyAttributes?: unknown;\n }\n}\n\n/** Describes the top-level structure of a glTF asset.\n * This interface, along with all of the related Gltf* types defined in this file, is primarily based upon the [official glTF 2.0 specification](https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html).\n * However, it can also represent a [glTF 1.0](https://github.com/KhronosGroup/glTF/tree/main/specification/1.0#reference-node) asset.\n * Some types are combined. For example, the top-level dictionaries in glTF 1.0 are objects, while in glTF 2.0 they are arrays; the GltfDictionary interface supports accessing\n * items using either strings or numeric indexes represented by [[GltfId]].\n * For types that differ significantly between the two specs, Gltf1* and Gltf2* versions are defined (e.g., GltfMaterial is a union of Gltf1Material and Gltf2Material).\n * These interfaces also accommodate some deviations from both specs that are known to exist in the wild.\n * Most aspects of the specifications that are not implemented here are omitted (e.g., skinning, animations).\n * @internal\n */\nexport interface GltfDocument extends GltfProperty {\n /** Metadata about the glTF asset.\n * @note This property is required in glTF 2.0, but optional in 1.0.\n */\n asset?: GltfAsset;\n /** The Id of the default [[GltfScene]] in [[scenes]]. */\n scene?: GltfId;\n extensions?: GltfExtensions & {\n /** The [CESIUM_RTC extension](https://github.com/KhronosGroup/glTF/blob/main/extensions/1.0/Vendor/CESIUM_RTC/README.md) defines a centroid\n * relative to which all coordinates in the asset are defined, to reduce floating-point precision errors for large coordinates.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n CESIUM_RTC?: {\n center?: number[];\n };\n /** The [KHR_techniques_webgl extension](https://github.com/KhronosGroup/glTF/blob/c1c12bd100e88ff468ccef1cb88cfbec56a69af2/extensions/2.0/Khronos/KHR_techniques_webgl/README.md)\n * allows \"techniques\" to be associated with [[GltfMaterial]]s. Techniques can supply custom shader programs to render geometry; this was a core feature of glTF 1.0 (see [[GltfTechnique]]).\n * Here, it is only used to extract uniform values.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_techniques_webgl?: {\n techniques?: Array<{\n uniforms?: {\n [key: string]: { type: GltfDataType, value?: any } | undefined;\n };\n }>;\n };\n // eslint-disable-next-line @typescript-eslint/naming-convention\n EXT_structural_metadata?: GltfStructuralMetadata.Extension;\n };\n /** Names of glTF extensions used in the asset. */\n extensionsUsed?: string[];\n /** Names of glTF extensions required to properly load the asset. */\n extensionsRequired?: string[];\n accessors?: GltfDictionary<GltfAccessor>;\n /** Not currently supported. */\n animations?: GltfDictionary<any>;\n buffers?: GltfDictionary<GltfBuffer>;\n bufferViews?: GltfDictionary<GltfBufferViewProps>;\n /** Not currently used. */\n cameras?: GltfDictionary<any>;\n images?: GltfDictionary<GltfImage>;\n materials?: GltfDictionary<GltfMaterial>;\n meshes?: GltfDictionary<GltfMesh>;\n nodes?: GltfDictionary<GltfNode>;\n samplers?: GltfDictionary<GltfSampler>;\n scenes?: GltfDictionary<GltfScene>;\n /** Not currently supported. */\n skins?: GltfDictionary<any>;\n textures?: GltfDictionary<GltfTexture>;\n /** For glTF 1.0 only, techniques associated with [[Gltf1Material]]s. */\n techniques?: GltfDictionary<GltfTechnique>;\n}\n"]}
1
+ {"version":3,"file":"GltfSchema.js","sourceRoot":"","sources":["../../../../src/common/gltf/GltfSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAgGH,wDAWC;AA6LD,gDAOC;AAGD,8CAeC;AA+LD,0CAGC;AAjgBD;;GAEG;AACH,IAAY,YAUX;AAVD,WAAY,YAAY;IACtB,mDAAU,CAAA;IACV,iDAAS,CAAA;IACT,uDAAY,CAAA;IACZ,yDAAa,CAAA;IACb,yDAAa,CAAA;IACb,+BAA+B;IAC/B,iEAAiB,CAAA;IACjB,+BAA+B;IAC/B,6DAAe,CAAA;AACjB,CAAC,EAVW,YAAY,4BAAZ,YAAY,QAUvB;AAED;;GAEG;AACH,IAAY,YAiBX;AAjBD,WAAY,YAAY;IACtB,8DAAmB,CAAA;IACnB,kEAAqB,CAAA;IACrB,gEAAkB,CAAA;IAClB,oEAAoB,CAAA;IACpB,sDAAa,CAAA;IACb,oDAAY,CAAA;IACZ,gDAAU,CAAA;IACV,kDAAW,CAAA;IACX,yDAAgB,CAAA;IAChB,yDAAgB,CAAA;IAChB,6DAAiB,CAAA;IACjB,6DAAi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Content":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\n/** Enumerates the types of [[GltfMeshPrimitive]] topologies.\n * @internal\n */\nexport enum GltfMeshMode {\n Points = 0,\n Lines = 1,\n LineLoop = 2,\n LineStrip = 3,\n Triangles = 4,\n /** Not currently supported. */\n TriangleStrip = 5,\n /** Not currently supported. */\n TriangleFan = 6,\n}\n\n/** Enumerates the basic data types supported by accessors, material values, technique uniforms, etc.\n * @internal\n */\nexport enum GltfDataType {\n SignedByte = 0x1400,\n UnsignedByte = 0x1401,\n SignedShort = 5122,\n UnsignedShort = 5123,\n UInt32 = 5125,\n Float = 5126,\n Rgb = 6407,\n Rgba = 6408,\n IntVec2 = 0x8b53,\n IntVec3 = 0x8b54,\n FloatVec2 = 35664,\n FloatVec3 = 35665,\n FloatVec4 = 35666,\n FloatMat3 = 35675,\n FloatMat4 = 35676,\n Sampler2d = 35678,\n}\n\n/** @internal */\nexport enum GltfMagFilter {\n Nearest = 9728,\n Linear = 9729,\n}\n\n/** @internal */\nexport enum GltfMinFilter {\n Nearest = GltfMagFilter.Nearest,\n Linear = GltfMagFilter.Linear,\n NearestMipMapNearest = 9984,\n LinearMipMapNearest = 9985,\n NearestMipMapLinear = 9986,\n LinearMipMapLinear = 9987,\n}\n\n/** Describes how texture coordinates outside of the range [0..1] are handled.\n * @internal\n */\nexport enum GltfWrapMode {\n ClampToEdge = 33071,\n MirroredRepeat = 33648,\n Repeat = 10497,\n}\n\n/** Describes the intended target of a [[GltfBufferViewProps]].\n * @internal\n */\nexport enum GltfBufferTarget {\n ArrayBuffer = 34962,\n ElementArrayBuffer = 24963,\n}\n\n/** The type used to refer to an entry in a GltfDictionary in a glTF 1.0 asset. @internal */\nexport type Gltf1Id = string;\n/** The type used to refer to an entry in a GltfDictionary in a glTF 2.0 asset. @internal */\nexport type Gltf2Id = number;\n/** The type used to refer to an entry in a GltfDictionary. @internal */\nexport type GltfId = Gltf1Id | Gltf2Id;\n\n/** A collection of resources of some type defined at the top-level of a [[GltfDocument]].\n * In glTF 1.0, these are defined as objects; each resource is referenced and accessed by its string key.\n * In glTF 2.0, these are defined as arrays; each resource is referenced and accessed by its integer array index.\n * @internal\n */\nexport interface GltfDictionary<T extends GltfChildOfRootProperty> {\n [key: GltfId]: T | undefined;\n}\n\n/** @internal */\nexport interface GltfStringMap<T> {\n [key: string]: T | undefined;\n}\n\n/** Iterate the contents of a [[GltfDictionary]].\n * @internal\n */\nexport function * gltfDictionaryIterator<T extends GltfChildOfRootProperty>(dict: GltfDictionary<T>): Iterable<T> {\n if (Array.isArray(dict)) {\n for (const elem of dict)\n yield elem;\n } else {\n for (const key of Object.keys(dict)) {\n const value = dict[key];\n if (undefined !== value)\n yield value;\n }\n }\n}\n\n/** Optional extensions applied to a [[GltfProperty]] to enable behavior not defined in the core specification.\n * @internal\n */\nexport type GltfExtensions = GltfStringMap<unknown>;\n\n/** The base interface provided by most objects in a glTF asset, permitting additional data to be associated with the object.\n * @internal\n */\nexport interface GltfProperty {\n extensions?: GltfExtensions;\n extras?: any;\n}\n\n/** The base interface provided by top-level properties of a [[GltfDocument]].\n * @internal\n */\nexport interface GltfChildOfRootProperty extends GltfProperty {\n /** Optional name, strictly for human consumption. */\n name?: string;\n}\n\n/** @internal */\nexport interface DracoMeshCompression {\n bufferView: GltfId;\n // TEXCOORD_0, POSITION, etc\n attributes: GltfStringMap<number>;\n}\n\n/** @internal */\nexport interface MeshFeature extends GltfProperty {\n featureCount: number;\n nullFeatureId?: number;\n label?: string;\n propertyTable?: number;\n texture?: unknown;\n attribute?: number;\n}\n\n/** @internal */\nexport interface MeshFeatures {\n featureIds: MeshFeature[];\n}\n\n/** A unit of geometry belonging to a [[GltfMesh]]. @internal */\nexport interface GltfMeshPrimitive extends GltfProperty {\n /** Maps the name of each mesh attribute semantic to the Id of the [[GltfAccessor]] providing the attribute's data. */\n attributes: GltfStringMap<GltfId>;\n /** The Id of the [[GltfAccessor]] providing the vertex indices. */\n indices?: GltfId;\n /** The Id of the [[GltfMaterial]] to apply to the primitive when rendering. */\n material?: GltfId;\n /** The primitive topology type. */\n mode?: GltfMeshMode;\n /** Morph targets - currently unsupported. */\n targets?: GltfStringMap<GltfId>;\n extensions?: GltfExtensions & {\n /** The [CESIUM_primitive_outline](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/CESIUM_primitive_outline) extension\n * describes how to draw outline edges for a triangle mesh.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n CESIUM_primitive_outline?: {\n /** The Id of the [[GltfBufferViewProps]] supplying the endpoints of each edge as indices into the triangle mesh's vertex array.\n * The number of indices must be even; each consecutive pair of indices describes one line segment. No connectivity between\n * line segments is implied.\n */\n indices?: GltfId;\n };\n /** The [KHR_draco_mesh_compression](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_draco_mesh_compression/README.md) extension\n * allows glTF to support geometry compressed with Draco geometry compression.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_draco_mesh_compression?: DracoMeshCompression;\n // eslint-disable-next-line @typescript-eslint/naming-convention\n EXT_mesh_features?: MeshFeatures;\n };\n}\n\n/** A collection of [[GltfMeshPrimitive]]s to be rendered. Each mesh is referenced by a node. Multiple nodes can refer to the same mesh.\n * The node's transform is applied when rendering the mesh.\n * @internal\n */\nexport interface GltfMesh extends GltfChildOfRootProperty {\n /** The collection of primitives to be rendered. */\n primitives?: GltfMeshPrimitive[];\n /** For morph targets - currently unsupported. */\n weights?: number[];\n extensions?: GltfExtensions & {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n EXT_mesh_primitive_restart?: {\n primitiveGroups: Array<{\n primitives: number[];\n indices: number;\n }>;\n }\n };\n}\n\n/** Properties common to [[Gltf1Node]] and [[Gltf2Node]]. @internal */\nexport interface GltfNodeBaseProps {\n /** The Ids of the child nodes. @see [[GltfNode]]. */\n children?: GltfId[];\n /** Currently ignored. */\n camera?: GltfId;\n /** Currently ignored. */\n skin?: GltfId;\n /** A 4x4 column-major transformation matrix. Mutually exclusive with [[rotation]], [[scale]], and [[translation]]. */\n matrix?: number[];\n /** Unit quaternion as [x, y, z, w], where w is the scalar. */\n rotation?: [number, number, number, number];\n /** Non-uniform scale as [x, y, z]. */\n scale?: [number, number, number];\n /** Translation as [x, y, z]. */\n translation?: [number, number, number];\n}\n\n/** glTF 1.0 representation of a [[GltfNode]]. Unlike a [[Gltf2Node]], a Gltf1Node may refer to any number of [[GltfMesh]]es.\n * @internal\n */\nexport interface Gltf1Node extends GltfChildOfRootProperty, GltfNodeBaseProps {\n /** The Ids of the [[GltfMesh]]es to be rendered by this node.\n * @note The spec defines this as an array of strings, but the original implementation of [[GltfReader]] was written to treat it as a string instead.\n * In case this was because of non-spec-compliant glTF that placed a string here instead of an array, either is permitted.\n */\n meshes?: GltfId[] | string;\n mesh?: never;\n /** Currently ignored. */\n jointName?: GltfId;\n /** Currently ignored. */\n skeletons?: GltfId[];\n}\n\n/** glTF 2.0 representation of a [[GltfNode]]. Unlike a [[Gltf1Node]], a Gltf2Node may refer to at most one [[GltfMesh]].\n * @internal\n */\nexport interface Gltf2Node extends GltfChildOfRootProperty, GltfNodeBaseProps {\n /** The Id of the [[GltfMesh]] to be rendered by this node. */\n mesh?: GltfId;\n meshes?: never;\n /** Morph targets - currently ignored. */\n weights?: number[];\n extensions?: GltfExtensions & {\n /** The [EXT_mesh_gpu_instancing](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_mesh_gpu_instancing/README.md) extension permits multiple\n * instances of the same mesh to be rendered with different translation, rotation, and/or scale.\n * All of the attribute accessors must have the same count (which indicates the number of instances to be drawn).\n * All attributes are optional (though omitting all of them would be silly).\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n EXT_mesh_gpu_instancing?: {\n attributes?: {\n /** VEC3; FLOAT */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n TRANSLATION?: GltfId;\n /** VEC4 (quaternion); FLOAT, normalized BYTE, or normalized SHORT */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n ROTATION?: GltfId;\n /** VEC3; FLOAT */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n SCALE?: GltfId;\n };\n };\n /** The [EXT_instance_features](https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_instance_features/README.md)\n * extension permits assigning identifiers to individual instances of a mesh, which can be used to look up per-instance data in a property table.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n EXT_instance_features?: {\n featureIds: {\n attribute?: number;\n featureCount: number;\n label?: string;\n nullFeatureId?: number;\n propertyTable: number;\n }[];\n };\n };\n}\n\n/** Describes a node in a [[GltfScene]]. Each node may be associated with zero, one (glTF 2.0), or any number of (glTF 1.0) [[GltfMesh]]es.\n * Each node may define a transform. Each node may have any number of child nodes. A child node's transform is multiplied by its parent node's transform.\n * Some nodes may be associated with other types of data like cameras, skins, lights, etc - these types of data are currently unsupported.\n * Rendering a node means rendering its meshes and the meshes of all of its descendants, with transforms applied.\n * @internal\n */\nexport type GltfNode = Gltf1Node | Gltf2Node;\n\n/** Get the Ids of the meshes associated with a node.\n * @internal\n */\nexport function getGltfNodeMeshIds(node: GltfNode): GltfId[] {\n if (undefined !== node.meshes)\n return typeof node.meshes === \"string\" ? [node.meshes] : node.meshes;\n else if (undefined !== node.mesh)\n return [node.mesh];\n\n return [];\n}\n\n/** @internal */\nexport function * traverseGltfNodes(ids: Iterable<GltfId>, nodes: GltfDictionary<GltfNode>, traversed: Set<GltfId>): Iterable<GltfNode> {\n for (const id of ids) {\n if (traversed.has(id))\n throw new Error(\"Cycle detected while traversing glTF nodes\");\n\n const node = nodes[id];\n if (!node)\n continue;\n\n traversed.add(id);\n yield node;\n if (node.children)\n for (const child of traverseGltfNodes(node.children, nodes, traversed))\n yield child;\n }\n}\n\n/** Describes a scene graph that composes any number of [[GltfNode]]s to produce a rendering of the [[GltfDocument]] asset.\n * An asset may define any number of scenes; the default scene is specified by [[Gltf.scene]].\n * @internal\n */\nexport interface GltfScene extends GltfChildOfRootProperty {\n /** The Ids of the nodes comprising the scene graph. */\n nodes?: GltfId[];\n}\n\n/** Provides metadata about a [[GltfDocument]] asset.\n * @internal\n */\nexport interface GltfAsset extends GltfProperty {\n /** A copyright message suitable for display to credit the content creator. */\n copyright?: string;\n /** The name of the tool that generated the asset. */\n generator?: string;\n /** The glTF version targeted by the asset, in the form \"major.minor\" where \"major\" and \"minor\" are integers. */\n version: string;\n /** The minimum glTF version required to properly load this asset, in the same form as [[version]].\n * This minimum version must be no greater than [[version]].\n */\n minVersion?: string;\n}\n\n/** Describes an image such as one used for a [[GltfTexture]]. The image may be referenced by a [[uri]] or a [[bufferView]].\n * @internal\n */\nexport interface GltfImage extends GltfChildOfRootProperty {\n /** URI from which the image data can be obtained, either as a base-64-encoded data URI or an external resource.\n * Mutually exclusive with [[bufferView]].\n */\n uri?: string;\n /** The image's media type. This property is required if [[bufferView]] is defined. */\n mimeType?: \"image/jpeg\" | \"image/png\";\n /** The Id of the [[GltfBufferViewProps]] containing the image data. Mutually exclusive with [[uri]]. */\n bufferView?: GltfId;\n extensions?: GltfExtensions & {\n /** The [KHR_binary_glTF](https://github.com/KhronosGroup/glTF/tree/main/extensions/1.0/Khronos/KHR_binary_glTF) allows an image to\n * be embedded in a binary chunk appended to the glTF asset's JSON, instead of being referenced by an external URI.\n * This is superseded in glTF 2.0 by support for the glb file format specification.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_binary_glTF?: {\n /** The Id of the [[GltfBufferViewProps]] that contains the binary image data. */\n bufferView?: GltfId;\n /** Required - @see [[GltfImage.mimeType]]. */\n mimeType?: string;\n };\n };\n}\n\n/** Describes a reference to a [[GltfTexture]]. @internal */\nexport interface GltfTextureInfo extends GltfProperty {\n /** The Id of the [[GltfTexture]]. */\n index: GltfId;\n /** The set index of the texture's TEXCOORD attribute used for texture coordinate mapping.\n * For example, if `texCoord` is `2`, an attribute named `TEXCOORD_2` must exist containing the texture coordinates.\n * Default: 0.\n */\n texCoord?: number;\n}\n\n/** Describes a texture and its sampler.\n * @internal\n */\nexport interface GltfTexture extends GltfChildOfRootProperty {\n /** The Id of the [[GltfSampler]] used by this texture.\n * If undefined, a sampler with repeat wrapping and auto filtering should be used by default.\n */\n sampler?: GltfId;\n /** The Id of the [[GltfImage]] used by this texture.\n * If undefined, an extension or other mechanism should supply an alternate image source - otherwise, the behavior is undefined.\n */\n source?: GltfId;\n}\n\n/** Describes the filtering and wrapping behavior to be applied to a [[GltfTexture]].\n * @note The implementation currently does not support MirroredRepeat and does not support different wrapping for U and V;\n * effectively, unless `wrapS` or `wrapT` is set to ClampToEdge, the sampler will use GltfWrapMode.Repeat.\n * @internal\n */\nexport interface GltfSampler extends GltfChildOfRootProperty {\n /** Magnification filter. */\n magFilter?: GltfMagFilter;\n /** Minification filter. */\n minFilter?: GltfMinFilter;\n /** S (U) wrapping mode. Default: Repeat. */\n wrapS?: GltfWrapMode;\n /** T (V) wrapping mode. Default: Repeat. */\n wrapT?: GltfWrapMode;\n}\n\n/** GL states that can be enabled by a [[GltfTechnique]]. Only those queried by this implementation are enumerated.\n * @internal\n */\nexport enum GltfTechniqueState {\n /** Enables alpha blending. */\n Blend = 3042,\n}\n\n/** For glTF 1.0 only, describes shader programs and shader state associated with a [[Gltf1Material]], used to render meshes associated with the material.\n * This implementation uses it strictly to identify techniques that require alpha blending.\n * @internal\n */\nexport interface GltfTechnique extends GltfChildOfRootProperty {\n /** GL render states to be applied by the technique. */\n states?: {\n /** An array of integers corresponding to boolean GL states that should be enabled using GL's `enable` function.\n * For example, the value [[GltfTechniqueState.Blend]] (3042) indicates that blending should be enabled.\n */\n enable?: GltfTechniqueState[];\n };\n}\n\n/** @internal */\nexport interface Gltf1Material extends GltfChildOfRootProperty {\n diffuse?: string;\n emission?: number[];\n shininess?: number;\n specular?: number[];\n technique?: GltfId;\n values?: {\n texStep?: number[];\n color?: number[];\n tex?: number | string;\n };\n}\n\n/** @internal */\nexport interface GltfMaterialPbrMetallicRoughness extends GltfProperty {\n // Default [1,1,1,1]\n baseColorFactor?: number[];\n baseColorTexture?: GltfTextureInfo;\n // Default 1\n metallicFactor?: number;\n // Default 1\n roughnessFactor?: number;\n metallicRoughnessTexture?: GltfTextureInfo;\n}\n\n/** @internal */\nexport type GltfAlphaMode = \"OPAQUE\" | \"MASK\" | \"BLEND\";\n\n/** @internal */\nexport interface Gltf2Material extends GltfChildOfRootProperty {\n pbrMetallicRoughness?: GltfMaterialPbrMetallicRoughness;\n normalTexture?: GltfTextureInfo;\n occlusionTexture?: unknown;\n emissiveTexture?: GltfTextureInfo;\n emissiveFactor?: number[];\n // Default OPAQUE\n alphaMode?: GltfAlphaMode;\n // Default 0.5. Ignored unless alphaMode=MASK\n alphaCutoff?: number;\n doubleSided?: boolean;\n extensions?: GltfExtensions & {\n /** The [KHR_materials_unlit](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_unlit) extension\n * indicates that the material should be displayed without lighting. The extension adds no additional properties; it is effectively a boolean flag.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_materials_unlit?: object;\n /** The [KHR_techniques_webgl extension](https://github.com/KhronosGroup/glTF/blob/c1c12bd100e88ff468ccef1cb88cfbec56a69af2/extensions/2.0/Khronos/KHR_techniques_webgl/README.md)\n * allows \"techniques\" to be associated with [[GltfMaterial]]s. Techniques can supply custom shader programs to render geometry; this was a core feature of glTF 1.0 (see [[GltfTechnique]]).\n * Here, it is only used to extract uniform values.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_techniques_webgl?: {\n technique?: number;\n // An object containing uniform values. Each property name corresponds to a uniform in the material's technique and must conform to that uniform's type and count properties.\n // A handful of uniforms referenced in this implementation by name are defined below.\n values?: {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n u_texStep?: number[];\n // eslint-disable-next-line @typescript-eslint/naming-convention\n u_color?: number[];\n // Diffuse texture.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n u_diffuse?: { index: number, texCoord: number };\n [k: string]: unknown;\n };\n };\n };\n}\n\n/** @internal */\nexport type GltfMaterial = Gltf1Material | Gltf2Material;\n\n/** @internal */\nexport function isGltf1Material(material: GltfMaterial): material is Gltf1Material {\n const mat1 = material as Gltf1Material;\n return undefined !== mat1.technique || undefined !== mat1.values;\n}\n\n/** @internal */\nexport interface GltfBuffer extends GltfChildOfRootProperty {\n uri?: string;\n byteLength?: number;\n extensions?: GltfExtensions & {\n // https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_meshopt_compression/README.md\n EXT_meshopt_compression?: { // eslint-disable-line @typescript-eslint/naming-convention\n fallback?: boolean;\n };\n };\n}\n\n/** @internal */\nexport type ExtMeshoptCompressionMode = \"ATTRIBUTES\" | \"TRIANGLES\" | \"INDICES\";\n\n/** @internal */\nexport type ExtMeshoptCompressionFilter = \"NONE\" | \"OCTAHEDRAL\" | \"QUATERNION\";\n\n/** https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_meshopt_compression/README.md\n * @internal\n*/\nexport interface GltfBufferViewMeshoptCompressionExtension {\n buffer: number;\n byteOffset?: number;\n byteLength: number;\n byteStride: number;\n count: number;\n mode: ExtMeshoptCompressionMode;\n filter?: ExtMeshoptCompressionFilter;\n}\n\n/** @internal */\nexport interface GltfBufferViewProps extends GltfChildOfRootProperty {\n buffer: GltfId;\n byteLength?: number;\n byteOffset?: number;\n byteStride?: number;\n target?: GltfBufferTarget;\n extensions?: GltfExtensions & {\n EXT_meshopt_compression?: GltfBufferViewMeshoptCompressionExtension; // eslint-disable-line @typescript-eslint/naming-convention\n };\n}\n\n/** @internal */\nexport interface GltfAccessor extends GltfChildOfRootProperty {\n bufferView?: GltfId;\n byteOffset?: number;\n componentType?: GltfDataType.SignedByte | GltfDataType.UnsignedByte | GltfDataType.SignedShort | GltfDataType.UnsignedShort | GltfDataType.UInt32 | GltfDataType.Float;\n normalized?: boolean;\n count: number;\n type: \"SCALAR\" | \"VEC2\" | \"VEC3\" | \"VEC4\" | \"MAT2\" | \"MAT3\" | \"MAT4\";\n max?: number[];\n min?: number[];\n sparse?: unknown; // ###TODO sparse accessors\n extensions?: GltfExtensions & {\n /** Quantized attributes for glTF 1.0. Superceded by KHR_mesh_quantization. */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n WEB3D_quantized_attributes?: {\n decodedMin: number[];\n decodedMax: number[];\n /** Currently ignored. */\n decodeMatrix: number[];\n };\n };\n}\n\n/** @internal */\nexport namespace GltfStructuralMetadata {\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n export type ClassPropertyType = \"SCALAR\" | \"STRING\" | \"BOOLEAN\" | \"ENUM\" | \"VEC2\" | \"VEC3\" | \"VEC4\" | \"MAT2\" | \"MAT3\" | \"MAT4\" | string;\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n export type ClassPropertyComponentType = \"INT8\" | \"UINT8\" | \"INT16\" | \"UINT16\" | \"INT32\" | \"UINT32\" | \"INT64\" | \"UINT64\" | \"FLOAT32\" | \"FLOAT64\" | string;\n\n // Ignoring VECN and MATN types because they complicate offset, scale, min, and max, all of which are otherwise only relevant to SCALAR in which case they're all just numbers.\n export interface ClassProperty extends GltfProperty {\n type: ClassPropertyType;\n name?: string;\n description?: string;\n componentType?: ClassPropertyComponentType;\n enumType?: string;\n array?: boolean;\n count?: number;\n normalized?: boolean;\n offset?: number;\n scale?: number;\n min?: number;\n max?: number;\n required?: boolean;\n noData?: unknown;\n default?: unknown;\n semantic?: string;\n }\n\n export interface EnumValue extends GltfProperty {\n name: string;\n value: number; // an integer\n description?: string;\n }\n\n export interface Enum extends GltfProperty {\n values: EnumValue[];\n // Default: UINT16\n valueType?: \"INT8\" | \"UINT8\" | \"INT16\" | \"UINT16\" | \"INT32\" | \"UINT32\" | \"INT64\" | \"UINT64\" | string; // eslint-disable-line @typescript-eslint/no-redundant-type-constituents\n name?: string;\n description?: string;\n }\n\n export interface Class extends GltfProperty {\n name?: string;\n description?: string;\n properties?: {\n [propertyId: string]: ClassProperty | undefined;\n };\n }\n\n export interface Schema extends GltfProperty {\n id: string;\n name?: string;\n description?: string;\n version?: string;\n classes?: {\n [classId: string]: Class | undefined;\n };\n enums?: Enum[];\n }\n\n // Ignoring VECN and MATN types because they complicate offset, scale, min, and max, all of which are otherwise only relevant to SCALAR in which case they're all just numbers.\n export interface PropertyTableProperty extends GltfProperty {\n values: GltfId;\n arrayOffsets?: GltfId;\n stringOffsets?: GltfId;\n arrayOffsetType?: \"UINT8\" | \"UINT16\" | \"UINT32\" | \"UINT64\" | string; // eslint-disable-line @typescript-eslint/no-redundant-type-constituents\n stringOffsetType?: \"UINT8\" | \"UINT16\" | \"UINT32\" | \"UINT64\" | string; // eslint-disable-line @typescript-eslint/no-redundant-type-constituents\n offset?: number;\n scale?: number;\n min?: number;\n max?: number;\n }\n\n export interface PropertyTable {\n class: string;\n count: number;\n properties?: {\n [propertyId: string]: PropertyTableProperty | undefined;\n };\n }\n\n export interface Extension extends GltfProperty {\n // Exactly one of schema or schemaUri must be present.\n schemaUri?: string;\n schema?: Schema;\n propertyTables?: PropertyTable[];\n propertyTextures?: unknown;\n propertyAttributes?: unknown;\n }\n}\n\n/** Describes the top-level structure of a glTF asset.\n * This interface, along with all of the related Gltf* types defined in this file, is primarily based upon the [official glTF 2.0 specification](https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html).\n * However, it can also represent a [glTF 1.0](https://github.com/KhronosGroup/glTF/tree/main/specification/1.0#reference-node) asset.\n * Some types are combined. For example, the top-level dictionaries in glTF 1.0 are objects, while in glTF 2.0 they are arrays; the GltfDictionary interface supports accessing\n * items using either strings or numeric indexes represented by [[GltfId]].\n * For types that differ significantly between the two specs, Gltf1* and Gltf2* versions are defined (e.g., GltfMaterial is a union of Gltf1Material and Gltf2Material).\n * These interfaces also accommodate some deviations from both specs that are known to exist in the wild.\n * Most aspects of the specifications that are not implemented here are omitted (e.g., skinning, animations).\n * @internal\n */\nexport interface GltfDocument extends GltfProperty {\n /** Metadata about the glTF asset.\n * @note This property is required in glTF 2.0, but optional in 1.0.\n */\n asset?: GltfAsset;\n /** The Id of the default [[GltfScene]] in [[scenes]]. */\n scene?: GltfId;\n extensions?: GltfExtensions & {\n /** The [CESIUM_RTC extension](https://github.com/KhronosGroup/glTF/blob/main/extensions/1.0/Vendor/CESIUM_RTC/README.md) defines a centroid\n * relative to which all coordinates in the asset are defined, to reduce floating-point precision errors for large coordinates.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n CESIUM_RTC?: {\n center?: number[];\n };\n /** The [KHR_techniques_webgl extension](https://github.com/KhronosGroup/glTF/blob/c1c12bd100e88ff468ccef1cb88cfbec56a69af2/extensions/2.0/Khronos/KHR_techniques_webgl/README.md)\n * allows \"techniques\" to be associated with [[GltfMaterial]]s. Techniques can supply custom shader programs to render geometry; this was a core feature of glTF 1.0 (see [[GltfTechnique]]).\n * Here, it is only used to extract uniform values.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n KHR_techniques_webgl?: {\n techniques?: Array<{\n uniforms?: {\n [key: string]: { type: GltfDataType, value?: any } | undefined;\n };\n }>;\n };\n // eslint-disable-next-line @typescript-eslint/naming-convention\n EXT_structural_metadata?: GltfStructuralMetadata.Extension;\n };\n /** Names of glTF extensions used in the asset. */\n extensionsUsed?: string[];\n /** Names of glTF extensions required to properly load the asset. */\n extensionsRequired?: string[];\n accessors?: GltfDictionary<GltfAccessor>;\n /** Not currently supported. */\n animations?: GltfDictionary<any>;\n buffers?: GltfDictionary<GltfBuffer>;\n bufferViews?: GltfDictionary<GltfBufferViewProps>;\n /** Not currently used. */\n cameras?: GltfDictionary<any>;\n images?: GltfDictionary<GltfImage>;\n materials?: GltfDictionary<GltfMaterial>;\n meshes?: GltfDictionary<GltfMesh>;\n nodes?: GltfDictionary<GltfNode>;\n samplers?: GltfDictionary<GltfSampler>;\n scenes?: GltfDictionary<GltfScene>;\n /** Not currently supported. */\n skins?: GltfDictionary<any>;\n textures?: GltfDictionary<GltfTexture>;\n /** For glTF 1.0 only, techniques associated with [[Gltf1Material]]s. */\n techniques?: GltfDictionary<GltfTechnique>;\n}\n"]}
@@ -225,5 +225,5 @@ import "./extension/ExtensionRuntime";
225
225
  /**
226
226
  * @docs-group-description TileStorage
227
227
  * Class for working with cloud storage using iTwin/object-storage cloud providers
228
- */
228
+ */
229
229
  //# sourceMappingURL=core-frontend.d.ts.map
@@ -299,5 +299,5 @@ require("./extension/ExtensionRuntime");
299
299
  /**
300
300
  * @docs-group-description TileStorage
301
301
  * Class for working with cloud storage using iTwin/object-storage cloud providers
302
- */
302
+ */
303
303
  //# sourceMappingURL=core-frontend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;;AAE/F,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,kDAAgC;AAChC,sDAAoC;AACpC,0DAAwC;AACxC,gDAA8B;AAC9B,yDAAuC;AACvC,2CAAyB;AACzB,6DAA2C;AAC3C,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,sDAAoC;AACpC,gDAA8B;AAC9B,2DAAyC;AACzC,4DAA0C;AAC1C,kDAAgC;AAChC,sDAAoC;AACpC,8CAA4B;AAC5B,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,0DAAwC;AACxC,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,yDAAuC;AACvC,2CAAyB;AACzB,uDAAqC;AACrC,kDAAgC;AAChC,2CAAyB;AACzB,u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C;AACtC,qDAAmC;AACnC,+CAA6B;AAC7B,uDAAqC;AACrC,oDAAkC;AAClC,yDAAuC;AACvC,mDAAiC;AACjC,2DAAyC;AACzC,0DAAwC;AACxC,kDAAgC;AAChC,kDAAgC;AAChC,oDAAkC;AAClC,kDAAgC;AAChC,sDAAoC;AAEpC,2DAAyC;AAEzC,sGAAsG;AACtG,wCAAsC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./AccuDraw\";\nexport * from \"./AccuSnap\";\nexport * from \"./AuxCoordSys\";\nexport * from \"./BingLocation\";\nexport * from \"./BriefcaseConnection\";\nexport * from \"./BriefcaseTxns\";\nexport * from \"./CatalogConnection\";\nexport * from \"./CategorySelectorState\";\nexport * from \"./ChangeFlags\";\nexport * from \"./CheckpointConnection\";\nexport * from \"./common\";\nexport * from \"./ContextRealityModelState\";\nexport * from \"./CoordSystem\";\nexport * from \"./DecorationsCache\";\nexport * from \"./DevTools\";\nexport * from \"./DisplayStyleState\";\nexport * from \"./DrawingViewState\";\nexport * from \"./ElementLocateManager\";\nexport * from \"./EmphasizeElements\";\nexport * from \"./EntityState\";\nexport * from \"./EnvironmentDecorations\";\nexport * from \"./FeatureOverrideProvider\";\nexport * from \"./FlashSettings\";\nexport * from \"./FrontendHubAccess\";\nexport * from \"./Frustum2d\";\nexport * from \"./FrustumAnimator\";\nexport * from \"./FuzzySearch\";\nexport * from \"./GeoServices\";\nexport * from \"./GlobeAnimator\";\nexport * from \"./GraphicalEditingScope\";\nexport * from \"./HitDetail\";\nexport * from \"./IModelApp\";\nexport * from \"./IModelConnection\";\nexport * from \"./IModelRoutingContext\";\nexport * from \"./IpcApp\";\nexport * from \"./LinePlaneIntersect\";\nexport * from \"./MarginPercent\";\nexport * from \"./Marker\";\nexport * from \"./ModelSelectorState\";\nexport * from \"./ModelState\";\nexport * from \"./NativeApp\";\nexport * from \"./NativeAppLogger\";\nexport * from \"./NoRenderApp\";\nexport * from \"./NotificationManager\";\nexport * from \"./PerModelCategoryVisibility\";\nexport * from \"./PlanarClipMaskState\";\nexport * from \"./SelectionSet\";\nexport * from \"./SheetViewState\";\nexport * from \"./SpatialClassifiersState\";\nexport * from \"./SpatialViewState\";\nexport * from \"./Sprites\";\nexport * from \"./StandardView\";\nexport * from \"./SubCategoriesCache\";\nexport * from \"./TentativePoint\";\nexport * from \"./Tiles\";\nexport * from \"./UserPreferences\";\nexport * from \"./ViewAnimation\";\nexport * from \"./ViewContext\";\nexport * from \"./ViewGlobalLocation\";\nexport * from \"./ViewingSpace\";\nexport * from \"./ViewManager\";\nexport * from \"./Viewport\";\nexport * from \"./ViewportSync\";\nexport * from \"./ViewPose\";\nexport * from \"./ViewState\";\nexport * from \"./ViewStatus\";\nexport * from \"./extension/Extension\";\nexport * from \"./extension/providers/LocalExtensionProvider\";\nexport * from \"./extension/providers/RemoteExtensionProvider\";\nexport * from \"./properties/AngleDescription\";\nexport * from \"./properties/FormattedQuantityDescription\";\nexport * from \"./properties/LengthDescription\";\nexport * from \"./quantity-formatting/QuantityFormatter\";\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\nexport * from \"./render/CanvasDecoration\";\nexport * from \"./render/CreateRenderMaterialArgs\";\nexport * from \"./render/CreateTextureArgs\";\nexport * from \"./render/Decorations\";\nexport * from \"./render/FeatureSymbology\";\nexport * from \"./render/FrameStats\";\nexport * from \"./render/GraphicBranch\";\nexport * from \"./render/GraphicBuilder\";\nexport * from \"./render/GraphicTemplate\";\nexport * from \"./render/MeshArgs\";\nexport * from \"./render/ParticleCollectionBuilder\";\nexport * from \"./render/Pixel\";\nexport * from \"./render/PolylineArgs\";\nexport * from \"./render/RealityMeshParams\";\nexport * from \"./render/RenderClipVolume\";\nexport * from \"./render/RenderGraphic\";\nexport * from \"./render/RenderMemory\";\nexport * from \"./render/RenderSystem\";\nexport * from \"./render/RenderTarget\";\nexport * from \"./render/Scene\";\nexport * from \"./render/ScreenSpaceEffectBuilder\";\nexport * from \"./render/VisibleFeature\";\nexport * from \"./internal/render/webgl/IModelFrameLifecycle\";\nexport type {\n TxnEntityChange,\n TxnEntityChangeIterable,\n TxnEntityChangeType,\n TxnEntityChanges,\n TxnEntityChangesFilterOptions,\n TxnEntityMetadata,\n TxnEntityMetadataCriterion,\n} from \"./TxnEntityChanges\";\nexport {\n type TileTreeDiscloser, DisclosedTileTreeSet,\n type ReadGltfGraphicsArgs, type GltfGraphic, type GltfTemplate, readGltfGraphics, readGltfTemplate, readGltf,\n readElementGraphics,\n type BatchTableProperties, RealityTileTree,\n type RealityTileGeometry, RealityTile,\n type RenderGraphicTileTreeArgs,\n type GpuMemoryLimit, type GpuMemoryLimits, TileAdmin,\n type TileContent,\n type TiledGraphicsProvider,\n type TileDrawArgParams, TileDrawArgs,\n type CollectTileStatus, type TileGeometryCollectorOptions, TileGeometryCollector, type GeometryTileTreeReference,\n type TileParams,\n TileRequestChannels,\n type TileContentDecodingStatistics, TileRequestChannelStatistics, TileRequestChannel,\n TileRequest,\n type TileTreeOwner,\n type TileTreeParams,\n TileGraphicType, TileTreeReference,\n type TileTreeSupplier,\n TileTreeLoadStatus, TileTree,\n Tile, TileLoadStatus, TileVisibility, TileLoadPriority, TileBoundingBoxes,\n TileUsageMarker,\n TileUser,\n BingElevationProvider,\n QuadId, type QuadIdProps,\n MapTilingScheme, GeographicTilingScheme, WebMercatorProjection, WebMercatorTilingScheme,\n type MapLayerIndex,\n MapTileProjection, MapTile,\n MapLayerTileTreeReference,\n MapLayerSourceStatus, type MapLayerSourceProps, MapLayerSource, MapLayerSources,\n MapLayerImageryProviderStatus, MapLayerImageryProvider,\n ImageryMapLayerFormat,\n MapLayerFormat, type ValidateSourceArgs, type MapLayerFormatType, type MapLayerSourceValidation, type MapLayerOptions, MapLayerFormatRegistry,\n type MapLayerTokenEndpoint, type MapLayerAuthenticationInfo, type MapLayerAccessToken, type MapLayerAccessTokenParams, type MapLayerAccessClient,\n type MapFeatureInfoOptions, MapFeatureInfoRecord, type MapFeatureInfo, type MapLayerFeatureInfo, type MapSubLayerFeatureInfo, type MapLayerFeature, type MapLayerFeatureGeometry, type MapLayerFeatureAttribute, MapLayerFeatureRecord,\n MapCartoRectangle,\n ImageryMapLayerTreeReference,\n EllipsoidTerrainProvider,\n getCesiumAssetUrl,\n MapTileTreeScaleRangeVisibility, MapTileTree,\n type TerrainMeshProviderOptions, type RequestMeshDataArgs, type ReadMeshArgs, TerrainMeshProvider,\n type TerrainProvider, TerrainProviderRegistry,\n} from \"./tile/internal\";\nexport * from \"./tools/AccuDrawTool\";\nexport * from \"./tools/AccuDrawViewportUI\";\nexport * from \"./tools/ClipViewTool\";\nexport * from \"./tools/EditManipulator\";\nexport * from \"./tools/ElementSetTool\";\nexport * from \"./tools/EventController\";\nexport * from \"./tools/IdleTool\";\nexport * from \"./tools/MeasureTool\";\nexport * from \"./tools/PrimitiveTool\";\nexport * from \"./tools/SelectTool\";\nexport * from \"./tools/Tool\";\nexport * from \"./tools/ToolSettings\";\nexport * from \"./tools/ToolAdmin\";\nexport * from \"./tools/ToolAssistance\";\nexport * from \"./tools/ViewTool\";\nexport * from \"./workers/RegisterWorker\";\nexport * from \"./BackgroundMapGeometry\";\nexport * from \"./ViewCreator2d\";\nexport * from \"./ViewCreator3d\";\nexport * from \"./LocalhostIpcApp\";\nexport * from \"./request/utils\";\nexport * from \"./RealityDataSource\";\n\nexport * from \"./internal/cross-package\";\n\n// TODO/FIX: \"./extension/ExtensionRuntime\" import has to be last to avoid circular dependency errors.\nimport \"./extension/ExtensionRuntime\";\n\n/** @docs-package-description\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\n */\n\n/**\n * @docs-group-description IModelApp\n * Classes for configuring and administering an iTwin.js application.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description IModelConnection\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\n */\n/**\n * @docs-group-description ElementState\n * Classes for working with the *state* of Elements in the frontend.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description ModelState\n * Classes for working with the *state* of Models in the frontend.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Tools\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\n */\n/**\n * @docs-group-description Measure\n * Classes for reporting point to point distances and mass properties of elements.\n */\n/**\n * @docs-group-description Views\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\n */\n/**\n * @docs-group-description LocatingElements\n * Classes for locating and snapping to elements in views.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description AccuDraw\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Notifications\n * Notifications provide feedback to the user of something of interest.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Extensions\n * Classes for creating and managing Extensions.\n */\n/**\n * @docs-group-description Properties\n * Classes for working with property records and descriptions.\n */\n/**\n * @docs-group-description Rendering\n * Classes for rendering the contents of views.\n */\n/**\n * @docs-group-description SelectionSet\n * Classes for working with the set of selected elements.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description NativeApp\n * Classes for working with Native Applications\n */\n/**\n * @docs-group-description Utils\n * Miscellaneous utility classes.\n */\n/**\n * @docs-group-description Logging\n * Logger categories used by this package\n */\n/**\n * @docs-group-description QuantityFormatting\n * Classes for formatting and parsing quantity values.\n */\n/**\n * @docs-group-description Tiles\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\n */\n/**\n * @docs-group-description HubAccess\n * APIs for working with IModelHub\n */\n/**\n * @docs-group-description UserPreferences\n * APIs for working with user preferences in an iModelApp.\n * See [the learning articles]($docs/learning/frontend/preferences.md).\n */\n/**\n * @docs-group-description MapLayers\n * Classes supporting map layers display.\n */\n/**\n * @docs-group-description TileStorage\n * Class for working with cloud storage using iTwin/object-storage cloud providers\n*/\n"]}
1
+ {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;;AAE/F,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,kDAAgC;AAChC,sDAAoC;AACpC,0DAAwC;AACxC,gDAA8B;AAC9B,yDAAuC;AACvC,2CAAyB;AACzB,6DAA2C;AAC3C,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,sDAAoC;AACpC,gDAA8B;AAC9B,2DAAyC;AACzC,4DAA0C;AAC1C,kDAAgC;AAChC,sDAAoC;AACpC,8CAA4B;AAC5B,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,0DAAwC;AACxC,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,yDAAuC;AACvC,2CAAyB;AACzB,uDAAqC;AACrC,kDAAgC;AAChC,2CAAyB;AACzB,uDAAqC;AACrC,+CAA6B;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,+CAA6B;AAC7B,uDAAqC;AACrC,oDAAkC;AAClC,yDAAuC;AACvC,mDAAiC;AACjC,2DAAyC;AACzC,0DAAwC;AACxC,kDAAgC;AAChC,kDAAgC;AAChC,oDAAkC;AAClC,kDAAgC;AAChC,sDAAoC;AAEpC,2DAAyC;AAEzC,sGAAsG;AACtG,wCAAsC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./AccuDraw\";\nexport * from \"./AccuSnap\";\nexport * from \"./AuxCoordSys\";\nexport * from \"./BingLocation\";\nexport * from \"./BriefcaseConnection\";\nexport * from \"./BriefcaseTxns\";\nexport * from \"./CatalogConnection\";\nexport * from \"./CategorySelectorState\";\nexport * from \"./ChangeFlags\";\nexport * from \"./CheckpointConnection\";\nexport * from \"./common\";\nexport * from \"./ContextRealityModelState\";\nexport * from \"./CoordSystem\";\nexport * from \"./DecorationsCache\";\nexport * from \"./DevTools\";\nexport * from \"./DisplayStyleState\";\nexport * from \"./DrawingViewState\";\nexport * from \"./ElementLocateManager\";\nexport * from \"./EmphasizeElements\";\nexport * from \"./EntityState\";\nexport * from \"./EnvironmentDecorations\";\nexport * from \"./FeatureOverrideProvider\";\nexport * from \"./FlashSettings\";\nexport * from \"./FrontendHubAccess\";\nexport * from \"./Frustum2d\";\nexport * from \"./FrustumAnimator\";\nexport * from \"./FuzzySearch\";\nexport * from \"./GeoServices\";\nexport * from \"./GlobeAnimator\";\nexport * from \"./GraphicalEditingScope\";\nexport * from \"./HitDetail\";\nexport * from \"./IModelApp\";\nexport * from \"./IModelConnection\";\nexport * from \"./IModelRoutingContext\";\nexport * from \"./IpcApp\";\nexport * from \"./LinePlaneIntersect\";\nexport * from \"./MarginPercent\";\nexport * from \"./Marker\";\nexport * from \"./ModelSelectorState\";\nexport * from \"./ModelState\";\nexport * from \"./NativeApp\";\nexport * from \"./NativeAppLogger\";\nexport * from \"./NoRenderApp\";\nexport * from \"./NotificationManager\";\nexport * from \"./PerModelCategoryVisibility\";\nexport * from \"./PlanarClipMaskState\";\nexport * from \"./SelectionSet\";\nexport * from \"./SheetViewState\";\nexport * from \"./SpatialClassifiersState\";\nexport * from \"./SpatialViewState\";\nexport * from \"./Sprites\";\nexport * from \"./StandardView\";\nexport * from \"./SubCategoriesCache\";\nexport * from \"./TentativePoint\";\nexport * from \"./Tiles\";\nexport * from \"./UserPreferences\";\nexport * from \"./ViewAnimation\";\nexport * from \"./ViewContext\";\nexport * from \"./ViewGlobalLocation\";\nexport * from \"./ViewingSpace\";\nexport * from \"./ViewManager\";\nexport * from \"./Viewport\";\nexport * from \"./ViewportSync\";\nexport * from \"./ViewPose\";\nexport * from \"./ViewState\";\nexport * from \"./ViewStatus\";\nexport * from \"./extension/Extension\";\nexport * from \"./extension/providers/LocalExtensionProvider\";\nexport * from \"./extension/providers/RemoteExtensionProvider\";\nexport * from \"./properties/AngleDescription\";\nexport * from \"./properties/FormattedQuantityDescription\";\nexport * from \"./properties/LengthDescription\";\nexport * from \"./quantity-formatting/QuantityFormatter\";\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\nexport * from \"./render/CanvasDecoration\";\nexport * from \"./render/CreateRenderMaterialArgs\";\nexport * from \"./render/CreateTextureArgs\";\nexport * from \"./render/Decorations\";\nexport * from \"./render/FeatureSymbology\";\nexport * from \"./render/FrameStats\";\nexport * from \"./render/GraphicBranch\";\nexport * from \"./render/GraphicBuilder\";\nexport * from \"./render/GraphicTemplate\";\nexport * from \"./render/MeshArgs\";\nexport * from \"./render/ParticleCollectionBuilder\";\nexport * from \"./render/Pixel\";\nexport * from \"./render/PolylineArgs\";\nexport * from \"./render/RealityMeshParams\";\nexport * from \"./render/RenderClipVolume\";\nexport * from \"./render/RenderGraphic\";\nexport * from \"./render/RenderMemory\";\nexport * from \"./render/RenderSystem\";\nexport * from \"./render/RenderTarget\";\nexport * from \"./render/Scene\";\nexport * from \"./render/ScreenSpaceEffectBuilder\";\nexport * from \"./render/VisibleFeature\";\nexport * from \"./internal/render/webgl/IModelFrameLifecycle\";\nexport type {\n TxnEntityChange,\n TxnEntityChangeIterable,\n TxnEntityChangeType,\n TxnEntityChanges,\n TxnEntityChangesFilterOptions,\n TxnEntityMetadata,\n TxnEntityMetadataCriterion,\n} from \"./TxnEntityChanges\";\nexport {\n type TileTreeDiscloser, DisclosedTileTreeSet,\n type ReadGltfGraphicsArgs, type GltfGraphic, type GltfTemplate, readGltfGraphics, readGltfTemplate, readGltf,\n readElementGraphics,\n type BatchTableProperties, RealityTileTree,\n type RealityTileGeometry, RealityTile,\n type RenderGraphicTileTreeArgs,\n type GpuMemoryLimit, type GpuMemoryLimits, TileAdmin,\n type TileContent,\n type TiledGraphicsProvider,\n type TileDrawArgParams, TileDrawArgs,\n type CollectTileStatus, type TileGeometryCollectorOptions, TileGeometryCollector, type GeometryTileTreeReference,\n type TileParams,\n TileRequestChannels,\n type TileContentDecodingStatistics, TileRequestChannelStatistics, TileRequestChannel,\n TileRequest,\n type TileTreeOwner,\n type TileTreeParams,\n TileGraphicType, TileTreeReference,\n type TileTreeSupplier,\n TileTreeLoadStatus, TileTree,\n Tile, TileLoadStatus, TileVisibility, TileLoadPriority, TileBoundingBoxes,\n TileUsageMarker,\n TileUser,\n BingElevationProvider,\n QuadId, type QuadIdProps,\n MapTilingScheme, GeographicTilingScheme, WebMercatorProjection, WebMercatorTilingScheme,\n type MapLayerIndex,\n MapTileProjection, MapTile,\n MapLayerTileTreeReference,\n MapLayerSourceStatus, type MapLayerSourceProps, MapLayerSource, MapLayerSources,\n MapLayerImageryProviderStatus, MapLayerImageryProvider,\n ImageryMapLayerFormat,\n MapLayerFormat, type ValidateSourceArgs, type MapLayerFormatType, type MapLayerSourceValidation, type MapLayerOptions, MapLayerFormatRegistry,\n type MapLayerTokenEndpoint, type MapLayerAuthenticationInfo, type MapLayerAccessToken, type MapLayerAccessTokenParams, type MapLayerAccessClient,\n type MapFeatureInfoOptions, MapFeatureInfoRecord, type MapFeatureInfo, type MapLayerFeatureInfo, type MapSubLayerFeatureInfo, type MapLayerFeature, type MapLayerFeatureGeometry, type MapLayerFeatureAttribute, MapLayerFeatureRecord,\n MapCartoRectangle,\n ImageryMapLayerTreeReference,\n EllipsoidTerrainProvider,\n getCesiumAssetUrl,\n MapTileTreeScaleRangeVisibility, MapTileTree,\n type TerrainMeshProviderOptions, type RequestMeshDataArgs, type ReadMeshArgs, TerrainMeshProvider,\n type TerrainProvider, TerrainProviderRegistry,\n} from \"./tile/internal\";\nexport * from \"./tools/AccuDrawTool\";\nexport * from \"./tools/AccuDrawViewportUI\";\nexport * from \"./tools/ClipViewTool\";\nexport * from \"./tools/EditManipulator\";\nexport * from \"./tools/ElementSetTool\";\nexport * from \"./tools/EventController\";\nexport * from \"./tools/IdleTool\";\nexport * from \"./tools/MeasureTool\";\nexport * from \"./tools/PrimitiveTool\";\nexport * from \"./tools/SelectTool\";\nexport * from \"./tools/Tool\";\nexport * from \"./tools/ToolSettings\";\nexport * from \"./tools/ToolAdmin\";\nexport * from \"./tools/ToolAssistance\";\nexport * from \"./tools/ViewTool\";\nexport * from \"./workers/RegisterWorker\";\nexport * from \"./BackgroundMapGeometry\";\nexport * from \"./ViewCreator2d\";\nexport * from \"./ViewCreator3d\";\nexport * from \"./LocalhostIpcApp\";\nexport * from \"./request/utils\";\nexport * from \"./RealityDataSource\";\n\nexport * from \"./internal/cross-package\";\n\n// TODO/FIX: \"./extension/ExtensionRuntime\" import has to be last to avoid circular dependency errors.\nimport \"./extension/ExtensionRuntime\";\n\n/** @docs-package-description\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\n */\n\n/**\n * @docs-group-description IModelApp\n * Classes for configuring and administering an iTwin.js application.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description IModelConnection\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\n */\n/**\n * @docs-group-description ElementState\n * Classes for working with the *state* of Elements in the frontend.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description ModelState\n * Classes for working with the *state* of Models in the frontend.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Tools\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\n */\n/**\n * @docs-group-description Measure\n * Classes for reporting point to point distances and mass properties of elements.\n */\n/**\n * @docs-group-description Views\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\n */\n/**\n * @docs-group-description LocatingElements\n * Classes for locating and snapping to elements in views.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description AccuDraw\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Notifications\n * Notifications provide feedback to the user of something of interest.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Extensions\n * Classes for creating and managing Extensions.\n */\n/**\n * @docs-group-description Properties\n * Classes for working with property records and descriptions.\n */\n/**\n * @docs-group-description Rendering\n * Classes for rendering the contents of views.\n */\n/**\n * @docs-group-description SelectionSet\n * Classes for working with the set of selected elements.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description NativeApp\n * Classes for working with Native Applications\n */\n/**\n * @docs-group-description Utils\n * Miscellaneous utility classes.\n */\n/**\n * @docs-group-description Logging\n * Logger categories used by this package\n */\n/**\n * @docs-group-description QuantityFormatting\n * Classes for formatting and parsing quantity values.\n */\n/**\n * @docs-group-description Tiles\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\n */\n/**\n * @docs-group-description HubAccess\n * APIs for working with IModelHub\n */\n/**\n * @docs-group-description UserPreferences\n * APIs for working with user preferences in an iModelApp.\n * See [the learning articles]($docs/learning/frontend/preferences.md).\n */\n/**\n * @docs-group-description MapLayers\n * Classes supporting map layers display.\n */\n/**\n * @docs-group-description TileStorage\n * Class for working with cloud storage using iTwin/object-storage cloud providers\n*/"]}
@@ -0,0 +1,5 @@
1
+ import { Id64String } from "@itwin/core-bentley";
2
+ import { RenderSchedule } from "@itwin/core-common";
3
+ /** @internal */
4
+ export declare function getScriptDelta(prev: RenderSchedule.Script | undefined | null, next: RenderSchedule.Script): Set<Id64String>;
5
+ //# sourceMappingURL=ScriptUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScriptUtils.d.ts","sourceRoot":"","sources":["../../../src/internal/ScriptUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,gBAAgB;AAChB,wBAAgB,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC,CA4C3H"}
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getScriptDelta = getScriptDelta;
4
+ /** @internal */
5
+ function getScriptDelta(prev, next) {
6
+ if (!prev || !prev.modelTimelines || prev.modelTimelines.length === 0) {
7
+ return getAllElementIdsFromScript(next);
8
+ }
9
+ const changed = new Set();
10
+ const prevModels = new Map(prev.modelTimelines.map(m => [m.modelId, m]));
11
+ const nextModels = new Map(next.modelTimelines.map(m => [m.modelId, m]));
12
+ for (const modelId of new Set([...prevModels.keys(), ...nextModels.keys()])) {
13
+ const prevModel = prevModels.get(modelId);
14
+ const nextModel = nextModels.get(modelId);
15
+ if (!prevModel || !nextModel) {
16
+ const timelines = (prevModel ?? nextModel)?.elementTimelines ?? [];
17
+ for (const timeline of timelines)
18
+ for (const id of timeline.elementIds)
19
+ changed.add(id);
20
+ continue;
21
+ }
22
+ const prevTimelineMap = new Map(prevModel.elementTimelines.map(et => [et.batchId, et]));
23
+ const nextTimelineMap = new Map(nextModel.elementTimelines.map(et => [et.batchId, et]));
24
+ const allBatchIds = new Set([...prevTimelineMap.keys(), ...nextTimelineMap.keys()]);
25
+ for (const batchId of allBatchIds) {
26
+ const prevTimeline = prevTimelineMap.get(batchId);
27
+ const nextTimeline = nextTimelineMap.get(batchId);
28
+ if (!prevTimeline || !nextTimeline) {
29
+ const ids = (prevTimeline ?? nextTimeline)?.elementIds ?? [];
30
+ for (const id of ids)
31
+ changed.add(id);
32
+ continue;
33
+ }
34
+ if (!isTimelineEntryEqual(prevTimeline, nextTimeline)) {
35
+ for (const id of nextTimeline.elementIds)
36
+ changed.add(id);
37
+ }
38
+ }
39
+ }
40
+ return changed;
41
+ }
42
+ function collectTimelineEntryTimes(timeline) {
43
+ const result = new Set();
44
+ if (timeline.cuttingPlane) {
45
+ for (const entry of timeline.cuttingPlane) {
46
+ result.add(entry.time);
47
+ }
48
+ }
49
+ if (timeline.visibility) {
50
+ for (const entry of timeline.visibility) {
51
+ result.add(entry.time);
52
+ }
53
+ }
54
+ if (timeline.transform) {
55
+ for (const entry of timeline.transform) {
56
+ result.add(entry.time);
57
+ }
58
+ }
59
+ if (timeline.color) {
60
+ for (const entry of timeline.color) {
61
+ result.add(entry.time);
62
+ }
63
+ }
64
+ return Array.from(result);
65
+ }
66
+ function isTimelineEntryEqual(a, b) {
67
+ const timesSet = new Set([
68
+ ...collectTimelineEntryTimes(a),
69
+ ...collectTimelineEntryTimes(b),
70
+ ]);
71
+ let times = Array.from(timesSet).sort((x, y) => x - y);
72
+ if (times.length === 0) {
73
+ times = [0, 0.25, 0.5, 0.75, 1];
74
+ }
75
+ for (const [] of a.elementIds) {
76
+ for (const t of times) {
77
+ // Check visibility
78
+ const v1 = a.getVisibility(t);
79
+ const v2 = b.getVisibility(t);
80
+ if (Math.abs(v1 - v2) > 0.01)
81
+ return false;
82
+ // Check Transform
83
+ const tf1 = a.getAnimationTransform(t);
84
+ const tf2 = b.getAnimationTransform(t);
85
+ if (!tf1.isAlmostEqual(tf2))
86
+ return false;
87
+ // Check Color
88
+ const c1 = a.getColor(t);
89
+ const c2 = b.getColor(t);
90
+ if ((c1 === undefined) !== (c2 === undefined))
91
+ return false;
92
+ if (c1 !== undefined && !c1.equals(c2))
93
+ return false;
94
+ // Cutting Plane (CLIPPING)
95
+ const clip1 = a.getCuttingPlane?.(t);
96
+ const clip2 = b.getCuttingPlane?.(t);
97
+ const oneUndefined = (clip1 === undefined) !== (clip2 === undefined);
98
+ if (oneUndefined)
99
+ return false;
100
+ if (clip1 && clip2) {
101
+ if (!clip1.getOriginRef().isAlmostEqual(clip2.getOriginRef(), 1e-6) ||
102
+ !clip1.getNormalRef().isAlmostEqual(clip2.getNormalRef(), 1e-6)) {
103
+ return false;
104
+ }
105
+ }
106
+ }
107
+ }
108
+ return true;
109
+ }
110
+ function getAllElementIdsFromScript(script) {
111
+ const ids = new Set();
112
+ for (const modelTimeline of script.modelTimelines) {
113
+ for (const elementTimeline of modelTimeline.elementTimelines) {
114
+ for (const id of elementTimeline.elementIds)
115
+ ids.add(id);
116
+ }
117
+ }
118
+ return ids;
119
+ }
120
+ //# sourceMappingURL=ScriptUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Script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,SAAS,CAAC,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;YAErE,IAAI,YAAY;gBAAE,OAAO,KAAK,CAAC;YAC/B,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC;gBACnB,IACE,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,IAAI,CAAC;oBAC/D,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,IAAI,CAAC,EAC/D,CAAC;oBACD,OAAO,KAAK,CAAC;gBACf,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,0BAA0B,CAAC,MAA6B;IAC/D,MAAM,GAAG,GAAG,IAAI,GAAG,EAAc,CAAC;IAClC,KAAK,MAAM,aAAa,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;QAClD,KAAK,MAAM,eAAe,IAAI,aAAa,CAAC,gBAAgB,EAAE,CAAC;YAC7D,KAAK,MAAM,EAAE,IAAI,eAAe,CAAC,UAAU;gBACzC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import { Id64String } from \"@itwin/core-bentley\";\nimport { RenderSchedule } from \"@itwin/core-common\";\n\n/** @internal */\nexport function getScriptDelta(prev: RenderSchedule.Script | undefined | null, next: RenderSchedule.Script): Set<Id64String> {\n if (!prev || !prev.modelTimelines || prev.modelTimelines.length === 0) {\n return getAllElementIdsFromScript(next);\n }\n\n const changed = new Set<Id64String>();\n\n const prevModels = new Map(prev.modelTimelines.map(m => [m.modelId, m]));\n const nextModels = new Map(next.modelTimelines.map(m => [m.modelId, m]));\n\n for (const modelId of new Set([...prevModels.keys(), ...nextModels.keys()])) {\n const prevModel = prevModels.get(modelId);\n const nextModel = nextModels.get(modelId);\n\n if (!prevModel || !nextModel) {\n const timelines = (prevModel ?? nextModel)?.elementTimelines ?? [];\n for (const timeline of timelines)\n for (const id of timeline.elementIds)\n changed.add(id);\n continue;\n }\n\n const prevTimelineMap = new Map(prevModel.elementTimelines.map(et => [et.batchId, et]));\n const nextTimelineMap = new Map(nextModel.elementTimelines.map(et => [et.batchId, et]));\n\n const allBatchIds = new Set([...prevTimelineMap.keys(), ...nextTimelineMap.keys()]);\n for (const batchId of allBatchIds) {\n const prevTimeline = prevTimelineMap.get(batchId);\n const nextTimeline = nextTimelineMap.get(batchId);\n\n if (!prevTimeline || !nextTimeline) {\n const ids = (prevTimeline ?? nextTimeline)?.elementIds ?? [];\n for (const id of ids)\n changed.add(id);\n continue;\n }\n\n if (!isTimelineEntryEqual(prevTimeline, nextTimeline)) {\n for (const id of nextTimeline.elementIds)\n changed.add(id);\n }\n }\n }\n return changed;\n}\n\nfunction collectTimelineEntryTimes(timeline: RenderSchedule.ElementTimeline): number[] {\n const result = new Set<number>();\n\n if (timeline.cuttingPlane) {\n for (const entry of timeline.cuttingPlane) {\n result.add(entry.time);\n }\n }\n if (timeline.visibility) {\n for (const entry of timeline.visibility) {\n result.add(entry.time);\n }\n }\n if (timeline.transform) {\n for (const entry of timeline.transform) {\n result.add(entry.time);\n }\n }\n if (timeline.color) {\n for (const entry of timeline.color) {\n result.add(entry.time);\n }\n }\n return Array.from(result);\n}\n\nfunction isTimelineEntryEqual(a: RenderSchedule.ElementTimeline, b: RenderSchedule.ElementTimeline): boolean {\n const timesSet = new Set<number>([\n ...collectTimelineEntryTimes(a),\n ...collectTimelineEntryTimes(b),\n ]);\n let times = Array.from(timesSet).sort((x, y) => x - y);\n if (times.length === 0) {\n times = [0, 0.25, 0.5, 0.75, 1];\n }\n\n for (const [] of a.elementIds) {\n for (const t of times) {\n // Check visibility\n const v1 = a.getVisibility(t);\n const v2 = b.getVisibility(t);\n if (Math.abs(v1 - v2) > 0.01) return false;\n\n // Check Transform\n const tf1 = a.getAnimationTransform(t);\n const tf2 = b.getAnimationTransform(t);\n if (!tf1.isAlmostEqual(tf2)) return false;\n\n // Check Color\n const c1 = a.getColor(t);\n const c2 = b.getColor(t);\n if ((c1 === undefined) !== (c2 === undefined))\n return false;\n\n if (c1 !== undefined && !c1.equals(c2!))\n return false;\n\n // Cutting Plane (CLIPPING)\n const clip1 = a.getCuttingPlane?.(t);\n const clip2 = b.getCuttingPlane?.(t);\n\n const oneUndefined = (clip1 === undefined) !== (clip2 === undefined);\n\n if (oneUndefined) return false;\n if (clip1 && clip2) {\n if (\n !clip1.getOriginRef().isAlmostEqual(clip2.getOriginRef(), 1e-6) ||\n !clip1.getNormalRef().isAlmostEqual(clip2.getNormalRef(), 1e-6)\n ) {\n return false;\n }\n }\n }\n }\n\n return true;\n}\n\nfunction getAllElementIdsFromScript(script: RenderSchedule.Script): Set<Id64String> {\n const ids = new Set<Id64String>();\n for (const modelTimeline of script.modelTimelines) {\n for (const elementTimeline of modelTimeline.elementTimelines) {\n for (const id of elementTimeline.elementIds)\n ids.add(id);\n }\n }\n return ids;\n}"]}