import type PanoTagPluginController from '..'; import type { Tag, TagContentType, Tag as TagData, TagInstance } from '../..'; import { BaseTag } from './BaseTag'; import type { PartialObjectDeep } from '../../../typings/typings'; import type { Vector3 } from 'three'; import { Rectangle } from '../../../Sculpt/Objects/Rectangle'; export declare class PlaneTag extends BaseTag { rectanglePlane?: Rectangle; private _floorIndex?; private _floorIndexDirty; private _opacity?; /** * 因不可见被销毁前是否处于播放态。 * PlaneTag 实例在不可见期间存活(只有 mediaPlane 被销毁),因此状态记在这里。 */ private wasPlayingBeforeHidden; constructor(plugin: PanoTagPluginController, tagData: TagData); /** 获取透明度 */ get opacity(): number; /** 设置透明度 (0-1) */ set opacity(value: number); /** 获取楼层索引(惰性计算 + 缓存) */ get floorIndex(): number | undefined; /** 标记 floorIndex 需要重新计算(在位置等相关数据变化时调用) */ invalidateFloorIndex(): void; applyVisible(): void; set(tag: PartialObjectDeep>, deepMerge?: boolean): void; setData(...data: Parameters>['setData']>): void; /** 计算楼层索引 */ private computeFloorIndex; private loadModel; private initialSculpt; editorEnable(): void; editorDisable(position?: Vector3[]): void; private getRectangleHelper; /** * 标签因为 visiblePanoIndex 等可见性规则被隐藏时,同时隐藏编辑辅助元素。 * 当标签重新可见且仍处于编辑态时,再恢复辅助元素显示。 */ private syncEditorAuxiliaryVisibility; /** * 自动播放使用真实观察点到屏幕角点的视线检测,不复用展示用的 horizontal 射线。 * 这样标签仍可按既有策略展示,但真实视线被楼板、墙体等挡住时不会自动播放或抢占音频焦点。 */ private canAutoPlayByOcclusion; private renderVideoPlane; private renderImagePlane; private renderEmptyPlane; computeNormal(): Vector3; } export type PlaneTagInterface = TagInstance;