nos-versioning
v3.1.1
Published
Client document versioning made easy(ish).
Downloads
19
Readme
Nos-Versioning
Client document versioning made easy(ish).
Bugs
- Groups
- verticalAlign not working - position should be relative to the group, not the canvas
- LayerIndex - could this be an option to re-order the objects?
- URGENT - Remove eval from the reviver process. Probably need to move to a strict .js format for loading configs
HOW TO
How to update JsPDF
- Clone the repo https://github.com/MrRio/jsPDF.git
npm i
- Modify src/index.js to only include these packages:
- acroform
- addimage
- annotations
- jpeg_support
- png_support
- split_text_to_size
- standard_fonts_metrics
- ttfsupport
- utf8
- vfs
- ttffont
npm run build
- Copy the dist/jspdf.umd.js file into our src/js/_prototypes/jspdf/index.js file
- Remove the 'use strict' and Worker references. Also search for 'let ' and replace with 'var '
How to update fabric.js
- Clone the repo https://github.com/fabricjs/fabric.js.git
- Run this command:
npm run build:custom
(node build.js modules=text,itext,serialization,interaction,animation,easing,shadow no-strict no-svg-export
) - Copy the contents of dist/fabric.js into our src/js/_prototypes/fabric/fabric.js file
- Remove the references to node (e.g. jsdom, isLikelyNode)
How to install with npm
- Go to bitbucket and click the branch dropdown
- Next to 'Branches', you'll see 'Tags' - click that and select the most recent tag
- Create your npm install url:
bitbucket:IBIData/nos-versioning.git#${TAG_NAME_HERE}
How to package a new release
- First, create a production build (
gulp production
) - Commit all of your changes
- Once your working branch is clean, bump the version with the correct npm script (
npm run bump-[patch|minor|major]
)
- First, create a production build (
Added/changed options
controllers - now is array containing controller components. Each member can be string (predefined component with defaults) or object (predefined component with custom options)