Comments (4)
测试文本:
The procedure was successfully applied for the determination of carbamazepine in pharmaceutical samples, human plasma and breast milk.然后标记procedure正常,标记“successfully” 开始位置正确,结束位置错了,“successfully”后面的词标记的开始和结束都错位了。
本地和https://synyi.github.io/poplar/#/annotate 在线测试都是同样结果。
已经在修复这一问题。
这一问题似乎只在Firefox上存在,如果急着使用,可以尝试使用Chrome。
from poplar.
牛!非常感谢
from poplar.
经查,该问题是由于部分浏览器+字体的组合下,会将多个字符(例如相邻的f和l)渲染为单个glyph
,而getExtentOfChar()
方法此时返回的width
并非这个字符的宽度。
在解决这一问题之前,较为保险的方案是使用等宽字体作为英文字体。
from poplar.
把font-family改成”Courier New“后就正常了,谢谢。
from poplar.
Related Issues (20)
- connectionCategories以及labelCategories可以动态修改吗
- 项目中使用该包进行初始化后存在的问题 HOT 1
- html标签如何使用呢
- 111
- 异常关系连接失败无法回显
- 似乎并没有提供对labelcategory和Connectioncategory的增删改查操作? HOT 2
- 当把含有annotator的部分做成组件 然后在主页面中进行循环渲染时,svg永远只有300px宽度 HOT 1
- ie11
- 多行标注,标签显示不出的问题 HOT 3
- labelCategories为空数组时,文章只显示一行内容?
- contentInsert 为何只能键盘输入 手动给value赋值报错 HOT 1
- 火狐浏览器标注位置显示错误的问题
- contentEditable为false时,导出svg报错
- 可否写一个简明的启动说明文档 HOT 3
- 构造函数第一个参数使用字符串报错 HOT 1
- 数据读取
- 没有鼠标悬浮事件
- 样式无法修改 HOT 1
- config 完全不起作用
- Bug: selection of more than one line gives a unexpected behaviour
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poplar.