Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit bb80a27

Browse files
author
nturgut
committed
compute bounding matrix
1 parent 7a937eb commit bb80a27

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

lib/web_ui/lib/src/engine/semantics/semantics.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,6 @@ class SemanticsObject {
909909
..left = '${rect.left}px'
910910
..width = '${rect.width}px'
911911
..height = '${rect.height}px';
912-
print(
913-
'** rectangle: ${rect.top}, ${rect.left}, ${rect.width}, ${rect.height}');
914912
}
915913
} else {
916914
if (isDesktop) {

lib/web_ui/lib/src/engine/util.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,6 @@ bool isIdentityFloat32ListTransform(Float32List matrix) {
166166
/// that apply identity transform.
167167
String float64ListToCssTransform2d(Float32List matrix) {
168168
assert (transformKindOf(matrix) != TransformKind.complex);
169-
assert(matrix.length == 16);
170-
final Float32List m = matrix;
171-
if (m[0] == 1.0 && m[5] == 1.0) {
172-
if (m[13] != 0.0 || m[12] != 0.0) {
173-
final int height = html.window.innerHeight ?? 0;
174-
final int width = html.window.innerWidth ?? 0;
175-
print('height width: $height $width semantics css');
176-
return 'translate(${matrix[12]}px, ${matrix[13]}px)';
177-
}
178-
}
179169
return 'matrix(${matrix[0]},${matrix[1]},${matrix[4]},${matrix[5]},${matrix[12]},${matrix[13]})';
180170
}
181171

0 commit comments

Comments
 (0)