-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbehivior.ts
38 lines (35 loc) · 940 Bytes
/
behivior.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import {BeHive, EMC, MountObserver, seed} from 'be-hive/be-hive.js';
import {AP} from './types';
export const emc: EMC<any, AP> = {
base: 'be-repeated',
branches: ['', 'start-idx', 'end-idx', 'templ-idx', 'buffer-size'],
map: {
'0.0': {
instanceOf: 'Object',
mapsTo: '.'
},
'1.0': {
instanceOf: 'Number',
mapsTo: 'startIdx'
},
'2.0': {
instanceOf: 'Number',
mapsTo: 'endIdx',
},
'3.0': {
instanceOf: 'Number',
mapsTo: 'templIdx',
},
'4.0': {
instanceOf: 'Number',
mapsTo: 'bufferSize'
}
},
enhPropKey: 'beRepeated',
importEnh: async () => {
const {BeRepeated} = await import('./be-repeated.js');
return BeRepeated;
}
};
const mose = seed(emc);
MountObserver.synthesize(document, BeHive, mose);