mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
feat: mark some marker_svg properties protected instead of private (#8558)
This commit is contained in:
@@ -47,7 +47,7 @@ export class MarkerSvg {
|
|||||||
* The workspace, field, or block that the marker SVG element should be
|
* The workspace, field, or block that the marker SVG element should be
|
||||||
* attached to.
|
* attached to.
|
||||||
*/
|
*/
|
||||||
private parent: IASTNodeLocationSvg | null = null;
|
protected parent: IASTNodeLocationSvg | null = null;
|
||||||
|
|
||||||
/** The current SVG element for the marker. */
|
/** The current SVG element for the marker. */
|
||||||
currentMarkerSvg: SVGElement | null = null;
|
currentMarkerSvg: SVGElement | null = null;
|
||||||
@@ -73,9 +73,9 @@ export class MarkerSvg {
|
|||||||
* @param marker The marker to draw.
|
* @param marker The marker to draw.
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private readonly workspace: WorkspaceSvg,
|
protected readonly workspace: WorkspaceSvg,
|
||||||
constants: ConstantProvider,
|
constants: ConstantProvider,
|
||||||
private readonly marker: Marker,
|
protected readonly marker: Marker,
|
||||||
) {
|
) {
|
||||||
this.constants_ = constants;
|
this.constants_ = constants;
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ export class MarkerSvg {
|
|||||||
*
|
*
|
||||||
* @param curNode The node to draw the marker for.
|
* @param curNode The node to draw the marker for.
|
||||||
*/
|
*/
|
||||||
private showWithBlockPrevOutput(curNode: ASTNode) {
|
protected showWithBlockPrevOutput(curNode: ASTNode) {
|
||||||
const block = curNode.getSourceBlock() as BlockSvg;
|
const block = curNode.getSourceBlock() as BlockSvg;
|
||||||
const width = block.width;
|
const width = block.width;
|
||||||
const height = block.height;
|
const height = block.height;
|
||||||
@@ -620,7 +620,7 @@ export class MarkerSvg {
|
|||||||
* @param oldNode The old node the marker used to be on.
|
* @param oldNode The old node the marker used to be on.
|
||||||
* @param curNode The new node the marker is currently on.
|
* @param curNode The new node the marker is currently on.
|
||||||
*/
|
*/
|
||||||
private fireMarkerEvent(oldNode: ASTNode, curNode: ASTNode) {
|
protected fireMarkerEvent(oldNode: ASTNode, curNode: ASTNode) {
|
||||||
const curBlock = curNode.getSourceBlock();
|
const curBlock = curNode.getSourceBlock();
|
||||||
const event = new (eventUtils.get(EventType.MARKER_MOVE))(
|
const event = new (eventUtils.get(EventType.MARKER_MOVE))(
|
||||||
curBlock,
|
curBlock,
|
||||||
|
|||||||
Reference in New Issue
Block a user