GNU Affero General Public License v3.0

项目介绍

xeokit/xeokit-sdk 是一个托管在 GitHub 上的开源项目,主要使用 HTML 编写,采用 GNU Affero General Public License v3.0 许可证,目前获得 949 个 Star、330 次 Fork。

仓库全名
xeokit/xeokit-sdk
开源许可证
GNU Affero General Public License v3.0
Star 数
949
Fork 数
330
未关闭 Issue
172

README 摘要

xeokit-sdk xeokit is a JavaScript software development kit by Creoox AG for viewing high-detail, full-precision 3D engineering and BIM models in the browser. Resources xeokit.io Examples Blog API Docs Features Changelog FAQ License If you are interested in a ready-to-use 3D/BIM Viewing Ecosystem for Your Own Solution, be sure to also check out: xeoVision - view your models now! xeokit Data Engine Installing Usage…

完整内容见 GitHub 原始 README 或本页 。

常见问题

xeokit-sdk 用什么语言开发?

主要使用 HTML 编写,采用 GNU Affero General Public License v3.0 许可证,目前有 949 个 Star。

xeokit-sdk 可以免费商用吗?

仓库标注的许可证为 GNU Affero General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 xeokit-sdk 的源码?

可以直接克隆仓库:git clone https://github.com/xeokit/xeokit-sdk.git,默认分支为 master;安装与运行步骤见仓库 README。

xeokit-sdk 最近还在维护吗?

仓库最近一次更新为 5 天前,当前有 172 个未关闭 Issue;Star 数为 949,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

CSS
HTML
JavaScript
Shell
TypeScript

README

xeokit-sdk

npm version CodeSee

xeokit is a JavaScript software development kit by Creoox AG for viewing high-detail, full-precision 3D engineering and BIM models in the browser.

Resources


If you are interested in a ready-to-use 3D/BIM Viewing Ecosystem for Your Own Solution, be sure to also check out:


Installing

npm i @xeokit/xeokit-sdk

Usage

The xeokit SDK lets us develop our own browser-based BIM viewer, which we can fully customize and extend with plugins. Let’s create a Viewer with a XKTLoaderPlugin to view an XKT model in the browser, which was pre-converted from IFC model from the Open IFC Model Database.

This is just one way to load our models into xeokit: by converting it to XKT and loading via XKTLoaderPlugin. We can also load models from other formats directly, including CityJSON, glTF, LAZ and OBJ.

Run this example

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>xeokit Example</title>
    <style>
        body {
            margin: 0;
            width: 100%;
            height: 100%;
            user-select: none;
        }

        #xeokit_canvas {
            width: 100%;
            height: 100%;
            position: absolute;
            background: lightblue;
            background-image: linear-gradient(lightblue, white);
        }
    </style>
</head>
<body>
<canvas id="xeokit_canvas"></canvas>
</body>
<script id="source" type="module">

    import {XKTLoaderPlugin, Viewer} from
                    "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";
    
    const viewer = new Viewer({
        canvasId: "xeokit_canvas",
        transparent: true,
        dtxEnabled: true
    });

    viewer.camera.eye = [-3.933, 2.855, 27.018];
    viewer.camera.look = [4.400, 3.724, 8.899];
    viewer.camera.up = [-0.018, 0.999, 0.039];

    const xktLoader = new XKTLoaderPlugin(viewer);

    const sceneModel = xktLoader.load({
        id: "myModel",
        src: "Duplex.xkt",
        saoEnabled: true,
        edges: true,
        dtxEnabled: true
    });
    
</script>
</html>

Deprecation Notice: ES5 and CJS Builds

Starting from September 2026, the ES5/UMD and CommonJS builds will no longer be included in the npm package. Maintaining ES5 compatibility requires extensive transpilation and polyfilling that is increasingly difficult to sustain as the codebase evolves. Going forward, only the ES module builds (xeokit-sdk.es.js and xeokit-sdk.min.es.js) will be provided, which are compatible with all modern browsers and bundlers.


📜 Licensing & Commercial Use

xeokit SDK is licensed under AGPLv3, which requires that any modifications or integrations of xeokit SDK into a project must also be open-sourced under AGPLv3.

🪧 Need a commercial license? If your company requires xeokit SDK under a different licensing model for proprietary or closed-source applications, we offer flexible commercial licensing options.

📩 Contact us at [email protected] or visit xeokit.io for more information.

评论

暂无评论