Добавить компоненты на HTML страницу

Следующий пример показывает как добавить компонент для работы с BIM-моделью на вашу HTML страницу.

<head>
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=no" />
    <meta charset="utf-8">

    <link rel="stylesheet" href="https://pilot.ascon.ru/componentkit/components/24.17.0/pilotweb3d/style.css" type="text/css">
    <script src="https://pilot.ascon.ru/componentkit/components/24.17.0/pilotweb3d/pilotweb3d.min.js"></script>

    <style>
        body {
            margin: 0;
        }
        #pilotViewer {
            width: 100%;
            height: 100%;
            margin: 0;
        }
    </style>
</head>
<body>
  <div id="pilotViewer"></div>
</body>

Следующий пример показывает, как добавить компонент для работы с документами на вашу HTML страницу.

<head>
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=no" />
    <meta charset="utf-8">

    <link rel="stylesheet" href="https://pilot.ascon.ru/componentkit/components/24.17.0/pilotweb2d/style.css" type="text/css">
    <script src="https://pilot.ascon.ru/componentkit/components/24.17.0/pilotweb2d/pilotweb2d.min.js"></script>

    <style>
        body {
            margin: 0;
        }
        #pilotViewer {
            width: 100%;
            height: 100%;
            margin: 0;
        }
    </style>
</head>
<body>
  <div id="pilotViewer"></div>
</body>
Пакеты PilotWeb3D и PilotWeb2D имеют довольно большой размер, поэтому мы рекомендуем подключать эти библиотеки к странице HTML как можно позже.