Skip to content

Commit

Permalink
Rebuild docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Aug 19, 2024
1 parent fb6766e commit 3dedca9
Show file tree
Hide file tree
Showing 6 changed files with 315 additions and 177 deletions.
14 changes: 13 additions & 1 deletion docs/0.bootstrap.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/0.bootstrap.worker.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/bootstrap.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
/******/ "__wbindgen_string_new": function(p0i32,p1i32) {
/******/ return installedModules["../pkg/diffenator3_bg.js"].exports["__wbindgen_string_new"](p0i32,p1i32);
/******/ },
/******/ "__wbg_call_b3ca7c6051f9bec1": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../pkg/diffenator3_bg.js"].exports["__wbg_call_b3ca7c6051f9bec1"](p0i32,p1i32,p2i32);
/******/ "__wbg_call_89af060b4e1523f2": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../pkg/diffenator3_bg.js"].exports["__wbg_call_89af060b4e1523f2"](p0i32,p1i32,p2i32);
/******/ },
/******/ "__wbg_new_abda76e883ba8a5f": function() {
/******/ return installedModules["../pkg/diffenator3_bg.js"].exports["__wbg_new_abda76e883ba8a5f"]();
Expand Down Expand Up @@ -101,7 +101,7 @@
/******/ promises.push(installedWasmModuleData);
/******/ else {
/******/ var importObject = wasmImportObjects[wasmModuleId]();
/******/ var req = fetch(__webpack_require__.p + "" + {"../pkg/diffenator3_bg.wasm":"4e63794b39b83b4a3b88"}[wasmModuleId] + ".module.wasm");
/******/ var req = fetch(__webpack_require__.p + "" + {"../pkg/diffenator3_bg.wasm":"fd5dd7b693de39dfe6b0"}[wasmModuleId] + ".module.wasm");
/******/ var promise;
/******/ if(importObject instanceof Promise && typeof WebAssembly.compileStreaming === 'function') {
/******/ promise = Promise.all([WebAssembly.compileStreaming(req), importObject]).then(function(items) {
Expand Down Expand Up @@ -192,7 +192,7 @@
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("var module = __webpack_require__.e(/*! import() */ 0).then(__webpack_require__.bind(null, /*! ../pkg/diffenator3.js */ \"../pkg/diffenator3.js\"));\nasync function init() {\n let wasm = await module;\n self.postMessage({ type: \"ready\" })\n console.log(\"Got wasm module\", wasm);\n wasm.debugging();\n self.onmessage = async (event) => {\n console.log(\"Worker received message\");\n console.log(event);\n const { command, beforeFont, location, afterFont } = event.data;\n if (command == \"axes\") {\n self.postMessage({\n \"type\": \"axes\",\n \"axes\": JSON.parse(wasm.axes(beforeFont, afterFont))[\"axes\"]\n });\n } else if (command == \"tables\") {\n wasm.diff_tables(beforeFont, afterFont, (tables) => {\n self.postMessage({\n \"type\": \"tables\",\n \"tables\": JSON.parse(tables)[\"tables\"]\n });\n });\n } else if (command == \"glyphs\") {\n wasm.diff_glyphs(beforeFont, afterFont, location, (glyphs) => {\n self.postMessage({\n \"type\": \"glyphs\",\n \"glyphs\": JSON.parse(glyphs)[\"glyphs\"]\n });\n });\n } else if (command == \"words\") {\n wasm.diff_words(beforeFont, afterFont, location, (words) => {\n self.postMessage({\n \"type\": \"words\",\n \"words\": JSON.parse(words)[\"words\"]\n });\n });\n }\n\n }\n return self;\n}\n\ninit();\n\n\n//# sourceURL=webpack:///./webworker.js?");
eval("var module = __webpack_require__.e(/*! import() */ 0).then(__webpack_require__.bind(null, /*! ../pkg/diffenator3.js */ \"../pkg/diffenator3.js\"));\nasync function init() {\n let wasm = await module;\n self.postMessage({ type: \"ready\" });\n // console.log(\"Got wasm module\", wasm);\n wasm.debugging();\n self.onmessage = async (event) => {\n // console.log(\"Worker received message\");\n // console.log(event);\n const { command, beforeFont, location, afterFont } = event.data;\n if (command == \"axes\") {\n let obj = JSON.parse(wasm.axes(beforeFont, afterFont));\n obj[\"type\"] = \"axes\";\n self.postMessage(obj);\n } else if (command == \"tables\") {\n wasm.diff_tables(beforeFont, afterFont, (tables) => {\n self.postMessage({\n type: \"tables\",\n tables: JSON.parse(tables)[\"tables\"],\n });\n });\n } else if (command == \"new_missing_glyphs\") {\n wasm.new_missing_glyphs(beforeFont, afterFont, (new_missing_glyphs) => {\n self.postMessage({\n type: \"new_missing_glyphs\",\n cmap_diff: JSON.parse(new_missing_glyphs)[\"new_missing_glyphs\"],\n });\n });\n } else if (command == \"modified_glyphs\") {\n wasm.modified_glyphs(beforeFont, afterFont, location, (glyphs) => {\n self.postMessage({\n type: \"modified_glyphs\",\n modified_glyphs: JSON.parse(glyphs)[\"modified_glyphs\"],\n });\n });\n } else if (command == \"words\") {\n wasm.diff_words(beforeFont, afterFont, location, (words) => {\n self.postMessage({\n type: \"words\",\n words: JSON.parse(words)[\"words\"],\n });\n });\n }\n };\n return self;\n}\n\ninit();\n\n\n//# sourceURL=webpack:///./webworker.js?");

/***/ })

Expand Down
Binary file not shown.
194 changes: 27 additions & 167 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<!DOCTYPE html>
<html>
<html lang="en" dir="auto">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style>
@font-face {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Diffenator3</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct"
crossorigin="anonymous"></script>
<style type="text/css">
@font-face {
font-family: "Font Before";
src: url();
}
Expand All @@ -27,159 +30,13 @@
.font-after {
font-family: "Font After", "Adobe Notdef";
}

</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct"
crossorigin="anonymous"></script>
<style>
.modal-dialog {
max-width: 100%;
margin: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100vh;
display: flex;
}

.fontdrop {
padding: 30px;
border-radius: 20px;
outline: 3px dashed #ffffffff;
outline-offset: -20px;
}

#fontbefore {
background-color: #ddffdddd;
}

#fontafter {
background-color: #ffdddddd;
}

.dragging {
background-image: linear-gradient(rgb(0 0 0/5%) 0 0);
outline: 5px dashed #ffffffff;
}

/* Toggle button */
#font-nav {
position: fixed;
right: 20px;
z-index: 100;
}

#font-toggle {}

.nav-item {
display: block;
cursor: pointer;
-webkit-user-select: none;
/* Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* IE10+/Edge */
user-select: none;
/* Standard */
text-align: center;
color: white;
background-color: black;
display: block;
font-size: 9pt;
padding: 5px;
margin: 2px;
}

.glyphgrid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
grid-column-gap: 10px;
grid-row-gap: 10px;
}

.wordgrid {
display: flex;
flex-wrap: wrap;
row-gap: 20px;
column-gap: 20px;
}

.cell-word {
font-size: 50px;
}

/* Table differ */

.node {
font-family: courier;
cursor: pointer;
position: relative;
left: 30px;
padding: 5px;
display: block;
border: 1px dashed grey;
}

.header {
font-weight: bold;
}

.attrib-old {
color: red;
cursor: text;
}

.attrib-new {
color: green;
cursor: text;
}

.leaf {
font-weight: bold;
}

.old .cell .new {
display: none;
}

.new .cell .old {
display: none;
}

.both .cell .old {
opacity: 0.75;
color: red;
}

.both .cell .new {
opacity: 0.75;
position: absolute;
top: 0;
color: green;
}

.spacer {
display: block;
float: left;
width: 100%;
}

.attr-before {
color: green;
}

.attr-after {
color: red;
}
</style>
<script src="index.js">
</script>
:root {
--node-pt-size: 60px;
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>

<body>
Expand Down Expand Up @@ -231,23 +88,26 @@ <h2>Font after</h2>

<div class="container">

<div id="font-nav">
<div class="nav-item" id="fonttoggle">Old</div>
<div id="ui-nav">
<div class="ui-nav-item" id="fonttoggle">Old</div>
<div class="ui-nav-item" id="fontanimate">Animate</div>
<div id="axes">
</div>
</div>

<h1> Table diff</h1>
<div id="difftable"> </div>
<div id="cmapdiff"> </div>
<div id="glyphdiff"> </div>
<h2> Shaping Words</h2>
<div id="wordspinner">
<div id="worddiff">
<h4>Modified Words</h4>
<div id="wordspinner">
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<div id="worddiffinner">
</div>
</div>
<div id="worddiff">
</div>
<div id="difftable"> </div>
</div>
</body>
<script src="./bootstrap.js"></script>
Expand Down
Loading

0 comments on commit 3dedca9

Please sign in to comment.