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

Commit 0660399

Browse files
author
Francois-Xavier Gentilhomme
committed
[DEV] Plug importContent
1 parent 3e7c920 commit 0660399

File tree

11 files changed

+172
-57
lines changed

11 files changed

+172
-57
lines changed

analysis.json

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5779,11 +5779,11 @@
57795779
"privacy": "public",
57805780
"sourceRange": {
57815781
"start": {
5782-
"line": 902,
5782+
"line": 913,
57835783
"column": 12
57845784
},
57855785
"end": {
5786-
"line": 906,
5786+
"line": 917,
57875787
"column": 13
57885788
}
57895789
},
@@ -5796,11 +5796,11 @@
57965796
"privacy": "public",
57975797
"sourceRange": {
57985798
"start": {
5799-
"line": 908,
5799+
"line": 919,
58005800
"column": 12
58015801
},
58025802
"end": {
5803-
"line": 911,
5803+
"line": 922,
58045804
"column": 13
58055805
}
58065806
},
@@ -6022,17 +6022,44 @@
60226022
"metadata": {},
60236023
"params": []
60246024
},
6025+
{
6026+
"name": "importContent",
6027+
"description": "Launch import",
6028+
"privacy": "public",
6029+
"sourceRange": {
6030+
"start": {
6031+
"line": 876,
6032+
"column": 12
6033+
},
6034+
"end": {
6035+
"line": 880,
6036+
"column": 13
6037+
}
6038+
},
6039+
"metadata": {},
6040+
"params": [
6041+
{
6042+
"name": "point",
6043+
"type": "{x: Number, y: Number}",
6044+
"description": "Insert point coordinates"
6045+
},
6046+
{
6047+
"name": "data",
6048+
"type": "Blob"
6049+
}
6050+
]
6051+
},
60256052
{
60266053
"name": "convert",
60276054
"description": "Launch convert",
60286055
"privacy": "public",
60296056
"sourceRange": {
60306057
"start": {
6031-
"line": 874,
6058+
"line": 885,
60326059
"column": 12
60336060
},
60346061
"end": {
6035-
"line": 878,
6062+
"line": 889,
60366063
"column": 13
60376064
}
60386065
},
@@ -6045,11 +6072,11 @@
60456072
"privacy": "public",
60466073
"sourceRange": {
60476074
"start": {
6048-
"line": 884,
6075+
"line": 895,
60496076
"column": 12
60506077
},
60516078
"end": {
6052-
"line": 888,
6079+
"line": 899,
60536080
"column": 13
60546081
}
60556082
},
@@ -6062,11 +6089,11 @@
60626089
"privacy": "protected",
60636090
"sourceRange": {
60646091
"start": {
6065-
"line": 890,
6092+
"line": 901,
60666093
"column": 12
60676094
},
60686095
"end": {
6069-
"line": 896,
6096+
"line": 907,
60706097
"column": 13
60716098
}
60726099
},
@@ -6083,11 +6110,11 @@
60836110
"privacy": "protected",
60846111
"sourceRange": {
60856112
"start": {
6086-
"line": 898,
6113+
"line": 909,
60876114
"column": 12
60886115
},
60896116
"end": {
6090-
"line": 900,
6117+
"line": 911,
60916118
"column": 13
60926119
}
60936120
},
@@ -6110,11 +6137,11 @@
61106137
"privacy": "protected",
61116138
"sourceRange": {
61126139
"start": {
6113-
"line": 913,
6140+
"line": 924,
61146141
"column": 12
61156142
},
61166143
"end": {
6117-
"line": 930,
6144+
"line": 941,
61186145
"column": 13
61196146
}
61206147
},
@@ -6131,11 +6158,11 @@
61316158
"privacy": "protected",
61326159
"sourceRange": {
61336160
"start": {
6134-
"line": 932,
6161+
"line": 943,
61356162
"column": 12
61366163
},
61376164
"end": {
6138-
"line": 935,
6165+
"line": 946,
61396166
"column": 13
61406167
}
61416168
},
@@ -6883,7 +6910,7 @@
68836910
"column": 8
68846911
},
68856912
"end": {
6886-
"line": 936,
6913+
"line": 947,
68876914
"column": 9
68886915
}
68896916
},

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": "8e331b54eb",
48+
"_release": "3d6204dc59",
4949
"_resolution": {
5050
"type": "branch",
5151
"branch": "2.0.0-alpha1",
52-
"commit": "8e331b54eb2293ab4859d0978e8a7f0cc812fce4"
52+
"commit": "3d6204dc59f18cd6a8702175148f3ac10ab948aa"
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: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -891,17 +891,44 @@
891891
"metadata": {},
892892
"params": []
893893
},
894+
{
895+
"name": "importContent",
896+
"description": "Trigger import",
897+
"privacy": "public",
898+
"sourceRange": {
899+
"start": {
900+
"line": 745,
901+
"column": 12
902+
},
903+
"end": {
904+
"line": 749,
905+
"column": 13
906+
}
907+
},
908+
"metadata": {},
909+
"params": [
910+
{
911+
"name": "point",
912+
"type": "{x: Number, y: Number}",
913+
"description": "Insert point coordinates"
914+
},
915+
{
916+
"name": "data",
917+
"type": "Blob"
918+
}
919+
]
920+
},
894921
{
895922
"name": "convert",
896923
"description": "Trigger convert",
897924
"privacy": "public",
898925
"sourceRange": {
899926
"start": {
900-
"line": 743,
927+
"line": 754,
901928
"column": 12
902929
},
903930
"end": {
904-
"line": 747,
931+
"line": 758,
905932
"column": 13
906933
}
907934
},
@@ -914,11 +941,11 @@
914941
"privacy": "public",
915942
"sourceRange": {
916943
"start": {
917-
"line": 753,
944+
"line": 764,
918945
"column": 12
919946
},
920947
"end": {
921-
"line": 757,
948+
"line": 768,
922949
"column": 13
923950
}
924951
},
@@ -931,11 +958,11 @@
931958
"privacy": "protected",
932959
"sourceRange": {
933960
"start": {
934-
"line": 759,
961+
"line": 770,
935962
"column": 12
936963
},
937964
"end": {
938-
"line": 764,
965+
"line": 775,
939966
"column": 13
940967
}
941968
},
@@ -961,11 +988,11 @@
961988
"privacy": "protected",
962989
"sourceRange": {
963990
"start": {
964-
"line": 766,
991+
"line": 777,
965992
"column": 12
966993
},
967994
"end": {
968-
"line": 771,
995+
"line": 782,
969996
"column": 13
970997
}
971998
},
@@ -991,11 +1018,11 @@
9911018
"privacy": "protected",
9921019
"sourceRange": {
9931020
"start": {
994-
"line": 773,
1021+
"line": 784,
9951022
"column": 12
9961023
},
9971024
"end": {
998-
"line": 777,
1025+
"line": 788,
9991026
"column": 13
10001027
}
10011028
},
@@ -1012,11 +1039,11 @@
10121039
"privacy": "protected",
10131040
"sourceRange": {
10141041
"start": {
1015-
"line": 779,
1042+
"line": 790,
10161043
"column": 12
10171044
},
10181045
"end": {
1019-
"line": 794,
1046+
"line": 805,
10201047
"column": 13
10211048
}
10221049
},
@@ -1078,7 +1105,7 @@
10781105
"column": 8
10791106
},
10801107
"end": {
1081-
"line": 795,
1108+
"line": 806,
10821109
"column": 9
10831110
}
10841111
},

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,17 @@
738738
}
739739
}
740740

741+
/**
742+
* Trigger import
743+
* @param {{x: Number, y: Number}} point Insert point coordinates
744+
* @param {Blob} data
745+
*/
746+
importContent(point, data) {
747+
if (this.editor) {
748+
this.editor.importContent(point, data);
749+
}
750+
}
751+
741752
/**
742753
* Trigger convert
743754
*/

0 commit comments

Comments
 (0)