removed logging
This commit is contained in:
parent
877acb3103
commit
a567ca787b
|
|
@ -46,10 +46,7 @@ export class PhysicsWorld {
|
||||||
}
|
}
|
||||||
|
|
||||||
public addShapes(shapes: TLShape[]) {
|
public addShapes(shapes: TLShape[]) {
|
||||||
console.log('adding shapesss');
|
|
||||||
|
|
||||||
for (const shape of shapes) {
|
for (const shape of shapes) {
|
||||||
console.log('shape');
|
|
||||||
if ('color' in shape.props && shape.props.color === "violet") {
|
if ('color' in shape.props && shape.props.color === "violet") {
|
||||||
this.createCharacter(shape as TLGeoShape);
|
this.createCharacter(shape as TLGeoShape);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,6 @@ export class HTMLShapeUtil extends ShapeUtil<HTMLShape> {
|
||||||
if (!element || !element.parentElement) return resizeBox(shape, info);
|
if (!element || !element.parentElement) return resizeBox(shape, info);
|
||||||
const { width, height } = element.parentElement.getBoundingClientRect();
|
const { width, height } = element.parentElement.getBoundingClientRect();
|
||||||
if (element) {
|
if (element) {
|
||||||
console.log(element);
|
|
||||||
|
|
||||||
const isOverflowing = element.scrollWidth > width || element.scrollHeight > height;
|
const isOverflowing = element.scrollWidth > width || element.scrollHeight > height;
|
||||||
if (isOverflowing) {
|
if (isOverflowing) {
|
||||||
element.parentElement?.classList.add('overflowing');
|
element.parentElement?.classList.add('overflowing');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue