未验证 提交 11003719 编写于 作者: R RotPublic 提交者: GitHub

Fix the packaging problem caused by Chinese characters in svg resource files

上级 3de5e047
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><g fill="none" fill-rule="evenodd"><circle cx="7" cy="7" r="7" fill="#F3F8FE"/><polygon fill="#DDD" points="8.281 7 5 10 5.547 10.5 9.375 7 5.547 3.5 5 4"/></g></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><g fill="none" fill-rule="evenodd" transform="matrix(-1 0 0 1 14 0)"><circle cx="7" cy="7" r="7" fill="#F3F8FE"/><polygon fill="#DDD" points="8.281 7 5 10 5.547 10.5 9.375 7 5.547 3.5 5 4"/></g></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><path fill="#999" d="M7,0 L7,0 C3.13400755,0 0,3.13400755 0,7 C0,7 0,7 0,7 L0,7 C0,10.8660098 3.13400755,14.0000173 7,14.0000173 L7,14.0000173 C10.8660084,14.0000173 14.000016,10.8660098 14.000016,7 L14.000016,7 C14.000016,3.13400861 10.8660084,0 7,0 L7,0 Z M11.2525134,11.2525131 L11.2525135,11.252513 C10.7048627,11.8023117 10.0555162,12.2403604 9.3406363,12.5422645 C8.59951044,12.8572648 7.81200953,13.0156582 7.00000858,13.0156582 L7.00000849,13.0156582 C5.40441679,13.0195737 3.8734111,12.3857487 2.74750354,11.255138 L2.74750336,11.2551378 C2.1976117,10.7072286 1.75955748,10.0575786 1.45775186,9.34238556 L1.45775216,9.34238626 C1.14368421,8.60148325 0.982666252,7.80472237 0.98435912,7.00000854 L0.98435912,6.9999854 C0.980679249,5.40427065 1.61483393,3.87323762 2.74576591,2.74748045 L2.74576566,2.7474807 C3.29341649,2.19768201 3.94276295,1.75963326 4.65764288,1.4577292 L4.65764309,1.45772911 C5.398542,1.14366937 6.19529332,0.982655511 7.00000714,0.98435248 L7.0000074,0.98435248 C8.59572214,0.980666565 10.1267552,1.61481504 11.2525123,2.74574565 L11.2525123,2.74574559 C11.802311,3.29339642 12.2403597,3.94274288 12.5422638,4.65762281 C12.8572642,5.40049868 13.0156535,6.18799959 13.0156535,7.00000054 L13.0156535,7.00011144 C13.0190805,8.59596291 12.384582,10.1269959 11.2533055,11.252589 L11.2525134,11.2525131 Z M6.93000837,9.07726056 L6.88013331,9.07463556 L6.88013332,9.07463556 C6.60994121,9.04746842 6.41268863,8.80677451 6.43913281,8.53650993 C6.50563288,7.85400914 7.00613347,7.3027585 7.55738411,6.75150786 C8.43851013,5.87038183 8.45251015,5.5895065 8.46826017,5.29288116 L8.4682602,5.29288053 C8.48459141,4.94147739 8.35398848,4.59912094 8.10775978,4.34787943 L8.10775983,4.34787949 C7.81734836,4.04532465 7.41588559,3.87462425 6.99650854,3.87537894 L6.99475854,3.87537894 L6.99475857,3.87537894 C6.18432442,3.8777875 5.52833889,4.53494377 5.52738186,5.34538065 L5.52738186,5.34538065 C5.52738186,5.61720929 5.30702243,5.83756872 5.03519379,5.83756872 C4.76336515,5.83756872 4.54300572,5.61720929 4.54300572,5.34538065 C4.54300572,4.69000489 4.79675601,4.07487917 5.25963155,3.61200363 L5.25963149,3.6120037 C5.7177328,3.15003597 6.34154154,2.89043137 6.9921335,2.8909989 L6.9921336,2.8909989 C7.68252171,2.88978156 8.34332932,3.17117818 8.82088573,3.66975376 C9.26013624,4.1326293 9.4841365,4.72762999 9.45088646,5.34538071 C9.41763643,5.97800645 9.2233862,6.47763203 8.25213507,7.44800816 C7.7603845,7.93975873 7.44975914,8.30900916 7.4182591,8.63363454 L7.41825909,8.63363464 C7.39309146,8.88540388 7.18128284,9.07716719 6.92825852,9.07726056 L6.93000837,9.07726056 Z M6.32013266,10.5175122 L6.32013266,10.5175122 C6.30756117,10.8444303 6.56239037,11.1196414 6.88930852,11.1322127 C7.21622667,11.1447842 7.49143774,10.889955 7.50400904,10.5630368 C7.50459238,10.5478673 7.50459238,10.532681 7.50400905,10.5175115 L7.50400904,10.5175113 C7.4914375,10.1905932 7.21622667,9.93576419 6.88930852,9.94833549 C6.58002164,9.960229 6.33202584,10.2082245 6.32013266,10.5175113 L6.32013266,10.5175122 Z"/></svg>
\ No newline at end of file
...@@ -561,11 +561,9 @@ grapher.NodeElement = class { ...@@ -561,11 +561,9 @@ grapher.NodeElement = class {
} }
height = height + block.height; height = height + block.height;
} }
for (let i = 0; i < this._blocks.length; i++) { for (let i = 0; i < this._blocks.length; i++) {
// push 进来的header 或者 list // push 进来的header 或者 list
const top = tops.shift(); const top = tops.shift();
this._blocks[i].update(rootElement, top, width, i == 0, i == this._blocks.length - 1); this._blocks[i].update(rootElement, top, width, i == 0, i == this._blocks.length - 1);
} }
const borderElement = this.createElement('path'); const borderElement = this.createElement('path');
...@@ -860,13 +858,11 @@ grapher.NodeElement.Header = class { ...@@ -860,13 +858,11 @@ grapher.NodeElement.Header = class {
} }
let lineElement; let lineElement;
for (i = 0; i < this._elements.length; i++) { for (i = 0; i < this._elements.length; i++) {
element = this._elements[i]; element = this._elements[i];
if (i != 0) { if (i != 0) {
lineElement = this.createElement('line'); lineElement = this.createElement('line');
lineElement.setAttribute('class', 'node'); lineElement.setAttribute('class', 'node');
lineElement.setAttribute('x1', element.x); lineElement.setAttribute('x1', element.x);
...@@ -876,7 +872,6 @@ grapher.NodeElement.Header = class { ...@@ -876,7 +872,6 @@ grapher.NodeElement.Header = class {
lineElement.setAttribute('y1', top); lineElement.setAttribute('y1', top);
lineElement.setAttribute('y2', top + this._height); lineElement.setAttribute('y2', top + this._height);
parentElement.appendChild(lineElement); parentElement.appendChild(lineElement);
} }
} }
...@@ -893,7 +888,6 @@ grapher.NodeElement.Header = class { ...@@ -893,7 +888,6 @@ grapher.NodeElement.Header = class {
lineElement.setAttribute('y1', top); lineElement.setAttribute('y1', top);
lineElement.setAttribute('y2', top); lineElement.setAttribute('y2', top);
parentElement.appendChild(lineElement); parentElement.appendChild(lineElement);
} }
} }
......
...@@ -332,7 +332,6 @@ view.View = class { ...@@ -332,7 +332,6 @@ view.View = class {
for (const node of nodes) { for (const node of nodes) {
const element = new grapher.NodeElement(this._host.document); const element = new grapher.NodeElement(this._host.document);
const addNode = (element, node, edges) => { const addNode = (element, node, edges) => {
const header = element.block('header'); const header = element.block('header');
const styles = ['node-item-type']; const styles = ['node-item-type'];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册