From: Vincent Vanwaelscappel Date: Tue, 4 Mar 2025 16:42:05 +0000 (+0100) Subject: wait #7347 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c06d81f8c352dbf896da52c6168aaf9b625da7b1;p=fluidbook_tools.git wait #7347 --- diff --git a/src/Links/Link.php b/src/Links/Link.php index 6fb169b..70fda39 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -104,6 +104,7 @@ class Link public $in_popup = false; public $display_area; public $read_mode; + public $background_color; public $group; public $tooltip; public $blendmode = "normal"; diff --git a/src/Links/Object3DPopupLink.php b/src/Links/Object3DPopupLink.php index 26acf58..f333b89 100644 --- a/src/Links/Object3DPopupLink.php +++ b/src/Links/Object3DPopupLink.php @@ -13,12 +13,12 @@ class Object3DPopupLink extends NormalLink { $this->compiler->add3DViewer(); $this->copyExternalFile($this->to); - return '#/o3d/' . md5($this->to . '/' . $this->extra . '/' . $this->id); + return '#/o3d/' . md5($this->to . '/' . $this->extra . '/' . $this->id . '/' . $this->background_color); } public function getAdditionnalContent() { - return ' data-stats-type="popup_o3d" data-stats-name="' . $this->to . '" data-model="' . $this->to . '" '; + return ' data-stats-type="popup_o3d" data-stats-name="' . $this->to . '" data-model="' . $this->to . '" data-background-color="' . $this->background_color . '" '; } public function getDefaultTooltip()