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

Commit e044184

Browse files
author
Francois-Xavier Gentilhomme
committed
[DEV] Add importInk
1 parent bcd7f6f commit e044184

File tree

10 files changed

+415
-403
lines changed

10 files changed

+415
-403
lines changed

analysis.json

Lines changed: 156 additions & 169 deletions
Large diffs are not rendered by default.

docs/components/myscript-common-element/.bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
"paper-toggle-button": "^2.0.0",
4646
"paper-slider": "^2.0.2"
4747
},
48-
"_release": "d81ec9bff2",
48+
"_release": "ae218b53f3",
4949
"_resolution": {
5050
"type": "branch",
5151
"branch": "2.0.0-alpha1",
52-
"commit": "d81ec9bff24c259d12c98d62f3534515bd0abac4"
52+
"commit": "ae218b53f3b0dd2ac4db79a62310a8dbf1bd1178"
5353
},
5454
"_source": "https://github.com/MyScript/myscript-common-element.git",
5555
"_target": "2.0.0-alpha1",

docs/components/myscript-common-element/analysis.json

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@
893893
},
894894
{
895895
"name": "importContent",
896-
"description": "Trigger import",
896+
"description": "Import content",
897897
"privacy": "public",
898898
"sourceRange": {
899899
"start": {
@@ -918,17 +918,39 @@
918918
}
919919
]
920920
},
921+
{
922+
"name": "importInk",
923+
"description": "Import ink",
924+
"privacy": "public",
925+
"sourceRange": {
926+
"start": {
927+
"line": 755,
928+
"column": 12
929+
},
930+
"end": {
931+
"line": 759,
932+
"column": 13
933+
}
934+
},
935+
"metadata": {},
936+
"params": [
937+
{
938+
"name": "strokes",
939+
"type": "Array.<Object>"
940+
}
941+
]
942+
},
921943
{
922944
"name": "convert",
923945
"description": "Trigger convert",
924946
"privacy": "public",
925947
"sourceRange": {
926948
"start": {
927-
"line": 754,
949+
"line": 764,
928950
"column": 12
929951
},
930952
"end": {
931-
"line": 758,
953+
"line": 768,
932954
"column": 13
933955
}
934956
},
@@ -941,11 +963,11 @@
941963
"privacy": "public",
942964
"sourceRange": {
943965
"start": {
944-
"line": 764,
966+
"line": 774,
945967
"column": 12
946968
},
947969
"end": {
948-
"line": 768,
970+
"line": 778,
949971
"column": 13
950972
}
951973
},
@@ -958,11 +980,11 @@
958980
"privacy": "protected",
959981
"sourceRange": {
960982
"start": {
961-
"line": 770,
983+
"line": 780,
962984
"column": 12
963985
},
964986
"end": {
965-
"line": 775,
987+
"line": 785,
966988
"column": 13
967989
}
968990
},
@@ -988,11 +1010,11 @@
9881010
"privacy": "protected",
9891011
"sourceRange": {
9901012
"start": {
991-
"line": 777,
1013+
"line": 787,
9921014
"column": 12
9931015
},
9941016
"end": {
995-
"line": 782,
1017+
"line": 792,
9961018
"column": 13
9971019
}
9981020
},
@@ -1018,11 +1040,11 @@
10181040
"privacy": "protected",
10191041
"sourceRange": {
10201042
"start": {
1021-
"line": 784,
1043+
"line": 794,
10221044
"column": 12
10231045
},
10241046
"end": {
1025-
"line": 788,
1047+
"line": 798,
10261048
"column": 13
10271049
}
10281050
},
@@ -1039,11 +1061,11 @@
10391061
"privacy": "protected",
10401062
"sourceRange": {
10411063
"start": {
1042-
"line": 790,
1064+
"line": 800,
10431065
"column": 12
10441066
},
10451067
"end": {
1046-
"line": 805,
1068+
"line": 815,
10471069
"column": 13
10481070
}
10491071
},
@@ -1105,7 +1127,7 @@
11051127
"column": 8
11061128
},
11071129
"end": {
1108-
"line": 806,
1130+
"line": 816,
11091131
"column": 9
11101132
}
11111133
},

docs/components/myscript-common-element/myscript-common-element.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@
739739
}
740740

741741
/**
742-
* Trigger import
742+
* Import content
743743
* @param {{x: Number, y: Number}} point Insert point coordinates
744744
* @param {Blob} data
745745
*/
@@ -749,6 +749,16 @@
749749
}
750750
}
751751

752+
/**
753+
* Import ink
754+
* @param {Array<Object>} strokes
755+
*/
756+
importInk(strokes) {
757+
if (this.editor) {
758+
this.editor.importInk(strokes);
759+
}
760+
}
761+
752762
/**
753763
* Trigger convert
754764
*/

0 commit comments

Comments
 (0)