BIMServer JavaScript API

JavaScript API for BIMserver

Лицензия

Лицензия

Группа

Группа

org.opensourcebim
Идентификатор

Идентификатор

bimserverapi
Последняя версия

Последняя версия

0.0.176
Дата

Дата

Тип

Тип

jar
Описание

Описание

BIMServer JavaScript API
JavaScript API for BIMserver
Ссылка на сайт

Ссылка на сайт

https://github.com/opensourceBIM/BIMserver-JavaScript-API
Организация-разработчик

Организация-разработчик

OpenSource BIM
Система контроля версий

Система контроля версий

https://github.com/opensourceBIM/BIMserver-JavaScript-API.git

Скачать bimserverapi

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.opensourcebim/bimserverapi/ -->
<dependency>
    <groupId>org.opensourcebim</groupId>
    <artifactId>bimserverapi</artifactId>
    <version>0.0.176</version>
</dependency>
// https://jarcasting.com/artifacts/org.opensourcebim/bimserverapi/
implementation 'org.opensourcebim:bimserverapi:0.0.176'
// https://jarcasting.com/artifacts/org.opensourcebim/bimserverapi/
implementation ("org.opensourcebim:bimserverapi:0.0.176")
'org.opensourcebim:bimserverapi:jar:0.0.176'
<dependency org="org.opensourcebim" name="bimserverapi" rev="0.0.176">
  <artifact name="bimserverapi" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.opensourcebim', module='bimserverapi', version='0.0.176')
)
libraryDependencies += "org.opensourcebim" % "bimserverapi" % "0.0.176"
[org.opensourcebim/bimserverapi "0.0.176"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.opensourcebim : pluginbase jar 1.5.177

Модули Проекта

Данный проект не имеет модулей.

BIMserver-JavaScript-API

A JavaScript API for the OpenSource BIMserver.

Usage

Static import

Download the combined minified library and include it in your HTML.

<script type="module" src="bimserverapi.js?_v=%VERSION%"></script>

The ?_v=%VERSION% addition is there for efficient caching purposes. Any server system serving these files can tell the client to cache these files indefinitely.

Import as an ES6 module

If you are using a transpiler such as Typescript or Babel, or a bundler such as Webpack or Rollup, you can import the module using the Import syntax.

It is also possible to load the ES6 module directly into the browser, however not all browser support this yet.

import { BimServerClient } from './js/bimserverclient.js';
const api = new BimServerClient("../..");
api.init((client, version) => {
	console.log(version.version);
});

Dynamic import

When the location on the API is not known in advance, you can use dynamic loading, in most browsers you'll need to use a "dev" version for this to work (Chrome 64 for example).

var address = "http://addressofapi";
Promise.all([
	address + "/bimserverclient.js",
	address + "/bimserverapipromise.js"
].map(x => import(x)))
.then(([BimServerClient, BimServerApiPromise]) => {
	var api = new BimServerClient.BimServerClient("../..");
	api.init((client, version) => {
		document.getElementById("version").innerHTML = JSON.stringify(version.version, 0, 2);
	});
});

Version returned from BIMserver instance

To do.

API documentation

To do.

Build the library

  • Install Node.js
  • Clone (or download and unzip) the project to your file system:
git clone https://github.com/opensourceBIM/BIMserver-JavaScript-API.git
  • Go to the project directory
cd BIMserver-JavaScript-API
  • Install build dependencies
npm install
  • Run the build script
npm run build

The compiled file is located at build/bimserverapi.js

org.opensourcebim

The open source BIM collective

Версии библиотеки

Версия
0.0.176
0.0.175
0.0.174
0.0.170
0.0.167
0.0.166
0.0.165
0.0.164
0.0.163
0.0.162
0.0.161
0.0.155
0.0.154
0.0.152
0.0.151
0.0.150
0.0.149
0.0.148
0.0.147
0.0.146
0.0.145
0.0.144
0.0.140
0.0.139
0.0.138
0.0.137
0.0.136
0.0.135
0.0.134
0.0.133
0.0.131
0.0.130
0.0.128
0.0.127
0.0.126
0.0.125
0.0.124
0.0.123
0.0.122
0.0.121
0.0.120
0.0.119
0.0.118
0.0.117
0.0.116
0.0.115
0.0.114
0.0.112
0.0.110
0.0.109
0.0.108
0.0.107
0.0.106
0.0.105
0.0.104
0.0.103
0.0.101
0.0.100
0.0.99
0.0.98
0.0.97
0.0.96
0.0.95
0.0.94
0.0.93
0.0.92
0.0.91
0.0.90
0.0.89
0.0.87
0.0.86
0.0.85
0.0.84
0.0.83
0.0.82
0.0.81
0.0.79
0.0.78
0.0.75
0.0.74
0.0.73
0.0.72
0.0.71
0.0.70
bimserverapi-bimserverapi-0.0.169