Marker3DConfig

类:三维标签的配置项

Constructor

new Glodon.Bimface.Plugins.Marker3D.Marker3DConfig()

构造三维标签配置项

Members

NameTypeDescription
canvasString

三维标签的canvas对象

hoverAnimationString

是否开启hover放大动画效果

idString

三维标签的ID

layerIdString

图层ID,仅在ViewerGIS下生效

modelIdString

模型ID,仅在Viewer3D下生效

objectIdString

标签关联的构件ID

sizeNumber

三维标签的图片大小

srcString

三维标签的图片URL

tooltipString

三维标签的提示内容

tooltipStyleObject

三维标签的提示样式

worldPositionGlodon.Web.Geometry.Point3d

三维标签的空间位置

Example

三维canvas标签示例

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);