Nuns Practicing Misanthropy

    @blockly/fixed-edges

    1.0.34 • Public • Published

    @blockly/fixed-edges Built on Blockly

    A Blockly MetricsManager that makes fixed edges more easily configurable.

    Installation

    Yarn

    yarn add @blockly/fixed-edges
    

    npm

    npm install @blockly/fixed-edges --save
    

    Usage

    import * as Blockly from 'blockly';
    import {FixedEdgesMetricsManager} from '@blockly/fixed-edges';
    
    // Configure fixed edges
    FixedEdgesMetricsManager.setFixedEdges({
      top: true,
      left: true,
    });
    
    // Inject Blockly.
    const workspace = Blockly.inject('blocklyDiv', {
      toolbox: toolboxCategories,
      plugins: {
        metricsManager: FixedEdgesMetricsManager,
      },
    });

    API

    • setFixedEdges: Configures which edges are fixed. This does not prevent fixed edges set by no scrollbars or single-direction scrollbars.

    License

    Apache 2.0

    Install

    npm i @blockly/fixed-edges

    DownloadsWeekly Downloads

    69

    Version

    1.0.34

    License

    Apache-2.0

    Unpacked Size

    30.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • google-wombot
    • samelhusseini