Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hatnote
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpdl-hatnote
Hatnote
Commits
189b4aec
Commit
189b4aec
authored
3 months ago
by
Ignat Kharlamov
Browse files
Options
Downloads
Patches
Plain Diff
implement embedded_mode
parent
af6becac
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
web/src/ui/canvas/canvas.ts
+8
-2
8 additions, 2 deletions
web/src/ui/canvas/canvas.ts
web/src/ui/canvas/geo/geoVisualisation.ts
+8
-2
8 additions, 2 deletions
web/src/ui/canvas/geo/geoVisualisation.ts
with
16 additions
and
4 deletions
web/src/ui/canvas/canvas.ts
+
8
−
2
View file @
189b4aec
...
...
@@ -62,7 +62,10 @@ export class Canvas {
transition
:
Transition
,
showLegendInfoboxSubject
:
Subject
<
boolean
>
)
{
this
.
_width
=
window
.
innerWidth
;
this
.
_height
=
window
.
innerHeight
-
theme
.
hatnoteTheme
.
header_height
;
this
.
_height
=
settings
.
embedded_mode
?
window
.
innerHeight
:
window
.
innerHeight
-
theme
.
hatnoteTheme
.
header_height
;
this
.
visDirector
=
theme
;
this
.
settings
=
settings
this
.
showLegendInfoboxSubject
=
showLegendInfoboxSubject
...
...
@@ -134,7 +137,10 @@ export class Canvas {
public
windowUpdate
()
{
// update canvas root dimensions
this
.
width
=
window
.
innerWidth
;
this
.
height
=
window
.
innerHeight
-
this
.
visDirector
.
hatnoteTheme
.
header_height
;
this
.
height
=
this
.
settings
.
embedded_mode
?
window
.
innerHeight
:
window
.
innerHeight
-
this
.
visDirector
.
hatnoteTheme
.
header_height
;
this
.
_root
.
attr
(
"
width
"
,
this
.
width
).
attr
(
"
height
"
,
this
.
height
);
// update banner
...
...
...
...
This diff is collapsed.
Click to expand it.
web/src/ui/canvas/geo/geoVisualisation.ts
+
8
−
2
View file @
189b4aec
...
...
@@ -120,9 +120,15 @@ export class GeoVisualisation {
private
initWorldMapSvg
(){
const
width
=
this
.
canvas
.
width
;
const
marginTop
=
this
.
canvas
.
visDirector
.
hatnoteTheme
.
header_height
+
10
;
const
marginTop
=
this
.
canvas
.
settings
.
embedded_mode
?
0
:
this
.
canvas
.
visDirector
.
hatnoteTheme
.
header_height
+
10
;
const
height
=
this
.
canvas
.
height
;
const
carouselProgressIndicatorSafeZone
=
this
.
canvas
.
visDirector
.
hatnoteTheme
.
progress_indicator_y_padding
+
10
;
const
carouselProgressIndicatorSafeZone
=
this
.
canvas
.
settings
.
embedded_mode
?
0
:
this
.
canvas
.
visDirector
.
hatnoteTheme
.
progress_indicator_y_padding
+
10
;
// create projection
let
projection
=
geoEqualEarth
().
fitExtent
([[
2
,
marginTop
+
2
],
[
width
-
2
,
height
-
2
-
carouselProgressIndicatorSafeZone
]],
{
type
:
"
Sphere
"
})
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment