Skip to content

Commit ff34a0d

Browse files
w8raminerhanemi
andauthored
Fixed the arabic fonts embedding (#117)
* Fixed the arabic fonts embedding * update ogma-linkurious-parser version * Update package-lock.json --------- Co-authored-by: aminerhanemi <amine@linkurio.us>
1 parent 89dc7bc commit ff34a0d

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

package-lock.json

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"@linkurious/ogma-linkurious-parser": "4.0.25",
103103
"@linkurious/ogma-mini-map": "0.0.47",
104104
"@linkurious/rest-client": "4.0.25",
105-
"@linkurious/svg-font-embedder": "0.0.52",
105+
"@linkurious/svg-font-embedder": "0.0.74",
106106
"@mapbox/mapbox-gl-rtl-text": "0.2.3",
107107
"@uiw/color-convert": "^1.1.1",
108108
"@uiw/react-color-swatch": "1.4.3",

src/utils/svg.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ export async function exportOrginalSize(
155155
const tl = ogma.view.graphToScreenCoordinates({ x: minX, y: minY });
156156
const br = ogma.view.graphToScreenCoordinates({ x: maxX, y: maxY });
157157

158-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
159158
const width = br.x - tl.x + 2 * options.margin!;
160-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
161159
const height = br.y - tl.y + 2 * options.margin!;
162160

163161
// resize canvas

tests/e2e/steps/left-panel.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function getFormat(selectedFormat: string) {
1010
return formats.find((f) => f.label === selectedFormat);
1111
}
1212
When(/^I select format (.*)$/, async (format: string) => {
13-
if (format === 'Full Size') return;
13+
if (format === "Full Size") return;
1414
I.waitForElement(locator.build(".format-select"));
1515
I.click(locator.build(".format-select"));
1616
I.waitForElement(locator.build("span").withText(format));
@@ -68,15 +68,15 @@ When(/^I toggle text slider$/, async () => {
6868
});
6969

7070
Then(/^text disappear$/, async () => {
71-
const areTextVisible = await I.executeScript(() => {
72-
//@ts-ignore
71+
await I.executeScript(() => {
72+
// @ts-expect-error internal API
7373
return ogma.modules.graphics._visibility["nodeTexts"] > 0;
7474
});
7575
});
7676
Then(/^text reapear$/, async () => {
7777
assert.isTrue(
7878
await I.executeScript(() => {
79-
//@ts-ignore
79+
// @ts-expect-error internal API
8080
return ogma.modules.graphics._visibility["nodeTexts"] <= 0;
8181
})
8282
);

0 commit comments

Comments
 (0)