@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,217 @@
|
|
|
1
|
+
# 模型结构
|
|
2
|
+
轻量化模型数据以树状结构进行组织。
|
|
3
|
+
|
|
4
|
+
## 树状结构
|
|
5
|
+
轻量化模型由模型节点组成,子模型节点可以包含多个子模型节点,子模型节点可以继续包含子模型节点,可以一直递归下去。
|
|
6
|
+
|
|
7
|
+
```mermaid
|
|
8
|
+
graph TD
|
|
9
|
+
n(Node) --> n1(Child Node)
|
|
10
|
+
n(Node) --> n2(Child Node)
|
|
11
|
+
n(Node) --> n3(Child Node)
|
|
12
|
+
|
|
13
|
+
n1--> n4(Child Node)
|
|
14
|
+
n1 --> n5(Child Node)
|
|
15
|
+
n1 --> n6(Child Node)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## 节点结构
|
|
20
|
+
一个节点有三部分组成,分别是属性,几何和子节点。
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
```mermaid
|
|
24
|
+
graph LR
|
|
25
|
+
n(Node) --> n1(Attributes)
|
|
26
|
+
n(Node) --> n2(Geometry)
|
|
27
|
+
n(Node) --> n3(Child Nodes)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
属性(Attributes),是指保存在该节点的各种属性,其中比较重要的是标识这个节点的属性分别是:
|
|
32
|
+
Key:这个模型节点的键值,唯一标识这个节点;
|
|
33
|
+
Name:这个模型节点的名字。
|
|
34
|
+
其它更多的属性信息请参考API文档。
|
|
35
|
+
|
|
36
|
+
几何(Geometry),指需要进行绘制的几何,这些几何可能是一个,或多个,其它更详细信息请参考API文档。
|
|
37
|
+
|
|
38
|
+
子节点(Child Nodes),指该节点所包含的子节点。
|
|
39
|
+
|
|
40
|
+
## 构件节点
|
|
41
|
+
由于构件是按照树状结构进行组织的,因此模型里的构件(Component)其实是一个节点(Node)。
|
|
42
|
+
|
|
43
|
+
```mermaid
|
|
44
|
+
graph TD
|
|
45
|
+
n("第一层(Node)") --> n1("门(Node)")
|
|
46
|
+
n --> n2(Child Node)
|
|
47
|
+
n --> n3(......)
|
|
48
|
+
|
|
49
|
+
n1--> n4("门实例1(Component Node)")
|
|
50
|
+
n1 --> n5(Component Node)
|
|
51
|
+
n1 --> n6(......)
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## 获取模型结构
|
|
56
|
+
要获取模型结构,先要获取该模型的轻量化模型对象。
|
|
57
|
+
```js
|
|
58
|
+
let lightModel = viewModel.findObjectByType("LightModel");
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
ViewModel的findObjectByType是根据绘制对象的类型获取绘制对象,LightModel是默认的轻量化对象。也可以通过findObjectByName函数进行模型的查找,详细请查看API文档。
|
|
62
|
+
|
|
63
|
+
获取具体模型结构。
|
|
64
|
+
```js
|
|
65
|
+
let modelStructure = model.getStructure();
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
modelStructure是一个树状结构,其中每个节点对象包含 key,name和childNodes三个属性:
|
|
69
|
+
key是节点的键值,
|
|
70
|
+
name是节点的名字,
|
|
71
|
+
childNodes是子节点数组。
|
|
72
|
+
|
|
73
|
+
结构的获取一般在模型导入后进行:
|
|
74
|
+
|
|
75
|
+
```js
|
|
76
|
+
lightModel.modelLoaded.add(function (model) {
|
|
77
|
+
let modelStructure = model.getStructure();
|
|
78
|
+
});
|
|
79
|
+
```
|
|
80
|
+
通过LightModel的modelLoaded事件来完成。
|
|
81
|
+
|
|
82
|
+
## 实例HTML下载
|
|
83
|
+
|
|
84
|
+
可直接<a :href="$withBase('/demo/模型结构.html')" target="_blank"><b>预览模型结构实例</b></a>
|
|
85
|
+
|
|
86
|
+
或者复制以下代码保存成html格式打开实例
|
|
87
|
+
```html {89-91}
|
|
88
|
+
<!DOCTYPE html>
|
|
89
|
+
<html>
|
|
90
|
+
|
|
91
|
+
<head>
|
|
92
|
+
<meta charset="UTF-8">
|
|
93
|
+
<title>模型结构实例</title>
|
|
94
|
+
|
|
95
|
+
<script src="http://120.78.129.125:8111/js/jquery.js"></script>
|
|
96
|
+
<script src="http://120.78.129.125:8111/js/gs.dev.js"></script>
|
|
97
|
+
<script src="http://120.78.129.125:8111/js/longan/longan.js"></script>
|
|
98
|
+
<link href="http://120.78.129.125:8092/demo/plugin/jquery.treemenu.css" rel="stylesheet" type="text/css">
|
|
99
|
+
<script src="http://120.78.129.125:8092/demo/plugin/jquery.treemenu.js"></script>
|
|
100
|
+
|
|
101
|
+
<style>
|
|
102
|
+
.property-box {
|
|
103
|
+
color: #46CFB0;
|
|
104
|
+
margin: auto auto;
|
|
105
|
+
padding: 10px;
|
|
106
|
+
position: absolute;
|
|
107
|
+
right: 20px;
|
|
108
|
+
top: 20px;
|
|
109
|
+
background-color: #2C3E50;
|
|
110
|
+
min-width: 300px;
|
|
111
|
+
height: auto;
|
|
112
|
+
min-height: 50px;
|
|
113
|
+
border-radius: 5px;
|
|
114
|
+
box-shadow: 0 0 10px #555;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.property-box .title {
|
|
118
|
+
font-weight: bold;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.property-box li {
|
|
122
|
+
list-style: none;
|
|
123
|
+
font-size: 13px;
|
|
124
|
+
}
|
|
125
|
+
</style>
|
|
126
|
+
</head>
|
|
127
|
+
|
|
128
|
+
<body style="margin:0px">
|
|
129
|
+
<div>
|
|
130
|
+
<div id="viewer">
|
|
131
|
+
</div>
|
|
132
|
+
<div class="property-box">
|
|
133
|
+
<div class="title">属性:</div>
|
|
134
|
+
<div class="property-list"></div>
|
|
135
|
+
</div>
|
|
136
|
+
<ul class="tree"></ul>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<script type="text/javascript">
|
|
140
|
+
GraStoneCloud.DevModule.onReady = function () {
|
|
141
|
+
$("#viewer").css("height", window.innerHeight);
|
|
142
|
+
|
|
143
|
+
$(window).resize(function () {
|
|
144
|
+
$("#viewer").css("height", window.innerHeight);
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
let viewer = new GraStoneCloud.DevFx.Viewer("viewer");
|
|
148
|
+
viewer.backgroundColor([0.9, 0.9, 0.9]);
|
|
149
|
+
|
|
150
|
+
let viewModel = new GraStoneCloud.DevFx.ViewModel();
|
|
151
|
+
|
|
152
|
+
viewModel.viewer(viewer);
|
|
153
|
+
viewModel.modelServiceHost("120.78.129.125:8111");
|
|
154
|
+
|
|
155
|
+
viewModel.loadModelByPath("3f67fd8baf95428fb25b845909d1c738", "demo.mca");
|
|
156
|
+
|
|
157
|
+
viewer.setViewMode(Longan.ViewMode.Iso, true);
|
|
158
|
+
viewer.updateDisplay();
|
|
159
|
+
|
|
160
|
+
viewer.operatorManager.add(new GraStoneCloud.DevFx.CameraMouse());
|
|
161
|
+
|
|
162
|
+
let componentSelector = new GraStoneCloud.DevFx.ComponentSelector();
|
|
163
|
+
componentSelector.objectSelected.add(function (cs) {
|
|
164
|
+
let id = cs.getComponentId();
|
|
165
|
+
let props = cs.getComponentProperties();
|
|
166
|
+
|
|
167
|
+
$('.property-list').empty();
|
|
168
|
+
let propList = "";
|
|
169
|
+
for (var key in props) {
|
|
170
|
+
propList += '<li><div style="min-width:80px; display:inline-block;">' + key + ":</div>" + props[key] + '</li>';
|
|
171
|
+
}
|
|
172
|
+
$('.property-list').append(propList);
|
|
173
|
+
});
|
|
174
|
+
viewer.operatorManager.add(componentSelector);
|
|
175
|
+
|
|
176
|
+
let lightModel = viewModel.findObjectByType("LightModel");
|
|
177
|
+
lightModel.modelLoaded.add(function (model) {
|
|
178
|
+
let modelStructure = model.getStructure();
|
|
179
|
+
|
|
180
|
+
makeTree(0, [modelStructure]);
|
|
181
|
+
$('.tree').append(menu);
|
|
182
|
+
|
|
183
|
+
$(function () {
|
|
184
|
+
$(".tree").treemenu({ delay: 300 }).openActive();
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
let menu = "";
|
|
191
|
+
function getParent(key, structure) {
|
|
192
|
+
var parent = [];
|
|
193
|
+
for (var i in structure) {
|
|
194
|
+
if (structure[i].key == key) {
|
|
195
|
+
parent.push(structure[i]);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return parent;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function makeTree(key, structure) {
|
|
202
|
+
var topMenu = structure;
|
|
203
|
+
if (topMenu.length > 0) {
|
|
204
|
+
for (var i in topMenu) {
|
|
205
|
+
menu += '<li><a href="#">' + topMenu[i].name + '</a>';
|
|
206
|
+
if (topMenu[i].childNodes && topMenu[i].childNodes.length > 0) {
|
|
207
|
+
menu += '<ul>'
|
|
208
|
+
makeTree(topMenu[i].key, topMenu[i].childNodes);
|
|
209
|
+
menu += '</ul></li>'
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
</script>
|
|
215
|
+
</body>
|
|
216
|
+
</html>
|
|
217
|
+
```
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# 颜色设置
|
|
2
|
+
通过轻量模型对象提供的函数可以方便的修改构件的颜色。
|
|
3
|
+
|
|
4
|
+
## 修改构件颜色
|
|
5
|
+
通过ViewModel可以获取轻量模型对象。
|
|
6
|
+
```js
|
|
7
|
+
let model = viewModel.findObjectByType("LightModel");
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
通过轻量模型对象的setComponentColor函数可以修改构件的颜色。
|
|
11
|
+
```js
|
|
12
|
+
model.setComponentColor("243274", 0, 0, 200, 125);
|
|
13
|
+
viewer.updateDisplay(); // 需要updateDisplay刷新viewer才能显示改变
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
其中参数"243274"是构件的ID,后四位参数分别是颜色的r,g,b,a值,它们的值是0~255之间,其中a是指alpha指,当a值小于255时,颜色会出现透明。
|
|
17
|
+
|
|
18
|
+
## 取消构件颜色
|
|
19
|
+
通过轻量模型对象的unsetComponentColor函数可以取消颜色的设置。
|
|
20
|
+
```js
|
|
21
|
+
model.unsetComponentColor("243274");
|
|
22
|
+
viewer.updateDisplay(); // 需要updateDisplay刷新viewer才能显示改变
|
|
23
|
+
```
|
|
24
|
+
其中参数"243274"是构件的ID。
|
|
25
|
+
|
|
26
|
+
## 实例HTML下载
|
|
27
|
+
|
|
28
|
+
可直接<a :href="$withBase('/demo/颜色设置.html')" target="_blank"><b>预览颜色设置实例</b></a>
|
|
29
|
+
|
|
30
|
+
或者复制以下代码保存成html格式打开实例
|
|
31
|
+
```html
|
|
32
|
+
<!DOCTYPE html>
|
|
33
|
+
<html>
|
|
34
|
+
|
|
35
|
+
<head>
|
|
36
|
+
<meta charset="UTF-8">
|
|
37
|
+
<title>颜色设置实例</title>
|
|
38
|
+
|
|
39
|
+
<script src="http://120.78.129.125:8111/js/jquery.js"></script>
|
|
40
|
+
<script src="http://120.78.129.125:8111/js/gs.dev.js"></script>
|
|
41
|
+
<script src="http://120.78.129.125:8111/js/longan/longan.js"></script>
|
|
42
|
+
<style>
|
|
43
|
+
.button-box {
|
|
44
|
+
color: #46CFB0;
|
|
45
|
+
margin: auto auto;
|
|
46
|
+
padding: 10px;
|
|
47
|
+
position: absolute;
|
|
48
|
+
left: 20px;
|
|
49
|
+
top: 20px;
|
|
50
|
+
background-color: #2C3E50;
|
|
51
|
+
min-width: 300px;
|
|
52
|
+
min-height: 50px;
|
|
53
|
+
border-radius: 5px;
|
|
54
|
+
box-shadow: 0 0 10px #555;
|
|
55
|
+
overflow: auto;
|
|
56
|
+
}
|
|
57
|
+
</style>
|
|
58
|
+
</head>
|
|
59
|
+
|
|
60
|
+
<body style="margin:0px">
|
|
61
|
+
<div>
|
|
62
|
+
<div id="viewer">
|
|
63
|
+
</div>
|
|
64
|
+
<div class="button-box">
|
|
65
|
+
<button onclick="changeColorClick()">修改屋顶颜色</button>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<script type="text/javascript">
|
|
71
|
+
let viewModel;
|
|
72
|
+
let viewer;
|
|
73
|
+
GraStoneCloud.DevModule.onReady = function () {
|
|
74
|
+
$("#viewer").css("height", window.innerHeight);
|
|
75
|
+
|
|
76
|
+
$(window).resize(function () {
|
|
77
|
+
$("#viewer").css("height", window.innerHeight);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
viewer = new GraStoneCloud.DevFx.Viewer("viewer");
|
|
81
|
+
viewer.backgroundColor([0.9, 0.9, 0.9]);
|
|
82
|
+
|
|
83
|
+
viewModel = new GraStoneCloud.DevFx.ViewModel();
|
|
84
|
+
|
|
85
|
+
viewModel.viewer(viewer);
|
|
86
|
+
viewModel.modelServiceHost("120.78.129.125:8111");
|
|
87
|
+
|
|
88
|
+
viewModel.loadModelByPath("3f67fd8baf95428fb25b845909d1c738", "demo.mca");
|
|
89
|
+
|
|
90
|
+
viewer.setViewMode(Longan.ViewMode.Iso, true);
|
|
91
|
+
viewer.updateDisplay();
|
|
92
|
+
|
|
93
|
+
viewer.operatorManager.add(new GraStoneCloud.DevFx.CameraMouse());
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
let isChangeColor = true;
|
|
97
|
+
function changeColorClick() {
|
|
98
|
+
let model = viewModel.findObjectByType("LightModel");
|
|
99
|
+
if (isChangeColor) {
|
|
100
|
+
model.setComponentColor("243274", 0, 0, 200, 125);
|
|
101
|
+
} else {
|
|
102
|
+
model.unsetComponentColor("243274");
|
|
103
|
+
}
|
|
104
|
+
isChangeColor = !isChangeColor;
|
|
105
|
+
viewer.updateDisplay();
|
|
106
|
+
}
|
|
107
|
+
</script>
|
|
108
|
+
|
|
109
|
+
</body>
|
|
110
|
+
|
|
111
|
+
</html>
|
|
112
|
+
```
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
gs-bim-air
|
|
2
|
+
|
|
3
|
+
# gs-bim-air
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### References
|
|
8
|
+
|
|
9
|
+
- [Loader](gs-bim-air.md#loader)
|
|
10
|
+
- [LonganCore](gs-bim-air.md#longancore)
|
|
11
|
+
- [ProjectionType](gs-bim-air.md#projectiontype)
|
|
12
|
+
|
|
13
|
+
### Namespaces
|
|
14
|
+
|
|
15
|
+
- [Animation](modules/Animation.md)
|
|
16
|
+
- [Command](modules/Command.md)
|
|
17
|
+
- [Geometry](modules/Geometry.md)
|
|
18
|
+
- [Longan](modules/Longan.md)
|
|
19
|
+
- [SDK](modules/SDK.md)
|
|
20
|
+
- [Utility](modules/Utility.md)
|
|
21
|
+
|
|
22
|
+
### Enumerations
|
|
23
|
+
|
|
24
|
+
- [CuttingCreateType](enums/CuttingCreateType.md)
|
|
25
|
+
- [ModelStatus](enums/ModelStatus.md)
|
|
26
|
+
- [PathType](enums/PathType.md)
|
|
27
|
+
- [ShowBorder](enums/ShowBorder.md)
|
|
28
|
+
- [SkyboxType](enums/SkyboxType.md)
|
|
29
|
+
- [ViewerType](enums/ViewerType.md)
|
|
30
|
+
|
|
31
|
+
### Classes
|
|
32
|
+
|
|
33
|
+
- [ComponentSelector](classes/ComponentSelector.md)
|
|
34
|
+
- [CuttingOptions](classes/CuttingOptions.md)
|
|
35
|
+
- [DataSource](classes/DataSource.md)
|
|
36
|
+
- [EarthCameraMouse3D](classes/EarthCameraMouse3D.md)
|
|
37
|
+
- [GisBIMObject](classes/GisBIMObject.md)
|
|
38
|
+
- [GisRefLightModel](classes/GisRefLightModel.md)
|
|
39
|
+
- [MapTileSet3D](classes/MapTileSet3D.md)
|
|
40
|
+
- [Material](classes/Material.md)
|
|
41
|
+
- [Panel](classes/Panel.md)
|
|
42
|
+
- [ParameterManager](classes/ParameterManager.md)
|
|
43
|
+
- [ParametricGeometryManager](classes/ParametricGeometryManager.md)
|
|
44
|
+
- [Process](classes/Process.md)
|
|
45
|
+
- [SegmentObject](classes/SegmentObject.md)
|
|
46
|
+
- [TerrainProvider](classes/TerrainProvider.md)
|
|
47
|
+
- [TreeNodeObject](classes/TreeNodeObject.md)
|
|
48
|
+
- [Viewer](classes/Viewer.md)
|
|
49
|
+
|
|
50
|
+
### Interfaces
|
|
51
|
+
|
|
52
|
+
- [LoaderOptions](interfaces/LoaderOptions.md)
|
|
53
|
+
- [Model](interfaces/Model.md)
|
|
54
|
+
- [SliceModelParam](interfaces/SliceModelParam.md)
|
|
55
|
+
- [ToolbarVisible](interfaces/ToolbarVisible.md)
|
|
56
|
+
- [ViewerOptions](interfaces/ViewerOptions.md)
|
|
57
|
+
|
|
58
|
+
### Variables
|
|
59
|
+
|
|
60
|
+
- [Manager](gs-bim-air.md#manager)
|
|
61
|
+
- [ViewerWrapper](gs-bim-air.md#viewerwrapper)
|
|
62
|
+
- [default](gs-bim-air.md#default)
|
|
63
|
+
- [defaultModel](gs-bim-air.md#defaultmodel)
|
|
64
|
+
- [fileService](gs-bim-air.md#fileservice)
|
|
65
|
+
- [renderObjectService](gs-bim-air.md#renderobjectservice)
|
|
66
|
+
|
|
67
|
+
## References
|
|
68
|
+
|
|
69
|
+
### Loader
|
|
70
|
+
|
|
71
|
+
Renames and re-exports [__type](gs-bim-air.md#__type)
|
|
72
|
+
|
|
73
|
+
___
|
|
74
|
+
|
|
75
|
+
### LonganCore
|
|
76
|
+
|
|
77
|
+
Re-exports [LonganCore](modules/Longan.LonganCore.md)
|
|
78
|
+
|
|
79
|
+
___
|
|
80
|
+
|
|
81
|
+
### ProjectionType
|
|
82
|
+
|
|
83
|
+
Re-exports [ProjectionType](enums/Longan.ProjectionType.md)
|
|
84
|
+
|
|
85
|
+
## Variables
|
|
86
|
+
|
|
87
|
+
### Manager
|
|
88
|
+
|
|
89
|
+
• `Const` **Manager**: `Object`
|
|
90
|
+
|
|
91
|
+
#### Type declaration
|
|
92
|
+
|
|
93
|
+
| Name | Type |
|
|
94
|
+
| :------ | :------ |
|
|
95
|
+
| `ComponentManager` | typeof `ComponentManager` |
|
|
96
|
+
| `HighlightManager` | typeof `HighlightManager` |
|
|
97
|
+
| `InvisibleManager` | typeof `InvisibleManager` |
|
|
98
|
+
| `IsolationManager` | typeof `IsolationManager` |
|
|
99
|
+
| `MaterialManager` | typeof `MaterialManager` |
|
|
100
|
+
| `PanelManager` | typeof `PanelManager` |
|
|
101
|
+
| `PropertyManager` | typeof `default` |
|
|
102
|
+
| `SelectionManager` | typeof `SelectionManager` |
|
|
103
|
+
| `StructureTreeManager` | typeof `StructureTreeManager` |
|
|
104
|
+
|
|
105
|
+
___
|
|
106
|
+
|
|
107
|
+
### ViewerWrapper
|
|
108
|
+
|
|
109
|
+
• **ViewerWrapper**: `Object`
|
|
110
|
+
|
|
111
|
+
#### Type declaration
|
|
112
|
+
|
|
113
|
+
| Name | Type |
|
|
114
|
+
| :------ | :------ |
|
|
115
|
+
| `ViewerWrapper` | `VueConstructor`<`Vue`<`Record`<`string`, `any`\>, `Record`<`string`, `any`\>, `never`, `never`, (`event`: `string`, ...`args`: `any`[]) => `Vue`<`Record`<`string`, `any`\>, `Record`<`string`, `any`\>, `never`, `never`, (event: string, ...args: any[]) =\> Vue<Record<string, any\>, Record<string, any\>, never, never, ...\>\>\>\> |
|
|
116
|
+
| `install` | (`Vue`: `any`) => `void` |
|
|
117
|
+
|
|
118
|
+
___
|
|
119
|
+
|
|
120
|
+
### default
|
|
121
|
+
|
|
122
|
+
• `Const` **default**: `Object`
|
|
123
|
+
|
|
124
|
+
#### Type declaration
|
|
125
|
+
|
|
126
|
+
| Name | Type |
|
|
127
|
+
| :------ | :------ |
|
|
128
|
+
| `Animation` | [`Animation`](modules/Animation.md) |
|
|
129
|
+
| `CAE` | `__module` |
|
|
130
|
+
| `Command` | [`Command`](modules/Command.md) |
|
|
131
|
+
| `ComponentSelector` | typeof [`ComponentSelector`](classes/ComponentSelector.md) |
|
|
132
|
+
| `CuttingCreateType` | typeof [`CuttingCreateType`](enums/CuttingCreateType.md) |
|
|
133
|
+
| `CuttingOptions` | typeof [`CuttingOptions`](classes/CuttingOptions.md) |
|
|
134
|
+
| `DataSource` | typeof [`DataSource`](classes/DataSource.md) |
|
|
135
|
+
| `EarthCameraMouse3D` | typeof [`EarthCameraMouse3D`](classes/EarthCameraMouse3D.md) |
|
|
136
|
+
| `Geometry` | [`Geometry`](modules/Geometry.md) |
|
|
137
|
+
| `GisBIMObject` | typeof [`GisBIMObject`](classes/GisBIMObject.md) |
|
|
138
|
+
| `GisRefLightModel` | typeof [`GisRefLightModel`](classes/GisRefLightModel.md) |
|
|
139
|
+
| `Loader` | (`config`: [`LoaderOptions`](interfaces/LoaderOptions.md)) => `Promise`<`void`\> |
|
|
140
|
+
| `Longan` | [`Longan`](modules/Longan.md) |
|
|
141
|
+
| `LonganCore` | [`LonganCore`](modules/Longan.LonganCore.md) |
|
|
142
|
+
| `Manager` | { `ComponentManager`: typeof `ComponentManager` ; `HighlightManager`: typeof `HighlightManager` ; `InvisibleManager`: typeof `InvisibleManager` ; `IsolationManager`: typeof `IsolationManager` ; `MaterialManager`: typeof `MaterialManager` ; `PanelManager`: typeof `PanelManager` ; `PropertyManager`: typeof `default` ; `SelectionManager`: typeof `SelectionManager` ; `StructureTreeManager`: typeof `StructureTreeManager` } |
|
|
143
|
+
| `Manager.ComponentManager` | typeof `ComponentManager` |
|
|
144
|
+
| `Manager.HighlightManager` | typeof `HighlightManager` |
|
|
145
|
+
| `Manager.InvisibleManager` | typeof `InvisibleManager` |
|
|
146
|
+
| `Manager.IsolationManager` | typeof `IsolationManager` |
|
|
147
|
+
| `Manager.MaterialManager` | typeof `MaterialManager` |
|
|
148
|
+
| `Manager.PanelManager` | typeof `PanelManager` |
|
|
149
|
+
| `Manager.PropertyManager` | typeof `default` |
|
|
150
|
+
| `Manager.SelectionManager` | typeof `SelectionManager` |
|
|
151
|
+
| `Manager.StructureTreeManager` | typeof `StructureTreeManager` |
|
|
152
|
+
| `MapTileSet3D` | typeof [`MapTileSet3D`](classes/MapTileSet3D.md) |
|
|
153
|
+
| `Material` | typeof [`Material`](classes/Material.md) |
|
|
154
|
+
| `ModelStatus` | typeof [`ModelStatus`](enums/ModelStatus.md) |
|
|
155
|
+
| `Panel` | typeof [`Panel`](classes/Panel.md) |
|
|
156
|
+
| `ParameterManager` | typeof [`ParameterManager`](classes/ParameterManager.md) |
|
|
157
|
+
| `ParametricGeometryManager` | typeof [`ParametricGeometryManager`](classes/ParametricGeometryManager.md) |
|
|
158
|
+
| `PathType` | typeof [`PathType`](enums/PathType.md) |
|
|
159
|
+
| `Process` | typeof [`Process`](classes/Process.md) |
|
|
160
|
+
| `ProjectionType` | typeof [`ProjectionType`](enums/Longan.ProjectionType.md) |
|
|
161
|
+
| `SDK` | [`SDK`](modules/SDK.md) |
|
|
162
|
+
| `SegmentObject` | typeof [`SegmentObject`](classes/SegmentObject.md) |
|
|
163
|
+
| `ShowBorder` | typeof [`ShowBorder`](enums/ShowBorder.md) |
|
|
164
|
+
| `SkyboxType` | typeof [`SkyboxType`](enums/SkyboxType.md) |
|
|
165
|
+
| `TerrainProvider` | typeof [`TerrainProvider`](classes/TerrainProvider.md) |
|
|
166
|
+
| `TreeNodeObject` | typeof [`TreeNodeObject`](classes/TreeNodeObject.md) |
|
|
167
|
+
| `Utility` | [`Utility`](modules/Utility.md) |
|
|
168
|
+
| `Viewer` | typeof [`Viewer`](classes/Viewer.md) |
|
|
169
|
+
| `ViewerType` | typeof [`ViewerType`](enums/ViewerType.md) |
|
|
170
|
+
| `ViewerWrapper` | { `ViewerWrapper`: `VueConstructor`<`Vue`<`Record`<`string`, `any`\>, `Record`<`string`, `any`\>, `never`, `never`, (`event`: `string`, ...`args`: `any`[]) => `Vue`<`Record`<`string`, `any`\>, `Record`<`string`, `any`\>, `never`, `never`, (event: string, ...args: any[]) =\> Vue<Record<string, any\>, Record<string, any\>, never, never, ...\>\>\>\> ; `install`: (`Vue`: `any`) => `void` } |
|
|
171
|
+
| `ViewerWrapper.ViewerWrapper` | `VueConstructor`<`Vue`<`Record`<`string`, `any`\>, `Record`<`string`, `any`\>, `never`, `never`, (`event`: `string`, ...`args`: `any`[]) => `Vue`<`Record`<`string`, `any`\>, `Record`<`string`, `any`\>, `never`, `never`, (event: string, ...args: any[]) =\> Vue<Record<string, any\>, Record<string, any\>, never, never, ...\>\>\>\> |
|
|
172
|
+
| `ViewerWrapper.install` | (`Vue`: `any`) => `void` |
|
|
173
|
+
| `defaultModel` | [`Model`](interfaces/Model.md) |
|
|
174
|
+
| `fileService` | { `deleteFile`: (`fileService`: `any`, `id`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> ; `uploadFile`: (`fileService`: `any`, `file`: `Blob` \| `File`) => `Promise`<`AxiosResponse`<`any`\>\> ; `urls`: { `file`: (`fileService`: `any`, `id`: `any`) => `string` ; `files`: (`fileService`: `any`) => `string` } } |
|
|
175
|
+
| `fileService.deleteFile` | (`fileService`: `any`, `id`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
176
|
+
| `fileService.uploadFile` | (`fileService`: `any`, `file`: `Blob` \| `File`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
177
|
+
| `fileService.urls` | { `file`: (`fileService`: `any`, `id`: `any`) => `string` ; `files`: (`fileService`: `any`) => `string` } |
|
|
178
|
+
| `fileService.urls.file` | (`fileService`: `any`, `id`: `any`) => `string` |
|
|
179
|
+
| `fileService.urls.files` | (`fileService`: `any`) => `string` |
|
|
180
|
+
| `renderObjectService` | { `createRenderObject`: (`parentId`: `string`, `obj`: `any`, `tag`: `string`) => `Promise`<`AxiosResponse`<`any`\>\> ; `deleteRenderObjects`: (`ids`: `string`[]) => `Promise`<`AxiosResponse`<`any`\>\> ; `getRenderObjectsRelated`: (`typeName`: `string`, `related`: `string`[], `tag`: `string`) => `Promise`<[`RenderObject`](classes/Longan.RenderObject.md)[]\> ; `item`: { `deleteRenderObject`: (`id`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> ; `editRenderObject`: (`id`: `string`, `obj`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> ; `getRenderObject`: (`id`: `any`, `tree?`: `boolean`) => `Promise`<[`RenderObject`](classes/Longan.RenderObject.md)\> ; `setRenderObjectOrder`: (`id`: `any`, `data`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> } ; `viewer`: `any` = null } |
|
|
181
|
+
| `renderObjectService.createRenderObject` | (`parentId`: `string`, `obj`: `any`, `tag`: `string`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
182
|
+
| `renderObjectService.deleteRenderObjects` | (`ids`: `string`[]) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
183
|
+
| `renderObjectService.getRenderObjectsRelated` | (`typeName`: `string`, `related`: `string`[], `tag`: `string`) => `Promise`<[`RenderObject`](classes/Longan.RenderObject.md)[]\> |
|
|
184
|
+
| `renderObjectService.item` | { `deleteRenderObject`: (`id`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> ; `editRenderObject`: (`id`: `string`, `obj`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> ; `getRenderObject`: (`id`: `any`, `tree?`: `boolean`) => `Promise`<[`RenderObject`](classes/Longan.RenderObject.md)\> ; `setRenderObjectOrder`: (`id`: `any`, `data`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> } |
|
|
185
|
+
| `renderObjectService.item.deleteRenderObject` | (`id`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
186
|
+
| `renderObjectService.item.editRenderObject` | (`id`: `string`, `obj`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
187
|
+
| `renderObjectService.item.getRenderObject` | (`id`: `any`, `tree?`: `boolean`) => `Promise`<[`RenderObject`](classes/Longan.RenderObject.md)\> |
|
|
188
|
+
| `renderObjectService.item.setRenderObjectOrder` | (`id`: `any`, `data`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
189
|
+
| `renderObjectService.viewer` | `any` |
|
|
190
|
+
|
|
191
|
+
___
|
|
192
|
+
|
|
193
|
+
### defaultModel
|
|
194
|
+
|
|
195
|
+
• `Const` **defaultModel**: [`Model`](interfaces/Model.md)
|
|
196
|
+
|
|
197
|
+
___
|
|
198
|
+
|
|
199
|
+
### fileService
|
|
200
|
+
|
|
201
|
+
• **fileService**: `Object`
|
|
202
|
+
|
|
203
|
+
#### Type declaration
|
|
204
|
+
|
|
205
|
+
| Name | Type |
|
|
206
|
+
| :------ | :------ |
|
|
207
|
+
| `deleteFile` | (`fileService`: `any`, `id`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
208
|
+
| `uploadFile` | (`fileService`: `any`, `file`: `Blob` \| `File`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
209
|
+
| `urls` | { `file`: (`fileService`: `any`, `id`: `any`) => `string` ; `files`: (`fileService`: `any`) => `string` } |
|
|
210
|
+
| `urls.file` | (`fileService`: `any`, `id`: `any`) => `string` |
|
|
211
|
+
| `urls.files` | (`fileService`: `any`) => `string` |
|
|
212
|
+
|
|
213
|
+
___
|
|
214
|
+
|
|
215
|
+
### renderObjectService
|
|
216
|
+
|
|
217
|
+
• **renderObjectService**: `Object`
|
|
218
|
+
|
|
219
|
+
#### Type declaration
|
|
220
|
+
|
|
221
|
+
| Name | Type |
|
|
222
|
+
| :------ | :------ |
|
|
223
|
+
| `createRenderObject` | (`parentId`: `string`, `obj`: `any`, `tag`: `string`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
224
|
+
| `deleteRenderObjects` | (`ids`: `string`[]) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
225
|
+
| `getRenderObjectsRelated` | (`typeName`: `string`, `related`: `string`[], `tag`: `string`) => `Promise`<[`RenderObject`](classes/Longan.RenderObject.md)[]\> |
|
|
226
|
+
| `item` | { `deleteRenderObject`: (`id`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> ; `editRenderObject`: (`id`: `string`, `obj`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> ; `getRenderObject`: (`id`: `any`, `tree?`: `boolean`) => `Promise`<[`RenderObject`](classes/Longan.RenderObject.md)\> ; `setRenderObjectOrder`: (`id`: `any`, `data`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> } |
|
|
227
|
+
| `item.deleteRenderObject` | (`id`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
228
|
+
| `item.editRenderObject` | (`id`: `string`, `obj`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
229
|
+
| `item.getRenderObject` | (`id`: `any`, `tree?`: `boolean`) => `Promise`<[`RenderObject`](classes/Longan.RenderObject.md)\> |
|
|
230
|
+
| `item.setRenderObjectOrder` | (`id`: `any`, `data`: `any`) => `Promise`<`AxiosResponse`<`any`\>\> |
|
|
231
|
+
| `viewer` | `any` |
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# 快速上手
|
|
2
|
+
本节将介绍如何在项目中使用轻量化云平台。
|
|
3
|
+
|
|
4
|
+
## 引入相关JavaScript文件
|
|
5
|
+
在页面文件中引入JS文件
|
|
6
|
+
```html
|
|
7
|
+
<!-- 轻量化云平台依赖于JQuery -->
|
|
8
|
+
<script src="http://120.78.129.125:8111/js/jquery.js"></script>
|
|
9
|
+
<script src="http://120.78.129.125:8111/js/gs.dev.js"></script>
|
|
10
|
+
<script src="http://120.78.129.125:8111/js/longan/longan.js"></script>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
其中jquery.js是jquery文件,如果在项目其它地方已经引入,这里就不需要引入了。
|
|
14
|
+
其它gs.dev.js和longan.js为轻量化云平台主文件。
|
|
15
|
+
|
|
16
|
+
## 创建Viewer控件
|
|
17
|
+
由于控件需要一个载体,这里创建一个id为viewer的div元素。
|
|
18
|
+
``` html
|
|
19
|
+
<div id="viewer">
|
|
20
|
+
</div>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
根据页面添加JavaScript代码。
|
|
24
|
+
``` html
|
|
25
|
+
<script type="text/javascript">
|
|
26
|
+
GraStoneCloud.DevModule.onReady = function () {
|
|
27
|
+
$("#viewer").css("height", window.innerHeight);
|
|
28
|
+
|
|
29
|
+
$(window).resize(function () {
|
|
30
|
+
$("#viewer").css("height", window.innerHeight);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
let viewer = new GraStoneCloud.DevFx.Viewer("viewer");
|
|
34
|
+
|
|
35
|
+
viewer.updateDisplay();
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
你可以这样来调整控件容器Viewer的大小:
|
|
41
|
+
``` js
|
|
42
|
+
$("#viewer").css("height", window.innerHeight);
|
|
43
|
+
$(window).resize(function () {
|
|
44
|
+
$("#viewer").css("height", window.innerHeight);
|
|
45
|
+
});
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
以下是为Viewer控件创建过程:
|
|
50
|
+
```js
|
|
51
|
+
// Viewer构造函数输入参数为div容器的id。
|
|
52
|
+
let viewer = new GraStoneCloud.DevFx.Viewer("viewer");
|
|
53
|
+
|
|
54
|
+
// viewer.updateDisplay可更新控件绘制。
|
|
55
|
+
viewer.updateDisplay();
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 实例HTML下载
|
|
59
|
+
|
|
60
|
+
可直接<a :href="$withBase('/demo/快速上手.html')" target="_blank"><b>预览实例</b></a>
|
|
61
|
+
|
|
62
|
+
或者复制以下代码保存成html格式打开实例
|
|
63
|
+
```html
|
|
64
|
+
<!DOCTYPE html>
|
|
65
|
+
<html>
|
|
66
|
+
<head>
|
|
67
|
+
<meta charset="UTF-8">
|
|
68
|
+
<title>首页</title>
|
|
69
|
+
|
|
70
|
+
<script src="http://120.78.129.125:8111/js/jquery.js"></script>
|
|
71
|
+
<script src="http://120.78.129.125:8111/js/gs.dev.js"></script>
|
|
72
|
+
<script src="http://120.78.129.125:8111/js/longan/longan.js"></script>
|
|
73
|
+
|
|
74
|
+
</head>
|
|
75
|
+
<body style="margin:0px">
|
|
76
|
+
<div>
|
|
77
|
+
<div id="viewer">
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<script type="text/javascript">
|
|
82
|
+
GraStoneCloud.DevModule.onReady = function () {
|
|
83
|
+
$("#viewer").css("height", window.innerHeight);
|
|
84
|
+
|
|
85
|
+
$(window).resize(function () {
|
|
86
|
+
$("#viewer").css("height", window.innerHeight);
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
let viewer = new GraStoneCloud.DevFx.Viewer("viewer");
|
|
90
|
+
|
|
91
|
+
viewer.updateDisplay();
|
|
92
|
+
alert("viewer created!!!");
|
|
93
|
+
}
|
|
94
|
+
</script>
|
|
95
|
+
|
|
96
|
+
</body>
|
|
97
|
+
</html>
|
|
98
|
+
```
|