@itwin/core-frontend 4.7.0-dev.0 → 4.7.0-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/lib/cjs/CheckpointConnection.js +2 -2
- package/lib/cjs/CheckpointConnection.js.map +1 -1
- package/lib/cjs/extension/ExtensionRuntime.js +0 -10
- package/lib/cjs/extension/ExtensionRuntime.js.map +1 -1
- package/lib/cjs/render/RealityMeshParams.d.ts +2 -2
- package/lib/cjs/render/RealityMeshParams.d.ts.map +1 -1
- package/lib/cjs/render/RealityMeshParams.js.map +1 -1
- package/lib/cjs/tile/GltfReader.d.ts.map +1 -1
- package/lib/cjs/tile/GltfReader.js.map +1 -1
- package/lib/cjs/tile/RealityTile.d.ts +2 -2
- package/lib/cjs/tile/RealityTile.d.ts.map +1 -1
- package/lib/cjs/tile/RealityTile.js.map +1 -1
- package/lib/cjs/tile/TileAdmin.d.ts +4 -0
- package/lib/cjs/tile/TileAdmin.d.ts.map +1 -1
- package/lib/cjs/tile/TileAdmin.js +1 -0
- package/lib/cjs/tile/TileAdmin.js.map +1 -1
- package/lib/cjs/tile/TileGeometryCollector.d.ts +2 -2
- package/lib/cjs/tile/TileGeometryCollector.d.ts.map +1 -1
- package/lib/cjs/tile/TileGeometryCollector.js.map +1 -1
- package/lib/cjs/tile/map/CesiumTerrainProvider.d.ts.map +1 -1
- package/lib/cjs/tile/map/CesiumTerrainProvider.js +7 -1
- package/lib/cjs/tile/map/CesiumTerrainProvider.js.map +1 -1
- package/lib/cjs/tile/map/MapTileTree.js +1 -0
- package/lib/cjs/tile/map/MapTileTree.js.map +1 -1
- package/lib/cjs/tile/map/TerrainMeshProvider.d.ts +4 -0
- package/lib/cjs/tile/map/TerrainMeshProvider.d.ts.map +1 -1
- package/lib/cjs/tile/map/TerrainMeshProvider.js.map +1 -1
- package/lib/cjs/tools/ToolAdmin.d.ts +8 -0
- package/lib/cjs/tools/ToolAdmin.d.ts.map +1 -1
- package/lib/cjs/tools/ToolAdmin.js +11 -0
- package/lib/cjs/tools/ToolAdmin.js.map +1 -1
- package/lib/esm/CheckpointConnection.js +2 -2
- package/lib/esm/CheckpointConnection.js.map +1 -1
- package/lib/esm/extension/ExtensionRuntime.js +0 -12
- package/lib/esm/extension/ExtensionRuntime.js.map +1 -1
- package/lib/esm/render/RealityMeshParams.d.ts +2 -2
- package/lib/esm/render/RealityMeshParams.d.ts.map +1 -1
- package/lib/esm/render/RealityMeshParams.js.map +1 -1
- package/lib/esm/tile/GltfReader.d.ts.map +1 -1
- package/lib/esm/tile/GltfReader.js.map +1 -1
- package/lib/esm/tile/RealityTile.d.ts +2 -2
- package/lib/esm/tile/RealityTile.d.ts.map +1 -1
- package/lib/esm/tile/RealityTile.js.map +1 -1
- package/lib/esm/tile/TileAdmin.d.ts +4 -0
- package/lib/esm/tile/TileAdmin.d.ts.map +1 -1
- package/lib/esm/tile/TileAdmin.js +1 -0
- package/lib/esm/tile/TileAdmin.js.map +1 -1
- package/lib/esm/tile/TileGeometryCollector.d.ts +2 -2
- package/lib/esm/tile/TileGeometryCollector.d.ts.map +1 -1
- package/lib/esm/tile/TileGeometryCollector.js.map +1 -1
- package/lib/esm/tile/map/CesiumTerrainProvider.d.ts.map +1 -1
- package/lib/esm/tile/map/CesiumTerrainProvider.js +7 -1
- package/lib/esm/tile/map/CesiumTerrainProvider.js.map +1 -1
- package/lib/esm/tile/map/MapTileTree.js +1 -0
- package/lib/esm/tile/map/MapTileTree.js.map +1 -1
- package/lib/esm/tile/map/TerrainMeshProvider.d.ts +4 -0
- package/lib/esm/tile/map/TerrainMeshProvider.d.ts.map +1 -1
- package/lib/esm/tile/map/TerrainMeshProvider.js.map +1 -1
- package/lib/esm/tools/ToolAdmin.d.ts +8 -0
- package/lib/esm/tools/ToolAdmin.d.ts.map +1 -1
- package/lib/esm/tools/ToolAdmin.js +11 -0
- package/lib/esm/tools/ToolAdmin.js.map +1 -1
- package/lib/public/scripts/parse-imdl-worker.js +1 -1
- package/lib/workers/webpack/parse-imdl-worker.js +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# Change Log - @itwin/core-frontend
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 15 May 2024 21:32:22 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.6.0
|
|
6
|
+
Mon, 13 May 2024 20:32:51 GMT
|
|
7
|
+
|
|
8
|
+
### Updates
|
|
9
|
+
|
|
10
|
+
- Increase default extent limits for drawing views and fix incorrect clipping of section drawing attachments.
|
|
11
|
+
- Fixed problem cases freeing tile memory under memory pressure
|
|
12
|
+
- Fix map layer WMTS validation process to correctly return authentication error
|
|
13
|
+
- Fixed various issues related to terrain tile collecting.
|
|
14
|
+
- Fix an issue preventing model map layer from being hidden
|
|
15
|
+
- Added support for OGC Features map layers.
|
|
16
|
+
- Include BIS class metadata with transaction events.
|
|
17
|
+
- Fix dynamic element graphics being clipped to the project extents in 2d models.
|
|
18
|
+
- Add support for EXT_meshopt_compression glTF extension.
|
|
4
19
|
|
|
5
20
|
## 4.5.2
|
|
6
21
|
Tue, 16 Apr 2024 14:46:22 GMT
|
|
@@ -32,10 +32,10 @@ class CheckpointConnection extends IModelConnection_1.IModelConnection {
|
|
|
32
32
|
super(props);
|
|
33
33
|
this._reopenConnectionHandler = async (request, response, resubmit, reject) => {
|
|
34
34
|
if (!response.hasOwnProperty("isIModelNotFoundResponse"))
|
|
35
|
-
|
|
35
|
+
reject();
|
|
36
36
|
const iModelRpcProps = request.parameters[0];
|
|
37
37
|
if (this._fileKey !== iModelRpcProps.key)
|
|
38
|
-
|
|
38
|
+
reject(); // The handler is called for a different connection than this
|
|
39
39
|
core_bentley_1.Logger.logTrace(loggerCategory, "Attempting to reopen connection", () => iModelRpcProps);
|
|
40
40
|
try {
|
|
41
41
|
const openResponse = await CheckpointConnection.callOpen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,WAAW,CAAC,CAAC;QACrH,IAAI,YAAmC,CAAC;QACxC,IAAI,CAAC;YACH,YAAY,GAAG,MAAM,WAAW,CAAC;QACnC,CAAC;gBAAS,CAAC;YACT,qBAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,iDAAiD,EAAE,WAAW,CAAC,CAAC;YAChG,cAAc,EAAE,CAAC;QACnB,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IA4BD,sCAAsC;IAC/B,KAAK,CAAC,KAAK;QAChB,IAAI,IAAI,CAAC,QAAQ;YACf,OAAO;QAET,IAAI,CAAC,WAAW,EAAE,CAAC;QACnB,IAAI,IAAI,CAAC,QAAQ;YACf,MAAM,eAAM,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;;YAEvD,wBAAU,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QAE5E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACxB,CAAC;CACF;AApID,oDAoIC","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 IModelConnection\n */\n\nimport { BentleyError, BentleyStatus, GuidString, Logger } from \"@itwin/core-bentley\";\nimport {\n IModelConnectionProps, IModelError, IModelReadRpcInterface, IModelRpcOpenProps, IModelVersion, RpcManager, RpcNotFoundResponse, RpcOperation,\n RpcRequest, RpcRequestEvent,\n} from \"@itwin/core-common\";\nimport { FrontendLoggerCategory } from \"./common/FrontendLoggerCategory\";\nimport { IModelApp } from \"./IModelApp\";\nimport { IModelConnection } from \"./IModelConnection\";\nimport { IModelRoutingContext } from \"./IModelRoutingContext\";\nimport { IpcApp } from \"./IpcApp\";\n\nconst loggerCategory = FrontendLoggerCategory.IModelConnection;\n\n/**\n * An IModelConnection to a Checkpoint of an iModel.\n * @see [CheckpointConnection]($docs/learning/frontend/IModelConnection)\n * @public\n */\nexport class CheckpointConnection extends IModelConnection {\n private readonly _fromIpc: boolean;\n\n /** The Guid that identifies the iTwin that owns this iModel. */\n public override get iTwinId(): GuidString { return super.iTwinId!; }\n /** The Guid that identifies this iModel. */\n public override get iModelId(): GuidString { return super.iModelId!; }\n\n /** Returns `true` if [[close]] has already been called. */\n public get isClosed(): boolean { return this._isClosed ? true : false; }\n protected _isClosed?: boolean;\n\n protected constructor(props: IModelConnectionProps, fromIpc: boolean) {\n super(props);\n this._fromIpc = fromIpc;\n }\n\n /** Type guard for instanceof [[CheckpointConnection]] */\n public override isCheckpointConnection(): this is CheckpointConnection { return true; }\n\n /**\n * Open a readonly IModelConnection to a Checkpoint of an iModel.\n */\n public static async openRemote(iTwinId: GuidString, iModelId: GuidString, version = IModelVersion.latest()): Promise<CheckpointConnection> {\n if (undefined === IModelApp.hubAccess)\n throw new Error(\"Missing an implementation of IModelApp.hubAccess\");\n\n const accessToken = await IModelApp.getAccessToken();\n const changeset = await IModelApp.hubAccess.getChangesetFromVersion({ accessToken, iModelId, version });\n\n let connection: CheckpointConnection;\n const iModelProps = { iTwinId, iModelId, changeset };\n if (IpcApp.isValid) {\n connection = new this(await IpcApp.appFunctionIpc.openCheckpoint(iModelProps), true);\n } else {\n const routingContext = IModelRoutingContext.current || IModelRoutingContext.default;\n connection = new this(await this.callOpen(iModelProps, routingContext), false);\n RpcManager.setIModel(connection);\n connection.routingContext = routingContext;\n RpcRequest.notFoundHandlers.addListener(connection._reopenConnectionHandler);\n }\n\n IModelConnection.onOpen.raiseEvent(connection);\n return connection;\n }\n\n private static async callOpen(iModelToken: IModelRpcOpenProps, routingContext: IModelRoutingContext): Promise<IModelConnectionProps> {\n // Try opening the iModel repeatedly accommodating any pending responses from the backend.\n // Waits for an increasing amount of time (but within a range) before checking on the pending request again.\n const connectionRetryIntervalRange = { min: 100, max: 5000 }; // in milliseconds\n let connectionRetryInterval = Math.min(connectionRetryIntervalRange.min, IModelConnection.connectionTimeout);\n\n const openForReadOperation = RpcOperation.lookup(IModelReadRpcInterface, \"getConnectionProps\");\n if (!openForReadOperation)\n throw new IModelError(BentleyStatus.ERROR, \"IModelReadRpcInterface.getConnectionProps() is not available\");\n openForReadOperation.policy.retryInterval = () => connectionRetryInterval;\n\n Logger.logTrace(loggerCategory, `IModelConnection.open`, iModelToken);\n const startTime = Date.now();\n\n const removeListener = RpcRequest.events.addListener((type: RpcRequestEvent, request: RpcRequest) => { // eslint-disable-line deprecation/deprecation\n if (type !== RpcRequestEvent.PendingUpdateReceived) // eslint-disable-line deprecation/deprecation\n return;\n if (!(openForReadOperation && request.operation === openForReadOperation))\n return;\n\n Logger.logTrace(loggerCategory, \"Received pending open notification in IModelConnection.open\", iModelToken);\n\n const connectionTimeElapsed = Date.now() - startTime;\n if (connectionTimeElapsed > IModelConnection.connectionTimeout) {\n Logger.logError(loggerCategory, `Timed out opening connection in IModelConnection.open (took longer than ${IModelConnection.connectionTimeout} milliseconds)`, iModelToken);\n throw new IModelError(BentleyStatus.ERROR, \"Opening a connection was timed out\"); // NEEDS_WORK: More specific error status\n }\n\n connectionRetryInterval = Math.min(connectionRetryIntervalRange.max, connectionRetryInterval * 2, IModelConnection.connectionTimeout - connectionTimeElapsed);\n if (request.retryInterval !== connectionRetryInterval) {\n request.retryInterval = connectionRetryInterval;\n Logger.logTrace(loggerCategory, `Adjusted open connection retry interval to ${request.retryInterval} milliseconds in IModelConnection.open`, iModelToken);\n }\n });\n\n const openPromise = IModelReadRpcInterface.getClientForRouting(routingContext.token).getConnectionProps(iModelToken);\n let openResponse: IModelConnectionProps;\n try {\n openResponse = await openPromise;\n } finally {\n Logger.logTrace(loggerCategory, \"Completed open request in IModelConnection.open\", iModelToken);\n removeListener();\n }\n\n return openResponse;\n }\n\n private _reopenConnectionHandler = async (request: RpcRequest<RpcNotFoundResponse>, response: any, resubmit: () => void, reject: (reason: any) => void) => { // eslint-disable-line deprecation/deprecation\n if (!response.hasOwnProperty(\"isIModelNotFoundResponse\"))\n return;\n\n const iModelRpcProps = request.parameters[0];\n if (this._fileKey !== iModelRpcProps.key)\n return; // The handler is called for a different connection than this\n\n Logger.logTrace(loggerCategory, \"Attempting to reopen connection\", () => iModelRpcProps);\n\n try {\n const openResponse = await CheckpointConnection.callOpen(iModelRpcProps, this.routingContext);\n // The new/reopened connection may have a new rpcKey and/or changesetId, but the other IModelRpcTokenProps should be the same\n this._fileKey = openResponse.key;\n this.changeset = openResponse.changeset!;\n\n } catch (error) {\n reject(BentleyError.getErrorMessage(error));\n } finally {\n }\n\n Logger.logTrace(loggerCategory, \"Resubmitting original request after reopening connection\", iModelRpcProps);\n request.parameters[0] = this.getRpcProps(); // Modify the token of the original request before resubmitting it.\n resubmit();\n };\n\n /** Close this CheckpointConnection */\n public async close(): Promise<void> {\n if (this.isClosed)\n return;\n\n this.beforeClose();\n if (this._fromIpc)\n await IpcApp.appFunctionIpc.closeIModel(this._fileKey);\n else\n RpcRequest.notFoundHandlers.removeListener(this._reopenConnectionHandler);\n\n this._isClosed = true;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"CheckpointConnection.js","sourceRoot":"","sources":["../../src/CheckpointConnection.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAsF;AACtF,oDAG4B;AAC5B,4EAAyE;AACzE,2CAAwC;AACxC,yDAAsD;AACtD,iEAA8D;AAC9D,qCAAkC;AAElC,MAAM,cAAc,GAAG,+CAAsB,CAAC,gBAAgB,CAAC;AAE/D;;;;GAIG;AACH,MAAa,oBAAqB,SAAQ,mCAAgB;IAGxD,gEAAgE;IAChE,IAAoB,OAAO,KAAiB,OAAO,KAAK,CAAC,OAAQ,CAAC,CAAC,CAAC;IACpE,4CAA4C;IAC5C,IAAoB,QAAQ,KAAiB,OAAO,KAAK,CAAC,QAAS,CAAC,CAAC,CAAC;IAEtE,2DAA2D;IAC3D,IAAW,QAAQ,KAAc,O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AwB,CAAC,CAAC;QAE5E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACxB,CAAC;CACF;AApID,oDAoIC","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 IModelConnection\n */\n\nimport { BentleyError, BentleyStatus, GuidString, Logger } from \"@itwin/core-bentley\";\nimport {\n IModelConnectionProps, IModelError, IModelReadRpcInterface, IModelRpcOpenProps, IModelVersion, RpcManager, RpcNotFoundResponse, RpcOperation,\n RpcRequest, RpcRequestEvent,\n} from \"@itwin/core-common\";\nimport { FrontendLoggerCategory } from \"./common/FrontendLoggerCategory\";\nimport { IModelApp } from \"./IModelApp\";\nimport { IModelConnection } from \"./IModelConnection\";\nimport { IModelRoutingContext } from \"./IModelRoutingContext\";\nimport { IpcApp } from \"./IpcApp\";\n\nconst loggerCategory = FrontendLoggerCategory.IModelConnection;\n\n/**\n * An IModelConnection to a Checkpoint of an iModel.\n * @see [CheckpointConnection]($docs/learning/frontend/IModelConnection)\n * @public\n */\nexport class CheckpointConnection extends IModelConnection {\n private readonly _fromIpc: boolean;\n\n /** The Guid that identifies the iTwin that owns this iModel. */\n public override get iTwinId(): GuidString { return super.iTwinId!; }\n /** The Guid that identifies this iModel. */\n public override get iModelId(): GuidString { return super.iModelId!; }\n\n /** Returns `true` if [[close]] has already been called. */\n public get isClosed(): boolean { return this._isClosed ? true : false; }\n protected _isClosed?: boolean;\n\n protected constructor(props: IModelConnectionProps, fromIpc: boolean) {\n super(props);\n this._fromIpc = fromIpc;\n }\n\n /** Type guard for instanceof [[CheckpointConnection]] */\n public override isCheckpointConnection(): this is CheckpointConnection { return true; }\n\n /**\n * Open a readonly IModelConnection to a Checkpoint of an iModel.\n */\n public static async openRemote(iTwinId: GuidString, iModelId: GuidString, version = IModelVersion.latest()): Promise<CheckpointConnection> {\n if (undefined === IModelApp.hubAccess)\n throw new Error(\"Missing an implementation of IModelApp.hubAccess\");\n\n const accessToken = await IModelApp.getAccessToken();\n const changeset = await IModelApp.hubAccess.getChangesetFromVersion({ accessToken, iModelId, version });\n\n let connection: CheckpointConnection;\n const iModelProps = { iTwinId, iModelId, changeset };\n if (IpcApp.isValid) {\n connection = new this(await IpcApp.appFunctionIpc.openCheckpoint(iModelProps), true);\n } else {\n const routingContext = IModelRoutingContext.current || IModelRoutingContext.default;\n connection = new this(await this.callOpen(iModelProps, routingContext), false);\n RpcManager.setIModel(connection);\n connection.routingContext = routingContext;\n RpcRequest.notFoundHandlers.addListener(connection._reopenConnectionHandler);\n }\n\n IModelConnection.onOpen.raiseEvent(connection);\n return connection;\n }\n\n private static async callOpen(iModelToken: IModelRpcOpenProps, routingContext: IModelRoutingContext): Promise<IModelConnectionProps> {\n // Try opening the iModel repeatedly accommodating any pending responses from the backend.\n // Waits for an increasing amount of time (but within a range) before checking on the pending request again.\n const connectionRetryIntervalRange = { min: 100, max: 5000 }; // in milliseconds\n let connectionRetryInterval = Math.min(connectionRetryIntervalRange.min, IModelConnection.connectionTimeout);\n\n const openForReadOperation = RpcOperation.lookup(IModelReadRpcInterface, \"getConnectionProps\");\n if (!openForReadOperation)\n throw new IModelError(BentleyStatus.ERROR, \"IModelReadRpcInterface.getConnectionProps() is not available\");\n openForReadOperation.policy.retryInterval = () => connectionRetryInterval;\n\n Logger.logTrace(loggerCategory, `IModelConnection.open`, iModelToken);\n const startTime = Date.now();\n\n const removeListener = RpcRequest.events.addListener((type: RpcRequestEvent, request: RpcRequest) => { // eslint-disable-line deprecation/deprecation\n if (type !== RpcRequestEvent.PendingUpdateReceived) // eslint-disable-line deprecation/deprecation\n return;\n if (!(openForReadOperation && request.operation === openForReadOperation))\n return;\n\n Logger.logTrace(loggerCategory, \"Received pending open notification in IModelConnection.open\", iModelToken);\n\n const connectionTimeElapsed = Date.now() - startTime;\n if (connectionTimeElapsed > IModelConnection.connectionTimeout) {\n Logger.logError(loggerCategory, `Timed out opening connection in IModelConnection.open (took longer than ${IModelConnection.connectionTimeout} milliseconds)`, iModelToken);\n throw new IModelError(BentleyStatus.ERROR, \"Opening a connection was timed out\"); // NEEDS_WORK: More specific error status\n }\n\n connectionRetryInterval = Math.min(connectionRetryIntervalRange.max, connectionRetryInterval * 2, IModelConnection.connectionTimeout - connectionTimeElapsed);\n if (request.retryInterval !== connectionRetryInterval) {\n request.retryInterval = connectionRetryInterval;\n Logger.logTrace(loggerCategory, `Adjusted open connection retry interval to ${request.retryInterval} milliseconds in IModelConnection.open`, iModelToken);\n }\n });\n\n const openPromise = IModelReadRpcInterface.getClientForRouting(routingContext.token).getConnectionProps(iModelToken);\n let openResponse: IModelConnectionProps;\n try {\n openResponse = await openPromise;\n } finally {\n Logger.logTrace(loggerCategory, \"Completed open request in IModelConnection.open\", iModelToken);\n removeListener();\n }\n\n return openResponse;\n }\n\n private _reopenConnectionHandler = async (request: RpcRequest<RpcNotFoundResponse>, response: any, resubmit: () => void, reject: (reason?: any) => void) => {\n if (!response.hasOwnProperty(\"isIModelNotFoundResponse\"))\n reject();\n\n const iModelRpcProps = request.parameters[0];\n if (this._fileKey !== iModelRpcProps.key)\n reject(); // The handler is called for a different connection than this\n\n Logger.logTrace(loggerCategory, \"Attempting to reopen connection\", () => iModelRpcProps);\n\n try {\n const openResponse = await CheckpointConnection.callOpen(iModelRpcProps, this.routingContext);\n // The new/reopened connection may have a new rpcKey and/or changesetId, but the other IModelRpcTokenProps should be the same\n this._fileKey = openResponse.key;\n this.changeset = openResponse.changeset!;\n\n } catch (error) {\n reject(BentleyError.getErrorMessage(error));\n } finally {\n }\n\n Logger.logTrace(loggerCategory, \"Resubmitting original request after reopening connection\", iModelRpcProps);\n request.parameters[0] = this.getRpcProps(); // Modify the token of the original request before resubmitting it.\n resubmit();\n };\n\n /** Close this CheckpointConnection */\n public async close(): Promise<void> {\n if (this.isClosed)\n return;\n\n this.beforeClose();\n if (this._fromIpc)\n await IpcApp.appFunctionIpc.closeIModel(this._fileKey);\n else\n RpcRequest.notFoundHandlers.removeListener(this._reopenConnectionHandler);\n\n this._isClosed = true;\n }\n}\n"]}
|
|
@@ -83,7 +83,6 @@ const extensionExports = {
|
|
|
83
83
|
FlashMode: core_frontend_1.FlashMode,
|
|
84
84
|
FlashSettings: core_frontend_1.FlashSettings,
|
|
85
85
|
FontType: core_common_1.FontType,
|
|
86
|
-
FractionRun: core_common_1.FractionRun,
|
|
87
86
|
FrontendLoggerCategory: core_frontend_1.FrontendLoggerCategory,
|
|
88
87
|
FrustumAnimator: core_frontend_1.FrustumAnimator,
|
|
89
88
|
FrustumPlanes: core_common_1.FrustumPlanes,
|
|
@@ -118,7 +117,6 @@ const extensionExports = {
|
|
|
118
117
|
InteractiveTool: core_frontend_1.InteractiveTool,
|
|
119
118
|
IntersectDetail: core_frontend_1.IntersectDetail,
|
|
120
119
|
KeyinParseError: core_frontend_1.KeyinParseError,
|
|
121
|
-
LineBreakRun: core_common_1.LineBreakRun,
|
|
122
120
|
LinePixels: core_common_1.LinePixels,
|
|
123
121
|
LocateAction: core_frontend_1.LocateAction,
|
|
124
122
|
LocateFilterStatus: core_frontend_1.LocateFilterStatus,
|
|
@@ -144,7 +142,6 @@ const extensionExports = {
|
|
|
144
142
|
OutputMessageAlert: core_frontend_1.OutputMessageAlert,
|
|
145
143
|
OutputMessagePriority: core_frontend_1.OutputMessagePriority,
|
|
146
144
|
OutputMessageType: core_frontend_1.OutputMessageType,
|
|
147
|
-
Paragraph: core_common_1.Paragraph,
|
|
148
145
|
ParseAndRunResult: core_frontend_1.ParseAndRunResult,
|
|
149
146
|
ParticleCollectionBuilder: core_frontend_1.ParticleCollectionBuilder,
|
|
150
147
|
PerModelCategoryVisibility: core_frontend_1.PerModelCategoryVisibility,
|
|
@@ -172,7 +169,6 @@ const extensionExports = {
|
|
|
172
169
|
RenderGraphicOwner: core_frontend_1.RenderGraphicOwner,
|
|
173
170
|
RenderMode: core_common_1.RenderMode,
|
|
174
171
|
RenderSystem: core_frontend_1.RenderSystem,
|
|
175
|
-
Run: core_common_1.Run,
|
|
176
172
|
Scene: core_frontend_1.Scene,
|
|
177
173
|
ScreenViewport: core_frontend_1.ScreenViewport,
|
|
178
174
|
SectionDrawingModelState: core_frontend_1.SectionDrawingModelState,
|
|
@@ -201,12 +197,6 @@ const extensionExports = {
|
|
|
201
197
|
SyncMode: core_common_1.SyncMode,
|
|
202
198
|
TentativePoint: core_frontend_1.TentativePoint,
|
|
203
199
|
TerrainHeightOriginMode: core_common_1.TerrainHeightOriginMode,
|
|
204
|
-
TextAnnotation: core_common_1.TextAnnotation,
|
|
205
|
-
TextBlock: core_common_1.TextBlock,
|
|
206
|
-
TextBlockComponent: core_common_1.TextBlockComponent,
|
|
207
|
-
TextRun: core_common_1.TextRun,
|
|
208
|
-
TextStyle: core_common_1.TextStyle,
|
|
209
|
-
TextStyleSettings: core_common_1.TextStyleSettings,
|
|
210
200
|
TextureMapUnits: core_common_1.TextureMapUnits,
|
|
211
201
|
ThematicDisplayMode: core_common_1.ThematicDisplayMode,
|
|
212
202
|
ThematicGradientColorScheme: core_common_1.ThematicGradientColorScheme,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionRuntime.js","sourceRoot":"","sources":["../../../src/extension/ExtensionRuntime.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;AAEH,yDAAyD;AACzD,sDAAsD;AACtD,iCAAiC;AAEjC,mDAAgD;AAEhD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC/D,IAAK,UAAkB,CAAC,YAAY,CAAC;IACnC,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;AAErE,uBAAuB;AACvB,oDAgM0B;AAE1B,oDA4E4B;AAE5B,MAAM,gBAAgB,GAAG;IACvB,iBAAiB,EAAjB,iCAAiB;IACjB,OAAO,EAAP,uBAAO;IACP,mBAA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0BAAU;IACV,UAAU,EAAV,0BAAU;IACV,QAAQ,EAAR,wBAAQ;IACR,SAAS,EAAT,yBAAS;IACT,WAAW,EAAX,2BAAW;IACX,WAAW,EAAX,2BAAW;IACX,UAAU,EAAV,0BAAU;IACV,QAAQ,EAAR,wBAAQ;IACR,YAAY,EAAZ,4BAAY;IACZ,QAAQ,EAAR,wBAAQ;IACR,mBAAmB,EAAnB,mCAAmB;IACnB,6BAA6B,EAA7B,6CAA6B;IAC7B,qBAAqB,EAArB,qCAAqB;IACrB,oBAAoB,EAApB,oCAAoB;IACpB,gBAAgB,EAAhB,gCAAgB;IAChB,4BAA4B,EAA5B,4CAA4B;IAC5B,2BAA2B,EAA3B,2CAA2B;IAC3B,+BAA+B,EAA/B,+CAA+B;IAC/B,sBAAsB,EAAtB,sCAAsB;IACtB,6BAA6B,EAA7B,6CAA6B;IAC7B,mBAAmB,EAAnB,mCAAmB;IACnB,uBAAuB,EAAvB,uCAAuB;IACvB,2BAA2B,EAA3B,2CAA2B;IAC3B,mBAAmB,EAAnB,mCAAmB;IACnB,2BAA2B,EAA3B,2CAA2B;IAC3B,mBAAmB,EAAnB,mCAAmB;IACnB,gBAAgB,EAAhB,gCAAgB;IAChB,yBAAyB,EAAzB,yCAAyB;IACzB,wBAAwB,EAAxB,wCAAwB;CACzB,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE;IACtC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa,EAAb,6BAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;KACF,CAAC;AACJ,CAAC,CAAC;AAED,UAAkB,CAAC,YAAY,CAAC,GAAG;IAClC,eAAe;CAChB,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 Extensions\n */\n\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @itwin/no-internal-barrel-imports */\n/* eslint-disable sort-imports */\n\nimport { ExtensionHost } from \"./ExtensionHost\";\n\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\nif ((globalThis as any)[globalSymbol])\n throw new Error(\"Multiple @itwin/core-frontend imports detected!\");\n\n// BEGIN GENERATED CODE\nimport {\n // @public enum(s) from @itwin/core-frontend\n ACSDisplayOptions,\n ACSType,\n ActivityMessageEndReason,\n BeButton,\n BeModifierKeys,\n ClipEventType,\n ContextRotationId,\n CoordSource,\n CoordSystem,\n CoordinateLockOverrides,\n EventHandled,\n FlashMode,\n FrontendLoggerCategory,\n GraphicType,\n HitDetailType,\n HitGeomType,\n HitParentGeomType,\n HitPriority,\n HitSource,\n InputSource,\n KeyinParseError,\n LocateAction,\n LocateFilterStatus,\n ManipulatorToolEvent,\n MessageBoxIconType,\n MessageBoxType,\n MessageBoxValue,\n OutputMessageAlert,\n OutputMessagePriority,\n OutputMessageType,\n ParseAndRunResult,\n SelectionMethod,\n SelectionMode,\n SelectionProcessing,\n SelectionSetEventType,\n SnapHeat,\n SnapMode,\n SnapStatus,\n StandardViewId,\n StartOrResume,\n TileBoundingBoxes,\n TileGraphicType,\n TileLoadPriority,\n TileLoadStatus,\n TileTreeLoadStatus,\n TileVisibility,\n ToolAssistanceImage,\n ToolAssistanceInputMethod,\n UniformType,\n VaryingType,\n ViewStatus,\n // @public real(s) from @itwin/core-frontend\n AccuDrawHintBuilder,\n AccuSnap,\n ActivityMessageDetails,\n AuxCoordSystem2dState,\n AuxCoordSystem3dState,\n AuxCoordSystemSpatialState,\n AuxCoordSystemState,\n BeButtonEvent,\n BeButtonState,\n BeTouchEvent,\n BeWheelEvent,\n BingElevationProvider,\n BingLocationProvider,\n CategorySelectorState,\n ChangeFlags,\n Cluster,\n ContextRealityModelState,\n DecorateContext,\n Decorations,\n DisclosedTileTreeSet,\n DisplayStyle2dState,\n DisplayStyle3dState,\n DisplayStyleState,\n DrawingModelState,\n DrawingViewState,\n EditManipulator,\n ElementLocateManager,\n ElementPicker,\n ElementState,\n EmphasizeElements,\n EntityState,\n EventController,\n FeatureSymbology,\n FlashSettings,\n FrustumAnimator,\n GeometricModel2dState,\n GeometricModel3dState,\n GeometricModelState,\n GlobeAnimator,\n GraphicBranch,\n GraphicBuilder,\n HiliteSet,\n HitDetail,\n HitList,\n IModelConnection,\n IconSprites,\n InputCollector,\n InteractiveTool,\n IntersectDetail,\n LocateOptions,\n LocateResponse,\n MarginPercent,\n Marker,\n MarkerSet,\n ModelSelectorState,\n ModelState,\n NotificationHandler,\n NotificationManager,\n NotifyMessageDetails,\n OffScreenViewport,\n OrthographicViewState,\n ParticleCollectionBuilder,\n PerModelCategoryVisibility,\n PhysicalModelState,\n Pixel,\n PrimitiveTool,\n RenderClipVolume,\n RenderContext,\n RenderGraphic,\n RenderGraphicOwner,\n RenderSystem,\n Scene,\n ScreenViewport,\n SectionDrawingModelState,\n SelectionSet,\n SheetModelState,\n SheetViewState,\n SnapDetail,\n SpatialLocationModelState,\n SpatialModelState,\n SpatialViewState,\n Sprite,\n SpriteLocation,\n TentativePoint,\n Tile,\n TileAdmin,\n TileDrawArgs,\n TileRequest,\n TileRequestChannel,\n TileRequestChannelStatistics,\n TileRequestChannels,\n TileTree,\n TileTreeReference,\n TileUsageMarker,\n Tiles,\n Tool,\n ToolAdmin,\n ToolAssistance,\n ToolSettings,\n TwoWayViewportFrustumSync,\n TwoWayViewportSync,\n ViewClipClearTool,\n ViewClipDecoration,\n ViewClipDecorationProvider,\n ViewClipTool,\n ViewCreator2d,\n ViewCreator3d,\n ViewManager,\n ViewManip,\n ViewPose,\n ViewPose2d,\n ViewPose3d,\n ViewRect,\n ViewState,\n ViewState2d,\n ViewState3d,\n ViewTool,\n ViewingSpace,\n Viewport,\n canvasToImageBuffer,\n canvasToResizedCanvasWithBars,\n connectViewportFrusta,\n connectViewportViews,\n connectViewports,\n extractImageSourceDimensions,\n getCompressedJpegFromCanvas,\n getImageSourceFormatForMimeType,\n getImageSourceMimeType,\n imageBufferToBase64EncodedPng,\n imageBufferToCanvas,\n imageBufferToPngDataUrl,\n imageElementFromImageSource,\n imageElementFromUrl,\n queryTerrainElevationOffset,\n readElementGraphics,\n readGltfGraphics,\n synchronizeViewportFrusta,\n synchronizeViewportViews,\n} from \"../core-frontend\";\n\nimport {\n // @preview real(s) from @itwin/core-common\n FractionRun,\n LineBreakRun,\n Paragraph,\n Run,\n TextAnnotation,\n TextBlock,\n TextBlockComponent,\n TextRun,\n TextStyle,\n TextStyleSettings,\n // @public enum(s) from @itwin/core-common\n BackgroundFill,\n BackgroundMapType,\n BatchType,\n BisCodeSpec,\n BriefcaseIdValue,\n ChangeOpCode,\n ChangedValueState,\n ChangesetType,\n CommonLoggerCategory,\n ECSqlSystemProperty,\n ECSqlValueType,\n ElementGeometryOpcode,\n FeatureOverrideType,\n FillDisplay,\n FillFlags,\n FontType,\n GeoCoordStatus,\n GeometryClass,\n GeometryStreamFlags,\n GeometrySummaryVerbosity,\n GlobeMode,\n GridOrientationType,\n HSVConstants,\n ImageBufferFormat,\n ImageSourceFormat,\n LinePixels,\n MassPropertiesOperation,\n MonochromeMode,\n Npc,\n PlanarClipMaskMode,\n PlanarClipMaskPriority,\n QueryRowFormat,\n Rank,\n RenderMode,\n SectionType,\n SkyBoxImageType,\n SpatialClassifierInsideDisplay,\n SpatialClassifierOutsideDisplay,\n SyncMode,\n TerrainHeightOriginMode,\n TextureMapUnits,\n ThematicDisplayMode,\n ThematicGradientColorScheme,\n ThematicGradientMode,\n ThematicGradientTransparencyMode,\n TxnAction,\n TypeOfChange,\n // @public real(s) from @itwin/core-common\n ClipIntersectionStyle,\n ColorByName,\n ColorDef,\n FrustumPlanes,\n QParams2d,\n QParams3d,\n QPoint2d,\n QPoint2dBuffer,\n QPoint2dBufferBuilder,\n QPoint2dList,\n QPoint3d,\n QPoint3dBuffer,\n QPoint3dBufferBuilder,\n QPoint3dList,\n Quantization,\n} from \"@itwin/core-common\";\n\nconst extensionExports = {\n ACSDisplayOptions,\n ACSType,\n AccuDrawHintBuilder,\n AccuSnap,\n ActivityMessageDetails,\n ActivityMessageEndReason,\n AuxCoordSystem2dState,\n AuxCoordSystem3dState,\n AuxCoordSystemSpatialState,\n AuxCoordSystemState,\n BackgroundFill,\n BackgroundMapType,\n BatchType,\n BeButton,\n BeButtonEvent,\n BeButtonState,\n BeModifierKeys,\n BeTouchEvent,\n BeWheelEvent,\n BingElevationProvider,\n BingLocationProvider,\n BisCodeSpec,\n BriefcaseIdValue,\n CategorySelectorState,\n ChangeFlags,\n ChangeOpCode,\n ChangedValueState,\n ChangesetType,\n ClipEventType,\n ClipIntersectionStyle,\n Cluster,\n ColorByName,\n ColorDef,\n CommonLoggerCategory,\n ContextRealityModelState,\n ContextRotationId,\n CoordSource,\n CoordSystem,\n CoordinateLockOverrides,\n DecorateContext,\n Decorations,\n DisclosedTileTreeSet,\n DisplayStyle2dState,\n DisplayStyle3dState,\n DisplayStyleState,\n DrawingModelState,\n DrawingViewState,\n ECSqlSystemProperty,\n ECSqlValueType,\n EditManipulator,\n ElementGeometryOpcode,\n ElementLocateManager,\n ElementPicker,\n ElementState,\n EmphasizeElements,\n EntityState,\n EventController,\n EventHandled,\n FeatureOverrideType,\n FeatureSymbology,\n FillDisplay,\n FillFlags,\n FlashMode,\n FlashSettings,\n FontType,\n FractionRun,\n FrontendLoggerCategory,\n FrustumAnimator,\n FrustumPlanes,\n GeoCoordStatus,\n GeometricModel2dState,\n GeometricModel3dState,\n GeometricModelState,\n GeometryClass,\n GeometryStreamFlags,\n GeometrySummaryVerbosity,\n GlobeAnimator,\n GlobeMode,\n GraphicBranch,\n GraphicBuilder,\n GraphicType,\n GridOrientationType,\n HSVConstants,\n HiliteSet,\n HitDetail,\n HitDetailType,\n HitGeomType,\n HitList,\n HitParentGeomType,\n HitPriority,\n HitSource,\n IModelConnection,\n IconSprites,\n ImageBufferFormat,\n ImageSourceFormat,\n InputCollector,\n InputSource,\n InteractiveTool,\n IntersectDetail,\n KeyinParseError,\n LineBreakRun,\n LinePixels,\n LocateAction,\n LocateFilterStatus,\n LocateOptions,\n LocateResponse,\n ManipulatorToolEvent,\n MarginPercent,\n Marker,\n MarkerSet,\n MassPropertiesOperation,\n MessageBoxIconType,\n MessageBoxType,\n MessageBoxValue,\n ModelSelectorState,\n ModelState,\n MonochromeMode,\n NotificationHandler,\n NotificationManager,\n NotifyMessageDetails,\n Npc,\n OffScreenViewport,\n OrthographicViewState,\n OutputMessageAlert,\n OutputMessagePriority,\n OutputMessageType,\n Paragraph,\n ParseAndRunResult,\n ParticleCollectionBuilder,\n PerModelCategoryVisibility,\n PhysicalModelState,\n Pixel,\n PlanarClipMaskMode,\n PlanarClipMaskPriority,\n PrimitiveTool,\n QParams2d,\n QParams3d,\n QPoint2d,\n QPoint2dBuffer,\n QPoint2dBufferBuilder,\n QPoint2dList,\n QPoint3d,\n QPoint3dBuffer,\n QPoint3dBufferBuilder,\n QPoint3dList,\n Quantization,\n QueryRowFormat,\n Rank,\n RenderClipVolume,\n RenderContext,\n RenderGraphic,\n RenderGraphicOwner,\n RenderMode,\n RenderSystem,\n Run,\n Scene,\n ScreenViewport,\n SectionDrawingModelState,\n SectionType,\n SelectionMethod,\n SelectionMode,\n SelectionProcessing,\n SelectionSet,\n SelectionSetEventType,\n SheetModelState,\n SheetViewState,\n SkyBoxImageType,\n SnapDetail,\n SnapHeat,\n SnapMode,\n SnapStatus,\n SpatialClassifierInsideDisplay,\n SpatialClassifierOutsideDisplay,\n SpatialLocationModelState,\n SpatialModelState,\n SpatialViewState,\n Sprite,\n SpriteLocation,\n StandardViewId,\n StartOrResume,\n SyncMode,\n TentativePoint,\n TerrainHeightOriginMode,\n TextAnnotation,\n TextBlock,\n TextBlockComponent,\n TextRun,\n TextStyle,\n TextStyleSettings,\n TextureMapUnits,\n ThematicDisplayMode,\n ThematicGradientColorScheme,\n ThematicGradientMode,\n ThematicGradientTransparencyMode,\n Tile,\n TileAdmin,\n TileBoundingBoxes,\n TileDrawArgs,\n TileGraphicType,\n TileLoadPriority,\n TileLoadStatus,\n TileRequest,\n TileRequestChannel,\n TileRequestChannelStatistics,\n TileRequestChannels,\n TileTree,\n TileTreeLoadStatus,\n TileTreeReference,\n TileUsageMarker,\n TileVisibility,\n Tiles,\n Tool,\n ToolAdmin,\n ToolAssistance,\n ToolAssistanceImage,\n ToolAssistanceInputMethod,\n ToolSettings,\n TwoWayViewportFrustumSync,\n TwoWayViewportSync,\n TxnAction,\n TypeOfChange,\n UniformType,\n VaryingType,\n ViewClipClearTool,\n ViewClipDecoration,\n ViewClipDecorationProvider,\n ViewClipTool,\n ViewCreator2d,\n ViewCreator3d,\n ViewManager,\n ViewManip,\n ViewPose,\n ViewPose2d,\n ViewPose3d,\n ViewRect,\n ViewState,\n ViewState2d,\n ViewState3d,\n ViewStatus,\n ViewTool,\n ViewingSpace,\n Viewport,\n canvasToImageBuffer,\n canvasToResizedCanvasWithBars,\n connectViewportFrusta,\n connectViewportViews,\n connectViewports,\n extractImageSourceDimensions,\n getCompressedJpegFromCanvas,\n getImageSourceFormatForMimeType,\n getImageSourceMimeType,\n imageBufferToBase64EncodedPng,\n imageBufferToCanvas,\n imageBufferToPngDataUrl,\n imageElementFromImageSource,\n imageElementFromUrl,\n queryTerrainElevationOffset,\n readElementGraphics,\n readGltfGraphics,\n synchronizeViewportFrusta,\n synchronizeViewportViews,\n};\n\n// END GENERATED CODE\n\nconst getExtensionApi = (_id: string) => {\n return {\n exports: {\n // exceptions\n ExtensionHost,\n // automated\n ...extensionExports,\n },\n };\n};\n\n(globalThis as any)[globalSymbol] = {\n getExtensionApi,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"ExtensionRuntime.js","sourceRoot":"","sources":["../../../src/extension/ExtensionRuntime.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;AAEH,yDAAyD;AACzD,sDAAsD;AACtD,iCAAiC;AAE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AAT,yBAAS;IACT,QAAQ,EAAR,wBAAQ;IACR,UAAU,EAAV,0BAAU;IACV,UAAU,EAAV,0BAAU;IACV,QAAQ,EAAR,wBAAQ;IACR,SAAS,EAAT,yBAAS;IACT,WAAW,EAAX,2BAAW;IACX,WAAW,EAAX,2BAAW;IACX,UAAU,EAAV,0BAAU;IACV,QAAQ,EAAR,wBAAQ;IACR,YAAY,EAAZ,4BAAY;IACZ,QAAQ,EAAR,wBAAQ;IACR,mBAAmB,EAAnB,mCAAmB;IACnB,6BAA6B,EAA7B,6CAA6B;IAC7B,qBAAqB,EAArB,qCAAqB;IACrB,oBAAoB,EAApB,oCAAoB;IACpB,gBAAgB,EAAhB,gCAAgB;IAChB,4BAA4B,EAA5B,4CAA4B;IAC5B,2BAA2B,EAA3B,2CAA2B;IAC3B,+BAA+B,EAA/B,+CAA+B;IAC/B,sBAAsB,EAAtB,sCAAsB;IACtB,6BAA6B,EAA7B,6CAA6B;IAC7B,mBAAmB,EAAnB,mCAAmB;IACnB,uBAAuB,EAAvB,uCAAuB;IACvB,2BAA2B,EAA3B,2CAA2B;IAC3B,mBAAmB,EAAnB,mCAAmB;IACnB,2BAA2B,EAA3B,2CAA2B;IAC3B,mBAAmB,EAAnB,mCAAmB;IACnB,gBAAgB,EAAhB,gCAAgB;IAChB,yBAAyB,EAAzB,yCAAyB;IACzB,wBAAwB,EAAxB,wCAAwB;CACzB,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE;IACtC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa,EAAb,6BAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;KACF,CAAC;AACJ,CAAC,CAAC;AAED,UAAkB,CAAC,YAAY,CAAC,GAAG;IAClC,eAAe;CAChB,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 Extensions\n */\n\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @itwin/no-internal-barrel-imports */\n/* eslint-disable sort-imports */\n\nimport { ExtensionHost } from \"./ExtensionHost\";\n\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\nif ((globalThis as any)[globalSymbol])\n throw new Error(\"Multiple @itwin/core-frontend imports detected!\");\n\n// BEGIN GENERATED CODE\nimport {\n // @public enum(s) from @itwin/core-frontend\n ACSDisplayOptions,\n ACSType,\n ActivityMessageEndReason,\n BeButton,\n BeModifierKeys,\n ClipEventType,\n ContextRotationId,\n CoordSource,\n CoordSystem,\n CoordinateLockOverrides,\n EventHandled,\n FlashMode,\n FrontendLoggerCategory,\n GraphicType,\n HitDetailType,\n HitGeomType,\n HitParentGeomType,\n HitPriority,\n HitSource,\n InputSource,\n KeyinParseError,\n LocateAction,\n LocateFilterStatus,\n ManipulatorToolEvent,\n MessageBoxIconType,\n MessageBoxType,\n MessageBoxValue,\n OutputMessageAlert,\n OutputMessagePriority,\n OutputMessageType,\n ParseAndRunResult,\n SelectionMethod,\n SelectionMode,\n SelectionProcessing,\n SelectionSetEventType,\n SnapHeat,\n SnapMode,\n SnapStatus,\n StandardViewId,\n StartOrResume,\n TileBoundingBoxes,\n TileGraphicType,\n TileLoadPriority,\n TileLoadStatus,\n TileTreeLoadStatus,\n TileVisibility,\n ToolAssistanceImage,\n ToolAssistanceInputMethod,\n UniformType,\n VaryingType,\n ViewStatus,\n // @public real(s) from @itwin/core-frontend\n AccuDrawHintBuilder,\n AccuSnap,\n ActivityMessageDetails,\n AuxCoordSystem2dState,\n AuxCoordSystem3dState,\n AuxCoordSystemSpatialState,\n AuxCoordSystemState,\n BeButtonEvent,\n BeButtonState,\n BeTouchEvent,\n BeWheelEvent,\n BingElevationProvider,\n BingLocationProvider,\n CategorySelectorState,\n ChangeFlags,\n Cluster,\n ContextRealityModelState,\n DecorateContext,\n Decorations,\n DisclosedTileTreeSet,\n DisplayStyle2dState,\n DisplayStyle3dState,\n DisplayStyleState,\n DrawingModelState,\n DrawingViewState,\n EditManipulator,\n ElementLocateManager,\n ElementPicker,\n ElementState,\n EmphasizeElements,\n EntityState,\n EventController,\n FeatureSymbology,\n FlashSettings,\n FrustumAnimator,\n GeometricModel2dState,\n GeometricModel3dState,\n GeometricModelState,\n GlobeAnimator,\n GraphicBranch,\n GraphicBuilder,\n HiliteSet,\n HitDetail,\n HitList,\n IModelConnection,\n IconSprites,\n InputCollector,\n InteractiveTool,\n IntersectDetail,\n LocateOptions,\n LocateResponse,\n MarginPercent,\n Marker,\n MarkerSet,\n ModelSelectorState,\n ModelState,\n NotificationHandler,\n NotificationManager,\n NotifyMessageDetails,\n OffScreenViewport,\n OrthographicViewState,\n ParticleCollectionBuilder,\n PerModelCategoryVisibility,\n PhysicalModelState,\n Pixel,\n PrimitiveTool,\n RenderClipVolume,\n RenderContext,\n RenderGraphic,\n RenderGraphicOwner,\n RenderSystem,\n Scene,\n ScreenViewport,\n SectionDrawingModelState,\n SelectionSet,\n SheetModelState,\n SheetViewState,\n SnapDetail,\n SpatialLocationModelState,\n SpatialModelState,\n SpatialViewState,\n Sprite,\n SpriteLocation,\n TentativePoint,\n Tile,\n TileAdmin,\n TileDrawArgs,\n TileRequest,\n TileRequestChannel,\n TileRequestChannelStatistics,\n TileRequestChannels,\n TileTree,\n TileTreeReference,\n TileUsageMarker,\n Tiles,\n Tool,\n ToolAdmin,\n ToolAssistance,\n ToolSettings,\n TwoWayViewportFrustumSync,\n TwoWayViewportSync,\n ViewClipClearTool,\n ViewClipDecoration,\n ViewClipDecorationProvider,\n ViewClipTool,\n ViewCreator2d,\n ViewCreator3d,\n ViewManager,\n ViewManip,\n ViewPose,\n ViewPose2d,\n ViewPose3d,\n ViewRect,\n ViewState,\n ViewState2d,\n ViewState3d,\n ViewTool,\n ViewingSpace,\n Viewport,\n canvasToImageBuffer,\n canvasToResizedCanvasWithBars,\n connectViewportFrusta,\n connectViewportViews,\n connectViewports,\n extractImageSourceDimensions,\n getCompressedJpegFromCanvas,\n getImageSourceFormatForMimeType,\n getImageSourceMimeType,\n imageBufferToBase64EncodedPng,\n imageBufferToCanvas,\n imageBufferToPngDataUrl,\n imageElementFromImageSource,\n imageElementFromUrl,\n queryTerrainElevationOffset,\n readElementGraphics,\n readGltfGraphics,\n synchronizeViewportFrusta,\n synchronizeViewportViews,\n} from \"../core-frontend\";\n\nimport {\n // @public enum(s) from @itwin/core-common\n BackgroundFill,\n BackgroundMapType,\n BatchType,\n BisCodeSpec,\n BriefcaseIdValue,\n ChangeOpCode,\n ChangedValueState,\n ChangesetType,\n CommonLoggerCategory,\n ECSqlSystemProperty,\n ECSqlValueType,\n ElementGeometryOpcode,\n FeatureOverrideType,\n FillDisplay,\n FillFlags,\n FontType,\n GeoCoordStatus,\n GeometryClass,\n GeometryStreamFlags,\n GeometrySummaryVerbosity,\n GlobeMode,\n GridOrientationType,\n HSVConstants,\n ImageBufferFormat,\n ImageSourceFormat,\n LinePixels,\n MassPropertiesOperation,\n MonochromeMode,\n Npc,\n PlanarClipMaskMode,\n PlanarClipMaskPriority,\n QueryRowFormat,\n Rank,\n RenderMode,\n SectionType,\n SkyBoxImageType,\n SpatialClassifierInsideDisplay,\n SpatialClassifierOutsideDisplay,\n SyncMode,\n TerrainHeightOriginMode,\n TextureMapUnits,\n ThematicDisplayMode,\n ThematicGradientColorScheme,\n ThematicGradientMode,\n ThematicGradientTransparencyMode,\n TxnAction,\n TypeOfChange,\n // @public real(s) from @itwin/core-common\n ClipIntersectionStyle,\n ColorByName,\n ColorDef,\n FrustumPlanes,\n QParams2d,\n QParams3d,\n QPoint2d,\n QPoint2dBuffer,\n QPoint2dBufferBuilder,\n QPoint2dList,\n QPoint3d,\n QPoint3dBuffer,\n QPoint3dBufferBuilder,\n QPoint3dList,\n Quantization,\n} from \"@itwin/core-common\";\n\nconst extensionExports = {\n ACSDisplayOptions,\n ACSType,\n AccuDrawHintBuilder,\n AccuSnap,\n ActivityMessageDetails,\n ActivityMessageEndReason,\n AuxCoordSystem2dState,\n AuxCoordSystem3dState,\n AuxCoordSystemSpatialState,\n AuxCoordSystemState,\n BackgroundFill,\n BackgroundMapType,\n BatchType,\n BeButton,\n BeButtonEvent,\n BeButtonState,\n BeModifierKeys,\n BeTouchEvent,\n BeWheelEvent,\n BingElevationProvider,\n BingLocationProvider,\n BisCodeSpec,\n BriefcaseIdValue,\n CategorySelectorState,\n ChangeFlags,\n ChangeOpCode,\n ChangedValueState,\n ChangesetType,\n ClipEventType,\n ClipIntersectionStyle,\n Cluster,\n ColorByName,\n ColorDef,\n CommonLoggerCategory,\n ContextRealityModelState,\n ContextRotationId,\n CoordSource,\n CoordSystem,\n CoordinateLockOverrides,\n DecorateContext,\n Decorations,\n DisclosedTileTreeSet,\n DisplayStyle2dState,\n DisplayStyle3dState,\n DisplayStyleState,\n DrawingModelState,\n DrawingViewState,\n ECSqlSystemProperty,\n ECSqlValueType,\n EditManipulator,\n ElementGeometryOpcode,\n ElementLocateManager,\n ElementPicker,\n ElementState,\n EmphasizeElements,\n EntityState,\n EventController,\n EventHandled,\n FeatureOverrideType,\n FeatureSymbology,\n FillDisplay,\n FillFlags,\n FlashMode,\n FlashSettings,\n FontType,\n FrontendLoggerCategory,\n FrustumAnimator,\n FrustumPlanes,\n GeoCoordStatus,\n GeometricModel2dState,\n GeometricModel3dState,\n GeometricModelState,\n GeometryClass,\n GeometryStreamFlags,\n GeometrySummaryVerbosity,\n GlobeAnimator,\n GlobeMode,\n GraphicBranch,\n GraphicBuilder,\n GraphicType,\n GridOrientationType,\n HSVConstants,\n HiliteSet,\n HitDetail,\n HitDetailType,\n HitGeomType,\n HitList,\n HitParentGeomType,\n HitPriority,\n HitSource,\n IModelConnection,\n IconSprites,\n ImageBufferFormat,\n ImageSourceFormat,\n InputCollector,\n InputSource,\n InteractiveTool,\n IntersectDetail,\n KeyinParseError,\n LinePixels,\n LocateAction,\n LocateFilterStatus,\n LocateOptions,\n LocateResponse,\n ManipulatorToolEvent,\n MarginPercent,\n Marker,\n MarkerSet,\n MassPropertiesOperation,\n MessageBoxIconType,\n MessageBoxType,\n MessageBoxValue,\n ModelSelectorState,\n ModelState,\n MonochromeMode,\n NotificationHandler,\n NotificationManager,\n NotifyMessageDetails,\n Npc,\n OffScreenViewport,\n OrthographicViewState,\n OutputMessageAlert,\n OutputMessagePriority,\n OutputMessageType,\n ParseAndRunResult,\n ParticleCollectionBuilder,\n PerModelCategoryVisibility,\n PhysicalModelState,\n Pixel,\n PlanarClipMaskMode,\n PlanarClipMaskPriority,\n PrimitiveTool,\n QParams2d,\n QParams3d,\n QPoint2d,\n QPoint2dBuffer,\n QPoint2dBufferBuilder,\n QPoint2dList,\n QPoint3d,\n QPoint3dBuffer,\n QPoint3dBufferBuilder,\n QPoint3dList,\n Quantization,\n QueryRowFormat,\n Rank,\n RenderClipVolume,\n RenderContext,\n RenderGraphic,\n RenderGraphicOwner,\n RenderMode,\n RenderSystem,\n Scene,\n ScreenViewport,\n SectionDrawingModelState,\n SectionType,\n SelectionMethod,\n SelectionMode,\n SelectionProcessing,\n SelectionSet,\n SelectionSetEventType,\n SheetModelState,\n SheetViewState,\n SkyBoxImageType,\n SnapDetail,\n SnapHeat,\n SnapMode,\n SnapStatus,\n SpatialClassifierInsideDisplay,\n SpatialClassifierOutsideDisplay,\n SpatialLocationModelState,\n SpatialModelState,\n SpatialViewState,\n Sprite,\n SpriteLocation,\n StandardViewId,\n StartOrResume,\n SyncMode,\n TentativePoint,\n TerrainHeightOriginMode,\n TextureMapUnits,\n ThematicDisplayMode,\n ThematicGradientColorScheme,\n ThematicGradientMode,\n ThematicGradientTransparencyMode,\n Tile,\n TileAdmin,\n TileBoundingBoxes,\n TileDrawArgs,\n TileGraphicType,\n TileLoadPriority,\n TileLoadStatus,\n TileRequest,\n TileRequestChannel,\n TileRequestChannelStatistics,\n TileRequestChannels,\n TileTree,\n TileTreeLoadStatus,\n TileTreeReference,\n TileUsageMarker,\n TileVisibility,\n Tiles,\n Tool,\n ToolAdmin,\n ToolAssistance,\n ToolAssistanceImage,\n ToolAssistanceInputMethod,\n ToolSettings,\n TwoWayViewportFrustumSync,\n TwoWayViewportSync,\n TxnAction,\n TypeOfChange,\n UniformType,\n VaryingType,\n ViewClipClearTool,\n ViewClipDecoration,\n ViewClipDecorationProvider,\n ViewClipTool,\n ViewCreator2d,\n ViewCreator3d,\n ViewManager,\n ViewManip,\n ViewPose,\n ViewPose2d,\n ViewPose3d,\n ViewRect,\n ViewState,\n ViewState2d,\n ViewState3d,\n ViewStatus,\n ViewTool,\n ViewingSpace,\n Viewport,\n canvasToImageBuffer,\n canvasToResizedCanvasWithBars,\n connectViewportFrusta,\n connectViewportViews,\n connectViewports,\n extractImageSourceDimensions,\n getCompressedJpegFromCanvas,\n getImageSourceFormatForMimeType,\n getImageSourceMimeType,\n imageBufferToBase64EncodedPng,\n imageBufferToCanvas,\n imageBufferToPngDataUrl,\n imageElementFromImageSource,\n imageElementFromUrl,\n queryTerrainElevationOffset,\n readElementGraphics,\n readGltfGraphics,\n synchronizeViewportFrusta,\n synchronizeViewportViews,\n};\n\n// END GENERATED CODE\n\nconst getExtensionApi = (_id: string) => {\n return {\n exports: {\n // exceptions\n ExtensionHost,\n // automated\n ...extensionExports,\n },\n };\n};\n\n(globalThis as any)[globalSymbol] = {\n getExtensionApi,\n};\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @module Rendering
|
|
3
3
|
*/
|
|
4
4
|
import { Uint16ArrayBuilder, UintArray, UintArrayBuilder } from "@itwin/core-bentley";
|
|
5
|
-
import {
|
|
5
|
+
import { IndexedPolyface, Range2d, Range3d, Transform, XAndY, XYAndZ } from "@itwin/core-geometry";
|
|
6
6
|
import { QPoint2dBuffer, QPoint2dBufferBuilder, QPoint3dBuffer, QPoint3dBufferBuilder, RenderTexture } from "@itwin/core-common";
|
|
7
7
|
import { GltfMeshData } from "../tile/internal";
|
|
8
8
|
/** Geometry for a reality mesh to be submitted to the [[RenderSystem]] for conversion to a [[RenderGraphic]].
|
|
@@ -35,7 +35,7 @@ export declare namespace RealityMeshParams {
|
|
|
35
35
|
transform?: Transform;
|
|
36
36
|
wantNormals?: boolean;
|
|
37
37
|
wantParams?: boolean;
|
|
38
|
-
}):
|
|
38
|
+
}): IndexedPolyface | undefined;
|
|
39
39
|
}
|
|
40
40
|
/** Options used to construct a [[RealityMeshParamsBuilder]].
|
|
41
41
|
* @beta
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RealityMeshParams.d.ts","sourceRoot":"","sources":["../../../src/render/RealityMeshParams.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAU,kBAAkB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9F,OAAO,
|
|
1
|
+
{"version":3,"file":"RealityMeshParams.d.ts","sourceRoot":"","sources":["../../../src/render/RealityMeshParams.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAU,kBAAkB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9F,OAAO,EACL,eAAe,EAAoB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAY,KAAK,EAAE,MAAM,EACxF,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACuB,cAAc,EAAE,qBAAqB,EAAY,cAAc,EAAE,qBAAqB,EAAE,aAAa,EAClI,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAahD;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,0EAA0E;IAC1E,SAAS,EAAE,cAAc,CAAC;IAC1B,qFAAqF;IACrF,GAAG,EAAE,cAAc,CAAC;IACpB,8HAA8H;IAC9H,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,oGAAoG;IACpG,OAAO,EAAE,SAAS,CAAC;IACnB,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AY,EAAE;SACrC,CAAC;IACJ,CAAC;CACF;AAlID,4DAkIC","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\nimport { assert, Uint16ArrayBuilder, UintArray, UintArrayBuilder } from \"@itwin/core-bentley\";\nimport {\n IndexedPolyface, Point2d, Point3d, Polyface, Range2d, Range3d, Transform, Vector3d, XAndY, XYAndZ,\n} from \"@itwin/core-geometry\";\nimport {\n OctEncodedNormal, QPoint2d, QPoint2dBuffer, QPoint2dBufferBuilder, QPoint3d, QPoint3dBuffer, QPoint3dBufferBuilder, RenderTexture,\n} from \"@itwin/core-common\";\nimport { GltfMeshData } from \"../tile/internal\";\nimport { MeshPrimitiveType } from \"../common/render/primitives/MeshPrimitive\";\n\nfunction precondition(condition: boolean, message: string | (() => string)): asserts condition {\n if (condition)\n return;\n\n if (\"string\" !== typeof message)\n message = message();\n\n throw new Error(`Logic Error: ${message}`);\n}\n\n/** Geometry for a reality mesh to be submitted to the [[RenderSystem]] for conversion to a [[RenderGraphic]].\n * A reality mesh is a simple triangle mesh to which a [RenderTexture]($common) image can be mapped. Sources of reality meshes\n * include [[TerrainMeshProvider]]s to which background map imagery is applied, and [ContextRealityModel]($common)s captured using\n * [photogrammetry](https://en.wikipedia.org/wiki/Photogrammetry).\n * @see [[RealityMeshParamsBuilder]] to incrementally construct a `RealityMeshParams`.\n * @public\n */\nexport interface RealityMeshParams {\n /** The 3d position of each vertex in the mesh, indexed by [[indices]]. */\n positions: QPoint3dBuffer;\n /** The 2d texture coordinates of each vertex in the mesh, indexed by [[indices]]. */\n uvs: QPoint2dBuffer;\n /** The optional normal vector for each vertex in the mesh, indexed by [[indices]], stored as [OctEncodedNormal]($common)s. */\n normals?: Uint16Array;\n /** The integer indices of each triangle in the mesh. The array's length must be a multiple of 3. */\n indices: UintArray;\n /** @alpha unused by terrain meshes */\n featureID?: number; // default 0\n /** @alpha unused by terrain meshes */\n texture?: RenderTexture;\n}\n\n/** @public */\nexport namespace RealityMeshParams {\n /** @internal */\n export function fromGltfMesh(mesh: GltfMeshData): RealityMeshParams | undefined {\n // The specialized reality mesh shaders expect a mesh with uvs and no edges.\n if (mesh.primitive.type !== MeshPrimitiveType.Mesh || mesh.primitive.edges || !mesh.pointQParams || !mesh.uvQParams || !mesh.points || !mesh.uvs || !mesh.indices)\n return undefined;\n\n return {\n indices: mesh.indices,\n positions: {\n params: mesh.pointQParams,\n points: mesh.points,\n },\n uvs: {\n params: mesh.uvQParams,\n points: mesh.uvs,\n },\n normals: mesh.normals,\n // featureID: 0,\n texture: mesh.primitive.displayParams.textureMapping?.texture,\n };\n }\n\n /** @alpha */\n export function toPolyface(params: RealityMeshParams, options?: { transform?: Transform, wantNormals?: boolean, wantParams?: boolean }): Polyface | undefined {\n const { positions, normals, uvs, indices } = params;\n const includeNormals = options?.wantNormals && undefined !== normals;\n const includeParams = options?.wantParams;\n\n const polyface = IndexedPolyface.create(includeNormals, includeParams);\n const points = positions.points;\n const point = new Point3d();\n const transform = options?.transform;\n for (let i = 0; i < positions.points.length; i += 3) {\n positions.params.unquantize(points[i], points[i + 1], points[i + 2], point);\n transform?.multiplyPoint3d(point, point);\n polyface.addPoint(point);\n }\n\n if (includeNormals) {\n const normal = new Vector3d();\n for (const oen of normals)\n polyface.addNormal(OctEncodedNormal.decodeValue(oen, normal));\n }\n\n if (includeParams) {\n const uv = new Point2d();\n for (let i = 0; i < uvs.points.length; i += 2)\n polyface.addParam(uvs.params.unquantize(uvs.points[i], uvs.points[i + 1], uv));\n }\n\n let j = 0;\n indices.forEach((index: number) => {\n polyface.addPointIndex(index);\n if (includeNormals)\n polyface.addNormalIndex(index);\n\n if (includeParams)\n polyface.addParamIndex(index);\n\n if (0 === (++j % 3))\n polyface.terminateFacet();\n });\n\n return polyface;\n }\n}\n\n/** Options used to construct a [[RealityMeshParamsBuilder]].\n * @beta\n */\nexport interface RealityMeshParamsBuilderOptions {\n /** A bounding box fully containing the positions of all vertices to be included in the mesh.\n * This range is used to quantize [[RealityMeshParams.positions]].\n */\n positionRange: Range3d;\n /** A range fully containing the texture coordinates of all vertices to be included in the mesh.\n * This range is used to quantize [[RealityMeshParams.uvs]].\n * Default: [0.0, 1.0].\n */\n uvRange?: Range2d;\n /** If true, [[RealityMeshParams.normals]] will be populated.\n * If you set this to true, you must supply a normal for every vertex when calling [[RealityMeshParamsBuilder.addQuantizedVertex]] or [[RealityMeshParamsBuilder.addUnquantizedVertex]].\n */\n wantNormals?: boolean;\n /** If defined, memory for this number of vertices will be allocated up-front. Set this if you know the minimum number of vertices in the mesh, to\n * avoid unnecessary reallocations when adding vertices.\n */\n initialVertexCapacity?: number;\n /** If defined, memory for this number of indices will be allocated up-front. Set this if you know the minimum number of triangles in the mesh, to avoid\n * unnecessary reallocations when adding triangles. The number of indices is equal to three times the number of triangles.\n */\n initialIndexCapacity?: number;\n}\n\n/** Incrementally constructs a [[RealityMeshParams]].\n * The following simple example produces a rectangular mesh containing two triangles.\n * ```ts\n * [[include:Build_Reality_Mesh_Params]]\n * ```\n * @beta\n */\nexport class RealityMeshParamsBuilder {\n /** The indices of the vertices in each triangle of the mesh.\n * @see [[addTriangle]] to add 3 indices describing a single triangle.\n * @see [[addQuad]] to add 4 indices describing two triangles sharing an edge.\n * @see [[addIndices]] to add any number of indices.\n */\n public readonly indices: UintArrayBuilder;\n /** The 3d position of each vertex in the mesh.\n * @see [[addQuantizedVertex]] and [[addUnquantizedVertex]] to add a vertex.\n */\n public readonly positions: QPoint3dBufferBuilder;\n /** The 2d texture coordinates of each vertex in the mesh.\n * @see [[addQuantizedVertex]] and [[addUnquantizedVertex]] to add a vertex.\n */\n public readonly uvs: QPoint2dBufferBuilder;\n /** The normal vector of each vertex in the mesh, or `undefined` if [[RealityMeshParamsBuilderOptions.wantNormals]] was not `true` when constructing the builder.\n * A normal vector must be supplied to [[addQuantizedVertex]] and [[addUnquantizedVertex]] if and only if [[RealityMeshParamsBuilderOptions.wantNormals]] was\n * specified as `true`.\n * The vectors are stored as [OctEncodedNormal]($common)s.\n */\n public normals?: Uint16ArrayBuilder;\n\n // Scratch variables\n private readonly _q3d = new QPoint3d();\n private readonly _q2d = new QPoint2d();\n\n /** Construct a builder from the specified options. */\n public constructor(options: RealityMeshParamsBuilderOptions) {\n let initialType;\n if (undefined !== options.initialVertexCapacity && options.initialVertexCapacity > 0xff)\n initialType = options.initialVertexCapacity > 0xffff ? Uint32Array : Uint16Array;\n\n this.indices = new UintArrayBuilder({\n initialCapacity: options.initialIndexCapacity,\n initialType,\n });\n\n if (options.wantNormals)\n this.normals = new Uint16ArrayBuilder({ initialCapacity: options.initialVertexCapacity });\n\n this.positions = new QPoint3dBufferBuilder({\n range: options.positionRange,\n initialCapacity: options.initialVertexCapacity,\n });\n\n this.uvs = new QPoint2dBufferBuilder({\n range: options.uvRange ?? new Range2d(0, 0, 1, 1),\n initialCapacity: options.initialVertexCapacity,\n });\n }\n\n /** Add a vertex to the mesh and return its index in [[positions]].\n * @param position The 3d position, which will be quantized to the [[RealityMeshParamsBuilderOptions.positionRange]] supplied to the builder's constructor.\n * @param uv The texture coordinates, which will be quantized to the [[RealityMeshParamsBuilderOptions.uvRange]] supplied to the builder's constructor.\n * @param the normal vector, to be supplied if and only if [[RealityMeshParamsBuilderOptions.wantNormals]] was `true` when the builder was constructed.\n * @see [[addQuantizedVertex]] if your vertex data is already quantized.\n * @returns the index of the new vertex in [[positions]].\n */\n public addUnquantizedVertex(position: XYAndZ, uv: XAndY, normal?: XYAndZ): number {\n this._q3d.init(position, this.positions.params);\n this._q2d.init(uv, this.uvs.params);\n const oen = normal ? OctEncodedNormal.encode(normal) : undefined;\n return this.addQuantizedVertex(this._q3d, this._q2d, oen);\n }\n\n /** Original API had weird mix of quantized and unquantized, used by CesiumTerrainProvider.\n * @internal\n */\n public addVertex(position: XYAndZ, uv: XAndY, normal?: number): void {\n this._q3d.init(position, this.positions.params);\n this.addQuantizedVertex(this._q3d, uv, normal);\n }\n\n /** Add a vertex to the mesh and return its index in [[positions]].\n * @param position The 3d position, quantized to the [[RealityMeshParamsBuilderOptions.positionRange]] supplied to the builder's constructor.\n * @param uv The texture coordinates, quantized to the [[RealityMeshParamsBuilderOptions.uvRange]] supplied to the builder's constructor.\n * @param normal The unsigned 16-bit [OctEncodedNormal]($common) integer representation of the normal vector, to be supplied if and only if\n * [[RealityMeshParamsBuilderOptions.wantNormals]] was `true` when the builder was constructed.\n * @see [[addUnquantizedVertex]] if your vertex data is not already quantized.\n * @returns the index of the new vertex in [[positions]].\n * @throws Error if `normal` is `undefined` but `wantNormals` was specified at construction of the builder, or vice-versa.\n */\n public addQuantizedVertex(position: XYAndZ, uv: XAndY, normal?: number): number {\n precondition((undefined === normal) === (undefined === this.normals), \"RealityMeshParams requires all vertices to have normals, or none.\");\n\n this.positions.push(position);\n this.uvs.push(uv);\n if (undefined !== normal) {\n assert(undefined !== this.normals);\n this.normals.push(normal);\n }\n\n return this.positions.length - 1;\n }\n\n /** Add a triangle corresponding to the three specified vertices. */\n public addTriangle(i0: number, i1: number, i2: number): void {\n this.addIndex(i0);\n this.addIndex(i1);\n this.addIndex(i2);\n }\n\n /** Add two triangles sharing an edge. This is equivalent to calling `addTriangle(i0, i1, i2); addTriangle(i1, i3, i2);`. */\n public addQuad(i0: number, i1: number, i2: number, i3: number): void {\n this.addTriangle(i0, i1, i2);\n this.addTriangle(i1, i3, i2);\n }\n\n /** Add all of the indices in `indices` to the index buffer. */\n public addIndices(indices: Iterable<number>): void {\n for (const index of indices)\n this.addIndex(index);\n }\n\n private addIndex(index: number): void {\n this.indices.push(index);\n }\n\n /** Extract the finished [[RealityMeshParams]].\n * @throws Error if the mesh contains no triangles.\n */\n public finish(): RealityMeshParams {\n precondition(this.positions.length >= 3 && this.indices.length >= 3, \"RealityMeshParams requires at least one triangle\");\n return {\n positions: this.positions.finish(),\n uvs: this.uvs.finish(),\n normals: this.normals?.toTypedArray(),\n indices: this.indices.toTypedArray(),\n };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"RealityMeshParams.js","sourceRoot":"","sources":["../../../src/render/RealityMeshParams.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA8F;AAC9F,wDAE8B;AAC9B,oDAE4B;AAE5B,6EAA8E;AAE9E,SAAS,YAAY,CAAC,SAAkB,EAAE,OAAgC;IACxE,IAAI,SAAS;QACX,OAAO;IAET,IAAI,QAAQ,KAAK,OAAO,OAAO;QAC7B,OAAO,GAAG,OAAO,EAAE,CAAC;IAEtB,MAAM,IAAI,KAAK,CAAC,gBAAgB,OAAO,EAAE,CAAC,CAAC;AAC7C,CAAC;AAwBD,cAAc;AACd,IAAiB,iBAAiB,CAkEjC;AAlED,WAAiB,iBAAiB;IAChC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,IAAkB;QAC7C,4EAA4E;QAC5E,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,iCAAiB,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO;YAC/J,OAAO,SAAS,CAAC;QAEnB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE;gBACT,MAAM,EAAE,IAAI,CAAC,YAAY;gBACzB,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB;YACD,GAAG,EAAE;gBACH,MAAM,EAAE,IAAI,CAAC,SAAS;gBACtB,MAAM,EAAE,IAAI,CAAC,GAAG;aACjB;YACD,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,gBAAgB;YAChB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,aA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;IAED,+DAA+D;IACxD,UAAU,CAAC,OAAyB;QACzC,KAAK,MAAM,KAAK,IAAI,OAAO;YACzB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAEO,QAAQ,CAAC,KAAa;QAC5B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED;;OAEG;IACI,MAAM;QACX,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE,kDAAkD,CAAC,CAAC;QACzH,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE;YAClC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;YACtB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE;YACrC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;SACrC,CAAC;IACJ,CAAC;CACF;AAlID,4DAkIC","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\nimport { assert, Uint16ArrayBuilder, UintArray, UintArrayBuilder } from \"@itwin/core-bentley\";\nimport {\n IndexedPolyface, Point2d, Point3d, Range2d, Range3d, Transform, Vector3d, XAndY, XYAndZ,\n} from \"@itwin/core-geometry\";\nimport {\n OctEncodedNormal, QPoint2d, QPoint2dBuffer, QPoint2dBufferBuilder, QPoint3d, QPoint3dBuffer, QPoint3dBufferBuilder, RenderTexture,\n} from \"@itwin/core-common\";\nimport { GltfMeshData } from \"../tile/internal\";\nimport { MeshPrimitiveType } from \"../common/render/primitives/MeshPrimitive\";\n\nfunction precondition(condition: boolean, message: string | (() => string)): asserts condition {\n if (condition)\n return;\n\n if (\"string\" !== typeof message)\n message = message();\n\n throw new Error(`Logic Error: ${message}`);\n}\n\n/** Geometry for a reality mesh to be submitted to the [[RenderSystem]] for conversion to a [[RenderGraphic]].\n * A reality mesh is a simple triangle mesh to which a [RenderTexture]($common) image can be mapped. Sources of reality meshes\n * include [[TerrainMeshProvider]]s to which background map imagery is applied, and [ContextRealityModel]($common)s captured using\n * [photogrammetry](https://en.wikipedia.org/wiki/Photogrammetry).\n * @see [[RealityMeshParamsBuilder]] to incrementally construct a `RealityMeshParams`.\n * @public\n */\nexport interface RealityMeshParams {\n /** The 3d position of each vertex in the mesh, indexed by [[indices]]. */\n positions: QPoint3dBuffer;\n /** The 2d texture coordinates of each vertex in the mesh, indexed by [[indices]]. */\n uvs: QPoint2dBuffer;\n /** The optional normal vector for each vertex in the mesh, indexed by [[indices]], stored as [OctEncodedNormal]($common)s. */\n normals?: Uint16Array;\n /** The integer indices of each triangle in the mesh. The array's length must be a multiple of 3. */\n indices: UintArray;\n /** @alpha unused by terrain meshes */\n featureID?: number; // default 0\n /** @alpha unused by terrain meshes */\n texture?: RenderTexture;\n}\n\n/** @public */\nexport namespace RealityMeshParams {\n /** @internal */\n export function fromGltfMesh(mesh: GltfMeshData): RealityMeshParams | undefined {\n // The specialized reality mesh shaders expect a mesh with uvs and no edges.\n if (mesh.primitive.type !== MeshPrimitiveType.Mesh || mesh.primitive.edges || !mesh.pointQParams || !mesh.uvQParams || !mesh.points || !mesh.uvs || !mesh.indices)\n return undefined;\n\n return {\n indices: mesh.indices,\n positions: {\n params: mesh.pointQParams,\n points: mesh.points,\n },\n uvs: {\n params: mesh.uvQParams,\n points: mesh.uvs,\n },\n normals: mesh.normals,\n // featureID: 0,\n texture: mesh.primitive.displayParams.textureMapping?.texture,\n };\n }\n\n /** @alpha */\n export function toPolyface(params: RealityMeshParams, options?: { transform?: Transform, wantNormals?: boolean, wantParams?: boolean }): IndexedPolyface | undefined {\n const { positions, normals, uvs, indices } = params;\n const includeNormals = options?.wantNormals && undefined !== normals;\n const includeParams = options?.wantParams;\n\n const polyface = IndexedPolyface.create(includeNormals, includeParams);\n const points = positions.points;\n const point = new Point3d();\n const transform = options?.transform;\n for (let i = 0; i < positions.points.length; i += 3) {\n positions.params.unquantize(points[i], points[i + 1], points[i + 2], point);\n transform?.multiplyPoint3d(point, point);\n polyface.addPoint(point);\n }\n\n if (includeNormals) {\n const normal = new Vector3d();\n for (const oen of normals)\n polyface.addNormal(OctEncodedNormal.decodeValue(oen, normal));\n }\n\n if (includeParams) {\n const uv = new Point2d();\n for (let i = 0; i < uvs.points.length; i += 2)\n polyface.addParam(uvs.params.unquantize(uvs.points[i], uvs.points[i + 1], uv));\n }\n\n let j = 0;\n indices.forEach((index: number) => {\n polyface.addPointIndex(index);\n if (includeNormals)\n polyface.addNormalIndex(index);\n\n if (includeParams)\n polyface.addParamIndex(index);\n\n if (0 === (++j % 3))\n polyface.terminateFacet();\n });\n\n return polyface;\n }\n}\n\n/** Options used to construct a [[RealityMeshParamsBuilder]].\n * @beta\n */\nexport interface RealityMeshParamsBuilderOptions {\n /** A bounding box fully containing the positions of all vertices to be included in the mesh.\n * This range is used to quantize [[RealityMeshParams.positions]].\n */\n positionRange: Range3d;\n /** A range fully containing the texture coordinates of all vertices to be included in the mesh.\n * This range is used to quantize [[RealityMeshParams.uvs]].\n * Default: [0.0, 1.0].\n */\n uvRange?: Range2d;\n /** If true, [[RealityMeshParams.normals]] will be populated.\n * If you set this to true, you must supply a normal for every vertex when calling [[RealityMeshParamsBuilder.addQuantizedVertex]] or [[RealityMeshParamsBuilder.addUnquantizedVertex]].\n */\n wantNormals?: boolean;\n /** If defined, memory for this number of vertices will be allocated up-front. Set this if you know the minimum number of vertices in the mesh, to\n * avoid unnecessary reallocations when adding vertices.\n */\n initialVertexCapacity?: number;\n /** If defined, memory for this number of indices will be allocated up-front. Set this if you know the minimum number of triangles in the mesh, to avoid\n * unnecessary reallocations when adding triangles. The number of indices is equal to three times the number of triangles.\n */\n initialIndexCapacity?: number;\n}\n\n/** Incrementally constructs a [[RealityMeshParams]].\n * The following simple example produces a rectangular mesh containing two triangles.\n * ```ts\n * [[include:Build_Reality_Mesh_Params]]\n * ```\n * @beta\n */\nexport class RealityMeshParamsBuilder {\n /** The indices of the vertices in each triangle of the mesh.\n * @see [[addTriangle]] to add 3 indices describing a single triangle.\n * @see [[addQuad]] to add 4 indices describing two triangles sharing an edge.\n * @see [[addIndices]] to add any number of indices.\n */\n public readonly indices: UintArrayBuilder;\n /** The 3d position of each vertex in the mesh.\n * @see [[addQuantizedVertex]] and [[addUnquantizedVertex]] to add a vertex.\n */\n public readonly positions: QPoint3dBufferBuilder;\n /** The 2d texture coordinates of each vertex in the mesh.\n * @see [[addQuantizedVertex]] and [[addUnquantizedVertex]] to add a vertex.\n */\n public readonly uvs: QPoint2dBufferBuilder;\n /** The normal vector of each vertex in the mesh, or `undefined` if [[RealityMeshParamsBuilderOptions.wantNormals]] was not `true` when constructing the builder.\n * A normal vector must be supplied to [[addQuantizedVertex]] and [[addUnquantizedVertex]] if and only if [[RealityMeshParamsBuilderOptions.wantNormals]] was\n * specified as `true`.\n * The vectors are stored as [OctEncodedNormal]($common)s.\n */\n public normals?: Uint16ArrayBuilder;\n\n // Scratch variables\n private readonly _q3d = new QPoint3d();\n private readonly _q2d = new QPoint2d();\n\n /** Construct a builder from the specified options. */\n public constructor(options: RealityMeshParamsBuilderOptions) {\n let initialType;\n if (undefined !== options.initialVertexCapacity && options.initialVertexCapacity > 0xff)\n initialType = options.initialVertexCapacity > 0xffff ? Uint32Array : Uint16Array;\n\n this.indices = new UintArrayBuilder({\n initialCapacity: options.initialIndexCapacity,\n initialType,\n });\n\n if (options.wantNormals)\n this.normals = new Uint16ArrayBuilder({ initialCapacity: options.initialVertexCapacity });\n\n this.positions = new QPoint3dBufferBuilder({\n range: options.positionRange,\n initialCapacity: options.initialVertexCapacity,\n });\n\n this.uvs = new QPoint2dBufferBuilder({\n range: options.uvRange ?? new Range2d(0, 0, 1, 1),\n initialCapacity: options.initialVertexCapacity,\n });\n }\n\n /** Add a vertex to the mesh and return its index in [[positions]].\n * @param position The 3d position, which will be quantized to the [[RealityMeshParamsBuilderOptions.positionRange]] supplied to the builder's constructor.\n * @param uv The texture coordinates, which will be quantized to the [[RealityMeshParamsBuilderOptions.uvRange]] supplied to the builder's constructor.\n * @param the normal vector, to be supplied if and only if [[RealityMeshParamsBuilderOptions.wantNormals]] was `true` when the builder was constructed.\n * @see [[addQuantizedVertex]] if your vertex data is already quantized.\n * @returns the index of the new vertex in [[positions]].\n */\n public addUnquantizedVertex(position: XYAndZ, uv: XAndY, normal?: XYAndZ): number {\n this._q3d.init(position, this.positions.params);\n this._q2d.init(uv, this.uvs.params);\n const oen = normal ? OctEncodedNormal.encode(normal) : undefined;\n return this.addQuantizedVertex(this._q3d, this._q2d, oen);\n }\n\n /** Original API had weird mix of quantized and unquantized, used by CesiumTerrainProvider.\n * @internal\n */\n public addVertex(position: XYAndZ, uv: XAndY, normal?: number): void {\n this._q3d.init(position, this.positions.params);\n this.addQuantizedVertex(this._q3d, uv, normal);\n }\n\n /** Add a vertex to the mesh and return its index in [[positions]].\n * @param position The 3d position, quantized to the [[RealityMeshParamsBuilderOptions.positionRange]] supplied to the builder's constructor.\n * @param uv The texture coordinates, quantized to the [[RealityMeshParamsBuilderOptions.uvRange]] supplied to the builder's constructor.\n * @param normal The unsigned 16-bit [OctEncodedNormal]($common) integer representation of the normal vector, to be supplied if and only if\n * [[RealityMeshParamsBuilderOptions.wantNormals]] was `true` when the builder was constructed.\n * @see [[addUnquantizedVertex]] if your vertex data is not already quantized.\n * @returns the index of the new vertex in [[positions]].\n * @throws Error if `normal` is `undefined` but `wantNormals` was specified at construction of the builder, or vice-versa.\n */\n public addQuantizedVertex(position: XYAndZ, uv: XAndY, normal?: number): number {\n precondition((undefined === normal) === (undefined === this.normals), \"RealityMeshParams requires all vertices to have normals, or none.\");\n\n this.positions.push(position);\n this.uvs.push(uv);\n if (undefined !== normal) {\n assert(undefined !== this.normals);\n this.normals.push(normal);\n }\n\n return this.positions.length - 1;\n }\n\n /** Add a triangle corresponding to the three specified vertices. */\n public addTriangle(i0: number, i1: number, i2: number): void {\n this.addIndex(i0);\n this.addIndex(i1);\n this.addIndex(i2);\n }\n\n /** Add two triangles sharing an edge. This is equivalent to calling `addTriangle(i0, i1, i2); addTriangle(i1, i3, i2);`. */\n public addQuad(i0: number, i1: number, i2: number, i3: number): void {\n this.addTriangle(i0, i1, i2);\n this.addTriangle(i1, i3, i2);\n }\n\n /** Add all of the indices in `indices` to the index buffer. */\n public addIndices(indices: Iterable<number>): void {\n for (const index of indices)\n this.addIndex(index);\n }\n\n private addIndex(index: number): void {\n this.indices.push(index);\n }\n\n /** Extract the finished [[RealityMeshParams]].\n * @throws Error if the mesh contains no triangles.\n */\n public finish(): RealityMeshParams {\n precondition(this.positions.length >= 3 && this.indices.length >= 3, \"RealityMeshParams requires at least one triangle\");\n return {\n positions: this.positions.finish(),\n uvs: this.uvs.finish(),\n normals: this.normals?.toTypedArray(),\n indices: this.indices.toTypedArray(),\n };\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GltfReader.d.ts","sourceRoot":"","sources":["../../../src/tile/GltfReader.ts"],"names":[],"mappings":"AAIA;;GAEG;AAKH,OAAO,EACsC,OAAO,
|
|
1
|
+
{"version":3,"file":"GltfReader.d.ts","sourceRoot":"","sources":["../../../src/tile/GltfReader.ts"],"names":[],"mappings":"AAIA;;GAEG;AAKH,OAAO,EACsC,OAAO,EAAW,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EACnG,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAAE,SAAS,EAAY,mBAAmB,EAAE,OAAO,EAAkC,YAAY,EACxF,gBAAgB,EAAwC,SAAS,EAAE,SAAS,EAC7C,aAAa,EAAE,cAAc,EAAmC,cAAc,EAAE,iBAAiB,EAC1J,MAAM,oBAAoB,CA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