-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove inject css vite plugin to manually insert the content of aladi…
…n.css in js inside the aladin lite div container
- Loading branch information
1 parent
914f296
commit cbfe278
Showing
6 changed files
with
50 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
|
||
<div class="shadow-host"></div> | ||
|
||
<script type="text/javascript" src="./../dist/aladin.umd.cjs" charset="utf-8"></script> | ||
<script type="text/javascript"> | ||
const shadowEl = document.querySelector(".shadow-host"); | ||
const shadow = shadowEl.attachShadow({mode: 'open'}); | ||
|
||
let aladinLiteEl = document.createElement('div'); | ||
aladinLiteEl.id = "aladin-lite-div" | ||
aladinLiteEl.style = "width: 768px; height: 512px"; | ||
shadow.appendChild(aladinLiteEl) | ||
console.log(aladinLiteEl.getRootNode() instanceof ShadowRoot) | ||
A.init.then(() => { | ||
let aladin = A.aladin( | ||
aladinLiteEl, | ||
{ | ||
survey: 'P/allWISE/color', // set initial image survey | ||
projection: 'AIT', // set a projection | ||
fov: 1.5, // initial field of view in degrees | ||
target: 'orion', // initial target | ||
} | ||
); | ||
|
||
//aladin.removeHiPSFromFavorites('CDS/P/allWISE/color') | ||
}); | ||
</script> | ||
<style> | ||
.aladin-cat-browser-box { | ||
width: 600px; | ||
} | ||
</style> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters