fix: import A when it is necessary

This commit is contained in:
bmatthieu3
2023-05-25 15:24:49 +02:00
committed by Matthieu Baumann
parent fa52c39d7c
commit 4808f84b37
7 changed files with 9 additions and 4 deletions

View File

@@ -7,6 +7,7 @@
<script type="module">
import A from '../src/js/A.js';
let aladin;
A.init.then(() => {
aladin = A.aladin(

View File

@@ -36,6 +36,7 @@ import { Coo } from "./libs/astro/coo.js";
import { VOTable } from "./vo/VOTable.js";
import { ALEvent } from "./events/ALEvent.js";
import { Footprint } from "./Footprint.js";
import A from "./A.js";
import $ from 'jquery';
@@ -292,7 +293,6 @@ export let Catalog = (function() {
// return an array of Source(s) from a VOTable url
// callback function is called each time a TABLE element has been parsed
Catalog.parseVOTable = function(url, successCallback, errorCallback, maxNbSources, useProxy, raField, decField) {
console.log(url)
VOTable.parse(
url,
(fields, rows) => {

View File

@@ -29,6 +29,7 @@
*****************************************************************************/
import { GenericPointer } from "./GenericPointer.js";
import A from "./A.js";
export let DefaultActionsForContextMenu = (function () {

View File

@@ -1,3 +1,5 @@
import A from "./A.js";
export let DiscoveryTree = (function () {
// Constructor
var DiscoveryTree = function (aladin) {

View File

@@ -30,10 +30,9 @@
*
*****************************************************************************/
import { AladinUtils } from "./AladinUtils.js";
import { Footprint } from "./Footprint.js";
import { Line } from './Line.js';
import { Utils } from './Utils.js';
import A from "./A.js";
export let Overlay = (function() {
let Overlay = function(options) {

View File

@@ -17,6 +17,7 @@
// along with Aladin Lite.
//
import A from "../A.js";
import { MocServer } from "../MocServer";
import { Utils } from "../Utils";
import autocomplete from 'autocompleter';

View File

@@ -33,6 +33,7 @@ import { Color } from "../Color.js";
import { ALEvent } from "../events/ALEvent.js";
import { CatalogSelector } from "./CatalogSelector.js";
import { HiPSLayer } from "./HiPSLayer.js";
import A from "../A.js";
import $ from 'jquery';