Browse Source

ske library support

pull/1/head
Ozbolt Menegatti 1 year ago
parent
commit
113efc1d23
  1. 1
      package.json
  2. 5
      src/lib/ske.py
  3. 4
      src/model/model.py

1
package.json

@ -12,6 +12,7 @@
"browserify": "^16.5.0",
"esmify": "^2.1.1",
"picnic": "^6.5.2",
"ske-lexonomy": "^0.0.x",
"snabbdom": "^0.7.4",
"tinyify": "^2.5.2"
}

5
src/lib/ske.py

@ -0,0 +1,5 @@
__pragma__ ('noanno')
__pragma__ ('js', "var s_ske = require('ske-lexonomy');", None)
# export the symbols
SkeLexonomy = s_ske

4
src/model/model.py

@ -2,6 +2,7 @@ from model.entry import Entry
from model.example import Example
from browser import window
from model.example_clusters import ExampleClusters
from lib import ske
class Model:
@ -30,6 +31,9 @@ class Model:
# hiding cluster numbers
self.clusters_shown = True
# ske interface
self.ske = __new__(ske.SkeLexonomy());
def reset(self):
# do both resets at once

Loading…
Cancel
Save