@belife/belife-bim-air 1.6.1-zy.86.patch.7 → 1.6.1-zy.86.patch.9
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/README.md +2 -1
- package/demo/assets/demo.css +28 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//344/277/256/346/224/271/351/242/234/350/211/262.html +100 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//345/212/250/347/224/273/346/214/211/351/222/256.html +154 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//346/265/213/351/207/217/351/253/230/347/250/213.html +153 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//346/267/273/345/212/240/346/226/207/346/234/254/346/240/207/347/255/276.html +117 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//346/267/273/345/212/240/346/240/207/347/255/276/344/272/213/344/273/266/347/202/271/345/207/273/350/216/267/345/217/226/345/261/236/346/200/247.html +102 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//346/267/273/345/212/240/351/274/240/346/240/207/344/272/213/344/273/266/350/216/267/345/217/226/346/250/241/345/236/213.html +62 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//347/247/273/345/212/250/346/240/207/347/255/276/344/275/215/347/275/256.html +126 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//350/247/206/347/202/271/347/256/241/347/220/206.html +86 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//350/247/206/350/247/222/350/275/254/346/215/242.html +81 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//350/256/276/347/275/256/347/273/223/346/236/204/346/240/221/347/202/271/345/207/273/344/272/213/344/273/266.html +49 -0
- package/demo//345/217/202/346/225/260/345/214/226/350/256/276/350/256/241//345/217/202/346/225/260/345/214/226/345/273/272/346/250/241.html +132 -0
- package/demo//346/250/241/345/236/213/344/272/244/344/272/222//346/227/213/350/275/254/345/271/263/347/247/273/347/274/251/346/224/276.html +131 -0
- package/demo//346/250/241/345/236/213/344/272/244/344/272/222//346/236/204/344/273/266/351/232/220/350/227/217/345/274/272/350/260/203.html +113 -0
- package/demo//346/250/241/345/236/213/344/272/244/344/272/222//350/256/276/347/275/256viewHouse.html +93 -0
- package/demo//346/250/241/345/236/213/345/212/250/347/224/273//347/256/241/351/201/223/347/224/237/351/225/277.html +151 -0
- package/demo//346/250/241/345/236/213/345/212/250/347/224/273//350/267/257/345/276/204/345/212/250/347/224/273.html +148 -0
- package/demo//346/250/241/345/236/213/345/212/250/347/224/273//350/267/257/345/276/204/345/212/250/347/224/273/347/224/237/351/225/277.html +625 -0
- package/demo//346/250/241/345/236/213/345/212/250/347/224/273//350/267/257/345/276/204/346/274/253/346/270/270.html +105 -0
- package/demo//346/250/241/345/236/213/345/212/250/347/224/273//351/232/224/347/246/273/347/224/237/351/225/277.html +86 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/210/233/345/273/272/350/247/206/345/233/276.html +39 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/212/240/350/275/275/346/234/215/345/212/241/345/231/250/346/250/241/345/236/213.html +41 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/217/214/345/261/217/346/223/215/344/275/234.html +79 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/256/232/344/275/215/346/250/241/345/236/213.html +53 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/267/245/345/205/267/346/240/217/346/230/276/347/244/272/351/232/220/350/227/217.html +74 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/212/225/345/275/261/346/226/271/345/274/217/345/217/230/345/214/226.html +90 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/212/225/345/275/261/346/226/271/345/274/217/345/217/230/346/215/242.html +75 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/230/276/347/244/272/347/233/270/346/234/272/345/217/202/346/225/260.html +113 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/250/241/345/236/213/346/210/252/345/217/226.html +130 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//350/256/276/347/275/256/344/270/216/350/216/267/345/217/226/346/250/241/345/236/213/345/235/220/346/240/207.html +65 -0
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//351/224/201/345/256/232/347/233/270/346/234/272/350/247/206/350/247/222.html +109 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234/2D/347/203/255/345/212/233/345/233/276.html +100 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234/BIMGIS/347/244/272/344/276/213.html +106 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234/UV/345/212/250/347/224/273.html +76 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/205/250/346/201/257/345/275/261/345/203/217.html +200 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/210/206/346/256/265/346/237/223/350/211/262/346/225/210/346/236/234.html +87 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/210/233/345/273/272/346/211/253/347/225/245.html +112 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/210/233/345/273/272/350/267/257/345/276/204.html +67 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/212/250/346/200/201/345/210/233/345/273/272/347/224/265/345/255/220/345/233/264/346/240/217.html +123 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/226/267/346/260/264/346/225/210/346/236/234.html +58 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/233/264/345/242/231/346/211/253/346/217/217/346/225/210/346/236/234.html +64 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/241/253/346/214/226/346/226/271/345/210/206/346/236/220.html +66 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/244/251/347/251/272/347/233/222/346/225/210/346/236/234.html +49 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/260/204/347/272/277/346/243/200/346/265/213.html +86 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/211/207/345/275/242/346/211/253/346/217/217/346/225/210/346/236/234.html +63 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/214/207/345/256/232/346/236/204/344/273/266/346/227/213/350/275/254.html +76 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/214/211/344/273/273/346/204/217/346/226/271/345/220/221/345/211/226/345/210/207.html +271 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/216/247/351/253/230/345/210/206/346/236/220/346/225/210/346/236/234.html +59 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/260/264/351/235/242/346/225/210/346/236/234.html +72 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/261/275/351/233/276/346/225/210/346/236/234.html +58 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/267/273/345/212/240/344/270/211/347/273/264/346/226/207/345/255/227.html +92 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/267/273/345/212/240/347/202/271/347/272/277/351/235/242/346/213/211/344/274/270/344/275/223.html +81 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//347/216/257/347/212/266/346/211/253/346/217/217/346/225/210/346/236/234.html +64 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//347/253/213/344/275/223/351/224/232/347/202/271.html +79 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//350/201/232/345/205/211/347/201/257/346/225/210/346/236/234.html +80 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//351/200/232/350/247/206/345/210/206/346/236/220.html +68 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//351/233/252/345/244/251/346/225/210/346/236/234.html +53 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//345/244/232/346/236/204/344/273/266/345/211/226/345/210/207.html +89 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//345/256/232/344/275/215/346/236/204/344/273/266.html +70 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/345/261/236/346/200/247.html +56 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/347/242/260/346/222/236/346/243/200/346/265/213.html +103 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/351/200/211/346/213/251/344/270/216/345/256/232/344/275/215.html +59 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/351/232/220/350/227/217/343/200/201/346/236/204/344/273/266/345/274/272/350/260/203.html +111 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/351/232/224/347/246/273.html +105 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/216/267/345/217/226/346/236/204/344/273/266/345/214/205/345/233/264/347/233/222.html +109 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/256/276/347/275/256/346/250/241/345/236/213/351/242/234/350/211/262.html +68 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/256/276/347/275/256/351/200/217/346/230/216/345/272/246.html +75 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//350/256/276/347/275/256/351/232/224/347/246/273/346/240/267/345/274/217.html +79 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//351/232/220/350/227/217/346/236/204/344/273/266.html +70 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//351/242/234/350/211/262/346/214/211/351/222/256.html +95 -0
- package/docs/.nojekyll +1 -0
- package/docs/.vuepress/config.js +357 -0
- package/docs/.vuepress/styles/palette.styl +12 -0
- package/docs/README.md +99 -0
- package/docs/animation//350/267/257/345/276/204/345/271/263/347/247/273/345/212/250/347/224/273/346/226/207/346/241/243.md +142 -0
- package/docs/assets/images/2.png +0 -0
- package/docs/classes/Animation.AnchorEffect.md +91 -0
- package/docs/classes/Animation.AnchorEffectConfig.md +65 -0
- package/docs/classes/Animation.CircleScanEffect.md +49 -0
- package/docs/classes/Animation.CircleScanEffectConfig.md +73 -0
- package/docs/classes/Animation.CutFillAnalysisConfig.md +57 -0
- package/docs/classes/Animation.CutFillAnalysisEffect.md +63 -0
- package/docs/classes/Animation.FanScanEffect.md +49 -0
- package/docs/classes/Animation.FanScanEffectConfig.md +89 -0
- package/docs/classes/Animation.HeatMap2DEffect.md +49 -0
- package/docs/classes/Animation.HeatMap2DEffectConfig.md +65 -0
- package/docs/classes/Animation.HeightLimitEffect.md +49 -0
- package/docs/classes/Animation.HeightLimitEffectConfig.md +57 -0
- package/docs/classes/Animation.PathEffect.md +101 -0
- package/docs/classes/Animation.PathEffectConfig.md +65 -0
- package/docs/classes/Animation.RegionLimitEffect.md +84 -0
- package/docs/classes/Animation.RegionLimitEffectConfig.md +197 -0
- package/docs/classes/Animation.SightlineAnalysisConfig.md +65 -0
- package/docs/classes/Animation.SightlineAnalysisEffect.md +67 -0
- package/docs/classes/Animation.SkyboxEffect.md +75 -0
- package/docs/classes/Animation.SkyboxEffectConfig.md +33 -0
- package/docs/classes/Animation.SnowEffect.md +49 -0
- package/docs/classes/Animation.SnowEffectConfig.md +61 -0
- package/docs/classes/Animation.SpotLightEffect.md +49 -0
- package/docs/classes/Animation.SpotLightEffectConfig.md +81 -0
- package/docs/classes/Animation.SprayWaterEffect.md +49 -0
- package/docs/classes/Animation.SprayWaterEffectConfig.md +121 -0
- package/docs/classes/Animation.SteamEffect.md +49 -0
- package/docs/classes/Animation.SteamEffectConfig.md +121 -0
- package/docs/classes/Animation.UvEffect.md +76 -0
- package/docs/classes/Animation.UvEffectConfig.md +105 -0
- package/docs/classes/Animation.WallEffect.md +193 -0
- package/docs/classes/Animation.WallEffectConfig.md +65 -0
- package/docs/classes/Animation.WallScanEffect.md +49 -0
- package/docs/classes/Animation.WallScanEffectConfig.md +81 -0
- package/docs/classes/Animation.WaterEffect.md +51 -0
- package/docs/classes/Animation.WaterEffectConfig.md +59 -0
- package/docs/classes/Command.CommandCreateWall.md +964 -0
- package/docs/classes/Command.CommandSelect.md +631 -0
- package/docs/classes/Command.CommandShowCaeAxisCut.md +951 -0
- package/docs/classes/Command.CommandShowFirstPersonRoam.md +1176 -0
- package/docs/classes/Command.CommandShowProModelExplosion.md +1187 -0
- package/docs/classes/Command.CommandShowSlicePanel.md +970 -0
- package/docs/classes/ComponentSelector.md +1131 -0
- package/docs/classes/CuttingOptions.md +299 -0
- package/docs/classes/DataSource.md +114 -0
- package/docs/classes/EarthCameraMouse3D.md +1424 -0
- package/docs/classes/Geometry.Plane.md +105 -0
- package/docs/classes/GisBIMObject.md +1164 -0
- package/docs/classes/GisRefLightModel.md +1139 -0
- package/docs/classes/Longan.AnimationManager.md +243 -0
- package/docs/classes/Longan.BaseShader.md +804 -0
- package/docs/classes/Longan.BoundingBox.md +160 -0
- package/docs/classes/Longan.CameraMouse.md +1160 -0
- package/docs/classes/Longan.CameraPlanMouse.md +1286 -0
- package/docs/classes/Longan.CameraTouch.md +910 -0
- package/docs/classes/Longan.CloneManager.md +60 -0
- package/docs/classes/Longan.CollisionManager.md +119 -0
- package/docs/classes/Longan.Color.md +877 -0
- package/docs/classes/Longan.Command.md +371 -0
- package/docs/classes/Longan.CommandImportEarth.md +538 -0
- package/docs/classes/Longan.CommandManager.md +277 -0
- package/docs/classes/Longan.CommandPanoramaModelSelect.md +499 -0
- package/docs/classes/Longan.CommandSelect.md +515 -0
- package/docs/classes/Longan.CommandStepState.md +340 -0
- package/docs/classes/Longan.Condition.md +90 -0
- package/docs/classes/Longan.Cube.md +834 -0
- package/docs/classes/Longan.CuttingBox.md +1051 -0
- package/docs/classes/Longan.CuttingPlane.md +1124 -0
- package/docs/classes/Longan.DBoundingBox.md +142 -0
- package/docs/classes/Longan.DGeometryOperators.md +587 -0
- package/docs/classes/Longan.DMatrix4.md +401 -0
- package/docs/classes/Longan.DPoint.md +73 -0
- package/docs/classes/Longan.DTolerance.md +73 -0
- package/docs/classes/Longan.DVector.md +231 -0
- package/docs/classes/Longan.DWcs.md +187 -0
- package/docs/classes/Longan.DataManagerBase.md +172 -0
- package/docs/classes/Longan.DeltaState.md +267 -0
- package/docs/classes/Longan.Diagnosis.md +69 -0
- package/docs/classes/Longan.DriverOptions.md +56 -0
- package/docs/classes/Longan.EarthCameraMouse.md +1426 -0
- package/docs/classes/Longan.EarthLabelObjectList.md +817 -0
- package/docs/classes/Longan.EarthObject.md +1646 -0
- package/docs/classes/Longan.GISBIMObject.md +1239 -0
- package/docs/classes/Longan.Geometry.md +233 -0
- package/docs/classes/Longan.GeometryOperators.md +608 -0
- package/docs/classes/Longan.HeuristicOptions.md +356 -0
- package/docs/classes/Longan.HighlightManager.md +151 -0
- package/docs/classes/Longan.HistoryManager.md +372 -0
- package/docs/classes/Longan.Image.md +572 -0
- package/docs/classes/Longan.Include.md +105 -0
- package/docs/classes/Longan.IntersectionGraph.md +1385 -0
- package/docs/classes/Longan.InvisibleManager.md +162 -0
- package/docs/classes/Longan.IsolationManager.md +162 -0
- package/docs/classes/Longan.LabelObject.md +836 -0
- package/docs/classes/Longan.LabelObjectList.md +824 -0
- package/docs/classes/Longan.LightModel.md +988 -0
- package/docs/classes/Longan.Line.md +303 -0
- package/docs/classes/Longan.List.md +283 -0
- package/docs/classes/Longan.LonganCore.GsWebGLUtility.md +85 -0
- package/docs/classes/Longan.LonganCore.ThreadPromise.md +90 -0
- package/docs/classes/Longan.LonganCore.UpdateInfo.md +70 -0
- package/docs/classes/Longan.LonganCore.Viewer.md +1418 -0
- package/docs/classes/Longan.LonganCore.ViewerEvent.md +281 -0
- package/docs/classes/Longan.LonganLoad.md +74 -0
- package/docs/classes/Longan.Marker.md +275 -0
- package/docs/classes/Longan.Matrix4.md +450 -0
- package/docs/classes/Longan.Mesh.md +356 -0
- package/docs/classes/Longan.ModellingMatrix.md +107 -0
- package/docs/classes/Longan.NumberKeyList.md +172 -0
- package/docs/classes/Longan.ObjectPreSelector.md +1042 -0
- package/docs/classes/Longan.ObjectSelector.md +1018 -0
- package/docs/classes/Longan.ObjectState.md +329 -0
- package/docs/classes/Longan.OperatorManager.md +166 -0
- package/docs/classes/Longan.PanoramaCameraMouse.md +1310 -0
- package/docs/classes/Longan.PanoramaObject.md +918 -0
- package/docs/classes/Longan.ParametricGeometry.md +390 -0
- package/docs/classes/Longan.PersistenceManager.md +266 -0
- package/docs/classes/Longan.PerspectiveCameraMouse.md +1286 -0
- package/docs/classes/Longan.Point.md +73 -0
- package/docs/classes/Longan.Polyline.md +314 -0
- package/docs/classes/Longan.Process.md +494 -0
- package/docs/classes/Longan.Property.md +253 -0
- package/docs/classes/Longan.PropertyComponent.md +146 -0
- package/docs/classes/Longan.ReferenceObject.md +833 -0
- package/docs/classes/Longan.RenderInstanceObject.md +187 -0
- package/docs/classes/Longan.RenderObject.md +620 -0
- package/docs/classes/Longan.RenderObjectState.md +363 -0
- package/docs/classes/Longan.RenderingOptions.md +1630 -0
- package/docs/classes/Longan.RoamPathObjectList.md +789 -0
- package/docs/classes/Longan.Segment.md +1372 -0
- package/docs/classes/Longan.SegmentViewObject.md +842 -0
- package/docs/classes/Longan.Selectability.md +398 -0
- package/docs/classes/Longan.SelectionKey.md +96 -0
- package/docs/classes/Longan.SelectionManager.md +295 -0
- package/docs/classes/Longan.Shader.md +526 -0
- package/docs/classes/Longan.Shell.md +511 -0
- package/docs/classes/Longan.Stack.md +185 -0
- package/docs/classes/Longan.StateItem.md +239 -0
- package/docs/classes/Longan.StatePack.md +256 -0
- package/docs/classes/Longan.StringKeyList.md +154 -0
- package/docs/classes/Longan.Style.md +116 -0
- package/docs/classes/Longan.StyleManagerBase.md +76 -0
- package/docs/classes/Longan.TaskExecuteState.md +328 -0
- package/docs/classes/Longan.TaskFinishState.md +328 -0
- package/docs/classes/Longan.TaskManager.md +382 -0
- package/docs/classes/Longan.TaskState.md +330 -0
- package/docs/classes/Longan.Text.md +199 -0
- package/docs/classes/Longan.Tolerance.md +92 -0
- package/docs/classes/Longan.TriangularShell.md +406 -0
- package/docs/classes/Longan.TypeHelper.md +38 -0
- package/docs/classes/Longan.Vector.md +231 -0
- package/docs/classes/Longan.ViewModel.md +301 -0
- package/docs/classes/Longan.ViewPointObjectList.md +789 -0
- package/docs/classes/Longan.Viewer.md +2836 -0
- package/docs/classes/Longan.ViewerManagerBase.md +55 -0
- package/docs/classes/Longan.ViewerOperator.md +623 -0
- package/docs/classes/Longan.Viewport.md +57 -0
- package/docs/classes/Longan.Visibility.md +458 -0
- package/docs/classes/Longan.Wcs.md +141 -0
- package/docs/classes/MapTileSet3D.md +1182 -0
- package/docs/classes/Material.md +363 -0
- package/docs/classes/Panel.md +174 -0
- package/docs/classes/ParameterManager.md +98 -0
- package/docs/classes/ParametricGeometryManager.md +131 -0
- package/docs/classes/Process.md +674 -0
- package/docs/classes/SDK.Model.md +166 -0
- package/docs/classes/SegmentObject.md +563 -0
- package/docs/classes/TerrainProvider.md +87 -0
- package/docs/classes/TreeNodeObject.md +439 -0
- package/docs/classes/Viewer.md +3761 -0
- package/docs/enums/CuttingCreateType.md +46 -0
- package/docs/enums/Longan.AlphaTextureBlendingType.md +24 -0
- package/docs/enums/Longan.CylinderCap.md +38 -0
- package/docs/enums/Longan.DynamicMemoryType.md +31 -0
- package/docs/enums/Longan.ImagePixelFormat.md +24 -0
- package/docs/enums/Longan.LonganCore.AreaSelectionType.md +24 -0
- package/docs/enums/Longan.LonganCore.CameraChangeType.md +31 -0
- package/docs/enums/Longan.LonganCore.CollisionType.md +53 -0
- package/docs/enums/Longan.LonganCore.CoordinateSystem.md +45 -0
- package/docs/enums/Longan.LonganCore.EdgeType.md +31 -0
- package/docs/enums/Longan.LonganCore.ElementType.md +52 -0
- package/docs/enums/Longan.LonganCore.FontUnitsType.md +45 -0
- package/docs/enums/Longan.LonganCore.GLTypes.md +80 -0
- package/docs/enums/Longan.LonganCore.LightingMode.md +59 -0
- package/docs/enums/Longan.LonganCore.ObjectType.md +262 -0
- package/docs/enums/Longan.LonganCore.TextAlignment.md +73 -0
- package/docs/enums/Longan.LonganCore.UpdateDisplayType.md +52 -0
- package/docs/enums/Longan.LonganCore.UpdateType.md +28 -0
- package/docs/enums/Longan.LonganCore.VertexType.md +31 -0
- package/docs/enums/Longan.LonganCore.ViewMode.md +215 -0
- package/docs/enums/Longan.ProjectionType.md +28 -0
- package/docs/enums/Longan.RollType.md +24 -0
- package/docs/enums/Longan.SelectabilityType.md +31 -0
- package/docs/enums/Longan.UvType.md +24 -0
- package/docs/enums/Longan.ViewportType.md +24 -0
- package/docs/enums/ModelStatus.md +85 -0
- package/docs/enums/PathType.md +22 -0
- package/docs/enums/ShowBorder.md +29 -0
- package/docs/enums/SkyboxType.md +36 -0
- package/docs/enums/ViewerType.md +22 -0
- package/docs/feature/README.md +104 -0
- package/docs/feature//346/223/215/344/275/234/345/231/250.md +66 -0
- package/docs/feature//346/236/204/344/273/266/345/256/232/344/275/215.md +180 -0
- package/docs/feature//346/236/204/344/273/266/346/220/234/347/264/242.md +178 -0
- package/docs/feature//346/236/204/344/273/266/346/230/276/347/244/272.md +187 -0
- package/docs/feature//346/236/204/344/273/266/351/232/224/347/246/273.md +125 -0
- package/docs/feature//346/250/241/345/236/213/345/211/226/345/210/207.md +7 -0
- package/docs/feature//346/250/241/345/236/213/345/257/274/345/205/245.md +81 -0
- package/docs/feature//346/250/241/345/236/213/347/273/223/346/236/204.md +217 -0
- package/docs/feature//350/267/257/345/276/204/346/274/253/346/270/270.md +7 -0
- package/docs/feature//350/277/233/345/272/246/346/250/241/346/213/237.md +8 -0
- package/docs/feature//351/242/234/350/211/262/350/256/276/347/275/256.md +112 -0
- package/docs/gs-bim-air.md +231 -0
- package/docs/guide/EasyStart.md +98 -0
- package/docs/interfaces/LoaderOptions.md +78 -0
- package/docs/interfaces/Model.md +113 -0
- package/docs/interfaces/SliceModelParam.md +29 -0
- package/docs/interfaces/ToolbarVisible.md +190 -0
- package/docs/interfaces/ViewerOptions.md +201 -0
- package/docs/modules/Animation.md +44 -0
- package/docs/modules/Command.md +14 -0
- package/docs/modules/Geometry.md +9 -0
- package/docs/modules/Longan.LonganCore.md +2653 -0
- package/docs/modules/Longan.md +153 -0
- package/docs/modules/SDK.md +9 -0
- package/docs/modules/Utility.md +60 -0
- package/docs/senior/README.md +9 -0
- package/docs/senior/TypeScript/346/224/257/346/214/201.md +13 -0
- package/docs/web/347/253/257//345/205/266/344/273/226-/344/272/213/344/273/266/347/233/221/345/220/254/357/274/210EventListener/357/274/211.md +139 -0
- package/docs/web/347/253/257//345/205/266/344/273/226-/346/235/220/350/264/250/357/274/210Material/357/274/211.md +350 -0
- package/docs/web/347/253/257//345/205/266/344/273/226-/346/236/204/344/273/266/351/200/211/346/213/251/345/231/250/357/274/210ComponentSelector/357/274/211.md +837 -0
- package/docs/web/347/253/257//345/205/266/344/273/226-/350/267/257/345/276/204/346/274/253/346/270/270/357/274/210PathRoam/357/274/211.md +186 -0
- package/docs/web/347/253/257//345/212/240/350/275/275-/347/233/270/346/234/272/357/274/210Camera/357/274/211.md +209 -0
- package/docs/web/347/253/257//345/212/240/350/275/275-/350/247/206/345/233/276/357/274/210Viewer/357/274/211.md +2272 -0
- package/docs/web/347/253/257//345/212/240/350/275/275-/350/247/206/347/202/271/351/235/242/346/235/277/357/274/210ViewPointPanel/357/274/211.md +394 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-UV/346/225/210/346/236/234/357/274/210UvEffect/357/274/211.md +95 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/345/210/206/346/256/265/346/237/223/350/211/262/357/274/210RegionLimit/357/274/211.md +72 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/345/217/257/350/247/206/346/200/247/345/210/206/346/236/220/357/274/210SightlineAnalysis/357/274/211.md +81 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/345/226/267/346/260/264/346/225/210/346/236/234/357/274/210SprayWaterEffect/357/274/211.md +70 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/345/233/264/345/242/231/357/274/210WallScan/357/274/211.md +64 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/345/241/253/346/214/226/346/226/271/345/210/206/346/236/220/357/274/210CutFillAnalysis/357/274/211.md +75 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/345/244/251/347/251/272/347/233/222/357/274/210Skybox/357/274/211.md +82 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/346/211/207/345/275/242/346/211/253/346/217/217/357/274/210FanScan/357/274/211.md +65 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/346/216/247/351/253/230/345/210/206/346/236/220/357/274/210HeightLimit/357/274/211.md +63 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/346/260/264/351/235/242/346/225/210/346/236/234/357/274/210WaterEffect/357/274/211.md +63 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/346/261/275/351/233/276/346/225/210/346/236/234/357/274/210SteamEffect/357/274/211.md +70 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/347/203/255/345/212/233/345/233/276/357/274/210HeatMap/357/274/211.md +64 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/347/253/213/344/275/223/351/224/232/347/202/271/357/274/210Anchor/357/274/211.md +100 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/350/201/232/345/205/211/347/201/257/357/274/210SpotLight/357/274/211.md +66 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/350/267/257/345/276/204/346/225/210/346/236/234/357/274/210PathEffect/357/274/211.md +108 -0
- package/docs/web/347/253/257//345/212/250/347/224/273-/351/233/252/345/244/251/357/274/210SnowEffect/357/274/211.md +60 -0
- package/docs/web/347/253/257//345/257/271/350/261/241-/346/240/221/350/212/202/347/202/271/345/257/271/350/261/241/357/274/210TreeNodeObject/357/274/211.md +353 -0
- package/docs/web/347/253/257//345/257/271/350/261/241-/346/250/241/345/236/213/350/212/202/347/202/271/345/257/271/350/261/241/357/274/210segmentObject/357/274/211.md +450 -0
- package/docs/web/347/253/257//345/257/271/350/261/241-/350/275/273/351/207/217/345/214/226/346/250/241/345/236/213/357/274/210lightModel/357/274/211.md +641 -0
- package/docs/web/347/253/257//345/257/271/350/261/241-/351/222/273/345/255/224/347/273/204/345/257/271/350/261/241/357/274/210BoreholeObjects/357/274/211.md +439 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/344/270/264/346/227/266/345/257/271/350/261/241/347/256/241/347/220/206/345/231/250/357/274/210TemporaryObjectManager/357/274/211.md +208 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/345/212/250/347/224/273/347/256/241/347/220/206/345/231/250/357/274/210AnimationManager/357/274/211.md +370 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/345/217/202/346/225/260/345/214/226/345/207/240/344/275/225/347/256/241/347/220/206/345/231/250/357/274/210ParametricGeometryManager/357/274/211.md +92 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/345/217/202/346/225/260/347/256/241/347/220/206/345/231/250/357/274/210ParameterManager/357/274/211.md +58 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/345/217/257/350/247/206/346/200/247/347/256/241/347/220/206/345/231/250/357/274/210InvisibleManager/357/274/211.md +149 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/345/261/236/346/200/247/347/256/241/347/220/206/345/231/250/357/274/210PropertyManager/357/274/211.md +153 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/346/235/220/350/264/250/347/256/241/347/220/206/345/231/250/357/274/210MaterialManager/357/274/211.md +131 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/346/236/204/344/273/266/347/256/241/347/220/206/345/231/250/357/274/210ComponentManager/357/274/211.md +56 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/347/273/223/346/236/204/346/240/221/347/256/241/347/220/206/345/231/250/357/274/210StructureTreeManager/357/274/211.md +157 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/351/200/211/346/213/251/347/256/241/347/220/206/345/231/250/357/274/210SelectionManager/357/274/211.md +191 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/351/232/224/347/246/273/347/256/241/347/220/206/345/231/250/357/274/210IsolationManager/357/274/211.md +147 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/351/235/242/346/235/277/347/256/241/347/220/206/345/231/250/357/274/210PanelManager/357/274/211.md +71 -0
- package/docs/web/347/253/257//347/256/241/347/220/206/345/231/250-/351/253/230/344/272/256/347/256/241/347/220/206/345/231/250/357/274/210HighlightManager/357/274/211.md +127 -0
- package/docs/web/347/253/257//351/205/215/347/275/256-/345/212/240/350/275/275/351/200/211/351/241/271/357/274/210LoaderOptions/357/274/211.md +57 -0
- package/docs/web/347/253/257//351/205/215/347/275/256-/346/230/276/347/244/272/350/276/271/346/241/206/357/274/210ShowBorder/357/274/211.md +32 -0
- package/docs/web/347/253/257//351/205/215/347/275/256-/350/247/206/345/233/276/351/200/211/351/241/271/357/274/210viewerOptions/357/274/211.md +144 -0
- package/docs//345/212/240/350/275/275/346/230/276/347/244/272/346/250/241/345/236/213.md +99 -0
- package/docs//345/277/253/351/200/237/344/270/212/346/211/213.md +139 -0
- package/docs//346/250/241/345/236/213/344/272/244/344/272/222//344/272/213/344/273/266/347/233/221/345/220/254.md +70 -0
- package/docs//346/250/241/345/236/213/344/272/244/344/272/222//350/247/206/345/233/276/350/256/276/347/275/256.md +25 -0
- package/docs//346/250/241/345/236/213/344/272/244/344/272/222//351/200/211/346/213/251/347/256/241/347/220/206/345/231/250.md +42 -0
- package/docs//347/256/200/344/273/213.md +41 -0
- package/docs//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/345/256/232/344/275/215/343/200/201/345/261/236/346/200/247/346/230/276/347/244/272.md +27 -0
- package/docs//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/346/240/267/345/274/217/350/256/276/347/275/256.md +74 -0
- package/docs//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//346/236/204/344/273/266/351/232/220/350/227/217/343/200/201/351/232/224/347/246/273/343/200/201/351/253/230/344/272/256.md +83 -0
- package/docs//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//347/273/223/346/236/204/346/240/221.md +6 -0
- package/docs//351/205/215/347/275/256/LoaderOptions.md +29 -0
- package/docs//351/205/215/347/275/256/Options.md +177 -0
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +3204 -942
- package/lib/BimAir.css +43 -3
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +3204 -942
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +3204 -942
- package/package.json +1 -1
- package/bimAir.rar +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# 构件搜索
|
|
2
|
+
在模型场景中可以获取所有构件的列表,也可以使用名字和ID对构件进行搜索。
|
|
3
|
+
|
|
4
|
+
## 获取构件列表
|
|
5
|
+
可以通过轻量模型提供的函数获取所有构件的列表。
|
|
6
|
+
```js
|
|
7
|
+
let lightModel = viewModel.findObjectByType("LightModel");
|
|
8
|
+
lightModel.modelLoaded.add(function (model) {
|
|
9
|
+
// 构件列表获取一般在模型导入后进行,通过LightModel的modelLoaded事件来完成
|
|
10
|
+
let components = lightModel.getComponentList();
|
|
11
|
+
})
|
|
12
|
+
```
|
|
13
|
+
getComponentList获取所有控件的列表,列表项返回控件的key,id和name。
|
|
14
|
+
|
|
15
|
+
## 控件搜索
|
|
16
|
+
可以通过轻量模型提供的函数获进行构件搜索。
|
|
17
|
+
```js
|
|
18
|
+
let component = model.findComponentById(id);
|
|
19
|
+
```
|
|
20
|
+
findComponentById通过构件的id进行构件搜索,并返回构件信息。
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
let component = model.findComponentByName(name);
|
|
24
|
+
```
|
|
25
|
+
findComponentByName通过构件的name进行构件搜索,并返回构件信息。
|
|
26
|
+
|
|
27
|
+
## 实例HTML下载
|
|
28
|
+
|
|
29
|
+
可直接<a :href="$withBase('/demo/构件搜索.html')" target="_blank"><b>预览构件搜索实例</b></a>
|
|
30
|
+
|
|
31
|
+
或者复制以下代码保存成html格式打开实例
|
|
32
|
+
```html
|
|
33
|
+
<!DOCTYPE html>
|
|
34
|
+
<html>
|
|
35
|
+
|
|
36
|
+
<head>
|
|
37
|
+
<meta charset="UTF-8">
|
|
38
|
+
<title>构件搜索实例</title>
|
|
39
|
+
|
|
40
|
+
<script src="http://120.78.129.125:8111/js/jquery.js"></script>
|
|
41
|
+
<script src="http://120.78.129.125:8111/js/gs.dev.js"></script>
|
|
42
|
+
<script src="http://120.78.129.125:8111/js/longan/longan.js"></script>
|
|
43
|
+
<style>
|
|
44
|
+
.search-box {
|
|
45
|
+
color: #46CFB0;
|
|
46
|
+
margin: auto auto;
|
|
47
|
+
padding: 10px;
|
|
48
|
+
position: absolute;
|
|
49
|
+
left: 20px;
|
|
50
|
+
top: 20px;
|
|
51
|
+
background-color: #2C3E50;
|
|
52
|
+
min-width: 300px;
|
|
53
|
+
min-height: 50px;
|
|
54
|
+
border-radius: 5px;
|
|
55
|
+
box-shadow: 0 0 10px #555;
|
|
56
|
+
overflow: auto;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.component-box {
|
|
60
|
+
color: #46CFB0;
|
|
61
|
+
margin: auto auto;
|
|
62
|
+
padding: 10px;
|
|
63
|
+
position: absolute;
|
|
64
|
+
right: 20px;
|
|
65
|
+
top: 20px;
|
|
66
|
+
background-color: #2C3E50;
|
|
67
|
+
min-width: 300px;
|
|
68
|
+
max-height: 95vh;
|
|
69
|
+
min-height: 50px;
|
|
70
|
+
border-radius: 5px;
|
|
71
|
+
box-shadow: 0 0 10px #555;
|
|
72
|
+
overflow: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.component-box .title {
|
|
76
|
+
font-weight: bold;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.component-box li {
|
|
80
|
+
list-style: none;
|
|
81
|
+
font-size: 13px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
li .name,
|
|
85
|
+
.value {
|
|
86
|
+
min-width: 50px;
|
|
87
|
+
display: inline-block;
|
|
88
|
+
/* padding: 0 5px; */
|
|
89
|
+
}
|
|
90
|
+
</style>
|
|
91
|
+
</head>
|
|
92
|
+
|
|
93
|
+
<body style="margin:0px">
|
|
94
|
+
<div>
|
|
95
|
+
<div id="viewer">
|
|
96
|
+
</div>
|
|
97
|
+
<div class="search-box">
|
|
98
|
+
<div class="search">
|
|
99
|
+
<input type="text" placeholder="请输入构件id" name="" id="searchId" value="" />
|
|
100
|
+
<button onclick="searchClick('id')"><i>id搜索构件</i></button>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="search">
|
|
103
|
+
<input type="text" placeholder="请输入构件name" name="" id="searchName" value="" />
|
|
104
|
+
<button onclick="searchClick('name')"><i>name搜索构件</i></button>
|
|
105
|
+
</div>
|
|
106
|
+
<div>屋顶id和name均为243274</div>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="component-box">
|
|
109
|
+
<div class="title">构件列表:</div>
|
|
110
|
+
<div class="component-list"></div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<script type="text/javascript">
|
|
115
|
+
let viewModel;
|
|
116
|
+
let viewer;
|
|
117
|
+
GraStoneCloud.DevModule.onReady = function () {
|
|
118
|
+
$("#viewer").css("height", window.innerHeight);
|
|
119
|
+
|
|
120
|
+
$(window).resize(function () {
|
|
121
|
+
$("#viewer").css("height", window.innerHeight);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
viewer = new GraStoneCloud.DevFx.Viewer("viewer");
|
|
125
|
+
viewer.backgroundColor([0.9, 0.9, 0.9]);
|
|
126
|
+
|
|
127
|
+
viewModel = new GraStoneCloud.DevFx.ViewModel();
|
|
128
|
+
|
|
129
|
+
viewModel.viewer(viewer);
|
|
130
|
+
viewModel.modelServiceHost("120.78.129.125:8111");
|
|
131
|
+
|
|
132
|
+
viewModel.loadModelByPath("3f67fd8baf95428fb25b845909d1c738", "demo.mca");
|
|
133
|
+
|
|
134
|
+
viewer.setViewMode(Longan.ViewMode.Iso, true);
|
|
135
|
+
viewer.updateDisplay();
|
|
136
|
+
|
|
137
|
+
viewer.operatorManager.add(new GraStoneCloud.DevFx.CameraMouse());
|
|
138
|
+
|
|
139
|
+
let lightModel = viewModel.findObjectByType("LightModel");
|
|
140
|
+
lightModel.modelLoaded.add(function (model) {
|
|
141
|
+
let components = lightModel.getComponentList();
|
|
142
|
+
|
|
143
|
+
$('.component-list').empty();
|
|
144
|
+
let componentList = "";
|
|
145
|
+
for (var item of components) {
|
|
146
|
+
componentList += '<li>'
|
|
147
|
+
+ '<div class="name" style="min-width:40px">key:</div><div class="value">' + item.key + '</div>'
|
|
148
|
+
+ '<div class="name" style="min-width:30px">id:</div><div class="value" style="min-width:60px">' + item.id + '</div>'
|
|
149
|
+
+ '<div class="name">name:</div><div class="value">' + item.name + '</div>'
|
|
150
|
+
+ '</li>';
|
|
151
|
+
}
|
|
152
|
+
$('.component-list').append(componentList);
|
|
153
|
+
console.log(components)
|
|
154
|
+
})
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function searchClick(prop) {
|
|
158
|
+
let model = viewModel.findObjectByType("LightModel");
|
|
159
|
+
let component;
|
|
160
|
+
let value;
|
|
161
|
+
if (prop === "id") {
|
|
162
|
+
value = $("#searchId").val()
|
|
163
|
+
component = model.findComponentById(value);
|
|
164
|
+
} else if (prop === "name") {
|
|
165
|
+
value = $("#searchName").value
|
|
166
|
+
component = model.findComponentByName(value);
|
|
167
|
+
}
|
|
168
|
+
console.log("prop", prop, model, value)
|
|
169
|
+
|
|
170
|
+
model.setComponentColor(value, 0, 0, 200, 125);
|
|
171
|
+
viewer.updateDisplay();
|
|
172
|
+
}
|
|
173
|
+
</script>
|
|
174
|
+
|
|
175
|
+
</body>
|
|
176
|
+
|
|
177
|
+
</html>
|
|
178
|
+
```
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# 构件显示
|
|
2
|
+
可通过构件的id去改变构件的颜色位置等凸显构件的显示效果
|
|
3
|
+
|
|
4
|
+
## 构件变色
|
|
5
|
+
通过setComponentColor使构件变色,
|
|
6
|
+
接口传入构件id,和4个分别对应**r,g,b,a**的参数,其中**r,g,b**接受0-255的整数,**a**接受0-1的浮点数
|
|
7
|
+
构件更改颜色后需要updateDisplay来更新Viewer才可以显示更改后的样式
|
|
8
|
+
```js
|
|
9
|
+
model.setComponentColor(id, 0, 138, 255, 0.8); // 构件变色
|
|
10
|
+
viewer.updateDisplay(); // 构件变色必须更新Viewer才能显示
|
|
11
|
+
```
|
|
12
|
+
可通过以下接口取消变色
|
|
13
|
+
```js
|
|
14
|
+
model.unsetComponentColor(id); // 取消构件变色
|
|
15
|
+
viewer.updateDisplay(); //同样需要更新Viewer
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 构件闪烁
|
|
19
|
+
通过setComponentFlash使构件在两个颜色间变化闪烁
|
|
20
|
+
接口传入构件id,并传入两个长度为4的颜色数组,数组对应格式是[**r,g,b,a**],其中**r,g,b**接受0-255的整数,**a**接受0-1的浮点数
|
|
21
|
+
```js
|
|
22
|
+
model.setComponentFlash(id, [255, 0, 0, 1], [255, 255, 0, 1]); // 构件闪烁
|
|
23
|
+
```
|
|
24
|
+
可通过以下接口取消闪烁
|
|
25
|
+
```js
|
|
26
|
+
model.unsetComponentFlash(id); // 取消构件闪烁
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 构件反向高亮
|
|
30
|
+
通过setComponentReverseHighlight使除此构件外的其他构件变色高亮,
|
|
31
|
+
接口传入构件id,和4个分别对应**r,g,b,a**的参数,其中**r,g,b**接受0-255的整数,**a**接受0-1的浮点数
|
|
32
|
+
```js
|
|
33
|
+
model.setComponentReverseHighlight(id, 0, 138, 255, 0.4); // 反向高亮
|
|
34
|
+
viewer.updateDisplay(); // 构件反向高亮必须更新Viewer才能显示
|
|
35
|
+
```
|
|
36
|
+
可通过以下接口取消反向高亮
|
|
37
|
+
```js
|
|
38
|
+
model.unsetComponentReverseHighlight(id); // 取消反向高亮
|
|
39
|
+
viewer.updateDisplay(); // 构件反向高亮必须更新Viewer才能显示
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 构件浮起
|
|
43
|
+
通过setComponentFloat接口传入构件id,该构件即可上浮到视野最前方,通常搭配构件变色或构件闪烁使用。
|
|
44
|
+
```js
|
|
45
|
+
model.setComponentFloat(id); // 构件浮起
|
|
46
|
+
```
|
|
47
|
+
可通过以下接口取消浮起
|
|
48
|
+
```js
|
|
49
|
+
model.unsetComponentFloat(id); // 取消构件浮起
|
|
50
|
+
```
|
|
51
|
+
:::tip
|
|
52
|
+
若需要搭配构件变色或构件闪烁使用,setComponentFloat需要写在setComponentColor,setComponentFlash后面
|
|
53
|
+
:::
|
|
54
|
+
|
|
55
|
+
## 实例HTML下载
|
|
56
|
+
|
|
57
|
+
可直接<a :href="$withBase('/demo/构件显示.html')" target="_blank"><b>预览构件显示实例</b></a>
|
|
58
|
+
|
|
59
|
+
或者复制以下代码保存成html格式打开实例
|
|
60
|
+
```html
|
|
61
|
+
<!DOCTYPE html>
|
|
62
|
+
<html>
|
|
63
|
+
|
|
64
|
+
<head>
|
|
65
|
+
<meta charset="UTF-8">
|
|
66
|
+
<title>构件显示实例</title>
|
|
67
|
+
|
|
68
|
+
<script src="http://120.78.129.125:8111/js/jquery.js"></script>
|
|
69
|
+
<script src="http://120.78.129.125:8111/js/gs.dev.js"></script>
|
|
70
|
+
<script src="http://120.78.129.125:8111/js/longan/longan.js"></script>
|
|
71
|
+
<style>
|
|
72
|
+
.search-box {
|
|
73
|
+
color: #46CFB0;
|
|
74
|
+
margin: auto auto;
|
|
75
|
+
padding: 10px;
|
|
76
|
+
position: absolute;
|
|
77
|
+
left: 20px;
|
|
78
|
+
top: 20px;
|
|
79
|
+
background-color: #2C3E50;
|
|
80
|
+
min-width: 300px;
|
|
81
|
+
min-height: 50px;
|
|
82
|
+
border-radius: 5px;
|
|
83
|
+
box-shadow: 0 0 10px #555;
|
|
84
|
+
overflow: auto;
|
|
85
|
+
}
|
|
86
|
+
</style>
|
|
87
|
+
</head>
|
|
88
|
+
|
|
89
|
+
<body style="margin:0px">
|
|
90
|
+
<div>
|
|
91
|
+
<div id="viewer">
|
|
92
|
+
</div>
|
|
93
|
+
<div class="search-box">
|
|
94
|
+
<div class="search">
|
|
95
|
+
<button onclick="searchClick(1)"><i>高亮</i></button>
|
|
96
|
+
<button onclick="searchClick(2)"><i>闪烁</i></button>
|
|
97
|
+
<button onclick="searchClick(3)"><i>高亮浮起</i></button>
|
|
98
|
+
<button onclick="searchClick(4)"><i>闪烁浮起</i></button>
|
|
99
|
+
<button onclick="searchClick(5)"><i>反向高亮</i></button>
|
|
100
|
+
<button onclick="searchClick(6)"><i>反向高亮浮起</i></button>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<script type="text/javascript">
|
|
107
|
+
let viewModel;
|
|
108
|
+
let viewer;
|
|
109
|
+
GraStoneCloud.DevModule.onReady = function () {
|
|
110
|
+
$("#viewer").css("height", window.innerHeight);
|
|
111
|
+
|
|
112
|
+
$(window).resize(function () {
|
|
113
|
+
$("#viewer").css("height", window.innerHeight);
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
viewer = new GraStoneCloud.DevFx.Viewer("viewer");
|
|
117
|
+
viewer.backgroundColor([0.9, 0.9, 0.9]);
|
|
118
|
+
|
|
119
|
+
viewModel = new GraStoneCloud.DevFx.ViewModel();
|
|
120
|
+
|
|
121
|
+
viewModel.viewer(viewer);
|
|
122
|
+
viewModel.modelServiceHost("120.78.129.125:8111");
|
|
123
|
+
|
|
124
|
+
viewModel.loadModelByPath("3f67fd8baf95428fb25b845909d1c738", "demo.mca");
|
|
125
|
+
|
|
126
|
+
viewer.setViewMode(Longan.ViewMode.Iso, true);
|
|
127
|
+
viewer.updateDisplay();
|
|
128
|
+
|
|
129
|
+
viewer.operatorManager.add(new GraStoneCloud.DevFx.CameraMouse());
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function searchClick(type) {
|
|
133
|
+
let model = viewModel.findObjectByType("LightModel");
|
|
134
|
+
|
|
135
|
+
if (model != null) {
|
|
136
|
+
let idArray = ["990645", "990620", "990646", "990621", "990647", "990648", "990317", "990596", "989344", "989521",]
|
|
137
|
+
let ids = [];
|
|
138
|
+
for (let item of idArray) {
|
|
139
|
+
let component = model.findComponentById(item);
|
|
140
|
+
let a = model.getComponentIdsByKey(component.key)
|
|
141
|
+
ids.push(...a); // 获取构件下的所有子构件id列表
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
for (let i = 0; i < ids.length; i++) {
|
|
146
|
+
model.unsetComponentFloat(ids[i]); // 取消构件浮起
|
|
147
|
+
model.unsetComponentColor(ids[i]); // 取消构件变色
|
|
148
|
+
model.unsetComponentFlash(ids[i]); // 取消构件闪烁
|
|
149
|
+
model.unsetComponentReverseHighlight(ids[i]); // 取消反向高亮
|
|
150
|
+
viewer.updateDisplay();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
for (let i = 0; i < ids.length; i++) {
|
|
154
|
+
if (type === 1) {
|
|
155
|
+
model.setComponentColor(ids[i], 0, 138, 255, 0.8); // 构件变色
|
|
156
|
+
viewer.updateDisplay(); // 构件变色必须更新Viewer才能显示
|
|
157
|
+
}
|
|
158
|
+
else if (type === 2) {
|
|
159
|
+
model.setComponentFlash(ids[i], [255, 0, 0, 1], [255, 255, 0, 1]); // 构件闪烁
|
|
160
|
+
}
|
|
161
|
+
else if (type === 3) {
|
|
162
|
+
model.setComponentColor(ids[i], 0, 138, 255, 0.8);
|
|
163
|
+
model.setComponentFloat(ids[i]); // 构件浮起
|
|
164
|
+
viewer.updateDisplay();
|
|
165
|
+
}
|
|
166
|
+
else if (type === 4) {
|
|
167
|
+
model.setComponentFlash(ids[i], [255, 0, 0, 1], [255, 255, 0, 1]);
|
|
168
|
+
model.setComponentFloat(ids[i]);
|
|
169
|
+
}
|
|
170
|
+
else if (type === 5) {
|
|
171
|
+
model.setComponentReverseHighlight(ids[i], 0, 138, 255, 0.4); // 构件反向高亮
|
|
172
|
+
viewer.updateDisplay();
|
|
173
|
+
}
|
|
174
|
+
else if (type === 6) {
|
|
175
|
+
model.setComponentReverseHighlight(ids[i], 0, 138, 255, 0.4);
|
|
176
|
+
model.setComponentFloat(ids[i]);
|
|
177
|
+
viewer.updateDisplay();
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
</script>
|
|
183
|
+
|
|
184
|
+
</body>
|
|
185
|
+
|
|
186
|
+
</html>
|
|
187
|
+
```
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# 构件隔离
|
|
2
|
+
传入构件id,可使此构件以外的所有构件半透明并禁止被选中
|
|
3
|
+
|
|
4
|
+
## 具体实现
|
|
5
|
+
通过setComponentIsolation接口传入构件id,使此构件以外的所有构件半透明并禁止被选中
|
|
6
|
+
```js
|
|
7
|
+
model.setComponentIsolation(id);
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
可通过以下接口取消构件隔离
|
|
11
|
+
```js
|
|
12
|
+
model.unsetComponentIsolation(id); // 取消构件隔离
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## 实例HTML下载
|
|
17
|
+
|
|
18
|
+
可直接<a :href="$withBase('/demo/构件隔离.html')" target="_blank"><b>预览构件隔离实例</b></a>
|
|
19
|
+
|
|
20
|
+
或者复制以下代码保存成html格式打开实例
|
|
21
|
+
```html
|
|
22
|
+
<!DOCTYPE html>
|
|
23
|
+
<html>
|
|
24
|
+
|
|
25
|
+
<head>
|
|
26
|
+
<meta charset="UTF-8">
|
|
27
|
+
<title>构件显示实例</title>
|
|
28
|
+
|
|
29
|
+
<script src="http://120.78.129.125:8111/js/jquery.js"></script>
|
|
30
|
+
<script src="http://120.78.129.125:8111/js/gs.dev.js"></script>
|
|
31
|
+
<script src="http://120.78.129.125:8111/js/longan/longan.js"></script>
|
|
32
|
+
<style>
|
|
33
|
+
.search-box {
|
|
34
|
+
color: #46CFB0;
|
|
35
|
+
margin: auto auto;
|
|
36
|
+
padding: 10px;
|
|
37
|
+
position: absolute;
|
|
38
|
+
left: 20px;
|
|
39
|
+
top: 20px;
|
|
40
|
+
background-color: #2C3E50;
|
|
41
|
+
min-width: 300px;
|
|
42
|
+
min-height: 50px;
|
|
43
|
+
border-radius: 5px;
|
|
44
|
+
box-shadow: 0 0 10px #555;
|
|
45
|
+
overflow: auto;
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
48
|
+
</head>
|
|
49
|
+
|
|
50
|
+
<body style="margin:0px">
|
|
51
|
+
<div>
|
|
52
|
+
<div id="viewer">
|
|
53
|
+
</div>
|
|
54
|
+
<div class="search-box">
|
|
55
|
+
<div class="search">
|
|
56
|
+
<button onclick="searchClick(1)">构件隔离</button>
|
|
57
|
+
<button onclick="searchClick(2)">取消构件隔离</button>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<script type="text/javascript">
|
|
64
|
+
let viewModel;
|
|
65
|
+
let viewer;
|
|
66
|
+
GraStoneCloud.DevModule.onReady = function () {
|
|
67
|
+
$("#viewer").css("height", window.innerHeight);
|
|
68
|
+
|
|
69
|
+
$(window).resize(function () {
|
|
70
|
+
$("#viewer").css("height", window.innerHeight);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
viewer = new GraStoneCloud.DevFx.Viewer("viewer");
|
|
74
|
+
viewer.backgroundColor([0.9, 0.9, 0.9]);
|
|
75
|
+
|
|
76
|
+
viewModel = new GraStoneCloud.DevFx.ViewModel();
|
|
77
|
+
|
|
78
|
+
viewModel.viewer(viewer);
|
|
79
|
+
viewModel.modelServiceHost("120.78.129.125:8111");
|
|
80
|
+
|
|
81
|
+
viewModel.loadModelByPath("3f67fd8baf95428fb25b845909d1c738", "demo.mca");
|
|
82
|
+
|
|
83
|
+
viewer.setViewMode(Longan.ViewMode.Iso, true);
|
|
84
|
+
viewer.updateDisplay();
|
|
85
|
+
|
|
86
|
+
viewer.operatorManager.add(new GraStoneCloud.DevFx.CameraMouse());
|
|
87
|
+
|
|
88
|
+
let objectSelector = new GraStoneCloud.DevFx.ObjectSelector();
|
|
89
|
+
viewer.operatorManager.add(objectSelector);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function searchClick(type) {
|
|
93
|
+
let model = viewModel.findObjectByType("LightModel");
|
|
94
|
+
|
|
95
|
+
if (model != null) {
|
|
96
|
+
let idArray = ["990645", "990620", "990646", "990621", "990647", "990648", "990317", "990596", "989344", "989521",]
|
|
97
|
+
let ids = [];
|
|
98
|
+
for (let item of idArray) {
|
|
99
|
+
let component = model.findComponentById(item);
|
|
100
|
+
let a = model.getComponentIdsByKey(component.key)
|
|
101
|
+
ids.push(...a); // 获取构件下的所有子构件id列表
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
for (let i = 0; i < ids.length; i++) {
|
|
105
|
+
if (type === 1) {
|
|
106
|
+
model.setComponentReverseHighlight(ids[i], 0, 138, 255, 0.4);
|
|
107
|
+
model.setComponentFloat(ids[i]);
|
|
108
|
+
model.setComponentIsolation(ids[i]);
|
|
109
|
+
viewer.updateDisplay();
|
|
110
|
+
}
|
|
111
|
+
else if (type === 2) {
|
|
112
|
+
model.unsetComponentReverseHighlight(ids[i]);
|
|
113
|
+
model.unsetComponentFloat(ids[i]);
|
|
114
|
+
model.unsetComponentIsolation(ids[i]);
|
|
115
|
+
viewer.updateDisplay();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
</script>
|
|
121
|
+
|
|
122
|
+
</body>
|
|
123
|
+
|
|
124
|
+
</html>
|
|
125
|
+
```
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# 模型导入
|
|
2
|
+
轻量化云平台模型可以通过模型在Model Cloud里的名字或ID进行导入。
|
|
3
|
+
|
|
4
|
+
## 创建ViewModel
|
|
5
|
+
ViewModel是视图和模型的桥梁对象,通过它可以进行模型相关的操作。
|
|
6
|
+
```js
|
|
7
|
+
let viewModel = new GraStoneCloud.DevFx.ViewModel();
|
|
8
|
+
viewModel.viewer(viewer);
|
|
9
|
+
viewModel.modelServiceHost("120.78.129.125:8111");
|
|
10
|
+
```
|
|
11
|
+
ViewModel中的viewer函数是把当前的Viewer控件和ViewModel绑定。
|
|
12
|
+
ViewModel中的modelServiceHost属性是设置Model Cloud模型云服务地址的,云服务提供模型导入的相关服务。
|
|
13
|
+
|
|
14
|
+
## 导入模型。
|
|
15
|
+
通过ViewModel的loadModelByPath函数可以导入模型。
|
|
16
|
+
```js
|
|
17
|
+
viewModel.loadModelByPath("3f67fd8baf95428fb25b845909d1c738", "demo.mca");
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
其中loadModelByPath有两个参数,分别是UserId和FileName,
|
|
21
|
+
UserId是Model Cloud云服务的用户名,
|
|
22
|
+
FileName是存放在Model Cloud里的文件名,文件名必须是全路径文件名。
|
|
23
|
+
|
|
24
|
+
## 等轴居中模型
|
|
25
|
+
通过调用Viewer的setViewMode函数可以对场景进行视图设置。
|
|
26
|
+
```js
|
|
27
|
+
viewer.setViewMode(Longan.ViewMode.Iso, true);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
其中第一个参数是视图的设置类型,等轴设置是Longan.ViewMode.Iso,设置的详细说明请查看[setViewMode的API文档](/feature/视图设置.md)。
|
|
31
|
+
第二个参数是对视图进行设置时是否进行Fit World操作,也就是把模型居中显示。
|
|
32
|
+
|
|
33
|
+
## 实例HTML下载
|
|
34
|
+
|
|
35
|
+
可直接<a :href="$withBase('/demo/模型导入.html')" target="_blank"><b>预览模型导入实例</b></a>
|
|
36
|
+
|
|
37
|
+
或者复制以下代码保存成html格式打开实例
|
|
38
|
+
```html
|
|
39
|
+
<!DOCTYPE html>
|
|
40
|
+
<html>
|
|
41
|
+
<head>
|
|
42
|
+
<meta charset="UTF-8">
|
|
43
|
+
<title>首页</title>
|
|
44
|
+
|
|
45
|
+
<script src="http://120.78.129.125:8111/js/jquery.js"></script>
|
|
46
|
+
<script src="http://120.78.129.125:8111/js/gs.dev.js"></script>
|
|
47
|
+
<script src="http://120.78.129.125:8111/js/longan/longan.js"></script>
|
|
48
|
+
|
|
49
|
+
</head>
|
|
50
|
+
<body style="margin:0px">
|
|
51
|
+
<div>
|
|
52
|
+
<div id="viewer">
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<script type="text/javascript">
|
|
57
|
+
GraStoneCloud.DevModule.onReady = function () {
|
|
58
|
+
$("#viewer").css("height", window.innerHeight);
|
|
59
|
+
|
|
60
|
+
$(window).resize(function () {
|
|
61
|
+
$("#viewer").css("height", window.innerHeight);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
let viewer = new GraStoneCloud.DevFx.Viewer("viewer");
|
|
65
|
+
viewer.backgroundColor([0.9, 0.9, 0.9]);
|
|
66
|
+
|
|
67
|
+
let viewModel = new GraStoneCloud.DevFx.ViewModel();
|
|
68
|
+
|
|
69
|
+
viewModel.viewer(viewer);
|
|
70
|
+
viewModel.modelServiceHost("120.78.129.125:8111");
|
|
71
|
+
|
|
72
|
+
viewModel.loadModelByPath("3f67fd8baf95428fb25b845909d1c738", "demo.mca");
|
|
73
|
+
|
|
74
|
+
viewer.setViewMode(Longan.ViewMode.Iso, true);
|
|
75
|
+
viewer.updateDisplay();
|
|
76
|
+
}
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
</body>
|
|
80
|
+
</html>
|
|
81
|
+
```
|