{"id":41171329,"url":"https://github.com/hql7/wl-bim-viewer","last_synced_at":"2026-01-22T19:43:03.641Z","repository":{"id":37700926,"uuid":"241529408","full_name":"hql7/wl-bim-viewer","owner":"hql7","description":"用于vue框架的bim三维模型预览插件。Bim 3D model preview plugin for vue framework.","archived":false,"fork":false,"pushed_at":"2021-01-11T01:24:37.000Z","size":15430,"stargazers_count":152,"open_issues_count":4,"forks_count":48,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-29T01:37:47.441Z","etag":null,"topics":["autodesk","autodesk-forge","bim","bim-viewer","bim360","cad","vue-bim","wl-bim-viewer"],"latest_commit_sha":null,"homepage":"http://wlui.com.cn/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hql7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-19T04:05:44.000Z","updated_at":"2025-09-11T15:53:13.000Z","dependencies_parsed_at":"2022-09-04T03:21:34.962Z","dependency_job_id":null,"html_url":"https://github.com/hql7/wl-bim-viewer","commit_stats":null,"previous_names":["hql7/wl-cad-viewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hql7/wl-bim-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-bim-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-bim-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-bim-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-bim-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hql7","download_url":"https://codeload.github.com/hql7/wl-bim-viewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-bim-viewer/sbom","scorecard":{"id":470317,"data":{"date":"2025-08-11","repo":{"name":"github.com/hql7/wl-bim-viewer","commit":"95f8d26a4c339a34e62b93a0548e421dd953f836"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T13:44:09.093Z","repository_id":37700926,"created_at":"2025-08-19T13:44:09.093Z","updated_at":"2025-08-19T13:44:09.093Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autodesk","autodesk-forge","bim","bim-viewer","bim360","cad","vue-bim","wl-bim-viewer"],"created_at":"2026-01-22T19:43:03.570Z","updated_at":"2026-01-22T19:43:03.631Z","avatar_url":"https://github.com/hql7.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wl-bim-viewer\n\n一个用于在浏览器上展示bim模型的vue插件，可以预览转化后的BIM、CAD文件。       \n基于vue和autodesk forge viewer写成。        \n目前支持单模型加载及多模型顺序加载。        \n其他特性正在扩展中。\n\n传送门：[Github](https://github.com/hql7/wl-bim-viewer)      \u0026        [autodesk forge viewer文档](https://forge.autodesk.com/en/docs/viewer/v7/reference/Viewing/)\n\n## [在线访问](http://wlui.com.cn/ui/bim) \n\n## 快速上手\n`npm i wl-bim-viewer -S`\n\n```\nimport wlBimViewer from \"wl-bim-viewer\";`\nimport \"wl-bim-viewer/lib/wl-bim-viewer.css\"\nVue.use(wlBimViewer);\n```\n\n```\n\u003cwl-bim-viewer \n    multiple \n    :docs=\"bims\" \n    class=\"wl-viewer\"\u003e\n\u003c/wl-bim-viewer\u003e\n```\n\n### 重要更新\n\u003e 1.1.0 减少组件包体积，将js依赖cdn；请勿使用低于1.1.0版本\n\n## 文档\n\n### Attributes\n| 序号 | 参数 | 说明 | 类型 | 默认值 |\n| ---- | ---- | ---- | ---- | ---- |\n| 1 | docs | 模型数据数组，元素为对象且至少需要一个path字段（模型文件路径，可配置） | Array | - |\n| 2 | props | 配置项,详见下 | Object | - |\n| 3 | multiple | 是否开启多模型顺序加载 | Boolean | false |\n| 4 | changeClean | 是否开启当docs变化，清理之前的模型然后重新加载新模型 | Boolean | false |\n\n### props\n| 序号 | 参数 | 说明 | 默认字段 | 字段值类型 |\n| ---- | ---- | ---- | ---- | ---- |\n| 1 | path | 用于配置docs参数内的模型文件路径字段，必填 | path | String |\n| 2 | options | 用于loadModel时的自定义模型配置项，可配置模型角度、位置等。此字段应是一个对象 | options | Object |\n| 3 | name | 用于docs参数内模型的名称字段，选填 | name | String |\n\n### Events\n| 序号 | 事件名称 | 说明 | 回调参数 |\n| ---- | ---- | ---- | ---- |\n| 1 | init | viewer初始化事件，此时模型还未加载，可进行配置或注册事件操作 | function(viewer) 依次为当前viewer对象 | \n| 2 | partSelect | 构件点击事件 | function(selections, event, info) 以此为当前选择构件、当前点击对象、构件信息 | \n| 3 | cameraMove | 摄像头移动事件 | function(rvt) 依次为当前rvt对象 |\n| 4 | successAll | 多模型时，全部加载完毕事件 | function(result) 依次为全部模型对象数组 |\n| 5 | errorAll | 多模型时，全部加载失败事件 | function(result) 依次为失败信息 |\n| 6 | success | 模型加载成功回调 | function(result) 依次为当前模型信息 |\n| 7 | loaded | 模型渲染完毕回调 | function(evt) 依次为当前模型信息 |\n| 8 | error | 模型加载失败回调 | function(name, code) 依次为当前模型docs参数name字段、错误码 |\n\n### Form Methods\n| 序号 | 方法名 | 说明 | 参数 |\n| ---- | ---- | ---- | ---- |\n| 1 | clearColor | 清空模型构件上色 | - |\n| 2 | viewerFiting | 聚焦摄像头 | function(ids, focal) 依次为需要聚焦至的构件id、焦距 | \n| 3 | unloadModel | 卸载model模型 | function(model) 依次为需要卸载的模型model，无则默认为当前model | \n| 4 | uploadViewer | 卸载viewer | - |\n| 5 | getModelInfo | 获取模型信息 | function(viewer, models) 依次为viewer对象、已加载的model对象 | \n\n### Slot\n| 序号 | name | 说明 |\n| ---- | ---- | ---- |\n| 1 | - | 位于模型dom下的自定义dom区 | \n\n### 版本记录\n\u003e 1.1.0 减少组件包体积，将js依赖cdn\n\n\u003e 1.0.0 因国外cdn时间波动太大，将js依赖本地化，并优化初始化事件防止init错误\n\n## Project setup\n```\nnpm install\n```\n\n### Compiles and hot-reloads for development\n```\nnpm run serve\n```\n\n### Compiles and minifies for production\n```\nnpm run build\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhql7%2Fwl-bim-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhql7%2Fwl-bim-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhql7%2Fwl-bim-viewer/lists"}