ske library support
This commit is contained in:
parent
1e84d965ff
commit
113efc1d23
|
@ -12,6 +12,7 @@
|
||||||
"browserify": "^16.5.0",
|
"browserify": "^16.5.0",
|
||||||
"esmify": "^2.1.1",
|
"esmify": "^2.1.1",
|
||||||
"picnic": "^6.5.2",
|
"picnic": "^6.5.2",
|
||||||
|
"ske-lexonomy": "^0.0.x",
|
||||||
"snabbdom": "^0.7.4",
|
"snabbdom": "^0.7.4",
|
||||||
"tinyify": "^2.5.2"
|
"tinyify": "^2.5.2"
|
||||||
}
|
}
|
||||||
|
|
5
src/lib/ske.py
Normal file
5
src/lib/ske.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
__pragma__ ('noanno')
|
||||||
|
__pragma__ ('js', "var s_ske = require('ske-lexonomy');", None)
|
||||||
|
|
||||||
|
# export the symbols
|
||||||
|
SkeLexonomy = s_ske
|
|
@ -2,6 +2,7 @@ from model.entry import Entry
|
||||||
from model.example import Example
|
from model.example import Example
|
||||||
from browser import window
|
from browser import window
|
||||||
from model.example_clusters import ExampleClusters
|
from model.example_clusters import ExampleClusters
|
||||||
|
from lib import ske
|
||||||
|
|
||||||
|
|
||||||
class Model:
|
class Model:
|
||||||
|
@ -30,6 +31,9 @@ class Model:
|
||||||
|
|
||||||
# hiding cluster numbers
|
# hiding cluster numbers
|
||||||
self.clusters_shown = True
|
self.clusters_shown = True
|
||||||
|
|
||||||
|
# ske interface
|
||||||
|
self.ske = __new__(ske.SkeLexonomy());
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
# do both resets at once
|
# do both resets at once
|
||||||
|
|
Loading…
Reference in New Issue
Block a user