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

Commit 31e8df2

Browse files
committed
[DEV] Refactor importContent in import_
1 parent f87036b commit 31e8df2

File tree

63 files changed

+1386
-1254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1386
-1254
lines changed

analysis.json

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7778,11 +7778,11 @@
77787778
"privacy": "public",
77797779
"sourceRange": {
77807780
"start": {
7781-
"line": 1053,
7781+
"line": 1052,
77827782
"column": 12
77837783
},
77847784
"end": {
7785-
"line": 1056,
7785+
"line": 1055,
77867786
"column": 13
77877787
}
77887788
},
@@ -7987,26 +7987,21 @@
79877987
"params": []
79887988
},
79897989
{
7990-
"name": "importContent",
7990+
"name": "import_",
79917991
"description": "Import content",
7992-
"privacy": "public",
7992+
"privacy": "private",
79937993
"sourceRange": {
79947994
"start": {
7995-
"line": 986,
7995+
"line": 985,
79967996
"column": 12
79977997
},
79987998
"end": {
7999-
"line": 990,
7999+
"line": 989,
80008000
"column": 13
80018001
}
80028002
},
80038003
"metadata": {},
80048004
"params": [
8005-
{
8006-
"name": "point",
8007-
"type": "{x: Number, y: Number}",
8008-
"description": "Insert point coordinates"
8009-
},
80108005
{
80118006
"name": "data",
80128007
"type": "(Blob|*)",
@@ -8023,11 +8018,11 @@
80238018
"privacy": "public",
80248019
"sourceRange": {
80258020
"start": {
8026-
"line": 1016,
8021+
"line": 1015,
80278022
"column": 12
80288023
},
80298024
"end": {
8030-
"line": 1020,
8025+
"line": 1019,
80318026
"column": 13
80328027
}
80338028
},
@@ -8046,11 +8041,11 @@
80468041
"privacy": "public",
80478042
"sourceRange": {
80488043
"start": {
8049-
"line": 1025,
8044+
"line": 1024,
80508045
"column": 12
80518046
},
80528047
"end": {
8053-
"line": 1029,
8048+
"line": 1028,
80548049
"column": 13
80558050
}
80568051
},
@@ -8063,11 +8058,11 @@
80638058
"privacy": "public",
80648059
"sourceRange": {
80658060
"start": {
8066-
"line": 1035,
8061+
"line": 1034,
80678062
"column": 12
80688063
},
80698064
"end": {
8070-
"line": 1039,
8065+
"line": 1038,
80718066
"column": 13
80728067
}
80738068
},
@@ -8080,11 +8075,11 @@
80808075
"privacy": "protected",
80818076
"sourceRange": {
80828077
"start": {
8083-
"line": 1041,
8078+
"line": 1040,
80848079
"column": 12
80858080
},
80868081
"end": {
8087-
"line": 1047,
8082+
"line": 1046,
80888083
"column": 13
80898084
}
80908085
},
@@ -8101,11 +8096,11 @@
81018096
"privacy": "protected",
81028097
"sourceRange": {
81038098
"start": {
8104-
"line": 1049,
8099+
"line": 1048,
81058100
"column": 12
81068101
},
81078102
"end": {
8108-
"line": 1051,
8103+
"line": 1050,
81098104
"column": 13
81108105
}
81118106
},
@@ -8128,11 +8123,11 @@
81288123
"privacy": "protected",
81298124
"sourceRange": {
81308125
"start": {
8131-
"line": 1058,
8126+
"line": 1057,
81328127
"column": 12
81338128
},
81348129
"end": {
8135-
"line": 1075,
8130+
"line": 1074,
81368131
"column": 13
81378132
}
81388133
},
@@ -8149,11 +8144,11 @@
81498144
"privacy": "protected",
81508145
"sourceRange": {
81518146
"start": {
8152-
"line": 1077,
8147+
"line": 1076,
81538148
"column": 12
81548149
},
81558150
"end": {
8156-
"line": 1080,
8151+
"line": 1079,
81578152
"column": 13
81588153
}
81598154
},
@@ -9005,7 +9000,7 @@
90059000
"column": 8
90069001
},
90079002
"end": {
9008-
"line": 1081,
9003+
"line": 1080,
90099004
"column": 9
90109005
}
90119006
},

docs/components/iron-autogrow-textarea/.bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iron-autogrow-textarea",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "A textarea element that automatically grows with input",
55
"authors": [
66
"The Polymer Authors"
@@ -60,11 +60,11 @@
6060
"resolutions": {
6161
"webcomponentsjs": "^1.0.0"
6262
},
63-
"_release": "2.1.0",
63+
"_release": "2.1.1",
6464
"_resolution": {
6565
"type": "version",
66-
"tag": "v2.1.0",
67-
"commit": "1e6bcf4c585fa4a1b82acef2ba9aa6eab76de3b4"
66+
"tag": "v2.1.1",
67+
"commit": "ac2bf6158b2c52294c8bcc85c677ee13d06e7aaa"
6868
},
6969
"_source": "https://github.com/PolymerElements/iron-autogrow-textarea.git",
7070
"_target": "1 - 2",

docs/components/iron-autogrow-textarea/bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iron-autogrow-textarea",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "A textarea element that automatically grows with input",
55
"authors": [
66
"The Polymer Authors"

docs/components/iron-autogrow-textarea/iron-autogrow-textarea.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,8 @@
343343
this.bindValue = value;
344344
this.$.mirror.innerHTML = this._valueForMirror();
345345

346-
// This code is from early 1.0, when this element was a type extension.
347-
// It's unclear if it's still needed, but leaving in in case it is.
348-
// manually notify because we don't want to notify until after setting value.
349-
// this.fire('bind-value-changed', {value: this.bindValue});
346+
// Manually notify because we don't want to notify until after setting value.
347+
this.fire('bind-value-changed', {value: this.bindValue});
350348
},
351349

352350
_onInput: function(event) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
"paper-toggle-button": "^2.0.0",
4848
"paper-slider": "^2.0.2"
4949
},
50-
"_release": "1c75efa6d7",
50+
"_release": "7ccad6ed62",
5151
"_resolution": {
5252
"type": "branch",
5353
"branch": "master",
54-
"commit": "1c75efa6d76fc51696a76c4850eeffa4ff445f0d"
54+
"commit": "7ccad6ed6290a5b459e0deafd15dae21a5b06b7e"
5555
},
5656
"_source": "https://github.com/MyScript/myscript-common-element.git",
5757
"_target": "master",

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

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,26 +1026,21 @@
10261026
"params": []
10271027
},
10281028
{
1029-
"name": "importContent",
1029+
"name": "import_",
10301030
"description": "Import content",
1031-
"privacy": "public",
1031+
"privacy": "private",
10321032
"sourceRange": {
10331033
"start": {
1034-
"line": 958,
1034+
"line": 957,
10351035
"column": 12
10361036
},
10371037
"end": {
1038-
"line": 962,
1038+
"line": 961,
10391039
"column": 13
10401040
}
10411041
},
10421042
"metadata": {},
10431043
"params": [
1044-
{
1045-
"name": "point",
1046-
"type": "{x: Number, y: Number}",
1047-
"description": "Insert point coordinates"
1048-
},
10491044
{
10501045
"name": "data",
10511046
"type": "(Blob|*)",
@@ -1062,11 +1057,11 @@
10621057
"privacy": "public",
10631058
"sourceRange": {
10641059
"start": {
1065-
"line": 988,
1060+
"line": 987,
10661061
"column": 12
10671062
},
10681063
"end": {
1069-
"line": 992,
1064+
"line": 991,
10701065
"column": 13
10711066
}
10721067
},
@@ -1085,11 +1080,11 @@
10851080
"privacy": "public",
10861081
"sourceRange": {
10871082
"start": {
1088-
"line": 997,
1083+
"line": 996,
10891084
"column": 12
10901085
},
10911086
"end": {
1092-
"line": 1001,
1087+
"line": 1000,
10931088
"column": 13
10941089
}
10951090
},
@@ -1102,11 +1097,11 @@
11021097
"privacy": "public",
11031098
"sourceRange": {
11041099
"start": {
1105-
"line": 1007,
1100+
"line": 1006,
11061101
"column": 12
11071102
},
11081103
"end": {
1109-
"line": 1011,
1104+
"line": 1010,
11101105
"column": 13
11111106
}
11121107
},
@@ -1119,11 +1114,11 @@
11191114
"privacy": "protected",
11201115
"sourceRange": {
11211116
"start": {
1122-
"line": 1013,
1117+
"line": 1012,
11231118
"column": 12
11241119
},
11251120
"end": {
1126-
"line": 1018,
1121+
"line": 1017,
11271122
"column": 13
11281123
}
11291124
},
@@ -1149,11 +1144,11 @@
11491144
"privacy": "protected",
11501145
"sourceRange": {
11511146
"start": {
1152-
"line": 1020,
1147+
"line": 1019,
11531148
"column": 12
11541149
},
11551150
"end": {
1156-
"line": 1025,
1151+
"line": 1024,
11571152
"column": 13
11581153
}
11591154
},
@@ -1179,11 +1174,11 @@
11791174
"privacy": "protected",
11801175
"sourceRange": {
11811176
"start": {
1182-
"line": 1027,
1177+
"line": 1026,
11831178
"column": 12
11841179
},
11851180
"end": {
1186-
"line": 1032,
1181+
"line": 1031,
11871182
"column": 13
11881183
}
11891184
},
@@ -1203,11 +1198,11 @@
12031198
"privacy": "protected",
12041199
"sourceRange": {
12051200
"start": {
1206-
"line": 1034,
1201+
"line": 1033,
12071202
"column": 12
12081203
},
12091204
"end": {
1210-
"line": 1038,
1205+
"line": 1037,
12111206
"column": 13
12121207
}
12131208
},
@@ -1224,11 +1219,11 @@
12241219
"privacy": "protected",
12251220
"sourceRange": {
12261221
"start": {
1227-
"line": 1040,
1222+
"line": 1039,
12281223
"column": 12
12291224
},
12301225
"end": {
1231-
"line": 1061,
1226+
"line": 1060,
12321227
"column": 13
12331228
}
12341229
},
@@ -1278,7 +1273,7 @@
12781273
"column": 8
12791274
},
12801275
"end": {
1281-
"line": 1062,
1276+
"line": 1061,
12821277
"column": 9
12831278
}
12841279
},

docs/components/myscript-common-element/examples/v4/import_content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
const importContent = document.getElementById('importContentField');
5050

5151
document.getElementById('importContent').addEventListener('click', function () {
52-
component.importContent({ x: 0, y: 0 }, importContent.value, importContent.dataset.type);
52+
component.import_(importContent.value, importContent.dataset.type);
5353
});
5454
</script>
5555
</body>

docs/components/myscript-common-element/examples/v4/pointer_events.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@
4949
<textarea id="pointerEventsObject">{ "processGestures": true, "events": [{
5050
"pointerType": "PEN",
5151
"pointerId": 1,
52-
"x": [273, 278, 281],
53-
"y": [121, 128, 133],
54-
"t": [3185.7900000000004, 3213.8150000000005, 3222.5350000000003],
55-
"p": [1.0, 1.0, 1.0]
52+
"x": [128, 125, 122, 119, 118, 117, 116, 117, 119, 123, 127, 135, 139, 141, 144, 144, 143, 142, 141, 142],
53+
"y": [83, 91, 99, 107, 114, 121, 125, 120, 112, 101, 90, 76, 70, 66, 76, 88, 101, 111, 118, 123],
54+
"t": [1516190046205, 1516190046247, 1516190046264, 1516190046280, 1516190046297, 1516190046314, 1516190046330, 1516190046380, 1516190046397, 1516190046413, 1516190046430, 1516190046447, 1516190046463, 1516190046480, 1516190046547, 1516190046563, 1516190046581, 1516190046597, 1516190046614, 1516190046630],
55+
"p": [0.5, 0.7076987214308235, 0.8060672826037246, 0.8060672826037246, 0.785875329883628, 0.785875329883628, 0.7185264889882718, 0.7461846839143089, 0.8024894359144054, 0.6578786777951477, 0.6578786777951477, 0.5984465727129564, 0.7880849230110567, 0.7292125754002905, 0.6768853685004259, 0.6535898384862245, 0.6389126863152722, 0.6829846120277299, 0.785875329883628, 0.7461846839143089]
5656
},{
5757
"pointerType": "PEN",
5858
"pointerId": 1,
59-
"x": [173, 178, 181],
60-
"y": [221, 228, 233],
61-
"t": [6185.7900000000004, 6213.8150000000005,6222.5350000000003],
62-
"p": [1.0, 1.0, 1.0]
59+
"x": [117, 122, 128, 139, 146],
60+
"y": [105, 105, 106, 107, 106],
61+
"t": [1516190046870, 1516190046930, 1516190046947, 1516190046963, 1516190046980],
62+
"p": [0.5, 0.7763932022500211, 0.7681880209236327, 0.6676543814462531, 0.785875329883628]
6363
}]}</textarea>
6464
<button class="classic-btn" id="pointerEvents">Process</button>
6565
</div>

0 commit comments

Comments
 (0)