yizhengfeng-jj

Results 4 comments of yizhengfeng-jj

oh,I also have this demand. Do you have any other way to solve it, thank you

> @JasonZhang1991 好的,感谢提出问题。Graphin 计划在 label 字段中新增 maxWidth 用来自动控制 label 的长度,超过隐藏,也将支持文本中 \换行。这将在正式版本中支持。 > 现在可以先在业务层做,用一个JS函数去判断字体长度,多余长度隐藏,然后把解析后的label传给graphin的 style.label.value 。 当然如果你需要更高级的功能,比如hover上去,隐藏的节点再次出现,可以将数据中存放完整的label数值,hover上去的时候,update当前的label即可。 请问这个功能上线了吗?按照你的做法,设置position不能正常居中

> @yizhengfeng-jj 这都迭代了好多个版本了,我都没有看到源码怎么告诉你错误呢? 不好意思我表达清楚,但是我刚刚换成了mocker-api还是有这个问题,这是我入口配置 ![image](https://user-images.githubusercontent.com/20452750/89977904-de418200-dc9e-11ea-9788-e507185d9f09.png) ![image](https://user-images.githubusercontent.com/20452750/89977961-ff09d780-dc9e-11ea-87d4-76e5463696b7.png) ![image](https://user-images.githubusercontent.com/20452750/89978035-3082a300-dc9f-11ea-8b04-bf437b513235.png)

## 问题 ![image](https://user-images.githubusercontent.com/20452750/50532563-f611d400-0b55-11e9-99a7-82540a2c62d1.png) 您好!按照我得理解,你输入 git commit -m 'xxxx'得话,会触发pre-commit钩子。也就是按照您说得触发precommit,然后执行后面得eslint检查。 ### 问题1: 写在script里面的,为什么git commit -m 'xxx'会触发,按照我的理解,不应该是npm run precommit触发么,就像npm run build一样,如果是npm run precommit触发,那么和git commit -m有什么关系了,我的最终疑惑是git -commit -m 不能够触发scirpt里面precommit的命令, ### 猜想 是因为husky,它监听到了git commit -m,...