@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.
- package/bundle/awayjs-scene.umd.js +2 -2
- package/bundle/awayjs-scene.umd.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/display/TextField.d.ts +0 -5
- package/dist/lib/display/TextField.d.ts.map +1 -1
- package/dist/lib/display/TextField.js +25 -60
- package/dist/lib/display/TextSprite.js +2 -2
- package/dist/lib/managers/MouseManager.d.ts +1 -1
- package/dist/lib/managers/MouseManager.d.ts.map +1 -1
- package/dist/lib/managers/MouseManager.js +6 -5
- package/dist/lib/text/HTMLTextProcessor.d.ts.map +1 -1
- package/dist/lib/text/HTMLTextProcessor.js +3 -2
- package/index.ts +1 -1
- package/lib/display/TextField.ts +21 -66
- package/lib/display/TextSprite.ts +2 -2
- package/lib/managers/MouseManager.ts +3 -3
- package/lib/text/HTMLTextProcessor.ts +3 -2
- package/package.json +1 -1
|
@@ -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 =
|
|
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
|
|
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 = [
|
|
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,
|
|
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))) {
|