2020-04-06 01:51:13 +08:00
|
|
|
import cnchar from '../src/main/index';
|
|
|
|
import '../src/plugin/order';
|
|
|
|
import '../src/plugin/trad';
|
|
|
|
import '../src/plugin/poly';
|
2020-04-06 21:29:00 +08:00
|
|
|
import '../src/plugin/draw';
|
2020-04-06 01:51:13 +08:00
|
|
|
// import './plugin/draw'
|
|
|
|
// console.log('1',cnchar)
|
|
|
|
|
|
|
|
console.log(cnchar.stroke('一个', 'order'));
|
|
|
|
console.log(cnchar.stroke('長城', 'count', 'order', 'name'));
|
|
|
|
// console.log(cnchar.orderToWord(['横', '撇', '捺']));
|
|
|
|
// console.log(cnchar.orderToWord(['横', '撇', '捺'], 'start'));
|
|
|
|
console.log(cnchar.spellToWord('lv2'));
|
|
|
|
console.log(cnchar.spellInfo('lǘ'));
|
|
|
|
console.log(cnchar.strokeToWord(1));
|
|
|
|
console.log('美好的地方'.spell('tone'));
|
|
|
|
export default cnchar;
|
|
|
|
|
|
|
|
// var cnchar = require('./main/index')
|
|
|
|
// var order = require('./plugin/order')
|
|
|
|
// var trad = require('./plugin/trad')
|
|
|
|
// var poly = require('./plugin/poly')
|
|
|
|
// cnchar.use(order,trad,poly)
|
|
|
|
// console.log(cnchar.stroke("一个",'order'))
|
|
|
|
// console.log(cnchar.stroke('長城','count','order','name'))
|
|
|
|
// module.exports = cnchar
|
|
|
|
|
|
|
|
// import b from './b'
|
|
|
|
// // var b = require('./b')
|
|
|
|
// console.log(b);
|