@itwin/core-frontend 3.0.0-dev.94 → 3.0.0-extension.0
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/lib/cjs/GeoServices.d.ts +4 -4
- package/lib/cjs/GeoServices.d.ts.map +1 -1
- package/lib/cjs/GeoServices.js +17 -14
- package/lib/cjs/GeoServices.js.map +1 -1
- package/lib/cjs/IModelApp.d.ts +7 -1
- package/lib/cjs/IModelApp.d.ts.map +1 -1
- package/lib/cjs/IModelApp.js +10 -2
- package/lib/cjs/IModelApp.js.map +1 -1
- package/lib/cjs/SheetViewState.js +1 -1
- package/lib/cjs/SheetViewState.js.map +1 -1
- package/lib/cjs/ViewCreator3d.d.ts +1 -1
- package/lib/cjs/ViewCreator3d.d.ts.map +1 -1
- package/lib/cjs/ViewCreator3d.js +1 -1
- package/lib/cjs/ViewCreator3d.js.map +1 -1
- package/lib/cjs/ViewState.d.ts +0 -2
- package/lib/cjs/ViewState.d.ts.map +1 -1
- package/lib/cjs/ViewState.js +9 -9
- package/lib/cjs/ViewState.js.map +1 -1
- package/lib/cjs/Viewport.d.ts.map +1 -1
- package/lib/cjs/Viewport.js +6 -4
- package/lib/cjs/Viewport.js.map +1 -1
- package/lib/cjs/core-frontend.d.ts +7 -6
- package/lib/cjs/core-frontend.d.ts.map +1 -1
- package/lib/cjs/core-frontend.js +7 -6
- package/lib/cjs/core-frontend.js.map +1 -1
- package/lib/cjs/extension/Extension.d.ts +39 -0
- package/lib/cjs/extension/Extension.d.ts.map +1 -0
- package/lib/cjs/extension/Extension.js +39 -0
- package/lib/cjs/extension/Extension.js.map +1 -0
- package/lib/cjs/extension/ExtensionAdmin.d.ts +70 -0
- package/lib/cjs/extension/ExtensionAdmin.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionAdmin.js +105 -0
- package/lib/cjs/extension/ExtensionAdmin.js.map +1 -0
- package/lib/cjs/extension/ExtensionHost.d.ts +20 -0
- package/lib/cjs/extension/ExtensionHost.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionHost.js +19 -0
- package/lib/cjs/extension/ExtensionHost.js.map +1 -0
- package/lib/cjs/extension/ExtensionImpl.d.ts +16 -0
- package/lib/cjs/extension/ExtensionImpl.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionImpl.js +40 -0
- package/lib/cjs/extension/ExtensionImpl.js.map +1 -0
- package/lib/cjs/extension/ExtensionLoader.d.ts +20 -0
- package/lib/cjs/extension/ExtensionLoader.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionLoader.js +11 -0
- package/lib/cjs/extension/ExtensionLoader.js.map +1 -0
- package/lib/cjs/extension/ExtensionRuntime.d.ts +2 -0
- package/lib/cjs/extension/ExtensionRuntime.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionRuntime.js +60 -0
- package/lib/cjs/extension/ExtensionRuntime.js.map +1 -0
- package/lib/cjs/extension/extensions.d.ts +18 -0
- package/lib/cjs/extension/extensions.d.ts.map +1 -0
- package/lib/cjs/extension/extensions.js +35 -0
- package/lib/cjs/extension/extensions.js.map +1 -0
- package/lib/cjs/render/webgl/SceneCompositor.js +1 -1
- package/lib/cjs/render/webgl/SceneCompositor.js.map +1 -1
- package/lib/cjs/render/webgl/Target.d.ts.map +1 -1
- package/lib/cjs/render/webgl/Target.js +11 -1
- package/lib/cjs/render/webgl/Target.js.map +1 -1
- package/lib/cjs/render/webgl/Technique.js +1 -1
- package/lib/cjs/render/webgl/Technique.js.map +1 -1
- package/lib/cjs/tile/TileDrawArgs.js +2 -2
- package/lib/cjs/tile/TileDrawArgs.js.map +1 -1
- package/lib/cjs/tools/ViewTool.d.ts.map +1 -1
- package/lib/cjs/tools/ViewTool.js +8 -9
- package/lib/cjs/tools/ViewTool.js.map +1 -1
- package/lib/esm/GeoServices.d.ts +4 -4
- package/lib/esm/GeoServices.d.ts.map +1 -1
- package/lib/esm/GeoServices.js +17 -14
- package/lib/esm/GeoServices.js.map +1 -1
- package/lib/esm/IModelApp.d.ts +7 -1
- package/lib/esm/IModelApp.d.ts.map +1 -1
- package/lib/esm/IModelApp.js +10 -2
- package/lib/esm/IModelApp.js.map +1 -1
- package/lib/esm/SheetViewState.js +1 -1
- package/lib/esm/SheetViewState.js.map +1 -1
- package/lib/esm/ViewCreator3d.d.ts +1 -1
- package/lib/esm/ViewCreator3d.d.ts.map +1 -1
- package/lib/esm/ViewCreator3d.js +1 -1
- package/lib/esm/ViewCreator3d.js.map +1 -1
- package/lib/esm/ViewState.d.ts +0 -2
- package/lib/esm/ViewState.d.ts.map +1 -1
- package/lib/esm/ViewState.js +9 -9
- package/lib/esm/ViewState.js.map +1 -1
- package/lib/esm/Viewport.d.ts.map +1 -1
- package/lib/esm/Viewport.js +6 -4
- package/lib/esm/Viewport.js.map +1 -1
- package/lib/esm/core-frontend.d.ts +7 -6
- package/lib/esm/core-frontend.d.ts.map +1 -1
- package/lib/esm/core-frontend.js +7 -6
- package/lib/esm/core-frontend.js.map +1 -1
- package/lib/esm/extension/Extension.d.ts +39 -0
- package/lib/esm/extension/Extension.d.ts.map +1 -0
- package/lib/esm/extension/Extension.js +38 -0
- package/lib/esm/extension/Extension.js.map +1 -0
- package/lib/esm/extension/ExtensionAdmin.d.ts +70 -0
- package/lib/esm/extension/ExtensionAdmin.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionAdmin.js +101 -0
- package/lib/esm/extension/ExtensionAdmin.js.map +1 -0
- package/lib/esm/extension/ExtensionHost.d.ts +20 -0
- package/lib/esm/extension/ExtensionHost.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionHost.js +15 -0
- package/lib/esm/extension/ExtensionHost.js.map +1 -0
- package/lib/esm/extension/ExtensionImpl.d.ts +16 -0
- package/lib/esm/extension/ExtensionImpl.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionImpl.js +35 -0
- package/lib/esm/extension/ExtensionImpl.js.map +1 -0
- package/lib/esm/extension/ExtensionLoader.d.ts +20 -0
- package/lib/esm/extension/ExtensionLoader.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionLoader.js +10 -0
- package/lib/esm/extension/ExtensionLoader.js.map +1 -0
- package/lib/esm/extension/ExtensionRuntime.d.ts +2 -0
- package/lib/esm/extension/ExtensionRuntime.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionRuntime.js +58 -0
- package/lib/esm/extension/ExtensionRuntime.js.map +1 -0
- package/lib/esm/extension/extensions.d.ts +18 -0
- package/lib/esm/extension/extensions.d.ts.map +1 -0
- package/lib/esm/extension/extensions.js +23 -0
- package/lib/esm/extension/extensions.js.map +1 -0
- package/lib/esm/render/webgl/SceneCompositor.js +1 -1
- package/lib/esm/render/webgl/SceneCompositor.js.map +1 -1
- package/lib/esm/render/webgl/Target.d.ts.map +1 -1
- package/lib/esm/render/webgl/Target.js +11 -1
- package/lib/esm/render/webgl/Target.js.map +1 -1
- package/lib/esm/render/webgl/Technique.js +1 -1
- package/lib/esm/render/webgl/Technique.js.map +1 -1
- package/lib/esm/tile/TileDrawArgs.js +2 -2
- package/lib/esm/tile/TileDrawArgs.js.map +1 -1
- package/lib/esm/tools/ViewTool.d.ts.map +1 -1
- package/lib/esm/tools/ViewTool.js +8 -9
- package/lib/esm/tools/ViewTool.js.map +1 -1
- package/package.json +24 -24
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ExtensionManifest, LocalExtensionProps } from "./Extension";
|
|
2
|
+
/** THe minimum information required to download an Extension */
|
|
3
|
+
export interface ExtensionLoaderProps {
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
}
|
|
7
|
+
export interface BuiltInExtensionLoaderProps {
|
|
8
|
+
manifest: Promise<any>;
|
|
9
|
+
loader: (() => Promise<any>);
|
|
10
|
+
}
|
|
11
|
+
/** Describes what is needed in order to write an Extension Loader.
|
|
12
|
+
* @alpha
|
|
13
|
+
*/
|
|
14
|
+
export interface ExtensionLoader {
|
|
15
|
+
/** Retrieves an Extension manifest for the provided Extension identifier */
|
|
16
|
+
getManifest(arg: ExtensionLoaderProps): Promise<ExtensionManifest>;
|
|
17
|
+
/** Downloads an Extension provided the name of the Extension */
|
|
18
|
+
downloadExtension(arg: ExtensionLoaderProps): Promise<LocalExtensionProps>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=ExtensionLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionLoader.d.ts","sourceRoot":"","sources":["../../../src/extension/ExtensionLoader.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAErE,gEAAgE;AAChE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACvB,MAAM,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,4EAA4E;IAC5E,WAAW,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACnE,gEAAgE;IAChE,iBAAiB,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC5E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
// export class BuiltInExtensionLoader {
|
|
8
|
+
// public async getManifest(name: string): Promise<ExtensionManifest> {
|
|
9
|
+
// }
|
|
10
|
+
// }
|
|
11
|
+
//# sourceMappingURL=ExtensionLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionLoader.js","sourceRoot":"","sources":["../../../src/extension/ExtensionLoader.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;AAyB/F,wCAAwC;AACxC,yEAAyE;AAEzE,MAAM;AACN,IAAI","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nimport { ExtensionManifest, LocalExtensionProps } from \"./Extension\";\r\n\r\n/** THe minimum information required to download an Extension */\r\nexport interface ExtensionLoaderProps {\r\n name: string;\r\n version: string;\r\n}\r\n\r\nexport interface BuiltInExtensionLoaderProps {\r\n manifest: Promise<any>;\r\n loader: (() => Promise<any>);\r\n}\r\n\r\n/** Describes what is needed in order to write an Extension Loader.\r\n * @alpha\r\n */\r\nexport interface ExtensionLoader {\r\n /** Retrieves an Extension manifest for the provided Extension identifier */\r\n getManifest(arg: ExtensionLoaderProps): Promise<ExtensionManifest>;\r\n /** Downloads an Extension provided the name of the Extension */\r\n downloadExtension(arg: ExtensionLoaderProps): Promise<LocalExtensionProps>;\r\n}\r\n\r\n// export class BuiltInExtensionLoader {\r\n// public async getManifest(name: string): Promise<ExtensionManifest> {\r\n\r\n// }\r\n// }\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionRuntime.d.ts","sourceRoot":"","sources":["../../../src/extension/ExtensionRuntime.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
8
|
+
const AccuDraw_1 = require("../AccuDraw");
|
|
9
|
+
const AuxCoordSys_1 = require("../AuxCoordSys");
|
|
10
|
+
const CoordSystem_1 = require("../CoordSystem");
|
|
11
|
+
const ElementLocateManager_1 = require("../ElementLocateManager");
|
|
12
|
+
const FlashSettings_1 = require("../FlashSettings");
|
|
13
|
+
const FrontendLoggerCategory_1 = require("../FrontendLoggerCategory");
|
|
14
|
+
const HitDetail_1 = require("../HitDetail");
|
|
15
|
+
const NotificationManager_1 = require("../NotificationManager");
|
|
16
|
+
const SelectionSet_1 = require("../SelectionSet");
|
|
17
|
+
const StandardView_1 = require("../StandardView");
|
|
18
|
+
const ViewRect_1 = require("../ViewRect");
|
|
19
|
+
const ViewStatus_1 = require("../ViewStatus");
|
|
20
|
+
const Viewport_1 = require("../Viewport");
|
|
21
|
+
const GraphicBuilder_1 = require("../render/GraphicBuilder");
|
|
22
|
+
const Pixel_1 = require("../render/Pixel");
|
|
23
|
+
const RenderTexture_1 = require("../render/RenderTexture");
|
|
24
|
+
const ScreenSpaceEffectBuilder_1 = require("../render/ScreenSpaceEffectBuilder");
|
|
25
|
+
const internal_1 = require("../tile/internal");
|
|
26
|
+
const ClipViewTool_1 = require("../tools/ClipViewTool");
|
|
27
|
+
const PrimitiveTool_1 = require("../tools/PrimitiveTool");
|
|
28
|
+
const SelectTool_1 = require("../tools/SelectTool");
|
|
29
|
+
const Tool_1 = require("../tools/Tool");
|
|
30
|
+
const ToolAdmin_1 = require("../tools/ToolAdmin");
|
|
31
|
+
const ToolAssistance_1 = require("../tools/ToolAssistance");
|
|
32
|
+
const ViewTool_1 = require("../tools/ViewTool");
|
|
33
|
+
const core_common_1 = require("@itwin/core-common");
|
|
34
|
+
const ExtensionImpl_1 = require("./ExtensionImpl");
|
|
35
|
+
const ExtensionHost_1 = require("./ExtensionHost");
|
|
36
|
+
const globalSymbol = Symbol.for("itwin.core.frontend.globals");
|
|
37
|
+
if (globalThis[globalSymbol])
|
|
38
|
+
throw new Error("Multiple @itwin/core-frontend imports detected!");
|
|
39
|
+
const getExtensionApi = (id) => {
|
|
40
|
+
return {
|
|
41
|
+
exports: {
|
|
42
|
+
InteractiveTool: Tool_1.InteractiveTool, PrimitiveTool: PrimitiveTool_1.PrimitiveTool, ViewTool: ViewTool_1.ViewTool, Tool: Tool_1.Tool,
|
|
43
|
+
ToolAssistance: ToolAssistance_1.ToolAssistance, BeButtonEvent: Tool_1.BeButtonEvent, ViewRect: ViewRect_1.ViewRect, Pixel: Pixel_1.Pixel, LocateResponse: ElementLocateManager_1.LocateResponse,
|
|
44
|
+
ColorDef: core_common_1.ColorDef,
|
|
45
|
+
ExtensionHost: ExtensionHost_1.ExtensionHost,
|
|
46
|
+
ACSDisplayOptions: AuxCoordSys_1.ACSDisplayOptions, ACSType: AuxCoordSys_1.ACSType, ActivityMessageEndReason: NotificationManager_1.ActivityMessageEndReason, BeButton: Tool_1.BeButton, BeModifierKeys: Tool_1.BeModifierKeys, ClipEventType: ClipViewTool_1.ClipEventType, ContextRotationId: AccuDraw_1.ContextRotationId, CoordinateLockOverrides: Tool_1.CoordinateLockOverrides,
|
|
47
|
+
CoordSource: Tool_1.CoordSource, CoordSystem: CoordSystem_1.CoordSystem, DepthPointSource: Viewport_1.DepthPointSource, EventHandled: Tool_1.EventHandled, FlashMode: FlashSettings_1.FlashMode, FrontendLoggerCategory: FrontendLoggerCategory_1.FrontendLoggerCategory, GraphicType: GraphicBuilder_1.GraphicType, HitDetailType: HitDetail_1.HitDetailType, HitGeomType: HitDetail_1.HitGeomType,
|
|
48
|
+
HitParentGeomType: HitDetail_1.HitParentGeomType, HitPriority: HitDetail_1.HitPriority, HitSource: HitDetail_1.HitSource, InputSource: Tool_1.InputSource, KeyinParseError: Tool_1.KeyinParseError, LocateAction: ElementLocateManager_1.LocateAction, LocateFilterStatus: ElementLocateManager_1.LocateFilterStatus, ManipulatorToolEvent: ToolAdmin_1.ManipulatorToolEvent,
|
|
49
|
+
MessageBoxIconType: NotificationManager_1.MessageBoxIconType, MessageBoxType: NotificationManager_1.MessageBoxType, MessageBoxValue: NotificationManager_1.MessageBoxValue, OutputMessageAlert: NotificationManager_1.OutputMessageAlert, OutputMessagePriority: NotificationManager_1.OutputMessagePriority, OutputMessageType: NotificationManager_1.OutputMessageType, ParseAndRunResult: Tool_1.ParseAndRunResult,
|
|
50
|
+
SelectionMethod: SelectTool_1.SelectionMethod, SelectionMode: SelectTool_1.SelectionMode, SelectionProcessing: SelectTool_1.SelectionProcessing, SelectionSetEventType: SelectionSet_1.SelectionSetEventType, SnapHeat: HitDetail_1.SnapHeat, SnapMode: HitDetail_1.SnapMode, SnapStatus: ElementLocateManager_1.SnapStatus, StandardViewId: StandardView_1.StandardViewId, StartOrResume: ToolAdmin_1.StartOrResume,
|
|
51
|
+
TextureTransparency: RenderTexture_1.TextureTransparency, TileBoundingBoxes: internal_1.TileBoundingBoxes, TileGraphicType: internal_1.TileGraphicType, TileLoadPriority: internal_1.TileLoadPriority, TileLoadStatus: internal_1.TileLoadStatus, TileTreeLoadStatus: internal_1.TileTreeLoadStatus, TileVisibility: internal_1.TileVisibility,
|
|
52
|
+
ToolAssistanceImage: ToolAssistance_1.ToolAssistanceImage, ToolAssistanceInputMethod: ToolAssistance_1.ToolAssistanceInputMethod, UniformType: ScreenSpaceEffectBuilder_1.UniformType, VaryingType: ScreenSpaceEffectBuilder_1.VaryingType, ViewStatus: ViewStatus_1.ViewStatus, ViewUndoEvent: Viewport_1.ViewUndoEvent,
|
|
53
|
+
},
|
|
54
|
+
api: new ExtensionImpl_1.ExtensionImpl(id),
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
globalThis[globalSymbol] = {
|
|
58
|
+
getExtensionApi,
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=ExtensionRuntime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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,EAAX,sCAAW,EAAE,UAAU,EAAV,uBAAU,EAAE,aAAa,EAAb,wBAAa;SACpG;QACD,GAAG,EAAE,IAAI,6BAAa,CAAC,EAAE,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAED,UAAkB,CAAC,YAAY,CAAC,GAAG;IAClC,eAAe;CAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n\r\nimport { ContextRotationId } from \"../AccuDraw\";\r\nimport { ACSDisplayOptions, ACSType } from \"../AuxCoordSys\";\r\nimport { CoordSystem } from \"../CoordSystem\";\r\nimport { LocateAction, LocateFilterStatus, LocateResponse, SnapStatus } from \"../ElementLocateManager\";\r\nimport { FlashMode } from \"../FlashSettings\";\r\nimport { FrontendLoggerCategory } from \"../FrontendLoggerCategory\";\r\nimport { HitDetailType, HitGeomType, HitParentGeomType, HitPriority, HitSource, SnapHeat, SnapMode } from \"../HitDetail\";\r\nimport { ActivityMessageEndReason, MessageBoxIconType, MessageBoxType, MessageBoxValue, OutputMessageAlert, OutputMessagePriority, OutputMessageType } from \"../NotificationManager\";\r\nimport { SelectionSetEventType } from \"../SelectionSet\";\r\nimport { StandardViewId } from \"../StandardView\";\r\nimport { ViewRect } from \"../ViewRect\";\r\nimport { ViewStatus } from \"../ViewStatus\";\r\nimport { DepthPointSource, ViewUndoEvent } from \"../Viewport\";\r\nimport { GraphicType } from \"../render/GraphicBuilder\";\r\nimport { Pixel } from \"../render/Pixel\";\r\nimport { TextureTransparency } from \"../render/RenderTexture\";\r\nimport { UniformType, VaryingType } from \"../render/ScreenSpaceEffectBuilder\";\r\nimport { TileBoundingBoxes, TileGraphicType, TileLoadPriority, TileLoadStatus, TileTreeLoadStatus, TileVisibility } from \"../tile/internal\";\r\nimport { ClipEventType } from \"../tools/ClipViewTool\";\r\nimport { PrimitiveTool } from \"../tools/PrimitiveTool\";\r\nimport { SelectionMethod, SelectionMode, SelectionProcessing } from \"../tools/SelectTool\";\r\nimport { BeButton, BeButtonEvent, BeModifierKeys, CoordinateLockOverrides, CoordSource, EventHandled, InputSource, InteractiveTool, KeyinParseError, ParseAndRunResult, Tool } from \"../tools/Tool\";\r\nimport { ManipulatorToolEvent, StartOrResume } from \"../tools/ToolAdmin\";\r\nimport { ToolAssistance, ToolAssistanceImage, ToolAssistanceInputMethod } from \"../tools/ToolAssistance\";\r\nimport { ViewTool } from \"../tools/ViewTool\";\r\n\r\nimport { ColorDef } from \"@itwin/core-common\";\r\nimport { ExtensionImpl } from \"./ExtensionImpl\";\r\nimport { ExtensionHost } from \"./ExtensionHost\";\r\n\r\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\r\nif ((globalThis as any)[globalSymbol])\r\n throw new Error(\"Multiple @itwin/core-frontend imports detected!\");\r\n\r\nconst getExtensionApi = (id: string) => {\r\n return {\r\n exports: {\r\n InteractiveTool, PrimitiveTool, ViewTool, Tool,\r\n\r\n ToolAssistance, BeButtonEvent, ViewRect, Pixel, LocateResponse,\r\n\r\n ColorDef,\r\n\r\n ExtensionHost,\r\n\r\n ACSDisplayOptions, ACSType, ActivityMessageEndReason, BeButton, BeModifierKeys, ClipEventType, ContextRotationId, CoordinateLockOverrides,\r\n CoordSource, CoordSystem, DepthPointSource, EventHandled, FlashMode, FrontendLoggerCategory, GraphicType, HitDetailType, HitGeomType,\r\n HitParentGeomType, HitPriority, HitSource, InputSource, KeyinParseError, LocateAction, LocateFilterStatus, ManipulatorToolEvent,\r\n MessageBoxIconType, MessageBoxType, MessageBoxValue, OutputMessageAlert, OutputMessagePriority, OutputMessageType, ParseAndRunResult,\r\n SelectionMethod, SelectionMode, SelectionProcessing, SelectionSetEventType, SnapHeat, SnapMode, SnapStatus, StandardViewId, StartOrResume,\r\n TextureTransparency, TileBoundingBoxes, TileGraphicType, TileLoadPriority, TileLoadStatus, TileTreeLoadStatus, TileVisibility,\r\n ToolAssistanceImage, ToolAssistanceInputMethod, UniformType, VaryingType, ViewStatus, ViewUndoEvent,\r\n },\r\n api: new ExtensionImpl(id),\r\n };\r\n};\r\n\r\n(globalThis as any)[globalSymbol] = {\r\n getExtensionApi,\r\n};\r\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Extension framework is made up of multiple pieces:
|
|
3
|
+
*
|
|
4
|
+
* - Extension Impl
|
|
5
|
+
* - Extension API
|
|
6
|
+
* - The Extension API defines all of the types and API that can be used by an Extension.
|
|
7
|
+
* - Extension Admin loading
|
|
8
|
+
* - Handles the
|
|
9
|
+
* - Extension Hooks
|
|
10
|
+
* - Defines the
|
|
11
|
+
*/
|
|
12
|
+
export * from "./Extension";
|
|
13
|
+
export * from "./ExtensionAdmin";
|
|
14
|
+
export * from "./ExtensionImpl";
|
|
15
|
+
export * from "./ExtensionLoader";
|
|
16
|
+
export * from "./ExtensionHost";
|
|
17
|
+
import "./ExtensionRuntime";
|
|
18
|
+
//# sourceMappingURL=extensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/extension/extensions.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;GAUG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,OAAO,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Barrel file for all extension related files.
|
|
18
|
+
/**
|
|
19
|
+
* The Extension framework is made up of multiple pieces:
|
|
20
|
+
*
|
|
21
|
+
* - Extension Impl
|
|
22
|
+
* - Extension API
|
|
23
|
+
* - The Extension API defines all of the types and API that can be used by an Extension.
|
|
24
|
+
* - Extension Admin loading
|
|
25
|
+
* - Handles the
|
|
26
|
+
* - Extension Hooks
|
|
27
|
+
* - Defines the
|
|
28
|
+
*/
|
|
29
|
+
__exportStar(require("./Extension"), exports);
|
|
30
|
+
__exportStar(require("./ExtensionAdmin"), exports);
|
|
31
|
+
__exportStar(require("./ExtensionImpl"), exports);
|
|
32
|
+
__exportStar(require("./ExtensionLoader"), exports);
|
|
33
|
+
__exportStar(require("./ExtensionHost"), exports);
|
|
34
|
+
require("./ExtensionRuntime");
|
|
35
|
+
//# sourceMappingURL=extensions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../src/extension/extensions.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;AAE/F,+CAA+C;AAE/C;;;;;;;;;;GAUG;AAEH,8CAA4B;AAC5B,mDAAiC;AACjC,kDAAgC;AAChC,oDAAkC;AAClC,kDAAgC;AAChC,8BAA4B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n// Barrel file for all extension related files.\r\n\r\n/**\r\n * The Extension framework is made up of multiple pieces:\r\n *\r\n * - Extension Impl\r\n * - Extension API\r\n * - The Extension API defines all of the types and API that can be used by an Extension.\r\n * - Extension Admin loading\r\n * - Handles the\r\n * - Extension Hooks\r\n * - Defines the\r\n */\r\n\r\nexport * from \"./Extension\";\r\nexport * from \"./ExtensionAdmin\";\r\nexport * from \"./ExtensionImpl\";\r\nexport * from \"./ExtensionLoader\";\r\nexport * from \"./ExtensionHost\";\r\nimport \"./ExtensionRuntime\";\r\n"]}
|
|
@@ -181,7 +181,7 @@ class FrameBuffers {
|
|
|
181
181
|
if (!this.initPotentialMSFbos(textures, depth, depthMS))
|
|
182
182
|
return false;
|
|
183
183
|
this.depthAndOrder = FrameBuffer_1.FrameBuffer.create([textures.depthAndOrder], depth);
|
|
184
|
-
this.hilite = FrameBuffer_1.FrameBuffer.create([textures.hilite]);
|
|
184
|
+
this.hilite = FrameBuffer_1.FrameBuffer.create([textures.hilite], depth);
|
|
185
185
|
this.hiliteUsingStencil = FrameBuffer_1.FrameBuffer.create([textures.hilite], depth);
|
|
186
186
|
return undefined !== this.depthAndOrder
|
|
187
187
|
&& undefined !== this.hilite
|