Marker3DConfig
类:三维标签的配置项
Constructor
new Glodon.Bimface.Plugins.Marker3D.Marker3DConfig()
构造三维标签配置项
Members
Name | Type | Description |
---|---|---|
canvas | String | 三维标签的canvas对象 |
hoverAnimation | String | 是否开启hover放大动画效果 |
id | String | 三维标签的ID |
layerId | String | 图层ID,仅在ViewerGIS下生效 |
modelId | String | 模型ID,仅在Viewer3D下生效 |
objectId | String | 标签关联的构件ID |
size | Number | 三维标签的图片大小 |
src | String | 三维标签的图片URL |
tooltip | String | 三维标签的提示内容 |
tooltipStyle | Object | 三维标签的提示样式 |
worldPosition | Glodon.Web.Geometry.Point3d | 三维标签的空间位置 |
Example
let canvas = document.createElement("canvas");
// 获取画布二维绘图环境
let ctx = canvas.getContext("2d");
canvas.width = width;
canvas.height = height;
ctx.fillStyle = "#32D3A6";
ctx.fillRect(0, 0, width, height);
ctx.fillStyle = "#FFFFFF";
ctx.fillRect(35, 35, width - 70, height - 70);
ctx.fillStyle = '#32D3A6';
ctx.font = "200px Arial bolder";
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.fillText('开发BIM应用', canvas.width / 2, canvas.height / 2 - 160);
ctx.fillText('就用BIMFACE', canvas.width / 2, canvas.height / 2 + 160);