Skip to content
Snippets Groups Projects
Commit b38dc251 authored by baletiballo's avatar baletiballo
Browse files

Cleanup

parent bf06d36f
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@ function RenderScroll() {
.attr("data-allowed-types", fact.type);
});
console.log('Scroll rendered', scroll.label.textContent);
addDropZoneEventListeners();
}
$(function () {
RenderScroll();
......
......@@ -524,8 +524,8 @@
"path": null
}'> </data>
<script src="visualiseCursor.mjs" defer type="module"></script>
<script>
<!-- <script>
/* mouse and pointer event handling */
const rectangle = document.createElement("div");
rectangle.id = "rectangle";
......@@ -549,7 +549,7 @@
document.addEventListener("mouseout", followCursor);
document.addEventListener("pointerout", followCursor);
</script>
</script> -->
</body>
</html>
\ No newline at end of file
/**
* @typedef point
* @type {object}
* @property {number} x
* @property {number} y
* @property {number} z
*/
/**
* @typedef {Object} fact
* @property {string} id Fact id
* @property {string} s_type Fact type
* @property {string} label used in unity
* @property {string | null} _CustomLabel Custom label
* @property {boolean} hasCustomLabel
* @property {number} labelId
*/
/**
* @property {Point} point
* @property {Point} normal
* @property {string} s_type
* @property {string} label
* @property {string|null} _CustomLabel
* @property {boolean} hasCustomLabel
* @property {number} labelId
*/
var assignment;
/** @param {DragEvent} event */
function dropHandler(event: DragEvent) {
// ignore
if (event.dataTransfer === null
|| event.target === null
......@@ -141,3 +109,4 @@ function addDropZoneEventListeners() {
declare function getHint(slotId: string): void;
//addDropZoneEventListeners()
//#endregion Commented out Archive
......@@ -26,8 +26,6 @@ class Pure_Reference implements Backend_Object{
}
}
//#region Facts
/**
* A Fact is an instance (witness) of a `Backend_Object`, and as such it also has a value.
* @see representations Internal storage of possible MathML elements to display to the user when the value is referenced. For access using {@link show_value} is preferable, as it can have a default value and alike.
......@@ -53,6 +51,9 @@ interface Fact extends Backend_Object{
show_value(hint?: string): MathMLElement;
}
//#region Facts
/**
* A fact without any value known to us
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment