Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • V vryPanoEdit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PHP
  • vryPanoEdit
  • Merge requests
  • !82

Merged
Created 4 years ago by 李文起@liwenqiContributor

生成html

  • Overview 0
  • Commits 1
  • Changes 2

生成html

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • master (base)

and
  • latest version
    42880327
    1 commit, 4 years ago

2 files
+ 13
- 12

    Preferences

    File browser
    Compare changes
src/Servic‎es/Hotspot‎
Hotspo‎tAction‎
ArticleHo‎tspot.php‎ +11 -3
HotspotOr‎dinary.php‎ +2 -9
src/Services/Hotspot/HotspotAction/ArticleHotspot.php
+ 11
- 3
  • View file @ 42880327

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
namespace Yjtec\PanoEdit\Services\Hotspot\HotspotAction;
use Yjtec\PanoEdit\Repositories\Eloquent\HotspotArticleRepository;
class ArticleHotspot extends HotspotAction
{
/************************************************* 生成XML ****************************************************/
Show 20 lines Show all unchanged lines Show 20 lines
if ($this->data['action_data'] && !empty($this->data['action_data']['article_id'])) {
$this->data['onclick'] = 'show_rich_txt("data:article_hotspot_'.$this->data['id'].'");';
//添加插件
static $plugin = 0;
//应用插件
if (!$plugin) {
//先启用$dom
self::$xmlService->addXmlPlugin('hotspot/richtxt/rich_text');
$plugin = 1;
}
$this->data['onclick'] = 'show_rich_text(data:article_hotspot_'.$this->data['id'].');';
$this->setArticleData($sceneNode,$this->data['id']);
}
Show 20 lines Show all unchanged lines
src/Services/Hotspot/HotspotOrdinary.php
+ 2
- 9
  • View file @ 42880327

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
}
//处理用户自定义图片
if ($this->data['icon_type'] == 2 && $this->data['img']['type'] == 1) {
$data['width'] = 80;
$data['height'] = 80;
} else {
//图片缩放0.6
$data['scale'] = 0.6;
}
$data['width'] = 80;
$data['height'] = 80;
$xmlService->setAttribute($hotspotNode,$data);
}
Show 20 lines Show all unchanged lines
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
0
Labels
None
Lock merge request
Unlocked
1
1 participant
李文起
Reference: php/vryPanoEdit!82
Source branch: feature/v1.2.8

Menu

Projects Groups Snippets
Help