docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
case 5: | <mask> var propertyType = propertyDescriptor.type;
<mask> if (sourceProperty !== undefined && sourceProperty !== null) {
<mask> switch (propertyType) {
<mask> case 0: // Value
<mask> case 6:
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.js |
case 4: | <mask> break;
<mask> case 1: // Texture
<mask> case 2: // Color3
<mask> case 3: // FresnelParameters
<mask> case 4: // Vector2
<mask> case 5:
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.js |
<mask>
<mask> export function serializeAsFresnelParameters(sourceName?: string) {
<mask> return generateSerializableMember(3, sourceName); // fresnel parameters member
<mask> }
<mask>
<mask> export function serializeAsVector2(sourceName?: string) {
<mask> return generateSerializ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.ts | |
return generateSerializableMember(4, sourceName); // vector3 member
| <mask> return generateSerializableMember(4, sourceName); // vector2 member
<mask> }
<mask>
<mask> export function serializeAsVector3(sourceName?: string) {
<mask> return generateSerializableMember(5, sourceName); // vector3 member
<mask> }
<mask>
<mask> export function serializ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.ts |
return generateSerializableMember(5, sourceName); // mesh reference member
| <mask> return generateSerializableMember(5, sourceName); // vector3 member
<mask> }
<mask>
<mask> export function serializeAsMeshReference(sourceName?: string) {
<mask> return generateSerializableMember(6, sourceName); // mesh reference member
<mask> }
<mask>
<mask> export clas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.ts |
case 4: // Vector3
| <mask> break;
<mask> case 3: // FresnelParameters
<mask> serializationObject[targetPropertyName] = sourceProperty.serialize();
<mask> break;
<mask> case 4: // Vector2
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.ts |
case 5: // Mesh reference
| <mask> break;
<mask> case 5: // Vector3
<mask> serializationObject[targetPropertyName] = sourceProperty.asArray();
<mask> break;
<mask> case 6: // Mesh reference
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.ts |
case 4: // Vector3
| <mask> break;
<mask> case 3: // FresnelParameters
<mask> destination[property] = FresnelParameters.Parse(sourceProperty);
<mask> break;
<mask> case 4: // Vector2
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.ts |
case 5: // Mesh reference
| <mask> break;
<mask> case 5: // Vector3
<mask> destination[property] = Vector3.FromArray(sourceProperty);
<mask> break;
<mask> case 6: // Mesh reference
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.ts |
case 5: // Mesh reference
| <mask>
<mask> if (sourceProperty !== undefined && sourceProperty !== null) {
<mask> switch (propertyType) {
<mask> case 0: // Value
<mask> case 6: // Mesh reference
<mask> destination[property]... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.ts |
case 4: // Vector3
| <mask> break;
<mask> case 1: // Texture
<mask> case 2: // Color3
<mask> case 3: // FresnelParameters
<mask> case 4: // Vector2
<mask> case 5: // V... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/332d5813eb92380d079b8f086357e1f1e78280f9 | src/Tools/babylon.decorators.ts |
"@typescript-eslint/consistent-type-imports": ["error", { "disallowTypeAnnotations": false }],
"@typescript-eslint/no-this-alias": "error",
| <mask> // }],
<mask> // "no-duplicate-imports": ["error", { "includeExports": true }],
<mask> // should be error, no?
<mask> "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
<mask> // "@typescript-eslint/consistent-type-imports": ["error", { "dis... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | .eslintrc |
import type { BuildType, DevPackageName } from "./packageMapping";
import { getAllPackageMappingsByDevNames, getPackageMappingByDevName, getPublicPackageName, isValidDevPackageName } from "./packageMapping";
| <mask> import * as path from "path";
<mask> import * as chokidar from "chokidar";
<mask>
<mask> import { camelize, checkArgs, checkDirectorySync, debounce, findRootDirectory, getHashOfContent, getHashOfFile, kebabize } from "./utils";
<mask> import { BuildType, DevPackageName, getAllPackageMappingsByDevNames, get... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/buildTools/src/generateDeclaration.ts |
import type { BuildType, PublicPackageVariable } from "./packageMapping";
import { getDevPackagesByBuildType, getPublicPackageName, isValidDevPackageName, declarationsOnlyPackages } from "./packageMapping";
| <mask> import * as ts from "typescript";
<mask> import { getDevPackagesByBuildType, getPublicPackageName, isValidDevPackageName, BuildType, declarationsOnlyPackages, PublicPackageVariable } from "./packageMapping";
<mask>
<mask> const addJS = (to: string, forceAppend?: boolean | string): string => (forceAppend && ... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/buildTools/src/pathTransform.ts |
import type { PointerInput } from "../DeviceInput/InputDevices/deviceEnums";
| <mask> import { PointerInput } from "../DeviceInput/InputDevices/deviceEnums";
<mask>
<mask> /**
<mask> * Event Types
<mask> */
<mask> export enum DeviceInputEventType {
</s> Turning on two eslint rules (#12681)
* Turning on two eslint rules
* formatting
* lint fixes
* types imports
* formatting
... | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Events/deviceInputEvents.ts |
import type { NodeMaterialConnectionPoint } from "../../nodeMaterialBlockConnectionPoint";
import { NodeMaterialConnectionPointDirection } from "../../nodeMaterialBlockConnectionPoint";
| <mask> import { NodeMaterialBlock } from "../../nodeMaterialBlock";
<mask> import { NodeMaterialBlockConnectionPointTypes } from "../../Enums/nodeMaterialBlockConnectionPointTypes";
<mask> import type { NodeMaterialBuildState } from "../../nodeMaterialBuildState";
<mask> import { NodeMaterialBlockTargets } from "..... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Materials/Node/Blocks/Fragment/TBNBlock.ts |
import type { NodeMaterial, NodeMaterialDefines } from "../../nodeMaterial";
| <mask> import { NodeMaterialBlockTargets } from "../../Enums/nodeMaterialBlockTargets";
<mask> import { NodeMaterialConnectionPoint, NodeMaterialConnectionPointDirection } from "../../nodeMaterialBlockConnectionPoint";
<mask> import { RegisterClass } from "../../../../Misc/typeStore";
<mask> import { NodeMaterialCo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Materials/Node/Blocks/Fragment/TBNBlock.ts |
import type { AbstractMesh } from "../../../../Meshes/abstractMesh";
| <mask> import { NodeMaterialConnectionPointCustomObject } from "../../nodeMaterialConnectionPointCustomObject";
<mask> import { NodeMaterial, NodeMaterialDefines } from "../../nodeMaterial";
<mask> import { NodeMaterialSystemValues } from "../../Enums/nodeMaterialSystemValues";
<mask> import { InputBlock } from "..... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Materials/Node/Blocks/Fragment/TBNBlock.ts |
import type { NodeMaterialConnectionPoint } from "../../nodeMaterialBlockConnectionPoint";
import { NodeMaterialConnectionPointDirection } from "../../nodeMaterialBlockConnectionPoint";
| <mask> import { NodeMaterialBlock } from "../../nodeMaterialBlock";
<mask> import { NodeMaterialBlockConnectionPointTypes } from "../../Enums/nodeMaterialBlockConnectionPointTypes";
<mask> import type { NodeMaterialBuildState } from "../../nodeMaterialBuildState";
<mask> import { NodeMaterialBlockTargets } from "..... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Materials/Node/Blocks/Fragment/perturbNormalBlock.ts |
import type { Nullable } from "../../types";
| <mask> import type { Scene } from "../../scene";
<mask> import { Color3 } from "../../Maths/math.color";
<mask> import { PBRBaseMaterial } from "./pbrBaseMaterial";
<mask> import type { BaseTexture } from "../../Materials/Textures/baseTexture";
<mask> import { Nullable } from "../../types";
<mask>
<mask> /**
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Materials/PBR/pbrBaseSimpleMaterial.ts |
import type { Nullable } from "../../types";
| <mask> import type { Color3 } from "../../Maths/math.color";
<mask> import type { BaseTexture } from "../../Materials/Textures/baseTexture";
<mask> import { PBRBaseSimpleMaterial } from "./pbrBaseSimpleMaterial";
<mask> import { RegisterClass } from "../../Misc/typeStore";
<mask> import { Nullable } from "../../ty... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Materials/PBR/pbrMetallicRoughnessMaterial.ts |
import type { Nullable } from "../../types";
| <mask> import type { Color3 } from "../../Maths/math.color";
<mask> import type { BaseTexture } from "../../Materials/Textures/baseTexture";
<mask> import { PBRBaseSimpleMaterial } from "./pbrBaseSimpleMaterial";
<mask> import { RegisterClass } from "../../Misc/typeStore";
<mask> import { Nullable } from "../../ty... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Materials/PBR/pbrSpecularGlossinessMaterial.ts |
import type { InternalTexture } from "./internalTexture";
| <mask> import { Plane } from "../../Maths/math.plane";
<mask> import { EncodeArrayBufferToBase64 } from "../../Misc/stringTools";
<mask> import { GenerateBase64StringFromTexture, GenerateBase64StringFromTextureAsync } from "../../Misc/copyTools";
<mask> import { CompatibilityOptions } from "../../Compat/compatibili... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Materials/Textures/texture.ts |
const { x, y, z } = this;
| <mask> const inverseNormal = MathTmp.Vector3[1];
<mask> plane.normal.negateToRef(inverseNormal);
<mask>
<mask> // This vector is the direction
<mask> const direction = this;
<mask>
<mask> // Calculate how close the direction is to the normal of the plane
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Maths/math.vector.ts |
const dotProduct = Vector3.Dot(inverseNormal, this);
| <mask> // This vector is the direction
<mask> const direction = this;
<mask>
<mask> // Calculate how close the direction is to the normal of the plane
<mask> const dotProduct = Vector3.Dot(inverseNormal, direction);
<mask>
<mask> /*
<mask> * Early out in case t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Maths/math.vector.ts |
result.set(origin.x + x * hitDistance, origin.y + y * hitDistance, origin.z + z * hitDistance);
| <mask> // Calculate the length along the direction vector to the hit point
<mask> const hitDistance = Vector3.Dot(relativeOrigin, inverseNormal) / dotProduct;
<mask>
<mask> // Apply the hit point by adding the direction scaled by the distance to the origin
<mask> result.set(origin.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/core/src/Maths/math.vector.ts |
import type { IFocusableControl } from "./controls/focusableControl";
| <mask> import type { Scene } from "core/scene";
<mask>
<mask> import { Container } from "./controls/container";
<mask> import { Control } from "./controls/control";
<mask> import { IFocusableControl } from "./controls/focusableControl";
<mask> import { Style } from "./style";
<mask> import { Measure } from "./m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/gui/src/2D/advancedDynamicTexture.ts |
import type { Nullable } from "core/types";
| <mask> import { Nullable } from "core/types";
<mask> import { Observable } from "core/Misc/observable";
<mask> import { Vector2 } from "core/Maths/math.vector";
<mask>
<mask> import { Control } from "./control";
<mask> import { ValueAndUnit } from "../valueAndUnit";
</s> Turning on two eslint rules (#12681)
* ... | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/gui/src/2D/controls/inputTextArea.ts |
import type { Vector2 } from "core/Maths/math.vector";
| <mask> import { Nullable } from "core/types";
<mask> import { Observable } from "core/Misc/observable";
<mask> import { Vector2 } from "core/Maths/math.vector";
<mask>
<mask> import { Control } from "./control";
<mask> import { ValueAndUnit } from "../valueAndUnit";
<mask> import { VirtualKeyboard } from "./vir... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/gui/src/2D/controls/inputTextArea.ts |
import type { VirtualKeyboard } from "./virtualKeyboard";
| <mask> import { Vector2 } from "core/Maths/math.vector";
<mask>
<mask> import { Control } from "./control";
<mask> import { ValueAndUnit } from "../valueAndUnit";
<mask> import { VirtualKeyboard } from "./virtualKeyboard";
<mask> import { RegisterClass } from "core/Misc/typeStore";
<mask> import { Measure } fro... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/gui/src/2D/controls/inputTextArea.ts |
import type { Measure } from "../measure";
| <mask> import { Control } from "./control";
<mask> import { ValueAndUnit } from "../valueAndUnit";
<mask> import { VirtualKeyboard } from "./virtualKeyboard";
<mask> import { RegisterClass } from "core/Misc/typeStore";
<mask> import { Measure } from "../measure";
<mask> import { InputText } from "./inputText";
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/gui/src/2D/controls/inputTextArea.ts |
import type { ICanvasRenderingContext } from "core/Engines/ICanvas";
import type { PointerInfo, PointerInfoBase } from "core/Events/pointerEvents";
import type { IKeyboardEvent } from "core/Events/deviceInputEvents";
| <mask> import { VirtualKeyboard } from "./virtualKeyboard";
<mask> import { RegisterClass } from "core/Misc/typeStore";
<mask> import { Measure } from "../measure";
<mask> import { InputText } from "./inputText";
<mask> import { ICanvasRenderingContext } from "core/Engines/ICanvas";
<mask> import { PointerInfo, P... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/gui/src/2D/controls/inputTextArea.ts |
import type { AdvancedDynamicTexture } from "../advancedDynamicTexture";
| <mask> import type { Container } from "./container";
<mask> import type { TextBlock } from "./textBlock";
<mask> import type { InputText } from "./inputText";
<mask> import { RegisterClass } from "core/Misc/typeStore";
<mask> import { AdvancedDynamicTexture } from "../advancedDynamicTexture";
<mask>
<mask> /**
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/gui/src/2D/controls/virtualKeyboard.ts |
import type { Node } from "core/node";
| <mask>
<mask> import type { PropertyChangedEvent } from "../../../propertyChangedEvent";
<mask> import type { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
<mask> import type { GlobalState } from "../../../globalState";
<mask> import { Node } from "core/node";
<mask> import { TextLineCo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/inspector/src/components/actionTabs/tabs/propertyGrids/parentPropertyGridComponent.tsx |
import type { TransformNode } from "core/Meshes/transformNode";
| <mask> import type { GlobalState } from "../../../globalState";
<mask> import { Node } from "core/node";
<mask> import { TextLineComponent } from "shared-ui-components/lines/textLineComponent";
<mask> import { OptionsLineComponent } from "shared-ui-components/lines/optionsLineComponent";
<mask> import { TransformN... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/inspector/src/components/actionTabs/tabs/propertyGrids/parentPropertyGridComponent.tsx |
import type { TransformNode } from "core/Meshes/transformNode";
| <mask> import { GLTFValidation } from "./glTFValidation";
<mask> import type { LoadFileError } from "core/Misc/fileTools";
<mask> import { DecodeBase64UrlToBinary } from "core/Misc/fileTools";
<mask> import { RuntimeError, ErrorCodes } from "core/Misc/error";
<mask> import { TransformNode } from "core/Meshes/trans... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/loaders/src/glTF/glTFFileLoader.ts |
import type { _BinaryWriter } from "../glTFExporter";
import { _Exporter } from "../glTFExporter";
| <mask> import type { IBufferView, IAccessor, INode, IEXTMeshGpuInstancing } from "babylonjs-gltf2interface";
<mask> import { AccessorType, AccessorComponentType } from "babylonjs-gltf2interface";
<mask> import type { IGLTFExporterExtensionV2 } from "../glTFExporterExtension";
<mask> import { _Exporter, _BinaryWrite... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/serializers/src/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.ts |
import type { ReactChild } from "react";
| <mask> import { ReactChild } from "react";
<mask> import { ClassNames } from "./classNames";
<mask> import styles from "./Label.scss";
<mask>
<mask> export type LabelProps = {
<mask> text: string;
</s> Turning on two eslint rules (#12681)
* Turning on two eslint rules
* formatting
* lint fixes
* t... | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/components/Label.tsx |
import type { IPortData } from "./interfaces/portData";
| <mask> import type { IDisplayManager } from "./interfaces/displayManager";
<mask> import { Observable } from "core/Misc/observable";
<mask> import type { Nullable } from "core/types";
<mask> import { IPortData } from "./interfaces/portData";
<mask> import { NodePort } from "./nodePort";
<mask> import { GraphNode ... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/frameNodePort.ts |
import type { GraphNode } from "./graphNode";
| <mask> import { Observable } from "core/Misc/observable";
<mask> import type { Nullable } from "core/types";
<mask> import { IPortData } from "./interfaces/portData";
<mask> import { NodePort } from "./nodePort";
<mask> import { GraphNode } from "./graphNode";
<mask> import { IsFramePortData } from "./tools";
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/frameNodePort.ts |
import type { StateManager } from "./stateManager";
import type { FramePortData } from "./types/framePortData";
import type { INodeData } from "./interfaces/nodeData";
import type { IPortData } from "./interfaces/portData";
import { PortDataDirection } from "./interfaces/portData";
import type { INodeContainer } f... | <mask> import { DataStorage } from "core/Misc/dataStorage";
<mask> import { GraphFrame } from "./graphFrame";
<mask> import type { IEditorData, IFrameData } from "./interfaces/nodeLocationInfo";
<mask> import { FrameNodePort } from "./frameNodePort";
<mask> import { StateManager } from "./stateManager";
<mask> im... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphCanvas.tsx |
import type { NodeLink } from "./nodeLink";
| <mask> import { Observable } from "core/Misc/observable";
<mask> import { Color3 } from "core/Maths/math.color";
<mask> import type { NodePort } from "./nodePort";
<mask> import { FrameNodePort } from "./frameNodePort";
<mask> import { NodeLink } from "./nodeLink";
<mask> import { TypeLedger } from "./typeLedger"... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
import type { IFrameData } from "./interfaces/nodeLocationInfo";
| <mask> import type { NodePort } from "./nodePort";
<mask> import { FrameNodePort } from "./frameNodePort";
<mask> import { NodeLink } from "./nodeLink";
<mask> import { TypeLedger } from "./typeLedger";
<mask> import { IFrameData } from "./interfaces/nodeLocationInfo";
<mask> import { StringTools } from "../strin... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this.isCollapsed) {
| <mask> );
<mask> }
<mask>
<mask> private _onRightHandlePointerDown = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> th... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
this._resizingDirection = ResizingDirection.Right;
this._mouseXLimit = evt.clientX - (this.width - this._minFrameWidth);
this._ownerCanvas.hostCanvas.addEventListener("pointerup", this._onRightHandlePointerUp);
this._ownerCanvas.hostCanvas.addEventListener("pointermove", this._onRight... | <mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> this._initResizing(evt);
<mask> _this._resizingDirection = ResizingDirection.Right;
<mask> _this._mouseXLimit = evt.clientX - (_this.width - _this._minFrameWidth);
<mask> _this._ownerCanvas.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._isResizingRight()) {
this.width = parseFloat(this.element.style.width.replace("px", ""));
this._ownerCanvas.hostCanvas.removeEventListener("pointerup", this._onRightHandlePointerUp);
this._ownerCanvas.hostCanvas.removeEventListener("pointermove", this._onRightHan... | <mask> }
<mask> };
<mask>
<mask> private _onRightHandlePointerUp = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._isResizingRight()) {
<mask> _this.width = parseFloat(_this.element.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this.isCollapsed) {
| <mask> }
<mask> };
<mask>
<mask> private _onBottomHandlePointerDown = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
this._initResizing(evt);
this._resizingDirection = ResizingDirection.Bottom;
this._ownerCanvas.hostCanvas.addEventListener("pointermove", this._onBottomHandlePointerMove);
this._ownerCanvas.hostCanvas.addEventListener("pointerup", this._onBottomHandlePointerUp);
| <mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _this._initResizing(evt);
<mask> _this._resizingDirection = ResizingDirection.Bottom;
<mask> _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._o... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._resizingDirection !== ResizingDirection.Bottom || this._mouseStartPointX === null || this._mouseStartPointY === null || evt.clientY < yLimit) {
| <mask> this._moveBottomHandle(evt, yLimit);
<mask> };
<mask>
<mask> private _moveBottomHandle = (evt: PointerEvent, yLimit: number) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._resizingDirection !== ResizingDirec... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._resizingDirection === ResizingDirection.Bottom) {
| <mask> const _this = this;
<mask> if (_this._resizingDirection !== ResizingDirection.Bottom || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientY < yLimit) {
<mask> return;
<mask> }
<mask> if (_this._resizingDirection === ResizingDirectio... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMoved = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
this._expandBottom(distanceMouseMoved);
this._mouseStartPointY = evt.clientY;
| <mask> return;
<mask> }
<mask> if (_this._resizingDirection === ResizingDirection.Bottom) {
<mask> evt.stopPropagation();
<mask> const distanceMouseMoved = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
<mask> _this._expandBottom(... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._resizingDirection === ResizingDirection.Bottom) {
this.height = parseFloat(this.element.style.height.replace("px", ""));
this._ownerCanvas.hostCanvas.removeEventListener("pointermove", this._onBottomHandlePointerMove);
this._ownerCanvas.hostCanvas.removeEventList... | <mask> }
<mask> };
<mask>
<mask> private _onBottomHandlePointerUp = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._resizingDirection === ResizingDirection.Bottom) {
<mask> _this.hei... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this.isCollapsed) {
| <mask> }
<mask> };
<mask>
<mask> private _onLeftHandlePointerDown = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _th... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
this._initResizing(evt);
this._resizingDirection = ResizingDirection.Left;
this._mouseXLimit = evt.clientX + this.width - this._minFrameWidth;
this._ownerCanvas.hostCanvas.addEventListener("pointerup", this._onLeftHandlePointerUp);
this._ownerCanvas.hostCanvas.addEventListene... | <mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _this._initResizing(evt);
<mask> _this._resizingDirection = ResizingDirection.Left;
<mask> _this._mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._mouseXLimit) {
if (this._resizingDirection !== ResizingDirection.Left || this._mouseStartPointX === null || this._mouseStartPointY === null || evt.clientX > xLimit) {
| <mask> this._moveLeftHandle(evt, xLimit);
<mask> };
<mask>
<mask> private _moveLeftHandle = (evt: PointerEvent, xLimit: number) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._mouseXLimit) {
<mask> if (... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._resizingDirection === ResizingDirection.Left) {
| <mask> if (_this._mouseXLimit) {
<mask> if (_this._resizingDirection !== ResizingDirection.Left || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientX > xLimit) {
<mask> return;
<mask> }
<mask> if (_this._resizingDirection ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMoved = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
this._expandLeft(distanceMouseMoved);
this._mouseStartPointX = evt.clientX;
| <mask> return;
<mask> }
<mask> if (_this._resizingDirection === ResizingDirection.Left) {
<mask> evt.stopPropagation();
<mask> const distanceMouseMoved = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._resizingDirection === ResizingDirection.Left) {
this.x = parseFloat(this.element.style.left!.replace("px", ""));
this.width = parseFloat(this.element.style.width.replace("px", ""));
this._ownerCanvas.hostCanvas.removeEventListener("pointerup", this._onLeftHandleP... | <mask> }
<mask> };
<mask>
<mask> private _onLeftHandlePointerUp = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._resizingDirection === ResizingDirection.Left) {
<mask> _this.x = par... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this.isCollapsed) {
| <mask> }
<mask> };
<mask>
<mask> private _onTopHandlePointerDown = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _thi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
this._initResizing(evt);
this._resizingDirection = ResizingDirection.Top;
this._ownerCanvas.hostCanvas.addEventListener("pointerup", this._onTopHandlePointerUp);
this._ownerCanvas.hostCanvas.addEventListener("pointermove", this._onTopHandlePointerMove);
| <mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _this._initResizing(evt);
<mask> _this._resizingDirection = ResizingDirection.Top;
<mask> _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopH... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (!this._isResizingTop() || this._mouseStartPointX === null || this._mouseStartPointY === null || evt.clientY > yLimit) {
| <mask> this._moveTopHandle(evt, yLimit);
<mask> };
<mask>
<mask> private _moveTopHandle = (evt: PointerEvent, yLimit: number) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (!_this._isResizingTop() || _this._mouseStartPoin... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._isResizingTop()) {
| <mask> const _this = this;
<mask> if (!_this._isResizingTop() || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientY > yLimit) {
<mask> return;
<mask> }
<mask> if (_this._isResizingTop()) {
<mask> evt.stopPropagation();
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMoved = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
this._expandTop(distanceMouseMoved);
this._mouseStartPointY = evt.clientY;
| <mask> return;
<mask> }
<mask> if (_this._isResizingTop()) {
<mask> evt.stopPropagation();
<mask> const distanceMouseMoved = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
<mask> _this._expandTop(distanceMouseMoved);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._isResizingTop()) {
this.y = parseFloat(this.element.style.top!.replace("px", ""));
this.height = parseFloat(this.element.style.height.replace("px", ""));
this._ownerCanvas.hostCanvas.removeEventListener("pointerup", this._onTopHandlePointerUp);
this.... | <mask> }
<mask> };
<mask>
<mask> private _onTopHandlePointerUp = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._isResizingTop()) {
<mask> _this.y = parseFloat(_this.element.style.to... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this.isCollapsed) {
| <mask> }
<mask> };
<mask>
<mask> private _onTopRightHandlePointerDown = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
this._initResizing(evt);
this._resizingDirection = ResizingDirection.TopRight;
this._ownerCanvas.hostCanvas.addEventListener("pointerup", this._onTopRightHandlePointerUp);
this._ownerCanvas.hostCanvas.addEventListener("pointermove", this._onTopRightHandlePointerMove);
| <mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _this._initResizing(evt);
<mask> _this._resizingDirection = ResizingDirection.TopRight;
<mask> _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._o... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (!(this._isResizingTop() && this._isResizingRight()) || this._mouseStartPointX === null || this._mouseStartPointY === null) {
| <mask> this._moveTopRightHandle(evt, xLimit, yLimit);
<mask> };
<mask>
<mask> private _moveTopRightHandle = (evt: PointerEvent, xLimit: number, yLimit: number) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (!(_this._isRes... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._isResizingRight() && this._isResizingTop()) {
| <mask> const _this = this;
<mask> if (!(_this._isResizingTop() && _this._isResizingRight()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
<mask> return;
<mask> }
<mask> if (_this._isResizingRight() && _this._isResizingTop()) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
this._expandRight(distanceMouseMovedX, evt.clientX);
this._mouseStartPointX = evt.clientX;
const distanceMouseMovedY = (evt.clientY - this._mouseStartPointY) / ... | <mask> if (_this._isResizingRight() && _this._isResizingTop()) {
<mask> evt.stopPropagation();
<mask> if (evt.clientY < yLimit && evt.clientX > xLimit) {
<mask> // able to move in X and Y
<mask> const distanceMouseMovedX = (evt.clientX - _this._mouseS... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
this._expandRight(distanceMouseMovedX, evt.clientX);
this._mouseStartPointX = evt.clientX;
| <mask> _this._expandTop(distanceMouseMovedY);
<mask> _this._mouseStartPointY = evt.clientY;
<mask> } else if (evt.clientY > yLimit && evt.clientX > xLimit) {
<mask> // able to move in X but not Y
<mask> const distanceMouseMovedX = (evt.cli... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
this._expandTop(distanceMouseMovedY);
this._mouseStartPointY = evt.clientY;
| <mask> _this._expandRight(distanceMouseMovedX, evt.clientX);
<mask> _this._mouseStartPointX = evt.clientX;
<mask> } else if (evt.clientY < yLimit && evt.clientX < xLimit) {
<mask> // able to move in Y but not X
<mask> const distanceMouseMo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._resizingDirection === ResizingDirection.TopRight) {
this.y = parseFloat(this.element.style.top!.replace("px", ""));
this.height = parseFloat(this.element.style.height.replace("px", ""));
this.width = parseFloat(this.element.style.width.replace("px", ""));
... | <mask> };
<mask>
<mask> private _onTopRightHandlePointerUp = (evt: PointerEvent) => {
<mask> evt.stopPropagation();
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._resizingDirection === ResizingDirection.TopRight) {
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this.isCollapsed) {
| <mask> }
<mask> };
<mask>
<mask> private _onBottomRightHandlePointerDown = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
this._initResizing(evt);
this._resizingDirection = ResizingDirection.BottomRight;
this._ownerCanvas.hostCanvas.addEventListener("pointerup", this._onBottomRightHandlePointerUp);
this._ownerCanvas.hostCanvas.addEventListener("pointermove", this._onBottomRightHandlePointerMove);
| <mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _this._initResizing(evt);
<mask> _this._resizingDirection = ResizingDirection.BottomRight;
<mask> _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (!(this._isResizingBottom() && this._isResizingRight()) || this._mouseStartPointX === null || this._mouseStartPointY === null) {
| <mask> this._moveBottomRightHandle(evt, xLimit, yLimit);
<mask> };
<mask>
<mask> private _moveBottomRightHandle = (evt: PointerEvent, xLimit: number, yLimit: number) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (!(_this.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._isResizingRight() && this._isResizingBottom()) {
| <mask> const _this = this;
<mask> if (!(_this._isResizingBottom() && _this._isResizingRight()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
<mask> return;
<mask> }
<mask> if (_this._isResizingRight() && _this._isResizingBottom()) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
this._expandRight(distanceMouseMovedX, evt.clientX);
this._mouseStartPointX = evt.clientX;
const distanceMouseMovedY = (evt.clientY - this._mouseStartPointY) / ... | <mask> if (_this._isResizingRight() && _this._isResizingBottom()) {
<mask> evt.stopPropagation();
<mask> if (evt.clientY > yLimit && evt.clientX > xLimit) {
<mask> // able to move in X and Y
<mask> const distanceMouseMovedX = (evt.clientX - _this._mou... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
this._expandRight(distanceMouseMovedX, evt.clientX);
this._mouseStartPointX = evt.clientX;
| <mask> _this._expandBottom(distanceMouseMovedY);
<mask> _this._mouseStartPointY = evt.clientY;
<mask> } else if (evt.clientY < yLimit && evt.clientX > xLimit) {
<mask> // able to move in X but not Y
<mask> const distanceMouseMovedX = (evt.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
this._expandBottom(distanceMouseMovedY);
this._mouseStartPointY = evt.clientY;
| <mask> _this._expandRight(distanceMouseMovedX, evt.clientX);
<mask> _this._mouseStartPointX = evt.clientX;
<mask> } else if (evt.clientY > yLimit && evt.clientX < xLimit) {
<mask> // able to move in Y but not X
<mask> const distanceMouseMo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._resizingDirection === ResizingDirection.BottomRight) {
this.height = parseFloat(this.element.style.height.replace("px", ""));
this.width = parseFloat(this.element.style.width.replace("px", ""));
this._ownerCanvas.hostCanvas.removeEventListener("pointerup", this._... | <mask> }
<mask> };
<mask>
<mask> private _onBottomRightHandlePointerUp = (evt: PointerEvent) => {
<mask> evt.stopPropagation();
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._resizingDirection === ResizingDirec... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this.isCollapsed) {
| <mask> }
<mask> };
<mask>
<mask> private _onBottomLeftHandlePointerDown = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
this._initResizing(evt);
this._resizingDirection = ResizingDirection.BottomLeft;
this._mouseXLimit = evt.clientX + this.width - this._minFrameWidth;
this._ownerCanvas.hostCanvas.addEventListener("pointerup", this._onBottomLeftHandlePointerUp);
this._ownerCanvas.hostCanvas.add... | <mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _this._initResizing(evt);
<mask> _this._resizingDirection = ResizingDirection.BottomLeft;
<mask> _this._mouseXLimit = evt.clientX + _this.width - _this._minFrameWi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (!(this._isResizingBottom() && this._isResizingLeft()) || this._mouseStartPointX === null || this._mouseStartPointY === null) {
| <mask> this._moveBottomLeftHandle(evt, xLimit, yLimit);
<mask> };
<mask>
<mask> private _moveBottomLeftHandle = (evt: PointerEvent, xLimit: number, yLimit: number) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (!(_this._i... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._isResizingLeft() && this._isResizingBottom()) {
| <mask> const _this = this;
<mask> if (!(_this._isResizingBottom() && _this._isResizingLeft()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
<mask> return;
<mask> }
<mask> if (_this._isResizingLeft() && _this._isResizingBottom()) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
this._expandLeft(distanceMouseMovedX);
this._mouseStartPointX = evt.clientX;
const distanceMouseMovedY = (evt.clientY - this._mouseStartPointY) / this._ownerCan... | <mask> if (_this._isResizingLeft() && _this._isResizingBottom()) {
<mask> evt.stopPropagation();
<mask> if (evt.clientY > yLimit && evt.clientX < xLimit) {
<mask> // able to move in X and Y
<mask> const distanceMouseMovedX = (evt.clientX - _this._mous... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
this._expandLeft(distanceMouseMovedX);
this._mouseStartPointX = evt.clientX;
| <mask> _this._expandBottom(distanceMouseMovedY);
<mask> _this._mouseStartPointY = evt.clientY;
<mask> } else if (evt.clientY < yLimit && evt.clientX < xLimit) {
<mask> // able to move in X but not Y
<mask> const distanceMouseMovedX = (evt.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
this._expandBottom(distanceMouseMovedY);
this._mouseStartPointY = evt.clientY;
| <mask> _this._expandLeft(distanceMouseMovedX);
<mask> _this._mouseStartPointX = evt.clientX;
<mask> } else if (evt.clientY > yLimit && evt.clientX > xLimit) {
<mask> // able to move in Y but not X
<mask> const distanceMouseMovedY = (evt.cl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._resizingDirection === ResizingDirection.BottomLeft) {
this.height = parseFloat(this.element.style.height.replace("px", ""));
this.x = parseFloat(this.element.style.left!.replace("px", ""));
this.width = parseFloat(this.element.style.width.replace("px", ""));
... | <mask> };
<mask>
<mask> private _onBottomLeftHandlePointerUp = (evt: PointerEvent) => {
<mask> evt.stopPropagation();
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._resizingDirection === ResizingDirection.BottomLeft) {
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this.isCollapsed) {
| <mask> }
<mask> };
<mask>
<mask> private _onTopLeftHandlePointerDown = (evt: PointerEvent) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
this._initResizing(evt);
this._resizingDirection = ResizingDirection.TopLeft;
this._mouseXLimit = evt.clientX + this.width - this._minFrameWidth;
this._ownerCanvas.hostCanvas.addEventListener("pointerup", this._onTopLeftHandlePointerUp);
this._ownerCanvas.hostCanvas.addEventL... | <mask> const _this = this;
<mask> if (_this.isCollapsed) {
<mask> return;
<mask> }
<mask> _this._initResizing(evt);
<mask> _this._resizingDirection = ResizingDirection.TopLeft;
<mask> _this._mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (!(this._isResizingTop() && this._isResizingLeft()) || this._mouseStartPointX === null || this._mouseStartPointY === null) {
| <mask> this._moveTopLeftHandle(evt, xLimit, yLimit);
<mask> };
<mask>
<mask> private _moveTopLeftHandle = (evt: PointerEvent, xLimit: number, yLimit: number) => {
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (!(_this._isResiz... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._isResizingLeft() && this._isResizingTop()) {
| <mask> const _this = this;
<mask> if (!(_this._isResizingTop() && _this._isResizingLeft()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
<mask> return;
<mask> }
<mask> if (_this._isResizingLeft() && _this._isResizingTop()) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
this._expandLeft(distanceMouseMovedX);
this._mouseStartPointX = evt.clientX;
const distanceMouseMovedY = (evt.clientY - this._mouseStartPointY) / this._ownerCan... | <mask> if (_this._isResizingLeft() && _this._isResizingTop()) {
<mask> evt.stopPropagation();
<mask> if (evt.clientY < yLimit && evt.clientX < xLimit) {
<mask> // able to move in X and Y
<mask> const distanceMouseMovedX = (evt.clientX - _this._mouseSt... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
this._expandLeft(distanceMouseMovedX);
this._mouseStartPointX = evt.clientX;
| <mask> _this._expandTop(distanceMouseMovedY);
<mask> _this._mouseStartPointY = evt.clientY;
<mask> } else if (evt.clientY > yLimit && evt.clientX < xLimit) {
<mask> // able to move in X but not Y
<mask> const distanceMouseMovedX = (evt.cli... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
const distanceMouseMovedY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
this._expandTop(distanceMouseMovedY);
this._mouseStartPointY = evt.clientY;
| <mask> _this._expandLeft(distanceMouseMovedX);
<mask> _this._mouseStartPointX = evt.clientX;
<mask> } else if (evt.clientY < yLimit && evt.clientX > xLimit) {
<mask> // able to move in Y but not X
<mask> const distanceMouseMovedY = (evt.cl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
if (this._resizingDirection === ResizingDirection.TopLeft) {
this.y = parseFloat(this.element.style.top!.replace("px", ""));
this.height = parseFloat(this.element.style.height.replace("px", ""));
this.x = parseFloat(this.element.style.left!.replace("px", ""));
... | <mask> };
<mask>
<mask> private _onTopLeftHandlePointerUp = (evt: PointerEvent) => {
<mask> evt.stopPropagation();
<mask> // tslint:disable-next-line: no-this-assignment
<mask> const _this = this;
<mask> if (_this._resizingDirection === ResizingDirection.TopLeft) {
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphFrame.ts |
import type { IDisplayManager } from "./interfaces/displayManager";
| <mask> import triangle from "../imgs/triangle.svg";
<mask> import type { NodeLink } from "./nodeLink";
<mask> import type { StateManager } from "./stateManager";
<mask> import type { ISelectionChangedOptions } from "./interfaces/selectionChangedOptions";
<mask> import { IDisplayManager } from "./interfaces/display... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphNode.ts |
import type { INodeData } from "./interfaces/nodeData";
import type { IPortData } from "./interfaces/portData";
| <mask> import type { ISelectionChangedOptions } from "./interfaces/selectionChangedOptions";
<mask> import { IDisplayManager } from "./interfaces/displayManager";
<mask> import { PropertyLedger } from "./propertyLedger";
<mask> import { DisplayLedger } from "./displayLedger";
<mask> import { INodeData } from "./in... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/graphNode.ts |
import type { INodeData } from "./nodeData";
import type { IPortData } from "./portData";
| <mask> import { INodeData } from "./nodeData";
<mask> import { IPortData } from "./portData";
<mask>
<mask> export interface IDisplayManager {
<mask> getHeaderClass(data: INodeData): string;
<mask> shouldDisplayPortLabels(data: IPortData): boolean;
<mask> updatePreviewContent(data: INodeData, conten... | [
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/interfaces/displayManager.ts |
import type { GraphNode } from "../graphNode";
| <mask> import { GraphNode } from "../graphNode";
<mask>
<mask> export interface INodeContainer {
<mask> nodes: GraphNode[];
<mask> }
</s> Turning on two eslint rules (#12681)
* Turning on two eslint rules
* formatting
* lint fixes
* types imports
* formatting
Former-commit-id: 9dc9f6de40c62df82... | [
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/33e71b847ed31734a683a1ae1d4b506bafcba80e | packages/dev/sharedUiComponents/src/nodeGraphSystem/interfaces/nodeContainer.ts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.