Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 85cad9d

Browse files
author
Steven Roulleau
committed
Merge pull request #29 in WS/myscriptjs from fix-math to 1.3
* commit '950bfd0b320692a212918f74802ef02b7ed2b6a2': fix(examples): math import with strokes
2 parents 4e1aa20 + 950bfd0 commit 85cad9d

File tree

6 files changed

+10
-131
lines changed

6 files changed

+10
-131
lines changed

examples/index.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,6 @@ <h2><a class="title" name="v4-ws">iink SDK web with WebSockets</a></h2>
141141
</svg>
142142
Get source code</a>
143143
</div>
144-
<p><strong>Import content math</strong></p>
145-
<div class="center">
146-
<a href="v4/import_content_math.html" class="btn">
147-
<svg class="icn">
148-
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icn-play"></use>
149-
</svg>
150-
View example</a>
151-
<a href="https://github.com/MyScript/MyScriptJS/blob/master/examples/v4/import_content_math.html" class="btn">
152-
<svg class="icn">
153-
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icn-github"></use>
154-
</svg>
155-
Get source code</a>
156-
</div>
157144
<p><strong>Import content math with JIIX</strong></p>
158145
<div class="center">
159146
<a href="v4/import_math_jiix.html" class="btn">

examples/v4/file_export.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
}
2222
</style>
2323

24-
<!-- Live reload with webpack -->
25-
<script type="text/javascript" src="http://localhost:8080/webpack-dev-server.js"></script>
2624
<script src="https://code.jquery.com/pep/0.4.3/pep.js"></script>
2725
<script type="text/javascript" src="../../dist/myscript.min.js"></script>
2826
</head>

examples/v4/import_content_math.html

Lines changed: 0 additions & 105 deletions
This file was deleted.

examples/v4/import_math_jiix.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191

9292
importElement.addEventListener('click', () => {
9393
if(toImport !== null) {
94+
editorELement2.editor.clear();
9495
if(editorELement1.editor.isEmpty) {
95-
editorELement2.editor.clear();
9696
toImport = null;
9797
} else {
9898
infosElement.style.visibility = 'hidden';
@@ -134,6 +134,11 @@
134134
alwaysConnected: true,
135135
math: {
136136
mimeTypes: ['application/vnd.myscript.jiix', 'application/x-latex']
137+
},
138+
export: {
139+
jiix: {
140+
strokes: true,
141+
}
137142
}
138143
}
139144
}

test/lib/configuration.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,6 @@ const configurations = [{
249249
apiVersion: 'V4',
250250
alternate: 'RAB',
251251
examples: ['/examples/v4/custom_resources_content_math.html'],
252-
},{
253-
type: 'MATH',
254-
protocol: 'WEBSOCKET',
255-
apiVersion: 'V4',
256-
alternate: 'import',
257-
examples: ['/examples/v4/import_content_math.html'],
258252
}, {
259253
type: 'TEXT',
260254
protocol: 'WEBSOCKET',

test/nightwatch/partial/03-iink/01-math-iink-ws-cdkv4.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const inkPlayer = require('../../lib/inkPlayer');
22
const config = require('../../../lib/configuration').getConfiguration('MATH', 'WEBSOCKET', 'V4');
3-
const configImport = require('../../../lib/configuration').getConfiguration('MATH', 'WEBSOCKET', 'V4', '', 'import');
3+
// const configImport = require('../../../lib/configuration').getConfiguration('MATH', 'WEBSOCKET', 'V4', '', 'import');
44

55
function runLabelTests(ink) {
66
module.exports[config.header + ' checkConvert ' + ink.name] = function checkConvert(browser) {
@@ -36,6 +36,6 @@ config.inks
3636
.forEach(ink => runUndoTests(ink));
3737

3838

39-
configImport.inks
40-
.filter(ink => ['equation2', 'equation3'].includes(ink.name))
41-
.forEach(ink => runImportTests(ink));
39+
// configImport.inks
40+
// .filter(ink => ['equation2', 'equation3'].includes(ink.name))
41+
// .forEach(ink => runImportTests(ink));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy