@itwin/core-frontend 4.1.0-dev.5 → 4.1.0-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/lib/cjs/core-frontend.d.ts +3 -0
  2. package/lib/cjs/core-frontend.d.ts.map +1 -1
  3. package/lib/cjs/core-frontend.js +3 -0
  4. package/lib/cjs/core-frontend.js.map +1 -1
  5. package/lib/cjs/imdl/ImdlGraphicsCreator.d.ts +19 -0
  6. package/lib/cjs/imdl/ImdlGraphicsCreator.d.ts.map +1 -0
  7. package/lib/cjs/imdl/ImdlGraphicsCreator.js +328 -0
  8. package/lib/cjs/imdl/ImdlGraphicsCreator.js.map +1 -0
  9. package/lib/cjs/imdl/ImdlModel.d.ts +181 -0
  10. package/lib/cjs/imdl/ImdlModel.d.ts.map +1 -0
  11. package/lib/cjs/imdl/ImdlModel.js +10 -0
  12. package/lib/cjs/imdl/ImdlModel.js.map +1 -0
  13. package/lib/cjs/imdl/ImdlParser.d.ts +40 -0
  14. package/lib/cjs/imdl/ImdlParser.d.ts.map +1 -0
  15. package/lib/cjs/imdl/ImdlParser.js +996 -0
  16. package/lib/cjs/imdl/ImdlParser.js.map +1 -0
  17. package/lib/cjs/imdl/ImdlSchema.d.ts +380 -0
  18. package/lib/cjs/imdl/ImdlSchema.d.ts.map +1 -0
  19. package/lib/cjs/imdl/ImdlSchema.js +10 -0
  20. package/lib/cjs/imdl/ImdlSchema.js.map +1 -0
  21. package/lib/cjs/render/primitives/AuxChannelTable.d.ts +4 -0
  22. package/lib/cjs/render/primitives/AuxChannelTable.d.ts.map +1 -1
  23. package/lib/cjs/render/primitives/AuxChannelTable.js +33 -0
  24. package/lib/cjs/render/primitives/AuxChannelTable.js.map +1 -1
  25. package/lib/cjs/render/primitives/VertexTable.d.ts +3 -3
  26. package/lib/cjs/render/primitives/VertexTable.d.ts.map +1 -1
  27. package/lib/cjs/render/primitives/VertexTable.js.map +1 -1
  28. package/lib/cjs/render/primitives/VertexTableSplitter.d.ts +5 -1
  29. package/lib/cjs/render/primitives/VertexTableSplitter.d.ts.map +1 -1
  30. package/lib/cjs/render/primitives/VertexTableSplitter.js +13 -12
  31. package/lib/cjs/render/primitives/VertexTableSplitter.js.map +1 -1
  32. package/lib/cjs/tile/IModelTile.d.ts.map +1 -1
  33. package/lib/cjs/tile/IModelTile.js +14 -15
  34. package/lib/cjs/tile/IModelTile.js.map +1 -1
  35. package/lib/cjs/tile/ImdlReader.d.ts +11 -420
  36. package/lib/cjs/tile/ImdlReader.d.ts.map +1 -1
  37. package/lib/cjs/tile/ImdlReader.js +64 -902
  38. package/lib/cjs/tile/ImdlReader.js.map +1 -1
  39. package/lib/cjs/tile/map/MapTile.d.ts +6 -1
  40. package/lib/cjs/tile/map/MapTile.d.ts.map +1 -1
  41. package/lib/cjs/tile/map/MapTile.js +8 -7
  42. package/lib/cjs/tile/map/MapTile.js.map +1 -1
  43. package/lib/cjs/tile/map/MapTileTree.d.ts.map +1 -1
  44. package/lib/cjs/tile/map/MapTileTree.js +8 -2
  45. package/lib/cjs/tile/map/MapTileTree.js.map +1 -1
  46. package/lib/esm/core-frontend.d.ts +3 -0
  47. package/lib/esm/core-frontend.d.ts.map +1 -1
  48. package/lib/esm/core-frontend.js +3 -0
  49. package/lib/esm/core-frontend.js.map +1 -1
  50. package/lib/esm/imdl/ImdlGraphicsCreator.d.ts +19 -0
  51. package/lib/esm/imdl/ImdlGraphicsCreator.d.ts.map +1 -0
  52. package/lib/esm/imdl/ImdlGraphicsCreator.js +324 -0
  53. package/lib/esm/imdl/ImdlGraphicsCreator.js.map +1 -0
  54. package/lib/esm/imdl/ImdlModel.d.ts +181 -0
  55. package/lib/esm/imdl/ImdlModel.d.ts.map +1 -0
  56. package/lib/esm/imdl/ImdlModel.js +9 -0
  57. package/lib/esm/imdl/ImdlModel.js.map +1 -0
  58. package/lib/esm/imdl/ImdlParser.d.ts +40 -0
  59. package/lib/esm/imdl/ImdlParser.d.ts.map +1 -0
  60. package/lib/esm/imdl/ImdlParser.js +988 -0
  61. package/lib/esm/imdl/ImdlParser.js.map +1 -0
  62. package/lib/esm/imdl/ImdlSchema.d.ts +380 -0
  63. package/lib/esm/imdl/ImdlSchema.d.ts.map +1 -0
  64. package/lib/esm/imdl/ImdlSchema.js +9 -0
  65. package/lib/esm/imdl/ImdlSchema.js.map +1 -0
  66. package/lib/esm/render/primitives/AuxChannelTable.d.ts +4 -0
  67. package/lib/esm/render/primitives/AuxChannelTable.d.ts.map +1 -1
  68. package/lib/esm/render/primitives/AuxChannelTable.js +33 -0
  69. package/lib/esm/render/primitives/AuxChannelTable.js.map +1 -1
  70. package/lib/esm/render/primitives/VertexTable.d.ts +3 -3
  71. package/lib/esm/render/primitives/VertexTable.d.ts.map +1 -1
  72. package/lib/esm/render/primitives/VertexTable.js.map +1 -1
  73. package/lib/esm/render/primitives/VertexTableSplitter.d.ts +5 -1
  74. package/lib/esm/render/primitives/VertexTableSplitter.d.ts.map +1 -1
  75. package/lib/esm/render/primitives/VertexTableSplitter.js +13 -12
  76. package/lib/esm/render/primitives/VertexTableSplitter.js.map +1 -1
  77. package/lib/esm/tile/IModelTile.d.ts.map +1 -1
  78. package/lib/esm/tile/IModelTile.js +14 -15
  79. package/lib/esm/tile/IModelTile.js.map +1 -1
  80. package/lib/esm/tile/ImdlReader.d.ts +11 -420
  81. package/lib/esm/tile/ImdlReader.d.ts.map +1 -1
  82. package/lib/esm/tile/ImdlReader.js +67 -903
  83. package/lib/esm/tile/ImdlReader.js.map +1 -1
  84. package/lib/esm/tile/map/MapTile.d.ts +6 -1
  85. package/lib/esm/tile/map/MapTile.d.ts.map +1 -1
  86. package/lib/esm/tile/map/MapTile.js +8 -7
  87. package/lib/esm/tile/map/MapTile.js.map +1 -1
  88. package/lib/esm/tile/map/MapTileTree.d.ts.map +1 -1
  89. package/lib/esm/tile/map/MapTileTree.js +8 -2
  90. package/lib/esm/tile/map/MapTileTree.js.map +1 -1
  91. package/package.json +18 -18
@@ -30,6 +30,9 @@ export * from "./gltf/GltfSchema";
30
30
  export * from "./GraphicalEditingScope";
31
31
  export * from "./HitDetail";
32
32
  export * from "./ImageUtil";
33
+ export * from "./imdl/ImdlSchema";
34
+ export * from "./imdl/ImdlModel";
35
+ export * from "./imdl/ImdlParser";
33
36
  export * from "./IModelApp";
34
37
  export * from "./IModelConnection";
35
38
  export * from "./IModelRoutingContext";
@@ -1 +1 @@
1
- {"version":3,"file":"core-frontend.d.ts","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAKA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oB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,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,8BAA8B,CAAC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE"}
@@ -50,6 +50,9 @@ __exportStar(require("./gltf/GltfSchema"), exports);
50
50
  __exportStar(require("./GraphicalEditingScope"), exports);
51
51
  __exportStar(require("./HitDetail"), exports);
52
52
  __exportStar(require("./ImageUtil"), exports);
53
+ __exportStar(require("./imdl/ImdlSchema"), exports);
54
+ __exportStar(require("./imdl/ImdlModel"), exports);
55
+ __exportStar(require("./imdl/ImdlParser"), exports);
53
56
  __exportStar(require("./IModelApp"), exports);
54
57
  __exportStar(require("./IModelConnection"), exports);
55
58
  __exportStar(require("./IModelRoutingContext"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,kDAAgC;AAChC,0DAAwC;AACxC,gDAA8B;AAC9B,yDAAuC;AACvC,6DAA2C;AAC3C,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,sDAAoC;AACpC,gDAA8B;AAC9B,2DAAyC;AACzC,4DAA0C;AAC1C,kDAAgC;AAChC,2DAAy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tC,sEAAoD;AACpD,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,0DAAwC;AACxC,yDAAuC;AACvC,0DAAwC;AACxC,mDAAiC;AACjC,sDAAoC;AACpC,wDAAsC;AACtC,qDAAmC;AACnC,+CAA6B;AAC7B,uDAAqC;AACrC,oDAAkC;AAClC,yDAAuC;AACvC,mDAAiC;AACjC,0DAAwC;AACxC,kDAAgC;AAChC,kDAAgC;AAChC,oDAAkC;AAClC,sDAAoC;AACpC,sGAAsG;AACtG,wCAAsC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE","sourcesContent":["/*---------------------------------------------------------------------------------------------\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\nexport * from \"./AccuDraw\";\r\nexport * from \"./AccuSnap\";\r\nexport * from \"./AuxCoordSys\";\r\nexport * from \"./BingLocation\";\r\nexport * from \"./BriefcaseConnection\";\r\nexport * from \"./BriefcaseTxns\";\r\nexport * from \"./CategorySelectorState\";\r\nexport * from \"./ChangeFlags\";\r\nexport * from \"./CheckpointConnection\";\r\nexport * from \"./ContextRealityModelState\";\r\nexport * from \"./CoordSystem\";\r\nexport * from \"./DecorationsCache\";\r\nexport * from \"./DevTools\";\r\nexport * from \"./DisplayStyleState\";\r\nexport * from \"./DrawingViewState\";\r\nexport * from \"./ElementLocateManager\";\r\nexport * from \"./EmphasizeElements\";\r\nexport * from \"./EntityState\";\r\nexport * from \"./EnvironmentDecorations\";\r\nexport * from \"./FeatureOverrideProvider\";\r\nexport * from \"./FlashSettings\";\r\nexport * from \"./FrontendLoggerCategory\";\r\nexport * from \"./FrontendHubAccess\";\r\nexport * from \"./Frustum2d\";\r\nexport * from \"./FrustumAnimator\";\r\nexport * from \"./FuzzySearch\";\r\nexport * from \"./GeoServices\";\r\nexport * from \"./GlobeAnimator\";\r\nexport * from \"./gltf/GltfSchema\";\r\nexport * from \"./GraphicalEditingScope\";\r\nexport * from \"./HitDetail\";\r\nexport * from \"./ImageUtil\";\r\nexport * from \"./IModelApp\";\r\nexport * from \"./IModelConnection\";\r\nexport * from \"./IModelRoutingContext\";\r\nexport * from \"./IpcApp\";\r\nexport * from \"./LinePlaneIntersect\";\r\nexport * from \"./MarginPercent\";\r\nexport * from \"./Marker\";\r\nexport * from \"./ModelSelectorState\";\r\nexport * from \"./ModelState\";\r\nexport * from \"./NativeApp\";\r\nexport * from \"./NativeAppLogger\";\r\nexport * from \"./NoRenderApp\";\r\nexport * from \"./NotificationManager\";\r\nexport * from \"./PerModelCategoryVisibility\";\r\nexport * from \"./PlanarClipMaskState\";\r\nexport * from \"./SelectionSet\";\r\nexport * from \"./SheetViewState\";\r\nexport * from \"./SpatialViewState\";\r\nexport * from \"./Sprites\";\r\nexport * from \"./StandardView\";\r\nexport * from \"./SubCategoriesCache\";\r\nexport * from \"./TentativePoint\";\r\nexport * from \"./Tiles\";\r\nexport * from \"./UserPreferences\";\r\nexport * from \"./ViewAnimation\";\r\nexport * from \"./ViewContext\";\r\nexport * from \"./ViewGlobalLocation\";\r\nexport * from \"./ViewingSpace\";\r\nexport * from \"./ViewManager\";\r\nexport * from \"./Viewport\";\r\nexport * from \"./ViewportSync\";\r\nexport * from \"./ViewPose\";\r\nexport * from \"./ViewRect\";\r\nexport * from \"./ViewState\";\r\nexport * from \"./ViewStatus\";\r\nexport * from \"./extension/Extension\";\r\nexport * from \"./extension/providers/LocalExtensionProvider\";\r\nexport * from \"./extension/providers/RemoteExtensionProvider\";\r\nexport * from \"./properties/AngleDescription\";\r\nexport * from \"./properties/FormattedQuantityDescription\";\r\nexport * from \"./properties/LengthDescription\";\r\nexport * from \"./quantity-formatting/QuantityFormatter\";\r\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\r\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\r\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\r\nexport * from \"./render/CanvasDecoration\";\r\nexport * from \"./render/Decorations\";\r\nexport * from \"./render/FeatureSymbology\";\r\nexport * from \"./render/FrameStats\";\r\nexport * from \"./render/GraphicBranch\";\r\nexport * from \"./render/GraphicBuilder\";\r\nexport * from \"./render/GraphicPrimitive\";\r\nexport * from \"./render/InstancedGraphicParams\";\r\nexport * from \"./render/MockRender\";\r\nexport * from \"./render/ParticleCollectionBuilder\";\r\nexport * from \"./render/Pixel\";\r\nexport * from \"./render/RealityMeshGraphicParams\";\r\nexport * from \"./render/RealityMeshParams\";\r\nexport * from \"./render/RenderClipVolume\";\r\nexport * from \"./render/RenderGraphic\";\r\nexport * from \"./render/RenderMaterial\";\r\nexport * from \"./render/RenderMemory\";\r\nexport * from \"./render/RenderPlan\";\r\nexport * from \"./render/RenderPlanarClassifier\";\r\nexport * from \"./render/RenderTarget\";\r\nexport * from \"./render/RenderSystem\";\r\nexport * from \"./render/RenderTexture\";\r\nexport * from \"./render/Scene\";\r\nexport * from \"./render/ScreenSpaceEffectBuilder\";\r\nexport * from \"./render/VisibleFeature\";\r\nexport * from \"./render/webgl/PerformanceMetrics\";\r\nexport * from \"./render/webgl/Target\";\r\nexport * from \"./render/webgl/IModelFrameLifecycle\";\r\nexport * from \"./tile/internal\";\r\nexport * from \"./tools/AccuDrawTool\";\r\nexport * from \"./tools/ClipViewTool\";\r\nexport * from \"./tools/EditManipulator\";\r\nexport * from \"./tools/ElementSetTool\";\r\nexport * from \"./tools/EventController\";\r\nexport * from \"./tools/IdleTool\";\r\nexport * from \"./tools/MeasureTool\";\r\nexport * from \"./tools/PrimitiveTool\";\r\nexport * from \"./tools/SelectTool\";\r\nexport * from \"./tools/Tool\";\r\nexport * from \"./tools/ToolSettings\";\r\nexport * from \"./tools/ToolAdmin\";\r\nexport * from \"./tools/ToolAssistance\";\r\nexport * from \"./tools/ViewTool\";\r\nexport * from \"./BackgroundMapGeometry\";\r\nexport * from \"./ViewCreator2d\";\r\nexport * from \"./ViewCreator3d\";\r\nexport * from \"./LocalhostIpcApp\";\r\nexport * from \"./RealityDataSource\";\r\n// TODO/FIX: \"./extension/ExtensionRuntime\" import has to be last to avoid circular dependency errors.\r\nimport \"./extension/ExtensionRuntime\";\r\n\r\n/** @docs-package-description\r\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description IModelApp\r\n * Classes for configuring and administering an iTwin.js application.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description IModelConnection\r\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\r\n */\r\n/**\r\n * @docs-group-description ElementState\r\n * Classes for working with the *state* of Elements in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description ModelState\r\n * Classes for working with the *state* of Models in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\r\n */\r\n/**\r\n * @docs-group-description Measure\r\n * Classes for reporting point to point distances and mass properties of elements.\r\n */\r\n/**\r\n * @docs-group-description Views\r\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\r\n */\r\n/**\r\n * @docs-group-description LocatingElements\r\n * Classes for locating and snapping to elements in views.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Notifications\r\n * Notifications provide feedback to the user of something of interest.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Extensions\r\n * Classes for creating and managing Extensions.\r\n */\r\n/**\r\n * @docs-group-description Properties\r\n * Classes for working with property records and descriptions.\r\n */\r\n/**\r\n * @docs-group-description Rendering\r\n * Classes for rendering the contents of views.\r\n */\r\n/**\r\n * @docs-group-description SelectionSet\r\n * Classes for working with the set of selected elements.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description NativeApp\r\n * Classes for working with Native Applications\r\n */\r\n/**\r\n * @docs-group-description Utils\r\n * Miscellaneous utility classes.\r\n */\r\n/**\r\n * @docs-group-description Logging\r\n * Logger categories used by this package\r\n */\r\n/**\r\n * @docs-group-description QuantityFormatting\r\n * Classes for formatting and parsing quantity values.\r\n */\r\n/**\r\n * @docs-group-description Tiles\r\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\r\n */\r\n/**\r\n * @docs-group-description HubAccess\r\n * APIs for working with IModelHub\r\n */\r\n/**\r\n * @docs-group-description UserPreferences\r\n * APIs for working with user preferences in an iModelApp.\r\n * See [the learning articles]($docs/learning/frontend/preferences.md).\r\n */\r\n/**\r\n * @docs-group-description MapLayers\r\n * Classes supporting map layers display.\r\n */\r\n/**\r\n * @docs-group-description TileStorage\r\n * Class for working with cloud storage using iTwin/object-storage cloud providers\r\n*/\r\n"]}
1
+ {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,kDAAgC;AAChC,0DAAwC;AACxC,gDAA8B;AAC9B,yD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B;AAC/B,oEAAkD;AAClD,6DAA2C;AAC3C,4DAA0C;AAC1C,yDAAuC;AACvC,0DAAwC;AACxC,wDAAsC;AACtC,sDAAoC;AACpC,kEAAgD;AAChD,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,iDAA+B;AAC/B,oEAAkD;AAClD,0DAAwC;AACxC,oEAAkD;AAClD,wDAAsC;AACtC,sEAAoD;AACpD,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,0DAAwC;AACxC,yDAAuC;AACvC,0DAAwC;AACxC,mDAAiC;AACjC,sDAAoC;AACpC,wDAAsC;AACtC,qDAAmC;AACnC,+CAA6B;AAC7B,uDAAqC;AACrC,oDAAkC;AAClC,yDAAuC;AACvC,mDAAiC;AACjC,0DAAwC;AACxC,kDAAgC;AAChC,kDAAgC;AAChC,oDAAkC;AAClC,sDAAoC;AACpC,sGAAsG;AACtG,wCAAsC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE","sourcesContent":["/*---------------------------------------------------------------------------------------------\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\nexport * from \"./AccuDraw\";\r\nexport * from \"./AccuSnap\";\r\nexport * from \"./AuxCoordSys\";\r\nexport * from \"./BingLocation\";\r\nexport * from \"./BriefcaseConnection\";\r\nexport * from \"./BriefcaseTxns\";\r\nexport * from \"./CategorySelectorState\";\r\nexport * from \"./ChangeFlags\";\r\nexport * from \"./CheckpointConnection\";\r\nexport * from \"./ContextRealityModelState\";\r\nexport * from \"./CoordSystem\";\r\nexport * from \"./DecorationsCache\";\r\nexport * from \"./DevTools\";\r\nexport * from \"./DisplayStyleState\";\r\nexport * from \"./DrawingViewState\";\r\nexport * from \"./ElementLocateManager\";\r\nexport * from \"./EmphasizeElements\";\r\nexport * from \"./EntityState\";\r\nexport * from \"./EnvironmentDecorations\";\r\nexport * from \"./FeatureOverrideProvider\";\r\nexport * from \"./FlashSettings\";\r\nexport * from \"./FrontendLoggerCategory\";\r\nexport * from \"./FrontendHubAccess\";\r\nexport * from \"./Frustum2d\";\r\nexport * from \"./FrustumAnimator\";\r\nexport * from \"./FuzzySearch\";\r\nexport * from \"./GeoServices\";\r\nexport * from \"./GlobeAnimator\";\r\nexport * from \"./gltf/GltfSchema\";\r\nexport * from \"./GraphicalEditingScope\";\r\nexport * from \"./HitDetail\";\r\nexport * from \"./ImageUtil\";\r\nexport * from \"./imdl/ImdlSchema\";\r\nexport * from \"./imdl/ImdlModel\";\r\nexport * from \"./imdl/ImdlParser\";\r\nexport * from \"./IModelApp\";\r\nexport * from \"./IModelConnection\";\r\nexport * from \"./IModelRoutingContext\";\r\nexport * from \"./IpcApp\";\r\nexport * from \"./LinePlaneIntersect\";\r\nexport * from \"./MarginPercent\";\r\nexport * from \"./Marker\";\r\nexport * from \"./ModelSelectorState\";\r\nexport * from \"./ModelState\";\r\nexport * from \"./NativeApp\";\r\nexport * from \"./NativeAppLogger\";\r\nexport * from \"./NoRenderApp\";\r\nexport * from \"./NotificationManager\";\r\nexport * from \"./PerModelCategoryVisibility\";\r\nexport * from \"./PlanarClipMaskState\";\r\nexport * from \"./SelectionSet\";\r\nexport * from \"./SheetViewState\";\r\nexport * from \"./SpatialViewState\";\r\nexport * from \"./Sprites\";\r\nexport * from \"./StandardView\";\r\nexport * from \"./SubCategoriesCache\";\r\nexport * from \"./TentativePoint\";\r\nexport * from \"./Tiles\";\r\nexport * from \"./UserPreferences\";\r\nexport * from \"./ViewAnimation\";\r\nexport * from \"./ViewContext\";\r\nexport * from \"./ViewGlobalLocation\";\r\nexport * from \"./ViewingSpace\";\r\nexport * from \"./ViewManager\";\r\nexport * from \"./Viewport\";\r\nexport * from \"./ViewportSync\";\r\nexport * from \"./ViewPose\";\r\nexport * from \"./ViewRect\";\r\nexport * from \"./ViewState\";\r\nexport * from \"./ViewStatus\";\r\nexport * from \"./extension/Extension\";\r\nexport * from \"./extension/providers/LocalExtensionProvider\";\r\nexport * from \"./extension/providers/RemoteExtensionProvider\";\r\nexport * from \"./properties/AngleDescription\";\r\nexport * from \"./properties/FormattedQuantityDescription\";\r\nexport * from \"./properties/LengthDescription\";\r\nexport * from \"./quantity-formatting/QuantityFormatter\";\r\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\r\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\r\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\r\nexport * from \"./render/CanvasDecoration\";\r\nexport * from \"./render/Decorations\";\r\nexport * from \"./render/FeatureSymbology\";\r\nexport * from \"./render/FrameStats\";\r\nexport * from \"./render/GraphicBranch\";\r\nexport * from \"./render/GraphicBuilder\";\r\nexport * from \"./render/GraphicPrimitive\";\r\nexport * from \"./render/InstancedGraphicParams\";\r\nexport * from \"./render/MockRender\";\r\nexport * from \"./render/ParticleCollectionBuilder\";\r\nexport * from \"./render/Pixel\";\r\nexport * from \"./render/RealityMeshGraphicParams\";\r\nexport * from \"./render/RealityMeshParams\";\r\nexport * from \"./render/RenderClipVolume\";\r\nexport * from \"./render/RenderGraphic\";\r\nexport * from \"./render/RenderMaterial\";\r\nexport * from \"./render/RenderMemory\";\r\nexport * from \"./render/RenderPlan\";\r\nexport * from \"./render/RenderPlanarClassifier\";\r\nexport * from \"./render/RenderTarget\";\r\nexport * from \"./render/RenderSystem\";\r\nexport * from \"./render/RenderTexture\";\r\nexport * from \"./render/Scene\";\r\nexport * from \"./render/ScreenSpaceEffectBuilder\";\r\nexport * from \"./render/VisibleFeature\";\r\nexport * from \"./render/webgl/PerformanceMetrics\";\r\nexport * from \"./render/webgl/Target\";\r\nexport * from \"./render/webgl/IModelFrameLifecycle\";\r\nexport * from \"./tile/internal\";\r\nexport * from \"./tools/AccuDrawTool\";\r\nexport * from \"./tools/ClipViewTool\";\r\nexport * from \"./tools/EditManipulator\";\r\nexport * from \"./tools/ElementSetTool\";\r\nexport * from \"./tools/EventController\";\r\nexport * from \"./tools/IdleTool\";\r\nexport * from \"./tools/MeasureTool\";\r\nexport * from \"./tools/PrimitiveTool\";\r\nexport * from \"./tools/SelectTool\";\r\nexport * from \"./tools/Tool\";\r\nexport * from \"./tools/ToolSettings\";\r\nexport * from \"./tools/ToolAdmin\";\r\nexport * from \"./tools/ToolAssistance\";\r\nexport * from \"./tools/ViewTool\";\r\nexport * from \"./BackgroundMapGeometry\";\r\nexport * from \"./ViewCreator2d\";\r\nexport * from \"./ViewCreator3d\";\r\nexport * from \"./LocalhostIpcApp\";\r\nexport * from \"./RealityDataSource\";\r\n// TODO/FIX: \"./extension/ExtensionRuntime\" import has to be last to avoid circular dependency errors.\r\nimport \"./extension/ExtensionRuntime\";\r\n\r\n/** @docs-package-description\r\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description IModelApp\r\n * Classes for configuring and administering an iTwin.js application.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description IModelConnection\r\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\r\n */\r\n/**\r\n * @docs-group-description ElementState\r\n * Classes for working with the *state* of Elements in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description ModelState\r\n * Classes for working with the *state* of Models in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\r\n */\r\n/**\r\n * @docs-group-description Measure\r\n * Classes for reporting point to point distances and mass properties of elements.\r\n */\r\n/**\r\n * @docs-group-description Views\r\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\r\n */\r\n/**\r\n * @docs-group-description LocatingElements\r\n * Classes for locating and snapping to elements in views.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Notifications\r\n * Notifications provide feedback to the user of something of interest.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Extensions\r\n * Classes for creating and managing Extensions.\r\n */\r\n/**\r\n * @docs-group-description Properties\r\n * Classes for working with property records and descriptions.\r\n */\r\n/**\r\n * @docs-group-description Rendering\r\n * Classes for rendering the contents of views.\r\n */\r\n/**\r\n * @docs-group-description SelectionSet\r\n * Classes for working with the set of selected elements.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description NativeApp\r\n * Classes for working with Native Applications\r\n */\r\n/**\r\n * @docs-group-description Utils\r\n * Miscellaneous utility classes.\r\n */\r\n/**\r\n * @docs-group-description Logging\r\n * Logger categories used by this package\r\n */\r\n/**\r\n * @docs-group-description QuantityFormatting\r\n * Classes for formatting and parsing quantity values.\r\n */\r\n/**\r\n * @docs-group-description Tiles\r\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\r\n */\r\n/**\r\n * @docs-group-description HubAccess\r\n * APIs for working with IModelHub\r\n */\r\n/**\r\n * @docs-group-description UserPreferences\r\n * APIs for working with user preferences in an iModelApp.\r\n * See [the learning articles]($docs/learning/frontend/preferences.md).\r\n */\r\n/**\r\n * @docs-group-description MapLayers\r\n * Classes supporting map layers display.\r\n */\r\n/**\r\n * @docs-group-description TileStorage\r\n * Class for working with cloud storage using iTwin/object-storage cloud providers\r\n*/\r\n"]}
@@ -0,0 +1,19 @@
1
+ /** @packageDocumentation
2
+ * @module Tiles
3
+ */
4
+ import type { ImdlModel as Imdl } from "../imdl/ImdlModel";
5
+ import type { RenderGraphic } from "../render/RenderGraphic";
6
+ import type { RenderSystem } from "../render/RenderSystem";
7
+ import type { IModelConnection } from "../IModelConnection";
8
+ /** Options provided to [[decodeImdlContent]].
9
+ * @internal
10
+ */
11
+ export interface ImdlDecodeOptions {
12
+ document: Imdl.Document;
13
+ system: RenderSystem;
14
+ iModel: IModelConnection;
15
+ isCanceled?: () => boolean;
16
+ }
17
+ /** @internal */
18
+ export declare function decodeImdlGraphics(options: ImdlDecodeOptions): Promise<RenderGraphic | undefined>;
19
+ //# sourceMappingURL=ImdlGraphicsCreator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImdlGraphicsCreator.d.ts","sourceRoot":"","sources":["../../../src/imdl/ImdlGraphicsCreator.ts"],"names":[],"mappings":"AAIA;;GAEG;AAQH,OAAO,KAAK,EAAE,SAAS,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAK5D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;IACxB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;CAC5B;AAoUD,gBAAgB;AAChB,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAqCvG"}
@@ -0,0 +1,328 @@
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
+ /** @packageDocumentation
7
+ * @module Tiles
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.decodeImdlGraphics = void 0;
11
+ const core_bentley_1 = require("@itwin/core-bentley");
12
+ const core_geometry_1 = require("@itwin/core-geometry");
13
+ const core_common_1 = require("@itwin/core-common");
14
+ const ImdlParser_1 = require("../imdl/ImdlParser");
15
+ const GraphicBranch_1 = require("../render/GraphicBranch");
16
+ const SurfaceParams_1 = require("../render/primitives/SurfaceParams");
17
+ const VertexTable_1 = require("../render/primitives/VertexTable");
18
+ const AuxChannelTable_1 = require("../render/primitives/AuxChannelTable");
19
+ async function loadNamedTexture(name, namedTex, options) {
20
+ // Reasons a texture could be embedded in the tile content instead of requested separately from the backend:
21
+ // - external textures are disabled
22
+ // - the texture name is not a valid Id64 string
23
+ // - the texture is below a certain backend-hardcoded size threshold
24
+ // The bufferViewJson being defined signifies any of the above conditions. In that case, the image content
25
+ // has been embedded in the tile contents. Otherwise, we will attempt to request the image content separately
26
+ // from the backend.
27
+ try {
28
+ let textureType = core_common_1.RenderTexture.Type.Normal;
29
+ const isGlyph = core_bentley_1.JsonUtils.asBool(namedTex.isGlyph);
30
+ const isTileSection = !isGlyph && core_bentley_1.JsonUtils.asBool(namedTex.isTileSection);
31
+ if (isGlyph)
32
+ textureType = core_common_1.RenderTexture.Type.Glyph;
33
+ else if (isTileSection)
34
+ textureType = core_common_1.RenderTexture.Type.TileSection;
35
+ // We produce unique tile sections for very large (> 8 megapixel) textures, and unique glyph atlases for raster text.
36
+ // Neither should be cached.
37
+ const cacheable = !isGlyph && !isTileSection;
38
+ const ownership = cacheable ? { iModel: options.iModel, key: name } : undefined;
39
+ const bufferViewId = core_bentley_1.JsonUtils.asString(namedTex.bufferView);
40
+ const bufferViewJson = 0 !== bufferViewId.length ? options.document.json.bufferViews[bufferViewId] : undefined;
41
+ if (undefined !== bufferViewJson) { // presence of bufferViewJson signifies we should read the texture from the tile content
42
+ const byteOffset = core_bentley_1.JsonUtils.asInt(bufferViewJson.byteOffset);
43
+ const byteLength = core_bentley_1.JsonUtils.asInt(bufferViewJson.byteLength);
44
+ if (0 === byteLength)
45
+ return undefined;
46
+ const texBytes = options.document.binaryData.subarray(byteOffset, byteOffset + byteLength);
47
+ const format = namedTex.format;
48
+ const source = new core_common_1.ImageSource(texBytes, format);
49
+ return await options.system.createTextureFromSource({ source, ownership, type: textureType, transparency: namedTex.transparency });
50
+ }
51
+ // bufferViewJson was undefined, so attempt to request the texture directly from the backend
52
+ // eslint-disable-next-line deprecation/deprecation
53
+ const params = new core_common_1.RenderTexture.Params(cacheable ? name : undefined, textureType);
54
+ return options.system.createTextureFromElement(name, options.iModel, params, namedTex.format);
55
+ }
56
+ catch (_) {
57
+ return undefined;
58
+ }
59
+ }
60
+ async function loadNamedTextures(options) {
61
+ const result = new Map();
62
+ const namedTextures = options.document.json.namedTextures;
63
+ if (!namedTextures)
64
+ return result;
65
+ const promises = new Array();
66
+ for (const [name, namedTexture] of Object.entries(namedTextures)) {
67
+ const texture = options.system.findTexture(name, options.iModel);
68
+ if (texture) {
69
+ result.set(name, texture);
70
+ continue;
71
+ }
72
+ else if (namedTexture) {
73
+ promises.push(loadNamedTexture(name, namedTexture, options).then((tx) => {
74
+ if (tx)
75
+ result.set(name, tx);
76
+ }));
77
+ }
78
+ }
79
+ if (promises.length > 0)
80
+ await Promise.all(promises);
81
+ return result;
82
+ }
83
+ function constantLodParamPropsFromJson(propsJson) {
84
+ if (undefined === propsJson)
85
+ return undefined;
86
+ const constantLodPops = {
87
+ repetitions: core_bentley_1.JsonUtils.asDouble(propsJson.repetitions, 1.0),
88
+ offset: { x: propsJson.offset ? core_bentley_1.JsonUtils.asDouble(propsJson.offset[0]) : 0.0, y: propsJson.offset ? core_bentley_1.JsonUtils.asDouble(propsJson.offset[1]) : 0.0 },
89
+ minDistClamp: core_bentley_1.JsonUtils.asDouble(propsJson.minDistClamp, 1.0),
90
+ maxDistClamp: core_bentley_1.JsonUtils.asDouble(propsJson.maxDistClamp, 4096.0 * 1024.0 * 1024.0),
91
+ };
92
+ return constantLodPops;
93
+ }
94
+ function textureMappingFromJson(json, options) {
95
+ if (!json)
96
+ return undefined;
97
+ const texture = options.textures.get(core_bentley_1.JsonUtils.asString(json.name));
98
+ if (!texture)
99
+ return undefined;
100
+ const paramsJson = json.params;
101
+ const tf = paramsJson.transform;
102
+ const paramProps = {
103
+ textureMat2x3: new core_common_1.TextureMapping.Trans2x3(tf[0][0], tf[0][1], tf[0][2], tf[1][0], tf[1][1], tf[1][2]),
104
+ textureWeight: core_bentley_1.JsonUtils.asDouble(paramsJson.weight, 1.0),
105
+ mapMode: core_bentley_1.JsonUtils.asInt(paramsJson.mode),
106
+ worldMapping: core_bentley_1.JsonUtils.asBool(paramsJson.worldMapping),
107
+ useConstantLod: core_bentley_1.JsonUtils.asBool(paramsJson.useConstantLod),
108
+ constantLodProps: constantLodParamPropsFromJson(paramsJson.constantLodParams),
109
+ };
110
+ const textureMapping = new core_common_1.TextureMapping(texture, new core_common_1.TextureMapping.Params(paramProps));
111
+ const normalMapJson = json.normalMapParams;
112
+ if (normalMapJson) {
113
+ let normalMap;
114
+ const normalTexName = core_bentley_1.JsonUtils.asString(normalMapJson.textureName);
115
+ if (normalTexName.length === 0 || undefined !== (normalMap = options.textures.get(normalTexName))) {
116
+ textureMapping.normalMapParams = {
117
+ normalMap,
118
+ greenUp: core_bentley_1.JsonUtils.asBool(normalMapJson.greenUp),
119
+ scale: core_bentley_1.JsonUtils.asDouble(normalMapJson.scale, 1),
120
+ useConstantLod: core_bentley_1.JsonUtils.asBool(normalMapJson.useConstantLod),
121
+ };
122
+ }
123
+ }
124
+ return textureMapping;
125
+ }
126
+ function getMaterial(mat, options) {
127
+ if (typeof mat !== "string") {
128
+ const args = (0, ImdlParser_1.toMaterialArgs)(mat);
129
+ return options.system.createRenderMaterial(args);
130
+ }
131
+ const material = options.system.findMaterial(mat, options.iModel);
132
+ if (material || !options.document.json.renderMaterials)
133
+ return material;
134
+ const json = options.document.json.renderMaterials[mat];
135
+ if (!json)
136
+ return undefined;
137
+ function colorDefFromJson(col) {
138
+ return col ? core_common_1.ColorDef.from(col[0] * 255 + 0.5, col[1] * 255 + 0.5, col[2] * 255 + 0.5) : undefined;
139
+ }
140
+ // eslint-disable-next-line deprecation/deprecation
141
+ const params = new core_common_1.RenderMaterial.Params(mat);
142
+ params.diffuseColor = colorDefFromJson(json.diffuseColor);
143
+ if (json.diffuse !== undefined)
144
+ params.diffuse = core_bentley_1.JsonUtils.asDouble(json.diffuse);
145
+ params.specularColor = colorDefFromJson(json.specularColor);
146
+ if (json.specular !== undefined)
147
+ params.specular = core_bentley_1.JsonUtils.asDouble(json.specular);
148
+ params.reflectColor = colorDefFromJson(json.reflectColor);
149
+ if (json.reflect !== undefined)
150
+ params.reflect = core_bentley_1.JsonUtils.asDouble(json.reflect);
151
+ if (json.specularExponent !== undefined)
152
+ params.specularExponent = json.specularExponent;
153
+ if (undefined !== json.transparency)
154
+ params.alpha = 1.0 - json.transparency;
155
+ params.refract = core_bentley_1.JsonUtils.asDouble(json.refract);
156
+ params.shadows = core_bentley_1.JsonUtils.asBool(json.shadows);
157
+ params.ambient = core_bentley_1.JsonUtils.asDouble(json.ambient);
158
+ if (undefined !== json.textureMapping)
159
+ params.textureMapping = textureMappingFromJson(json.textureMapping.texture, options);
160
+ // eslint-disable-next-line deprecation/deprecation
161
+ return options.system.createMaterial(params, options.iModel);
162
+ }
163
+ function getModifiers(primitive) {
164
+ const mod = primitive.modifier;
165
+ switch (mod?.type) {
166
+ case "instances":
167
+ return {
168
+ instances: {
169
+ ...mod,
170
+ transformCenter: core_geometry_1.Point3d.fromJSON(mod.transformCenter),
171
+ range: mod.range ? core_geometry_1.Range3d.fromJSON(mod.range) : undefined,
172
+ },
173
+ };
174
+ case "viewIndependentOrigin":
175
+ return {
176
+ viOrigin: core_geometry_1.Point3d.fromJSON(mod.origin),
177
+ };
178
+ default:
179
+ return {};
180
+ }
181
+ }
182
+ function createPrimitiveGeometry(primitive, options, viOrigin) {
183
+ switch (primitive.type) {
184
+ case "point":
185
+ return options.system.createPointStringGeometry({
186
+ ...primitive.params,
187
+ vertices: (0, ImdlParser_1.toVertexTable)(primitive.params.vertices),
188
+ indices: new VertexTable_1.VertexIndices(primitive.params.indices),
189
+ }, viOrigin);
190
+ case "polyline":
191
+ return options.system.createPolylineGeometry({
192
+ ...primitive.params,
193
+ vertices: (0, ImdlParser_1.toVertexTable)(primitive.params.vertices),
194
+ polyline: {
195
+ ...primitive.params.polyline,
196
+ indices: new VertexTable_1.VertexIndices(primitive.params.polyline.indices),
197
+ prevIndices: new VertexTable_1.VertexIndices(primitive.params.polyline.prevIndices),
198
+ },
199
+ }, viOrigin);
200
+ case "mesh": {
201
+ const surf = primitive.params.surface;
202
+ let material;
203
+ if (surf.material) {
204
+ if (!surf.material.isAtlas)
205
+ material = (0, SurfaceParams_1.createSurfaceMaterial)(getMaterial(surf.material.material, options));
206
+ else
207
+ material = surf.material;
208
+ }
209
+ let textureMapping;
210
+ if (surf.textureMapping) {
211
+ let texture;
212
+ if (typeof surf.textureMapping.texture === "string") {
213
+ texture = options.textures.get(surf.textureMapping.texture);
214
+ }
215
+ else {
216
+ const gradient = core_common_1.Gradient.Symb.fromJSON(surf.textureMapping.texture);
217
+ texture = options.system.getGradientTexture(gradient, options.iModel);
218
+ }
219
+ if (texture)
220
+ textureMapping = { texture, alwaysDisplayed: surf.textureMapping.alwaysDisplayed };
221
+ }
222
+ return options.system.createMeshGeometry({
223
+ ...primitive.params,
224
+ edges: primitive.params.edges ? (0, ImdlParser_1.edgeParamsFromImdl)(primitive.params.edges) : undefined,
225
+ vertices: (0, ImdlParser_1.toVertexTable)(primitive.params.vertices),
226
+ auxChannels: primitive.params.auxChannels ? AuxChannelTable_1.AuxChannelTable.fromJSON(primitive.params.auxChannels) : undefined,
227
+ surface: {
228
+ ...primitive.params.surface,
229
+ material,
230
+ textureMapping,
231
+ indices: new VertexTable_1.VertexIndices(primitive.params.surface.indices),
232
+ },
233
+ }, viOrigin);
234
+ }
235
+ }
236
+ }
237
+ function createPrimitiveGraphic(primitive, options) {
238
+ const mods = getModifiers(primitive);
239
+ const geometry = createPrimitiveGeometry(primitive, options, mods.viOrigin);
240
+ return geometry ? options.system.createRenderGraphic(geometry, mods.instances) : undefined;
241
+ }
242
+ function createPatternGeometries(primitives, options) {
243
+ const geometries = [];
244
+ for (const primitive of primitives) {
245
+ const geometry = createPrimitiveGeometry(primitive, options, undefined);
246
+ if (geometry)
247
+ geometries.push(geometry);
248
+ }
249
+ return geometries;
250
+ }
251
+ function createPatternGraphic(params, options) {
252
+ const geometries = options.patterns.get(params.symbolName);
253
+ if (!geometries || geometries.length === 0)
254
+ return undefined;
255
+ const clip = core_geometry_1.ClipVector.fromJSON(params.clip);
256
+ const clipVolume = clip?.isValid ? options.system.createClipVolume(clip) : undefined;
257
+ if (!clipVolume)
258
+ return undefined;
259
+ const viewIndependentOrigin = params.viewIndependentOrigin ? core_geometry_1.Point3d.fromJSON(params.viewIndependentOrigin) : undefined;
260
+ const pattern = options.system.createAreaPattern({
261
+ xyOffsets: params.xyOffsets,
262
+ featureId: params.featureId,
263
+ orgTransform: core_geometry_1.Transform.fromJSON(params.orgTransform),
264
+ origin: core_geometry_1.Point2d.fromJSON(params.origin),
265
+ scale: params.scale,
266
+ spacing: core_geometry_1.Point2d.fromJSON(params.spacing),
267
+ patternToModel: core_geometry_1.Transform.fromJSON(params.modelTransform),
268
+ range: core_geometry_1.Range3d.fromJSON(params.range),
269
+ symbolTranslation: core_geometry_1.Point3d.fromJSON(params.symbolTranslation),
270
+ viewIndependentOrigin,
271
+ });
272
+ if (!pattern)
273
+ return undefined;
274
+ const branch = new GraphicBranch_1.GraphicBranch(true);
275
+ for (const geometry of geometries) {
276
+ const graphic = options.system.createRenderGraphic(geometry, pattern);
277
+ if (graphic)
278
+ branch.add(graphic);
279
+ }
280
+ return branch.isEmpty ? undefined : options.system.createGraphicBranch(branch, core_geometry_1.Transform.createIdentity(), { clipVolume });
281
+ }
282
+ function createNodeGraphics(node, options) {
283
+ const graphics = [];
284
+ for (const primitive of node.primitives) {
285
+ const graphic = primitive.type === "pattern" ? createPatternGraphic(primitive.params, options) : createPrimitiveGraphic(primitive, options);
286
+ if (graphic)
287
+ graphics.push(graphic);
288
+ }
289
+ return graphics;
290
+ }
291
+ /** @internal */
292
+ async function decodeImdlGraphics(options) {
293
+ const textures = await loadNamedTextures(options);
294
+ if (options.isCanceled && options.isCanceled())
295
+ return undefined;
296
+ const patterns = new Map();
297
+ const graphicsOptions = { ...options, textures, patterns };
298
+ for (const [name, primitives] of options.document.patterns)
299
+ patterns.set(name, createPatternGeometries(primitives, graphicsOptions));
300
+ const system = options.system;
301
+ const graphics = [];
302
+ for (const node of options.document.nodes) {
303
+ const nodeGraphics = createNodeGraphics(node, graphicsOptions);
304
+ if (nodeGraphics.length === 0)
305
+ continue;
306
+ if (undefined !== node.layerId) {
307
+ const layerGraphic = 1 === nodeGraphics.length ? nodeGraphics[0] : system.createGraphicList(nodeGraphics);
308
+ graphics.push(system.createGraphicLayer(layerGraphic, node.layerId));
309
+ }
310
+ else if (undefined !== node.animationNodeId) {
311
+ const branch = new GraphicBranch_1.GraphicBranch(true);
312
+ branch.animationId = node.animationId;
313
+ branch.animationNodeId = node.animationNodeId;
314
+ branch.entries.push(...nodeGraphics);
315
+ graphics.push(system.createBranch(branch, core_geometry_1.Transform.createIdentity()));
316
+ }
317
+ else {
318
+ graphics.push(...nodeGraphics);
319
+ }
320
+ }
321
+ switch (graphics.length) {
322
+ case 0: return undefined;
323
+ case 1: return graphics[0];
324
+ default: return system.createGraphicList(graphics);
325
+ }
326
+ }
327
+ exports.decodeImdlGraphics = decodeImdlGraphics;
328
+ //# sourceMappingURL=ImdlGraphicsCreator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImdlGraphicsCreator.js","sourceRoot":"","sources":["../../../src/imdl/ImdlGraphicsCreator.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAgD;AAChD,wDAAwF;AACxF,oDAE4B;AAG5B,mDAAuF;AAEvF,2DAAwD;AAIxD,sEAA2E;AAC3E,kEAAiE;AACjE,0EAAuE;AAYvE,KAAK,UAAU,gBAAgB,CAAC,IAAY,EAAE,QAA0B,EAAE,OAA0B;IAClG,4GAA4G;IAC5G,mCAAmC;IACnC,gDAAgD;IAChD,oEAAoE;IACpE,0GAA0G;IAC1G,6GAA6G;IAC7G,oBAAoB;IAEpB,IAAI;QACF,IAAI,WAAW,GAAG,2BAAa,CAAC,IAAI,CAAC,MAAM,CAAC;QAC5C,MAAM,OAAO,GAAG,wBAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,aAAa,GAAG,CAAC,OAAO,IAAI,wBAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC3E,IAAI,OAAO;YACT,WAAW,GAAG,2BAAa,CAAC,IAAI,CAAC,KAAK,CAAC;aACpC,IAAI,aAAa;YACpB,WAAW,GAAG,2BAAa,CAAC,IAAI,CAAC,WAAW,CAAC;QAE/C,qHAAqH;QACrH,4BAA4B;QAC5B,MAAM,SAAS,GAAG,CAAC,OAAO,IAAI,CAAC,aAAa,CAAC;QAC7C,MAAM,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;QAEhF,MAAM,YAAY,GAAG,wBAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC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MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;KACpD;AACH,CAAC;AArCD,gDAqCC","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/** @packageDocumentation\r\n * @module Tiles\r\n */\r\n\r\nimport { JsonUtils } from \"@itwin/core-bentley\";\r\nimport { ClipVector, Point2d, Point3d, Range3d, Transform } from \"@itwin/core-geometry\";\r\nimport {\r\n ColorDef, Gradient, ImageSource, RenderMaterial, RenderTexture, TextureMapping,\r\n} from \"@itwin/core-common\";\r\nimport type { ImdlColorDef, ImdlNamedTexture, ImdlTextureMapping } from \"../imdl/ImdlSchema\";\r\nimport type { ImdlModel as Imdl } from \"../imdl/ImdlModel\";\r\nimport { edgeParamsFromImdl, toMaterialArgs, toVertexTable } from \"../imdl/ImdlParser\";\r\nimport type { RenderGraphic } from \"../render/RenderGraphic\";\r\nimport { GraphicBranch } from \"../render/GraphicBranch\";\r\nimport type { RenderGeometry, RenderSystem } from \"../render/RenderSystem\";\r\nimport type { InstancedGraphicParams } from \"../render/InstancedGraphicParams\";\r\nimport type { IModelConnection } from \"../IModelConnection\";\r\nimport { createSurfaceMaterial } from \"../render/primitives/SurfaceParams\";\r\nimport { VertexIndices } from \"../render/primitives/VertexTable\";\r\nimport { AuxChannelTable } from \"../render/primitives/AuxChannelTable\";\r\n\r\n/** Options provided to [[decodeImdlContent]].\r\n * @internal\r\n */\r\nexport interface ImdlDecodeOptions {\r\n document: Imdl.Document;\r\n system: RenderSystem;\r\n iModel: IModelConnection;\r\n isCanceled?: () => boolean;\r\n}\r\n\r\nasync function loadNamedTexture(name: string, namedTex: ImdlNamedTexture, options: ImdlDecodeOptions): Promise<RenderTexture | undefined> {\r\n // Reasons a texture could be embedded in the tile content instead of requested separately from the backend:\r\n // - external textures are disabled\r\n // - the texture name is not a valid Id64 string\r\n // - the texture is below a certain backend-hardcoded size threshold\r\n // The bufferViewJson being defined signifies any of the above conditions. In that case, the image content\r\n // has been embedded in the tile contents. Otherwise, we will attempt to request the image content separately\r\n // from the backend.\r\n\r\n try {\r\n let textureType = RenderTexture.Type.Normal;\r\n const isGlyph = JsonUtils.asBool(namedTex.isGlyph);\r\n const isTileSection = !isGlyph && JsonUtils.asBool(namedTex.isTileSection);\r\n if (isGlyph)\r\n textureType = RenderTexture.Type.Glyph;\r\n else if (isTileSection)\r\n textureType = RenderTexture.Type.TileSection;\r\n\r\n // We produce unique tile sections for very large (> 8 megapixel) textures, and unique glyph atlases for raster text.\r\n // Neither should be cached.\r\n const cacheable = !isGlyph && !isTileSection;\r\n const ownership = cacheable ? { iModel: options.iModel, key: name } : undefined;\r\n\r\n const bufferViewId = JsonUtils.asString(namedTex.bufferView);\r\n const bufferViewJson = 0 !== bufferViewId.length ? options.document.json.bufferViews[bufferViewId] : undefined;\r\n\r\n if (undefined !== bufferViewJson) { // presence of bufferViewJson signifies we should read the texture from the tile content\r\n const byteOffset = JsonUtils.asInt(bufferViewJson.byteOffset);\r\n const byteLength = JsonUtils.asInt(bufferViewJson.byteLength);\r\n if (0 === byteLength)\r\n return undefined;\r\n\r\n const texBytes = options.document.binaryData.subarray(byteOffset, byteOffset + byteLength);\r\n const format = namedTex.format;\r\n const source = new ImageSource(texBytes, format);\r\n return await options.system.createTextureFromSource({ source, ownership, type: textureType, transparency: namedTex.transparency });\r\n }\r\n\r\n // bufferViewJson was undefined, so attempt to request the texture directly from the backend\r\n // eslint-disable-next-line deprecation/deprecation\r\n const params = new RenderTexture.Params(cacheable ? name : undefined, textureType);\r\n return options.system.createTextureFromElement(name, options.iModel, params, namedTex.format);\r\n } catch (_) {\r\n return undefined;\r\n }\r\n}\r\n\r\nasync function loadNamedTextures(options: ImdlDecodeOptions): Promise<Map<string, RenderTexture>> {\r\n const result = new Map<string, RenderTexture>();\r\n const namedTextures = options.document.json.namedTextures;\r\n if (!namedTextures)\r\n return result;\r\n\r\n const promises = new Array<Promise<void>>();\r\n for (const [name, namedTexture] of Object.entries(namedTextures)) {\r\n const texture = options.system.findTexture(name, options.iModel);\r\n if (texture) {\r\n result.set(name, texture);\r\n continue;\r\n } else if (namedTexture) {\r\n promises.push(loadNamedTexture(name, namedTexture, options).then((tx) => {\r\n if (tx)\r\n result.set(name, tx);\r\n }));\r\n }\r\n }\r\n\r\n if (promises.length > 0)\r\n await Promise.all(promises);\r\n\r\n return result;\r\n}\r\n\r\ninterface GraphicsOptions extends ImdlDecodeOptions {\r\n textures: Map<string, RenderTexture>;\r\n patterns: Map<string, RenderGeometry[]>;\r\n}\r\n\r\nfunction constantLodParamPropsFromJson(propsJson: { repetitions?: number, offset?: number[], minDistClamp?: number, maxDistClamp?: number } | undefined): TextureMapping.ConstantLodParamProps | undefined {\r\n if (undefined === propsJson)\r\n return undefined;\r\n\r\n const constantLodPops: TextureMapping.ConstantLodParamProps = {\r\n repetitions: JsonUtils.asDouble(propsJson.repetitions, 1.0),\r\n offset: { x: propsJson.offset ? JsonUtils.asDouble(propsJson.offset[0]) : 0.0, y: propsJson.offset ? JsonUtils.asDouble(propsJson.offset[1]) : 0.0 },\r\n minDistClamp: JsonUtils.asDouble(propsJson.minDistClamp, 1.0),\r\n maxDistClamp: JsonUtils.asDouble(propsJson.maxDistClamp, 4096.0 * 1024.0 * 1024.0),\r\n };\r\n return constantLodPops;\r\n}\r\n\r\nfunction textureMappingFromJson(json: ImdlTextureMapping | undefined, options: GraphicsOptions): TextureMapping | undefined {\r\n if (!json)\r\n return undefined;\r\n\r\n const texture = options.textures.get(JsonUtils.asString(json.name));\r\n if (!texture)\r\n return undefined;\r\n\r\n const paramsJson = json.params;\r\n const tf = paramsJson.transform;\r\n\r\n const paramProps: TextureMapping.ParamProps = {\r\n textureMat2x3: new TextureMapping.Trans2x3(tf[0][0], tf[0][1], tf[0][2], tf[1][0], tf[1][1], tf[1][2]),\r\n textureWeight: JsonUtils.asDouble(paramsJson.weight, 1.0),\r\n mapMode: JsonUtils.asInt(paramsJson.mode),\r\n worldMapping: JsonUtils.asBool(paramsJson.worldMapping),\r\n useConstantLod: JsonUtils.asBool(paramsJson.useConstantLod),\r\n constantLodProps: constantLodParamPropsFromJson(paramsJson.constantLodParams),\r\n };\r\n\r\n const textureMapping = new TextureMapping(texture, new TextureMapping.Params(paramProps));\r\n\r\n const normalMapJson = json.normalMapParams;\r\n if (normalMapJson) {\r\n let normalMap;\r\n const normalTexName = JsonUtils.asString(normalMapJson.textureName);\r\n if (normalTexName.length === 0 || undefined !== (normalMap = options.textures.get(normalTexName))) {\r\n textureMapping.normalMapParams = {\r\n normalMap,\r\n greenUp: JsonUtils.asBool(normalMapJson.greenUp),\r\n scale: JsonUtils.asDouble(normalMapJson.scale, 1),\r\n useConstantLod: JsonUtils.asBool(normalMapJson.useConstantLod),\r\n };\r\n }\r\n }\r\n\r\n return textureMapping;\r\n}\r\n\r\nfunction getMaterial(mat: string | Imdl.SurfaceMaterialParams, options: GraphicsOptions): RenderMaterial | undefined {\r\n if (typeof mat !== \"string\") {\r\n const args = toMaterialArgs(mat);\r\n return options.system.createRenderMaterial(args);\r\n }\r\n\r\n const material = options.system.findMaterial(mat, options.iModel);\r\n if (material || !options.document.json.renderMaterials)\r\n return material;\r\n\r\n const json = options.document.json.renderMaterials[mat];\r\n if (!json)\r\n return undefined;\r\n\r\n function colorDefFromJson(col: ImdlColorDef | undefined): ColorDef | undefined {\r\n return col ? ColorDef.from(col[0] * 255 + 0.5, col[1] * 255 + 0.5, col[2] * 255 + 0.5) : undefined;\r\n }\r\n\r\n // eslint-disable-next-line deprecation/deprecation\r\n const params = new RenderMaterial.Params(mat);\r\n params.diffuseColor = colorDefFromJson(json.diffuseColor);\r\n if (json.diffuse !== undefined)\r\n params.diffuse = JsonUtils.asDouble(json.diffuse);\r\n\r\n params.specularColor = colorDefFromJson(json.specularColor);\r\n if (json.specular !== undefined)\r\n params.specular = JsonUtils.asDouble(json.specular);\r\n\r\n params.reflectColor = colorDefFromJson(json.reflectColor);\r\n if (json.reflect !== undefined)\r\n params.reflect = JsonUtils.asDouble(json.reflect);\r\n\r\n if (json.specularExponent !== undefined)\r\n params.specularExponent = json.specularExponent;\r\n\r\n if (undefined !== json.transparency)\r\n params.alpha = 1.0 - json.transparency;\r\n\r\n params.refract = JsonUtils.asDouble(json.refract);\r\n params.shadows = JsonUtils.asBool(json.shadows);\r\n params.ambient = JsonUtils.asDouble(json.ambient);\r\n\r\n if (undefined !== json.textureMapping)\r\n params.textureMapping = textureMappingFromJson(json.textureMapping.texture, options);\r\n\r\n // eslint-disable-next-line deprecation/deprecation\r\n return options.system.createMaterial(params, options.iModel);\r\n}\r\n\r\nfunction getModifiers(primitive: Imdl.Primitive): { viOrigin?: Point3d, instances?: InstancedGraphicParams } {\r\n const mod = primitive.modifier;\r\n switch (mod?.type) {\r\n case \"instances\":\r\n return {\r\n instances: {\r\n ...mod,\r\n transformCenter: Point3d.fromJSON(mod.transformCenter),\r\n range: mod.range ? Range3d.fromJSON(mod.range) : undefined,\r\n },\r\n };\r\n case \"viewIndependentOrigin\":\r\n return {\r\n viOrigin: Point3d.fromJSON(mod.origin),\r\n };\r\n default:\r\n return { };\r\n }\r\n}\r\n\r\nfunction createPrimitiveGeometry(primitive: Imdl.Primitive, options: GraphicsOptions, viOrigin: Point3d | undefined): RenderGeometry | undefined {\r\n switch (primitive.type) {\r\n case \"point\":\r\n return options.system.createPointStringGeometry({\r\n ...primitive.params,\r\n vertices: toVertexTable(primitive.params.vertices),\r\n indices: new VertexIndices(primitive.params.indices),\r\n }, viOrigin);\r\n case \"polyline\":\r\n return options.system.createPolylineGeometry({\r\n ...primitive.params,\r\n vertices: toVertexTable(primitive.params.vertices),\r\n polyline: {\r\n ...primitive.params.polyline,\r\n indices: new VertexIndices(primitive.params.polyline.indices),\r\n prevIndices: new VertexIndices(primitive.params.polyline.prevIndices),\r\n },\r\n }, viOrigin);\r\n case \"mesh\": {\r\n const surf = primitive.params.surface;\r\n let material;\r\n if (surf.material) {\r\n if (!surf.material.isAtlas)\r\n material = createSurfaceMaterial(getMaterial(surf.material.material, options));\r\n else\r\n material = surf.material;\r\n }\r\n\r\n let textureMapping;\r\n if (surf.textureMapping) {\r\n let texture;\r\n if (typeof surf.textureMapping.texture === \"string\") {\r\n texture = options.textures.get(surf.textureMapping.texture);\r\n } else {\r\n const gradient = Gradient.Symb.fromJSON(surf.textureMapping.texture);\r\n texture = options.system.getGradientTexture(gradient, options.iModel);\r\n }\r\n\r\n if (texture)\r\n textureMapping = { texture, alwaysDisplayed: surf.textureMapping.alwaysDisplayed };\r\n }\r\n\r\n return options.system.createMeshGeometry({\r\n ...primitive.params,\r\n edges: primitive.params.edges ? edgeParamsFromImdl(primitive.params.edges) : undefined,\r\n vertices: toVertexTable(primitive.params.vertices),\r\n auxChannels: primitive.params.auxChannels ? AuxChannelTable.fromJSON(primitive.params.auxChannels) : undefined,\r\n surface: {\r\n ...primitive.params.surface,\r\n material,\r\n textureMapping,\r\n indices: new VertexIndices(primitive.params.surface.indices),\r\n },\r\n }, viOrigin);\r\n }\r\n }\r\n}\r\n\r\nfunction createPrimitiveGraphic(primitive: Imdl.Primitive, options: GraphicsOptions): RenderGraphic | undefined {\r\n const mods = getModifiers(primitive);\r\n const geometry = createPrimitiveGeometry(primitive, options, mods.viOrigin);\r\n return geometry ? options.system.createRenderGraphic(geometry, mods.instances) : undefined;\r\n}\r\n\r\nfunction createPatternGeometries(primitives: Imdl.Primitive[], options: GraphicsOptions): RenderGeometry[] {\r\n const geometries = [];\r\n for (const primitive of primitives) {\r\n const geometry = createPrimitiveGeometry(primitive, options, undefined);\r\n if (geometry)\r\n geometries.push(geometry);\r\n }\r\n\r\n return geometries;\r\n}\r\n\r\nfunction createPatternGraphic(params: Imdl.AreaPatternParams, options: GraphicsOptions): RenderGraphic | undefined {\r\n const geometries = options.patterns.get(params.symbolName);\r\n if (!geometries || geometries.length === 0)\r\n return undefined;\r\n\r\n const clip = ClipVector.fromJSON(params.clip);\r\n const clipVolume = clip?.isValid ? options.system.createClipVolume(clip) : undefined;\r\n if (!clipVolume)\r\n return undefined;\r\n\r\n const viewIndependentOrigin = params.viewIndependentOrigin ? Point3d.fromJSON(params.viewIndependentOrigin) : undefined;\r\n const pattern = options.system.createAreaPattern({\r\n xyOffsets: params.xyOffsets,\r\n featureId: params.featureId,\r\n orgTransform: Transform.fromJSON(params.orgTransform),\r\n origin: Point2d.fromJSON(params.origin),\r\n scale: params.scale,\r\n spacing: Point2d.fromJSON(params.spacing),\r\n patternToModel: Transform.fromJSON(params.modelTransform),\r\n range: Range3d.fromJSON(params.range),\r\n symbolTranslation: Point3d.fromJSON(params.symbolTranslation),\r\n viewIndependentOrigin,\r\n });\r\n\r\n if (!pattern)\r\n return undefined;\r\n\r\n const branch = new GraphicBranch(true);\r\n for (const geometry of geometries) {\r\n const graphic = options.system.createRenderGraphic(geometry, pattern);\r\n if (graphic)\r\n branch.add(graphic);\r\n }\r\n\r\n return branch.isEmpty ? undefined : options.system.createGraphicBranch(branch, Transform.createIdentity(), { clipVolume });\r\n}\r\n\r\nfunction createNodeGraphics(node: Imdl.Node, options: GraphicsOptions): RenderGraphic[] {\r\n const graphics = [];\r\n for (const primitive of node.primitives) {\r\n const graphic = primitive.type === \"pattern\" ? createPatternGraphic(primitive.params, options) : createPrimitiveGraphic(primitive, options);\r\n if (graphic)\r\n graphics.push(graphic);\r\n }\r\n\r\n return graphics;\r\n}\r\n\r\n/** @internal */\r\nexport async function decodeImdlGraphics(options: ImdlDecodeOptions): Promise<RenderGraphic | undefined> {\r\n const textures = await loadNamedTextures(options);\r\n if (options.isCanceled && options.isCanceled())\r\n return undefined;\r\n\r\n const patterns = new Map<string, RenderGeometry[]>();\r\n const graphicsOptions = { ...options, textures, patterns };\r\n\r\n for (const [name, primitives] of options.document.patterns)\r\n patterns.set(name, createPatternGeometries(primitives, graphicsOptions));\r\n\r\n const system = options.system;\r\n const graphics: RenderGraphic[] = [];\r\n for (const node of options.document.nodes) {\r\n const nodeGraphics = createNodeGraphics(node, graphicsOptions);\r\n if (nodeGraphics.length === 0)\r\n continue;\r\n\r\n if (undefined !== node.layerId) {\r\n const layerGraphic = 1 === nodeGraphics.length ? nodeGraphics[0] : system.createGraphicList(nodeGraphics);\r\n graphics.push(system.createGraphicLayer(layerGraphic, node.layerId));\r\n } else if (undefined !== node.animationNodeId) {\r\n const branch = new GraphicBranch(true);\r\n branch.animationId = node.animationId;\r\n branch.animationNodeId = node.animationNodeId;\r\n branch.entries.push(...nodeGraphics);\r\n graphics.push(system.createBranch(branch, Transform.createIdentity()));\r\n } else {\r\n graphics.push(...nodeGraphics);\r\n }\r\n }\r\n\r\n switch (graphics.length) {\r\n case 0: return undefined;\r\n case 1: return graphics[0];\r\n default: return system.createGraphicList(graphics);\r\n }\r\n}\r\n"]}