@awayjs/scene 0.13.274 → 0.13.276

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,8 +84,8 @@ export class MouseManager {
84
84
 
85
85
  private _isAVM1Dragging: Boolean = false;
86
86
 
87
- public startDragObject(collision?: PickingCollision) {
88
- this._isAVM1Dragging = true;
87
+ public startDragObject(collision?: PickingCollision, isAVM1Dragging: boolean = false) {
88
+ this._isAVM1Dragging = isAVM1Dragging;
89
89
 
90
90
  // we MUST overrider collision target if present, because draggable !== drag emitter
91
91
  if (collision)
@@ -340,7 +340,7 @@ export class MouseManager {
340
340
  this._stage.dispatchEvent(event);
341
341
 
342
342
  if (this._mouseDragCollision) {
343
- this.setFocus(this._mouseDragCollision?.rootNode);
343
+ this.setFocus(this._mouseDragCollision.rootNode);
344
344
  this.setupAndDispatchEvent(this._dragStart, pointerData, this._mouseDragCollision);
345
345
  }
346
346
 
@@ -247,13 +247,14 @@ export class HTMLTextProcessor {
247
247
  }
248
248
 
249
249
  const textProps: any = { text: '' };
250
+ const childFormat: TextFormat = target_tf.newTextFormat;
250
251
 
251
- target_tf._textFormats = [target_tf._textFormat];
252
+ target_tf._textFormats = [childFormat];
252
253
  target_tf._textFormatsIdx = [0];
253
254
  const doc = parse(input);
254
255
  if (doc && doc.firstChild) {
255
256
  textProps.multiline = doc.firstChild.childNodes.length > 0;
256
- this.readHTMLTextPropertiesRecursive(target_tf, doc, textProps, target_tf._textFormat);
257
+ this.readHTMLTextPropertiesRecursive(target_tf, doc, textProps, childFormat);
257
258
  }
258
259
  if (textProps.text != '' && ((textProps.text.charCodeAt(textProps.text.length - 1) == 13)
259
260
  || (textProps.text.charCodeAt(textProps.text.length - 1) == 10))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awayjs/scene",
3
- "version": "0.13.274",
3
+ "version": "0.13.276",
4
4
  "description": "AwayJS scene classes",
5
5
  "main": "bundle/awayjs-scene.umd.js",
6
6
  "module": "dist/index.js",